w_rp_cusbalc.srw 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. $PBExportHeader$w_rp_cusbalc.srw
  2. forward
  3. global type w_rp_cusbalc from w_publ_easyq
  4. end type
  5. type tv_1 from uo_tv_cusarea within w_rp_cusbalc
  6. end type
  7. type st_1 from statictext within w_rp_cusbalc
  8. end type
  9. type ddlb_2 from uo_ddlb_scid within w_rp_cusbalc
  10. end type
  11. type st_2 from statictext within w_rp_cusbalc
  12. end type
  13. type ddlb_3 from dropdownlistbox within w_rp_cusbalc
  14. end type
  15. type ddlb_money from uo_ddlb_moneyid within w_rp_cusbalc
  16. end type
  17. end forward
  18. global type w_rp_cusbalc from w_publ_easyq
  19. integer x = 9
  20. integer y = 12
  21. string title = "客户应收结余表"
  22. tv_1 tv_1
  23. st_1 st_1
  24. ddlb_2 ddlb_2
  25. st_2 st_2
  26. ddlb_3 ddlb_3
  27. ddlb_money ddlb_money
  28. end type
  29. global w_rp_cusbalc w_rp_cusbalc
  30. type variables
  31. String ls_areaname = ''
  32. long ins_moneyid=0
  33. long cur_scid
  34. long cur_scid_arr[]
  35. end variables
  36. on w_rp_cusbalc.create
  37. int iCurrent
  38. call super::create
  39. this.tv_1=create tv_1
  40. this.st_1=create st_1
  41. this.ddlb_2=create ddlb_2
  42. this.st_2=create st_2
  43. this.ddlb_3=create ddlb_3
  44. this.ddlb_money=create ddlb_money
  45. iCurrent=UpperBound(this.Control)
  46. this.Control[iCurrent+1]=this.tv_1
  47. this.Control[iCurrent+2]=this.st_1
  48. this.Control[iCurrent+3]=this.ddlb_2
  49. this.Control[iCurrent+4]=this.st_2
  50. this.Control[iCurrent+5]=this.ddlb_3
  51. this.Control[iCurrent+6]=this.ddlb_money
  52. end on
  53. on w_rp_cusbalc.destroy
  54. call super::destroy
  55. destroy(this.tv_1)
  56. destroy(this.st_1)
  57. destroy(this.ddlb_2)
  58. destroy(this.st_2)
  59. destroy(this.ddlb_3)
  60. destroy(this.ddlb_money)
  61. end on
  62. event ue_before_open;IF sys_option_scid_msttake_mstpay = 1 THEN
  63. dw_1.DataObject = 'dw_rp_cusbalc'
  64. ELSE
  65. dw_1.DataObject = 'dw_rp_cusbalc_not_scid'
  66. END IF
  67. CALL Super :: ue_before_open ;
  68. end event
  69. event resize;call super::resize;tv_1.height=this.height - dw_1.y - 115
  70. end event
  71. type cb_func from w_publ_easyq`cb_func within w_rp_cusbalc
  72. end type
  73. type cb_exit from w_publ_easyq`cb_exit within w_rp_cusbalc
  74. end type
  75. type cb_2 from w_publ_easyq`cb_2 within w_rp_cusbalc
  76. boolean bringtotop = true
  77. end type
  78. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_cusbalc
  79. boolean bringtotop = true
  80. end type
  81. type cb_1 from w_publ_easyq`cb_1 within w_rp_cusbalc
  82. boolean bringtotop = true
  83. end type
  84. event cb_1::clicked;call super::clicked;IF sys_option_scid_msttake_mstpay = 1 THEN
  85. dw_1.Retrieve(ls_areaname,ins_moneyid,cur_scid_arr)
  86. ELSE
  87. dw_1.Retrieve(ls_areaname,ins_moneyid)
  88. END IF
  89. end event
  90. type st_3 from w_publ_easyq`st_3 within w_rp_cusbalc
  91. boolean visible = false
  92. integer y = 220
  93. end type
  94. type st_4 from w_publ_easyq`st_4 within w_rp_cusbalc
  95. boolean visible = false
  96. integer y = 220
  97. end type
  98. type em_1 from w_publ_easyq`em_1 within w_rp_cusbalc
  99. boolean visible = false
  100. integer y = 204
  101. end type
  102. type em_2 from w_publ_easyq`em_2 within w_rp_cusbalc
  103. boolean visible = false
  104. integer y = 204
  105. end type
  106. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_cusbalc
  107. integer y = 12
  108. end type
  109. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_cusbalc
  110. integer y = 16
  111. end type
  112. type dw_1 from w_publ_easyq`dw_1 within w_rp_cusbalc
  113. integer x = 859
  114. integer y = 312
  115. integer width = 2501
  116. integer height = 1580
  117. string dataobject = "dw_rp_cusbalc"
  118. end type
  119. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_cusbalc
  120. end type
  121. type sle_cust from w_publ_easyq`sle_cust within w_rp_cusbalc
  122. end type
  123. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_cusbalc
  124. end type
  125. type st_cust from w_publ_easyq`st_cust within w_rp_cusbalc
  126. end type
  127. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_cusbalc
  128. boolean visible = true
  129. end type
  130. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_cusbalc
  131. boolean visible = false
  132. end type
  133. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_cusbalc
  134. boolean visible = false
  135. end type
  136. type pb_2 from w_publ_easyq`pb_2 within w_rp_cusbalc
  137. boolean visible = false
  138. end type
  139. type cb_help from w_publ_easyq`cb_help within w_rp_cusbalc
  140. end type
  141. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_cusbalc
  142. end type
  143. type gb_1 from w_publ_easyq`gb_1 within w_rp_cusbalc
  144. end type
  145. type ln_bar from w_publ_easyq`ln_bar within w_rp_cusbalc
  146. end type
  147. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_cusbalc
  148. end type
  149. type r_bar from w_publ_easyq`r_bar within w_rp_cusbalc
  150. end type
  151. type ln_1 from w_publ_easyq`ln_1 within w_rp_cusbalc
  152. end type
  153. type ln_2 from w_publ_easyq`ln_2 within w_rp_cusbalc
  154. end type
  155. type ln_3 from w_publ_easyq`ln_3 within w_rp_cusbalc
  156. end type
  157. type ln_4 from w_publ_easyq`ln_4 within w_rp_cusbalc
  158. end type
  159. type tv_1 from uo_tv_cusarea within w_rp_cusbalc
  160. integer y = 308
  161. integer width = 850
  162. integer height = 1584
  163. integer taborder = 70
  164. boolean bringtotop = true
  165. integer textsize = -9
  166. fontcharset fontcharset = gb2312charset!
  167. fontfamily fontfamily = anyfont!
  168. string facename = "宋体"
  169. end type
  170. event selectionchanged;call super::selectionchanged;ls_areaname = THIS.uo_cur_info.areaname
  171. ls_areaname = ls_areaname + '%'
  172. cb_1.TriggerEvent(Clicked!)
  173. end event
  174. type st_1 from statictext within w_rp_cusbalc
  175. integer x = 713
  176. integer y = 208
  177. integer width = 133
  178. integer height = 48
  179. boolean bringtotop = true
  180. integer textsize = -9
  181. integer weight = 400
  182. fontcharset fontcharset = gb2312charset!
  183. fontpitch fontpitch = variable!
  184. string facename = "宋体"
  185. long textcolor = 33554432
  186. long backcolor = 134217739
  187. string text = "币种"
  188. boolean focusrectangle = false
  189. end type
  190. type ddlb_2 from uo_ddlb_scid within w_rp_cusbalc
  191. integer x = 155
  192. integer y = 192
  193. integer width = 526
  194. integer height = 768
  195. integer taborder = 50
  196. boolean bringtotop = true
  197. end type
  198. event constructor;call super::constructor;THIS.Enabled = (sys_option_scid_msttake_mstpay = 1)
  199. cur_scid_arr = THIS.uo_scid_arr
  200. end event
  201. event selectionchanged;call super::selectionchanged;cur_scid_arr = THIS.uo_scid_arr
  202. cb_1.TriggerEvent(Clicked!)
  203. end event
  204. type st_2 from statictext within w_rp_cusbalc
  205. integer x = 18
  206. integer y = 208
  207. integer width = 133
  208. integer height = 48
  209. boolean bringtotop = true
  210. integer textsize = -9
  211. integer weight = 400
  212. fontcharset fontcharset = gb2312charset!
  213. fontpitch fontpitch = variable!
  214. string facename = "宋体"
  215. long textcolor = 33554432
  216. long backcolor = 134217739
  217. string text = "分部"
  218. boolean focusrectangle = false
  219. end type
  220. type ddlb_3 from dropdownlistbox within w_rp_cusbalc
  221. integer x = 1984
  222. integer y = 40
  223. integer width = 549
  224. integer height = 452
  225. integer taborder = 120
  226. boolean bringtotop = true
  227. integer textsize = -9
  228. integer weight = 400
  229. fontcharset fontcharset = gb2312charset!
  230. fontpitch fontpitch = variable!
  231. string facename = "宋体"
  232. long textcolor = 33554432
  233. string text = "汇总统计"
  234. string item[] = {"汇总统计","按月统计"}
  235. borderstyle borderstyle = stylelowered!
  236. end type
  237. event selectionchanged;IF THIS.Text = '汇总统计' THEN
  238. IF sys_option_scid_msttake_mstpay = 1 THEN
  239. dw_1.DataObject = 'dw_rp_cusbalc'
  240. ELSE
  241. dw_1.DataObject = 'dw_rp_cusbalc_not_scid'
  242. END IF
  243. ELSE//按月统计
  244. IF sys_option_scid_msttake_mstpay = 1 THEN
  245. dw_1.DataObject = 'dw_rp_cusbalc_2'
  246. ELSE
  247. dw_1.DataObject = 'dw_rp_cusbalc_2_not_scid'
  248. END IF
  249. END IF
  250. dw_1.SetTransObject (sqlca)
  251. cb_1.TriggerEvent(Clicked!)
  252. end event
  253. type ddlb_money from uo_ddlb_moneyid within w_rp_cusbalc
  254. integer x = 850
  255. integer y = 192
  256. integer taborder = 20
  257. boolean bringtotop = true
  258. end type
  259. event selectionchanged;call super::selectionchanged;ins_moneyid = THIS.uo_moneyid
  260. cb_1.TriggerEvent(Clicked!)
  261. end event
  262. event constructor;call super::constructor;ins_moneyid = THIS.uo_moneyid
  263. end event