w_rp_musttake_balc_other.srw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. $PBExportHeader$w_rp_musttake_balc_other.srw
  2. forward
  3. global type w_rp_musttake_balc_other from w_publ_easyq
  4. end type
  5. type cbx_1 from checkbox within w_rp_musttake_balc_other
  6. end type
  7. type ddlb_1 from dropdownlistbox within w_rp_musttake_balc_other
  8. end type
  9. type tv_1 from uo_tv_cusarea within w_rp_musttake_balc_other
  10. end type
  11. type st_1 from statictext within w_rp_musttake_balc_other
  12. end type
  13. type ddlb_3 from uo_ddlb_scid within w_rp_musttake_balc_other
  14. end type
  15. type st_2 from statictext within w_rp_musttake_balc_other
  16. end type
  17. type ddlb_money from uo_ddlb_moneyid within w_rp_musttake_balc_other
  18. end type
  19. type ddlb_2 from dropdownlistbox within w_rp_musttake_balc_other
  20. end type
  21. type cbx_show from checkbox within w_rp_musttake_balc_other
  22. end type
  23. end forward
  24. global type w_rp_musttake_balc_other from w_publ_easyq
  25. integer x = 9
  26. integer y = 12
  27. string title = "其他应收汇总表"
  28. cbx_1 cbx_1
  29. ddlb_1 ddlb_1
  30. tv_1 tv_1
  31. st_1 st_1
  32. ddlb_3 ddlb_3
  33. st_2 st_2
  34. ddlb_money ddlb_money
  35. ddlb_2 ddlb_2
  36. cbx_show cbx_show
  37. end type
  38. global w_rp_musttake_balc_other w_rp_musttake_balc_other
  39. type variables
  40. long ins_moneyid=0
  41. String ls_areaname = ''
  42. long cur_scid
  43. long cur_scid_arr[]
  44. end variables
  45. on w_rp_musttake_balc_other.create
  46. int iCurrent
  47. call super::create
  48. this.cbx_1=create cbx_1
  49. this.ddlb_1=create ddlb_1
  50. this.tv_1=create tv_1
  51. this.st_1=create st_1
  52. this.ddlb_3=create ddlb_3
  53. this.st_2=create st_2
  54. this.ddlb_money=create ddlb_money
  55. this.ddlb_2=create ddlb_2
  56. this.cbx_show=create cbx_show
  57. iCurrent=UpperBound(this.Control)
  58. this.Control[iCurrent+1]=this.cbx_1
  59. this.Control[iCurrent+2]=this.ddlb_1
  60. this.Control[iCurrent+3]=this.tv_1
  61. this.Control[iCurrent+4]=this.st_1
  62. this.Control[iCurrent+5]=this.ddlb_3
  63. this.Control[iCurrent+6]=this.st_2
  64. this.Control[iCurrent+7]=this.ddlb_money
  65. this.Control[iCurrent+8]=this.ddlb_2
  66. this.Control[iCurrent+9]=this.cbx_show
  67. end on
  68. on w_rp_musttake_balc_other.destroy
  69. call super::destroy
  70. destroy(this.cbx_1)
  71. destroy(this.ddlb_1)
  72. destroy(this.tv_1)
  73. destroy(this.st_1)
  74. destroy(this.ddlb_3)
  75. destroy(this.st_2)
  76. destroy(this.ddlb_money)
  77. destroy(this.ddlb_2)
  78. destroy(this.cbx_show)
  79. end on
  80. event resize;call super::resize;tv_1.height=this.height - dw_1.y - 115
  81. end event
  82. event open;call super::open;ddlb_2.text = '明细表'
  83. end event
  84. type cb_func from w_publ_easyq`cb_func within w_rp_musttake_balc_other
  85. end type
  86. type cb_exit from w_publ_easyq`cb_exit within w_rp_musttake_balc_other
  87. end type
  88. type cb_2 from w_publ_easyq`cb_2 within w_rp_musttake_balc_other
  89. boolean bringtotop = true
  90. end type
  91. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_musttake_balc_other
  92. boolean bringtotop = true
  93. end type
  94. type cb_1 from w_publ_easyq`cb_1 within w_rp_musttake_balc_other
  95. boolean bringtotop = true
  96. end type
  97. event cb_1::clicked;call super::clicked;DateTime firstdate,enddate
  98. firstdate = DateTime(Date(em_1.Text),Time(0))
  99. enddate = DateTime(Date(em_2.Text),Time('23:59:59'))
  100. Delete From u_parm_pay Where id = 2 ;
  101. If sqlca.SQLCode <> 0 Then
  102. MessageBox('错误','数据库操作失败!'+sqlca.SQLErrText,stopsign!,ok!)
  103. Rollback;
  104. Return
  105. End If
  106. Insert Into u_parm_pay (firstdate,enddate,id)
  107. Values (:firstdate,:enddate,2);
  108. If sqlca.SQLCode <> 0 Then
  109. MessageBox('错误','数据库操作失败!'+sqlca.SQLErrText,stopsign!,ok!)
  110. Rollback;
  111. Return
  112. End If
  113. Commit;
  114. Int arg_ifshow
  115. IF cbx_show.Checked THEN
  116. arg_ifshow = 1
  117. ELSE
  118. arg_ifshow = 0
  119. END IF
  120. If dw_1.DataObject = 'dw_rp_musttake_balc_other_hz_1' Then
  121. dw_1.Retrieve(firstdate,enddate,cur_scid,ins_moneyid)
  122. Else
  123. dw_1.Retrieve(firstdate,enddate,cur_scid,ins_moneyid,ls_areaname,arg_ifshow)
  124. End If
  125. dw_1.Object.dt_ar.Text = "日期范围: "+String(Date(firstdate))+" 到 "+em_2.Text
  126. end event
  127. type st_3 from w_publ_easyq`st_3 within w_rp_musttake_balc_other
  128. integer x = 9
  129. integer y = 324
  130. integer width = 315
  131. integer height = 64
  132. string text = "发生日期从:"
  133. alignment alignment = left!
  134. end type
  135. type st_4 from w_publ_easyq`st_4 within w_rp_musttake_balc_other
  136. integer x = 873
  137. integer y = 328
  138. end type
  139. type em_1 from w_publ_easyq`em_1 within w_rp_musttake_balc_other
  140. integer x = 315
  141. integer y = 304
  142. integer width = 453
  143. integer textsize = -10
  144. end type
  145. type em_2 from w_publ_easyq`em_2 within w_rp_musttake_balc_other
  146. integer x = 974
  147. integer y = 304
  148. integer width = 453
  149. integer textsize = -10
  150. end type
  151. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_musttake_balc_other
  152. integer x = 1559
  153. integer y = 0
  154. integer height = 668
  155. end type
  156. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_musttake_balc_other
  157. integer x = 1339
  158. integer y = 8
  159. end type
  160. type dw_1 from w_publ_easyq`dw_1 within w_rp_musttake_balc_other
  161. integer x = 850
  162. integer y = 416
  163. integer width = 2546
  164. integer height = 1520
  165. string dataobject = "dw_rp_musttake_balc_other"
  166. end type
  167. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_musttake_balc_other
  168. end type
  169. type sle_cust from w_publ_easyq`sle_cust within w_rp_musttake_balc_other
  170. end type
  171. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_musttake_balc_other
  172. end type
  173. type st_cust from w_publ_easyq`st_cust within w_rp_musttake_balc_other
  174. end type
  175. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_musttake_balc_other
  176. boolean visible = true
  177. integer x = 1339
  178. end type
  179. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_musttake_balc_other
  180. integer x = 768
  181. integer y = 300
  182. end type
  183. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_musttake_balc_other
  184. integer x = 1431
  185. integer y = 304
  186. end type
  187. type pb_2 from w_publ_easyq`pb_2 within w_rp_musttake_balc_other
  188. integer x = 1531
  189. integer y = 304
  190. end type
  191. type cb_help from w_publ_easyq`cb_help within w_rp_musttake_balc_other
  192. end type
  193. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_musttake_balc_other
  194. end type
  195. type gb_1 from w_publ_easyq`gb_1 within w_rp_musttake_balc_other
  196. end type
  197. type ln_bar from w_publ_easyq`ln_bar within w_rp_musttake_balc_other
  198. end type
  199. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_musttake_balc_other
  200. end type
  201. type r_bar from w_publ_easyq`r_bar within w_rp_musttake_balc_other
  202. end type
  203. type ln_1 from w_publ_easyq`ln_1 within w_rp_musttake_balc_other
  204. integer beginx = -46
  205. integer endx = 1970
  206. end type
  207. type ln_2 from w_publ_easyq`ln_2 within w_rp_musttake_balc_other
  208. integer beginx = -46
  209. integer endx = 2002
  210. end type
  211. type ln_3 from w_publ_easyq`ln_3 within w_rp_musttake_balc_other
  212. end type
  213. type ln_4 from w_publ_easyq`ln_4 within w_rp_musttake_balc_other
  214. end type
  215. type cbx_1 from checkbox within w_rp_musttake_balc_other
  216. boolean visible = false
  217. integer x = 1339
  218. integer y = 200
  219. integer width = 585
  220. integer height = 76
  221. boolean bringtotop = true
  222. integer textsize = -9
  223. integer weight = 400
  224. fontcharset fontcharset = gb2312charset!
  225. fontpitch fontpitch = variable!
  226. string facename = "宋体"
  227. long textcolor = 16711680
  228. long backcolor = 134217739
  229. string text = "不显示无交易的客户"
  230. boolean checked = true
  231. end type
  232. type ddlb_1 from dropdownlistbox within w_rp_musttake_balc_other
  233. boolean visible = false
  234. integer x = 2834
  235. integer y = 204
  236. integer width = 494
  237. integer height = 564
  238. integer taborder = 20
  239. boolean bringtotop = true
  240. integer textsize = -9
  241. integer weight = 400
  242. fontcharset fontcharset = gb2312charset!
  243. fontpitch fontpitch = variable!
  244. string facename = "宋体"
  245. long textcolor = 33554432
  246. boolean enabled = false
  247. string text = "格式一"
  248. boolean sorted = false
  249. string item[] = {"格式一","格式二"}
  250. borderstyle borderstyle = stylelowered!
  251. end type
  252. event selectionchanged;IF THIS.Text = '格式二' THEN
  253. dw_1.uf_save_profile_layout()
  254. END IF
  255. IF THIS.Text = '格式一' THEN
  256. dw_1.DataObject = 'dw_rp_musttake_balc'
  257. ELSE
  258. dw_1.DataObject = 'dw_rp_musttake_balc_2'
  259. END IF
  260. dw_1.SetTransObject(sqlca)
  261. IF THIS.Text = '格式一' THEN
  262. dw_1.ins_INIfile_name = sys_inifilename
  263. dw_1.ins_opemp = publ_operator
  264. dw_1.cardw_empid = sys_empid
  265. dw_1.cur_DataObject = dw_1.DataObject
  266. dw_1.uf_read_profile_layout()
  267. END IF
  268. end event
  269. type tv_1 from uo_tv_cusarea within w_rp_musttake_balc_other
  270. integer y = 416
  271. integer width = 850
  272. integer height = 1520
  273. integer taborder = 60
  274. boolean bringtotop = true
  275. integer textsize = -9
  276. fontcharset fontcharset = gb2312charset!
  277. fontfamily fontfamily = anyfont!
  278. string facename = "宋体"
  279. end type
  280. event selectionchanged;call super::selectionchanged;ls_areaname = THIS.uo_cur_info.areaname
  281. ls_areaname = ls_areaname + '%'
  282. cb_1.TriggerEvent(Clicked!)
  283. end event
  284. type st_1 from statictext within w_rp_musttake_balc_other
  285. integer x = 695
  286. integer y = 216
  287. integer width = 128
  288. integer height = 48
  289. boolean bringtotop = true
  290. integer textsize = -9
  291. integer weight = 400
  292. fontcharset fontcharset = gb2312charset!
  293. fontpitch fontpitch = variable!
  294. string facename = "宋体"
  295. long textcolor = 33554432
  296. long backcolor = 134217739
  297. string text = "币种"
  298. boolean focusrectangle = false
  299. end type
  300. type ddlb_3 from uo_ddlb_scid within w_rp_musttake_balc_other
  301. integer x = 155
  302. integer y = 196
  303. integer width = 526
  304. integer height = 768
  305. integer taborder = 30
  306. boolean bringtotop = true
  307. end type
  308. event constructor;call super::constructor;THIS.Enabled = (sys_option_scid_msttake_mstpay = 1)
  309. cur_scid_arr = THIS.uo_scid_arr
  310. end event
  311. event selectionchanged;call super::selectionchanged;cur_scid_arr = THIS.uo_scid_arr
  312. cb_1.TriggerEvent(Clicked!)
  313. end event
  314. type st_2 from statictext within w_rp_musttake_balc_other
  315. integer x = 18
  316. integer y = 216
  317. integer width = 133
  318. integer height = 48
  319. boolean bringtotop = true
  320. integer textsize = -9
  321. integer weight = 400
  322. fontcharset fontcharset = gb2312charset!
  323. fontpitch fontpitch = variable!
  324. string facename = "宋体"
  325. long textcolor = 33554432
  326. long backcolor = 134217739
  327. string text = "分部"
  328. boolean focusrectangle = false
  329. end type
  330. type ddlb_money from uo_ddlb_moneyid within w_rp_musttake_balc_other
  331. integer x = 827
  332. integer y = 196
  333. integer taborder = 30
  334. boolean bringtotop = true
  335. end type
  336. event constructor;call super::constructor;ins_moneyid = THIS.uo_moneyid
  337. end event
  338. event selectionchanged;call super::selectionchanged;ins_moneyid = THIS.uo_moneyid
  339. cb_1.TriggerEvent(Clicked!)
  340. end event
  341. type ddlb_2 from dropdownlistbox within w_rp_musttake_balc_other
  342. integer x = 1915
  343. integer y = 72
  344. integer width = 699
  345. integer height = 368
  346. integer taborder = 80
  347. boolean bringtotop = true
  348. integer textsize = -8
  349. integer weight = 400
  350. fontcharset fontcharset = ansi!
  351. fontpitch fontpitch = variable!
  352. fontfamily fontfamily = swiss!
  353. string facename = "Arial"
  354. long textcolor = 33554432
  355. boolean sorted = false
  356. boolean vscrollbar = true
  357. string item[] = {"明细表","汇总表[按客户项目]","汇总表[按项目]"}
  358. borderstyle borderstyle = stylelowered!
  359. end type
  360. event selectionchanged;dw_1.uf_save_profile_layout()
  361. IF ddlb_2.Text = '明细表' THEN
  362. dw_1.DataObject = 'dw_rp_musttake_balc_other'
  363. ELSEIF ddlb_2.Text = '汇总表[按客户项目]' THEN
  364. dw_1.DataObject = 'dw_rp_musttake_balc_other_hz'
  365. ELSEIF ddlb_2.Text = '汇总表[按项目]' THEN
  366. dw_1.DataObject = 'dw_rp_musttake_balc_other_hz_1'
  367. END IF
  368. wf_replacedw()
  369. cb_1.TriggerEvent(Clicked!)
  370. end event
  371. type cbx_show from checkbox within w_rp_musttake_balc_other
  372. integer x = 1371
  373. integer y = 196
  374. integer width = 631
  375. integer height = 76
  376. boolean bringtotop = true
  377. integer textsize = -9
  378. integer weight = 400
  379. fontcharset fontcharset = gb2312charset!
  380. fontpitch fontpitch = variable!
  381. string facename = "宋体"
  382. long textcolor = 16711680
  383. long backcolor = 134217739
  384. string text = "不显示无交易的客户"
  385. boolean checked = true
  386. end type
  387. event clicked;cb_1.triggerevent(clicked!)
  388. end event