w_rp_mstpay_notds.srw 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. $PBExportHeader$w_rp_mstpay_notds.srw
  2. forward
  3. global type w_rp_mstpay_notds from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_scid within w_rp_mstpay_notds
  6. end type
  7. type st_2 from statictext within w_rp_mstpay_notds
  8. end type
  9. type dw_spttype from u_dw_rbtnfilter within w_rp_mstpay_notds
  10. end type
  11. type st_1 from statictext within w_rp_mstpay_notds
  12. end type
  13. type ddlb_money from uo_ddlb_moneyid within w_rp_mstpay_notds
  14. end type
  15. end forward
  16. global type w_rp_mstpay_notds from w_publ_easyq
  17. integer x = 9
  18. integer y = 12
  19. string title = "供应商未对数汇总表"
  20. ddlb_2 ddlb_2
  21. st_2 st_2
  22. dw_spttype dw_spttype
  23. st_1 st_1
  24. ddlb_money ddlb_money
  25. end type
  26. global w_rp_mstpay_notds w_rp_mstpay_notds
  27. type variables
  28. long cur_scid
  29. long cur_scid_arr[]
  30. long ins_spttypeid
  31. long ins_moneyid=0
  32. end variables
  33. on w_rp_mstpay_notds.create
  34. int iCurrent
  35. call super::create
  36. this.ddlb_2=create ddlb_2
  37. this.st_2=create st_2
  38. this.dw_spttype=create dw_spttype
  39. this.st_1=create st_1
  40. this.ddlb_money=create ddlb_money
  41. iCurrent=UpperBound(this.Control)
  42. this.Control[iCurrent+1]=this.ddlb_2
  43. this.Control[iCurrent+2]=this.st_2
  44. this.Control[iCurrent+3]=this.dw_spttype
  45. this.Control[iCurrent+4]=this.st_1
  46. this.Control[iCurrent+5]=this.ddlb_money
  47. end on
  48. on w_rp_mstpay_notds.destroy
  49. call super::destroy
  50. destroy(this.ddlb_2)
  51. destroy(this.st_2)
  52. destroy(this.dw_spttype)
  53. destroy(this.st_1)
  54. destroy(this.ddlb_money)
  55. end on
  56. event open;call super::open;dw_spttype.SetTransObject (sqlca)
  57. dw_spttype.Retrieve()
  58. IF cbx_loginretr.Checked THEN
  59. cb_1.TriggerEvent(Clicked!)
  60. END IF
  61. end event
  62. event ue_before_open;call super::ue_before_open;
  63. if_ue_retr=true
  64. if_ue_filter=true
  65. if_ue_sort=true
  66. if_ue_sentdataout=true
  67. end event
  68. event resize;call super::resize;dw_spttype.height = dw_1.height
  69. end event
  70. type cb_func from w_publ_easyq`cb_func within w_rp_mstpay_notds
  71. end type
  72. type cb_exit from w_publ_easyq`cb_exit within w_rp_mstpay_notds
  73. end type
  74. type cb_2 from w_publ_easyq`cb_2 within w_rp_mstpay_notds
  75. boolean bringtotop = true
  76. end type
  77. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_mstpay_notds
  78. boolean bringtotop = true
  79. end type
  80. type cb_1 from w_publ_easyq`cb_1 within w_rp_mstpay_notds
  81. boolean bringtotop = true
  82. end type
  83. event cb_1::clicked;call super::clicked;dw_1.Retrieve(cur_scid_arr,sys_user_spttype,ins_spttypeid,ins_moneyid)
  84. dw_1.object.t_1.text = '供应商未对数汇总表(' + trim(left(ddlb_money.text,pos(ddlb_money.text,'[') - 1))+')'
  85. end event
  86. type st_3 from w_publ_easyq`st_3 within w_rp_mstpay_notds
  87. boolean visible = false
  88. end type
  89. type st_4 from w_publ_easyq`st_4 within w_rp_mstpay_notds
  90. boolean visible = false
  91. end type
  92. type em_1 from w_publ_easyq`em_1 within w_rp_mstpay_notds
  93. boolean visible = false
  94. end type
  95. type em_2 from w_publ_easyq`em_2 within w_rp_mstpay_notds
  96. boolean visible = false
  97. end type
  98. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_mstpay_notds
  99. end type
  100. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_mstpay_notds
  101. end type
  102. type dw_1 from w_publ_easyq`dw_1 within w_rp_mstpay_notds
  103. integer x = 795
  104. integer y = 292
  105. integer width = 1618
  106. integer height = 1932
  107. string dataobject = "dw_rp_mstpay_notds"
  108. end type
  109. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_mstpay_notds
  110. end type
  111. type sle_cust from w_publ_easyq`sle_cust within w_rp_mstpay_notds
  112. end type
  113. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_mstpay_notds
  114. end type
  115. type st_cust from w_publ_easyq`st_cust within w_rp_mstpay_notds
  116. end type
  117. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_mstpay_notds
  118. boolean visible = true
  119. end type
  120. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_mstpay_notds
  121. boolean visible = false
  122. end type
  123. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_mstpay_notds
  124. boolean visible = false
  125. end type
  126. type pb_2 from w_publ_easyq`pb_2 within w_rp_mstpay_notds
  127. boolean visible = false
  128. end type
  129. type cb_help from w_publ_easyq`cb_help within w_rp_mstpay_notds
  130. end type
  131. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_mstpay_notds
  132. end type
  133. type gb_1 from w_publ_easyq`gb_1 within w_rp_mstpay_notds
  134. end type
  135. type ln_bar from w_publ_easyq`ln_bar within w_rp_mstpay_notds
  136. end type
  137. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_mstpay_notds
  138. end type
  139. type r_bar from w_publ_easyq`r_bar within w_rp_mstpay_notds
  140. end type
  141. type ln_1 from w_publ_easyq`ln_1 within w_rp_mstpay_notds
  142. integer beginy = 280
  143. integer endy = 280
  144. end type
  145. type ln_2 from w_publ_easyq`ln_2 within w_rp_mstpay_notds
  146. integer beginy = 284
  147. integer endy = 284
  148. end type
  149. type ln_3 from w_publ_easyq`ln_3 within w_rp_mstpay_notds
  150. integer beginy = 392
  151. integer endy = 392
  152. end type
  153. type ln_4 from w_publ_easyq`ln_4 within w_rp_mstpay_notds
  154. integer beginy = 396
  155. integer endy = 396
  156. end type
  157. type ddlb_2 from uo_ddlb_scid within w_rp_mstpay_notds
  158. integer x = 155
  159. integer y = 192
  160. integer width = 526
  161. integer height = 768
  162. integer taborder = 60
  163. boolean bringtotop = true
  164. end type
  165. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  166. end event
  167. event selectionchanged;call super::selectionchanged;cur_scid_arr = THIS.uo_scid_arr
  168. cb_1.TriggerEvent(Clicked!)
  169. end event
  170. type st_2 from statictext within w_rp_mstpay_notds
  171. integer x = 18
  172. integer y = 204
  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. boolean focusrectangle = false
  185. end type
  186. type dw_spttype from u_dw_rbtnfilter within w_rp_mstpay_notds
  187. integer y = 292
  188. integer width = 791
  189. integer height = 1656
  190. integer taborder = 20
  191. boolean bringtotop = true
  192. string dataobject = "dw_spttype_index"
  193. end type
  194. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <=0 THEN RETURN
  195. this.selectrow(0,false)
  196. this.selectrow(currentrow,true)
  197. IF dw_spttype.GetRow() <= 0 THEN
  198. ins_spttypeid = 0
  199. ELSE
  200. ins_spttypeid = dw_spttype.Object.spttypeid[dw_spttype.GetRow()]
  201. END IF
  202. cb_1.triggerevent(clicked!)
  203. end event
  204. type st_1 from statictext within w_rp_mstpay_notds
  205. integer x = 741
  206. integer y = 200
  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_money from uo_ddlb_moneyid within w_rp_mstpay_notds
  221. integer x = 873
  222. integer y = 192
  223. integer taborder = 20
  224. boolean bringtotop = true
  225. end type
  226. event selectionchanged;call super::selectionchanged;ins_moneyid = THIS.uo_moneyid
  227. cb_1.TriggerEvent(Clicked!)
  228. end event
  229. event constructor;Long ll_moneyid, ll_moneyid_save, ll_moneyid_get
  230. long cnt
  231. String ls_name, ls_name_get
  232. String ls_space
  233. Int li_spacenum
  234. Boolean lb_getdft = FALSE
  235. ll_moneyid_save = Long(f_ProfileString (sys_empid,String(PARENT.ClassName()), "moneyid",'0'))
  236. //SELECT count(*) INTO :cnt FROM cw_currency ;
  237. //IF cnt > 1 THEN
  238. // THIS.AddItem ('[全部]')
  239. //END IF
  240. DECLARE getmx CURSOR FOR
  241. SELECT moneyid,Name FROM cw_currency Order By moneyid ;
  242. OPEN getmx;
  243. DO WHILE sqlca.SQLCode = 0
  244. FETCH getmx INTO :ll_moneyid,:ls_name ;
  245. IF sqlca.SQLCode <> 0 THEN EXIT
  246. li_spacenum = 50 - Len(Trim(ls_name)) - 2 - Len(String(ll_moneyid))
  247. ls_space = Fill(' ',li_spacenum)
  248. THIS.AddItem (ls_name+ls_space+'['+String(ll_moneyid)+']')
  249. IF NOT lb_getdft THEN
  250. ll_moneyid_get = ll_moneyid
  251. ls_name_get = ls_name
  252. END IF
  253. IF ll_moneyid_save = ll_moneyid THEN
  254. lb_getdft = TRUE
  255. ll_moneyid_get = ll_moneyid
  256. ls_name_get = ls_name
  257. END IF
  258. LOOP
  259. CLOSE getmx;
  260. if ll_moneyid_save = -1 then
  261. THIS.Text = '[全部]'
  262. THIS.uo_moneyid = -1
  263. else
  264. li_spacenum = 50 - Len(Trim(ls_name_get)) - 2 - Len(String(ll_moneyid_get))
  265. ls_space = Fill(' ',li_spacenum)
  266. THIS.Text = ls_name_get+ls_space+'['+String(ll_moneyid_get)+']'
  267. THIS.uo_moneyid = ll_moneyid_get
  268. end if
  269. ins_moneyid = THIS.uo_moneyid
  270. end event