w_rp_reissue_cust.srw 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. $PBExportHeader$w_rp_reissue_cust.srw
  2. forward
  3. global type w_rp_reissue_cust from w_publ_easyq
  4. end type
  5. type st_2 from statictext within w_rp_reissue_cust
  6. end type
  7. type ddlb_scid from uo_ddlb_scid within w_rp_reissue_cust
  8. end type
  9. type st_5 from statictext within w_rp_reissue_cust
  10. end type
  11. type ddlb_status from dropdownlistbox within w_rp_reissue_cust
  12. end type
  13. end forward
  14. global type w_rp_reissue_cust from w_publ_easyq
  15. integer x = 9
  16. integer y = 12
  17. string title = "客户费用单统计表"
  18. st_2 st_2
  19. ddlb_scid ddlb_scid
  20. st_5 st_5
  21. ddlb_status ddlb_status
  22. end type
  23. global w_rp_reissue_cust w_rp_reissue_cust
  24. type variables
  25. Int cur_flag = -1
  26. Long cur_scid_arr[]
  27. long il_moneyid_native
  28. end variables
  29. forward prototypes
  30. public subroutine wf_retr_billdscrp ()
  31. end prototypes
  32. public subroutine wf_retr_billdscrp ();Long ll_i,ll_refrapid
  33. String ls_billdscrp,ls_billcode,ls_cusmoncode
  34. decimal ld_takeamt
  35. dw_1.AcceptText()
  36. Open(w_sys_wait_jdt) //初始化进度条
  37. w_sys_wait_jdt.Show()
  38. w_sys_wait_jdt.wf_accepttol(dw_1.RowCount())
  39. FOR ll_i = 1 TO dw_1.RowCount()
  40. ll_refrapid = dw_1.Object.u_cusamt_refrapid[ll_i]
  41. ls_cusmoncode = dw_1.Object.u_cusamt_cusmoncode[ll_i]
  42. w_sys_wait_jdt.wf_inc(ll_i)
  43. w_sys_wait_jdt.st_msg.Text = "正在统计:"+ls_cusmoncode+'...'
  44. DECLARE cur_billcode CURSOR FOR
  45. SELECT u_Bmsttakemx.Billcode,u_Bmsttakemx.takeamt
  46. FROM u_Bmsttakemx
  47. WHERE u_Bmsttakemx.takeid = :ll_refrapid
  48. AND u_Bmsttakemx.buildtype = 2;
  49. OPEN cur_billcode;
  50. FETCH cur_billcode INTO :ls_billcode,:ld_takeamt;
  51. DO WHILE sqlca.SQLCode = 0
  52. ls_billdscrp = ls_billdscrp + '单(' + ls_billcode + ','+string(0 - ld_takeamt,'#,#0.00')+'), '
  53. FETCH cur_billcode INTO :ls_billcode,:ld_takeamt;
  54. LOOP
  55. CLOSE cur_billcode;
  56. ls_billdscrp = Left(ls_billdscrp,Len(ls_billdscrp) - 1)
  57. dw_1.Object.billdscrp[ll_i] = ls_billdscrp
  58. ls_billdscrp = ''
  59. NEXT
  60. Close(w_sys_wait_jdt)
  61. end subroutine
  62. on w_rp_reissue_cust.create
  63. int iCurrent
  64. call super::create
  65. this.st_2=create st_2
  66. this.ddlb_scid=create ddlb_scid
  67. this.st_5=create st_5
  68. this.ddlb_status=create ddlb_status
  69. iCurrent=UpperBound(this.Control)
  70. this.Control[iCurrent+1]=this.st_2
  71. this.Control[iCurrent+2]=this.ddlb_scid
  72. this.Control[iCurrent+3]=this.st_5
  73. this.Control[iCurrent+4]=this.ddlb_status
  74. end on
  75. on w_rp_reissue_cust.destroy
  76. call super::destroy
  77. destroy(this.st_2)
  78. destroy(this.ddlb_scid)
  79. destroy(this.st_5)
  80. destroy(this.ddlb_status)
  81. end on
  82. event open;call super::open;//EM_1.Text = String(Today(),'yyyy-mm')+'-01'
  83. //EM_2.Text = String(Today(),'YYYY-MM-DD')
  84. //
  85. ////SELECT moneyid INTO :il_moneyid_native
  86. //// FROM cw_currency
  87. //// Where native = 1;
  88. ////IF sqlca.SQLCode <> 0 THEN
  89. //// il_moneyid_native = 0
  90. //// MessageBox('提示','查询本位币资料失败,请检查币种资料')
  91. ////END IF
  92. //
  93. //IF cbx_loginretr.Checked THEN
  94. // cb_1.TriggerEvent(Clicked!)
  95. //END IF
  96. end event
  97. type cb_func from w_publ_easyq`cb_func within w_rp_reissue_cust
  98. end type
  99. type cb_exit from w_publ_easyq`cb_exit within w_rp_reissue_cust
  100. end type
  101. type cb_2 from w_publ_easyq`cb_2 within w_rp_reissue_cust
  102. boolean bringtotop = true
  103. end type
  104. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_reissue_cust
  105. boolean bringtotop = true
  106. end type
  107. type cb_1 from w_publ_easyq`cb_1 within w_rp_reissue_cust
  108. boolean bringtotop = true
  109. end type
  110. event cb_1::clicked;call super::clicked;DateTime firstdate,enddate
  111. firstdate = DateTime(Date(em_1.Text),Time(0))
  112. enddate = DateTime(Date(em_2.Text),Time('23:59:59'))
  113. dw_1.Retrieve(cur_scid_arr,cur_flag,firstdate,enddate)
  114. end event
  115. type st_3 from w_publ_easyq`st_3 within w_rp_reissue_cust
  116. integer x = 1307
  117. integer y = 204
  118. end type
  119. type st_4 from w_publ_easyq`st_4 within w_rp_reissue_cust
  120. integer x = 2034
  121. integer y = 204
  122. end type
  123. type em_1 from w_publ_easyq`em_1 within w_rp_reissue_cust
  124. integer x = 1509
  125. integer y = 188
  126. end type
  127. type em_2 from w_publ_easyq`em_2 within w_rp_reissue_cust
  128. integer x = 2139
  129. integer y = 188
  130. end type
  131. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_reissue_cust
  132. end type
  133. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_reissue_cust
  134. end type
  135. event cbx_yl::clicked;call super::clicked;IF THIS.Checked THEN
  136. dw_1.SelectRow(0,FALSE)
  137. END IF
  138. end event
  139. type dw_1 from w_publ_easyq`dw_1 within w_rp_reissue_cust
  140. integer y = 300
  141. integer width = 2208
  142. string dataobject = "dw_rp_reissue_cust"
  143. end type
  144. event dw_1::doubleclicked;call super::doubleclicked;
  145. IF row > 0 THEN
  146. String ls_code
  147. Long ll_scid
  148. ll_scid = This.Object.scid[row]
  149. ls_code = This.Object.reissuecode[row]
  150. f_open_win(ll_scid,ls_code)
  151. END IF
  152. end event
  153. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_reissue_cust
  154. integer y = 492
  155. end type
  156. type sle_cust from w_publ_easyq`sle_cust within w_rp_reissue_cust
  157. integer y = 492
  158. end type
  159. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_reissue_cust
  160. integer y = 508
  161. end type
  162. type st_cust from w_publ_easyq`st_cust within w_rp_reissue_cust
  163. integer y = 508
  164. end type
  165. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_reissue_cust
  166. boolean visible = true
  167. end type
  168. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_reissue_cust
  169. integer x = 1915
  170. integer y = 188
  171. end type
  172. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_reissue_cust
  173. integer x = 2555
  174. integer y = 188
  175. end type
  176. type pb_2 from w_publ_easyq`pb_2 within w_rp_reissue_cust
  177. integer x = 2665
  178. integer y = 188
  179. end type
  180. type cb_help from w_publ_easyq`cb_help within w_rp_reissue_cust
  181. end type
  182. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_reissue_cust
  183. end type
  184. type gb_1 from w_publ_easyq`gb_1 within w_rp_reissue_cust
  185. integer x = 2418
  186. integer y = 560
  187. integer width = 87
  188. integer height = 172
  189. end type
  190. type ln_bar from w_publ_easyq`ln_bar within w_rp_reissue_cust
  191. end type
  192. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_reissue_cust
  193. end type
  194. type r_bar from w_publ_easyq`r_bar within w_rp_reissue_cust
  195. end type
  196. type ln_1 from w_publ_easyq`ln_1 within w_rp_reissue_cust
  197. end type
  198. type ln_2 from w_publ_easyq`ln_2 within w_rp_reissue_cust
  199. end type
  200. type ln_3 from w_publ_easyq`ln_3 within w_rp_reissue_cust
  201. boolean visible = false
  202. end type
  203. type ln_4 from w_publ_easyq`ln_4 within w_rp_reissue_cust
  204. boolean visible = false
  205. end type
  206. type st_2 from statictext within w_rp_reissue_cust
  207. integer x = 27
  208. integer y = 208
  209. integer width = 137
  210. integer height = 48
  211. boolean bringtotop = true
  212. integer textsize = -9
  213. integer weight = 400
  214. fontcharset fontcharset = gb2312charset!
  215. fontpitch fontpitch = variable!
  216. string facename = "宋体"
  217. long textcolor = 33554432
  218. long backcolor = 134217739
  219. string text = "分部"
  220. boolean focusrectangle = false
  221. end type
  222. type ddlb_scid from uo_ddlb_scid within w_rp_reissue_cust
  223. integer x = 160
  224. integer y = 192
  225. integer width = 549
  226. integer height = 1120
  227. integer taborder = 20
  228. boolean bringtotop = true
  229. end type
  230. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  231. end event
  232. event selectionchanged;call super::selectionchanged;cur_scid_arr = THIS.uo_scid_arr
  233. cb_1.TriggerEvent(Clicked!)
  234. end event
  235. type st_5 from statictext within w_rp_reissue_cust
  236. integer x = 745
  237. integer y = 208
  238. integer width = 146
  239. integer height = 52
  240. boolean bringtotop = true
  241. integer textsize = -9
  242. integer weight = 400
  243. fontcharset fontcharset = gb2312charset!
  244. fontpitch fontpitch = variable!
  245. string facename = "宋体"
  246. long textcolor = 33554432
  247. long backcolor = 134217739
  248. string text = "状态"
  249. alignment alignment = center!
  250. boolean focusrectangle = false
  251. end type
  252. type ddlb_status from dropdownlistbox within w_rp_reissue_cust
  253. integer x = 887
  254. integer y = 192
  255. integer width = 393
  256. integer height = 692
  257. integer taborder = 20
  258. boolean bringtotop = true
  259. integer textsize = -9
  260. integer weight = 400
  261. fontcharset fontcharset = gb2312charset!
  262. fontpitch fontpitch = variable!
  263. string facename = "宋体"
  264. long textcolor = 33554432
  265. string text = "[全部]"
  266. boolean sorted = false
  267. string item[] = {"[全部]","待审核","已审核"}
  268. borderstyle borderstyle = stylelowered!
  269. end type
  270. event selectionchanged;if index=1 then
  271. cur_flag=-1
  272. elseif index=2 then
  273. cur_flag= 0
  274. elseif index=3 then
  275. cur_flag= 1
  276. end if
  277. cb_1.TriggerEvent(Clicked!)
  278. end event