w_rp_musttakemx.srw 6.3 KB

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