w_rp_mustpaymx.srw 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. $PBExportHeader$w_rp_mustpaymx.srw
  2. forward
  3. global type w_rp_mustpaymx from w_publ_easyq
  4. end type
  5. type ddlb_scid from uo_ddlb_scid within w_rp_mustpaymx
  6. end type
  7. type st_5 from statictext within w_rp_mustpaymx
  8. end type
  9. type st_1 from statictext within w_rp_mustpaymx
  10. end type
  11. type ddlb_1 from dropdownlistbox within w_rp_mustpaymx
  12. end type
  13. end forward
  14. global type w_rp_mustpaymx from w_publ_easyq
  15. integer x = 9
  16. integer y = 12
  17. string title = "应付明细帐"
  18. ddlb_scid ddlb_scid
  19. st_5 st_5
  20. st_1 st_1
  21. ddlb_1 ddlb_1
  22. end type
  23. global w_rp_mustpaymx w_rp_mustpaymx
  24. type variables
  25. long cur_scid = -1
  26. long ins_moneyid
  27. long cur_scid_arr[]
  28. end variables
  29. on w_rp_mustpaymx.create
  30. int iCurrent
  31. call super::create
  32. this.ddlb_scid=create ddlb_scid
  33. this.st_5=create st_5
  34. this.st_1=create st_1
  35. this.ddlb_1=create ddlb_1
  36. iCurrent=UpperBound(this.Control)
  37. this.Control[iCurrent+1]=this.ddlb_scid
  38. this.Control[iCurrent+2]=this.st_5
  39. this.Control[iCurrent+3]=this.st_1
  40. this.Control[iCurrent+4]=this.ddlb_1
  41. end on
  42. on w_rp_mustpaymx.destroy
  43. call super::destroy
  44. destroy(this.ddlb_scid)
  45. destroy(this.st_5)
  46. destroy(this.st_1)
  47. destroy(this.ddlb_1)
  48. end on
  49. type cb_func from w_publ_easyq`cb_func within w_rp_mustpaymx
  50. end type
  51. type cb_exit from w_publ_easyq`cb_exit within w_rp_mustpaymx
  52. end type
  53. type cb_2 from w_publ_easyq`cb_2 within w_rp_mustpaymx
  54. boolean bringtotop = true
  55. end type
  56. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_mustpaymx
  57. boolean bringtotop = true
  58. end type
  59. type cb_1 from w_publ_easyq`cb_1 within w_rp_mustpaymx
  60. boolean bringtotop = true
  61. end type
  62. event cb_1::clicked;call super::clicked;datetime firstdate,enddate
  63. firstdate =datetime(date(em_1.text),time(0))
  64. enddate =DateTime(Date(em_2.Text),Time('23:59:59'))
  65. dw_1.retrieve(firstdate,enddate,sys_user_spttype,cur_scid_arr, ins_moneyid )
  66. end event
  67. type st_3 from w_publ_easyq`st_3 within w_rp_mustpaymx
  68. integer x = 1445
  69. end type
  70. type st_4 from w_publ_easyq`st_4 within w_rp_mustpaymx
  71. integer x = 2162
  72. end type
  73. type em_1 from w_publ_easyq`em_1 within w_rp_mustpaymx
  74. integer x = 1646
  75. end type
  76. type em_2 from w_publ_easyq`em_2 within w_rp_mustpaymx
  77. integer x = 2267
  78. end type
  79. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_mustpaymx
  80. integer x = 1531
  81. integer y = 8
  82. end type
  83. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_mustpaymx
  84. integer x = 1321
  85. integer y = 12
  86. end type
  87. type dw_1 from w_publ_easyq`dw_1 within w_rp_mustpaymx
  88. integer y = 312
  89. integer width = 2789
  90. string dataobject = "dw_rp_mustpaymx"
  91. end type
  92. event dw_1::doubleclicked;call super::doubleclicked;IF dw_1.dataobject = 'dw_rp_mustpaymx' THEN
  93. IF row > 0 THEN
  94. String ls_code
  95. Long ll_scid
  96. ll_scid = This.Object.u_bmstpaymx_scid[row]
  97. ls_code = This.Object.u_bmstpaymx_billcode[row]
  98. f_open_win(ll_scid,ls_code)
  99. END IF
  100. END IF
  101. end event
  102. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_mustpaymx
  103. end type
  104. type sle_cust from w_publ_easyq`sle_cust within w_rp_mustpaymx
  105. end type
  106. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_mustpaymx
  107. end type
  108. type st_cust from w_publ_easyq`st_cust within w_rp_mustpaymx
  109. end type
  110. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_mustpaymx
  111. boolean visible = true
  112. integer x = 1321
  113. end type
  114. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_mustpaymx
  115. integer x = 2062
  116. end type
  117. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_mustpaymx
  118. integer x = 2679
  119. end type
  120. type pb_2 from w_publ_easyq`pb_2 within w_rp_mustpaymx
  121. integer x = 2789
  122. end type
  123. type cb_help from w_publ_easyq`cb_help within w_rp_mustpaymx
  124. end type
  125. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_mustpaymx
  126. end type
  127. type gb_1 from w_publ_easyq`gb_1 within w_rp_mustpaymx
  128. end type
  129. type ln_bar from w_publ_easyq`ln_bar within w_rp_mustpaymx
  130. end type
  131. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_mustpaymx
  132. end type
  133. type r_bar from w_publ_easyq`r_bar within w_rp_mustpaymx
  134. end type
  135. type ln_1 from w_publ_easyq`ln_1 within w_rp_mustpaymx
  136. end type
  137. type ln_2 from w_publ_easyq`ln_2 within w_rp_mustpaymx
  138. end type
  139. type ln_3 from w_publ_easyq`ln_3 within w_rp_mustpaymx
  140. end type
  141. type ln_4 from w_publ_easyq`ln_4 within w_rp_mustpaymx
  142. end type
  143. type ddlb_scid from uo_ddlb_scid within w_rp_mustpaymx
  144. integer x = 137
  145. integer y = 192
  146. integer width = 480
  147. integer height = 620
  148. integer taborder = 70
  149. boolean bringtotop = true
  150. end type
  151. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  152. end event
  153. event selectionchanged;call super::selectionchanged;
  154. cur_scid_arr = THIS.uo_scid_arr
  155. cb_1.triggerevent(clicked!)
  156. end event
  157. type st_5 from statictext within w_rp_mustpaymx
  158. integer y = 208
  159. integer width = 128
  160. integer height = 48
  161. boolean bringtotop = true
  162. integer textsize = -9
  163. integer weight = 400
  164. fontcharset fontcharset = gb2312charset!
  165. fontpitch fontpitch = variable!
  166. string facename = "宋体"
  167. long textcolor = 33554432
  168. long backcolor = 134217739
  169. string text = "分部"
  170. alignment alignment = right!
  171. boolean focusrectangle = false
  172. end type
  173. type st_1 from statictext within w_rp_mustpaymx
  174. integer x = 640
  175. integer y = 208
  176. integer width = 133
  177. integer height = 48
  178. boolean bringtotop = true
  179. integer textsize = -9
  180. integer weight = 400
  181. fontcharset fontcharset = gb2312charset!
  182. fontpitch fontpitch = variable!
  183. string facename = "宋体"
  184. long textcolor = 33554432
  185. long backcolor = 134217739
  186. string text = "币种"
  187. alignment alignment = right!
  188. boolean focusrectangle = false
  189. end type
  190. type ddlb_1 from dropdownlistbox within w_rp_mustpaymx
  191. integer x = 791
  192. integer y = 192
  193. integer width = 622
  194. integer height = 1488
  195. integer taborder = 80
  196. boolean bringtotop = true
  197. integer textsize = -9
  198. integer weight = 400
  199. fontcharset fontcharset = gb2312charset!
  200. fontpitch fontpitch = variable!
  201. string facename = "宋体"
  202. long textcolor = 33554432
  203. boolean sorted = false
  204. boolean vscrollbar = true
  205. borderstyle borderstyle = stylelowered!
  206. end type
  207. event constructor;Long ll_moneyid,i
  208. String ls_name
  209. DECLARE getmx CURSOR FOR
  210. SELECT moneyid,Name FROM cw_currency Order By moneyid ;
  211. OPEN getmx;
  212. DO WHILE sqlca.SQLCode = 0
  213. FETCH getmx INTO :ll_moneyid,:ls_name ;
  214. IF sqlca.SQLCode <> 0 THEN EXIT
  215. THIS.AddItem(ls_name+Fill(' ',50)+'['+String(ll_moneyid)+']')
  216. i++
  217. if i=1 then
  218. this.text=ls_name+Fill(' ',50)+'['+String(ll_moneyid)+']'
  219. ins_moneyid=ll_moneyid
  220. end if
  221. LOOP
  222. CLOSE getmx;
  223. //THIS.AddItem('全部'+Fill('',50)+'['+String(-1)+']')
  224. end event
  225. event selectionchanged; ins_moneyid=Long(Mid ( THIS.Text,Pos(THIS.Text,'[') + 1,Len(THIS.Text) - Pos(THIS.Text,'[') - 1 ))
  226. cb_1.triggerevent(clicked!)
  227. end event