w_rp_sptbalc.srw 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. $PBExportHeader$w_rp_sptbalc.srw
  2. forward
  3. global type w_rp_sptbalc from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_scid within w_rp_sptbalc
  6. end type
  7. type st_2 from statictext within w_rp_sptbalc
  8. end type
  9. type dw_spttype from u_dw_rbtnfilter within w_rp_sptbalc
  10. end type
  11. type st_1 from statictext within w_rp_sptbalc
  12. end type
  13. type ddlb_3 from dropdownlistbox within w_rp_sptbalc
  14. end type
  15. type ddlb_money from uo_ddlb_moneyid within w_rp_sptbalc
  16. end type
  17. end forward
  18. global type w_rp_sptbalc from w_publ_easyq
  19. integer x = 9
  20. integer y = 12
  21. string title = "供应商应付结余表"
  22. ddlb_2 ddlb_2
  23. st_2 st_2
  24. dw_spttype dw_spttype
  25. st_1 st_1
  26. ddlb_3 ddlb_3
  27. ddlb_money ddlb_money
  28. end type
  29. global w_rp_sptbalc w_rp_sptbalc
  30. type variables
  31. long cur_scid
  32. long cur_scid_arr[]
  33. long ins_spttypeid
  34. long ins_moneyid=0
  35. end variables
  36. forward prototypes
  37. public subroutine wf_dw ()
  38. end prototypes
  39. public subroutine wf_dw ();IF ddlb_3.Text = '按月统计' THEN
  40. dw_1.uf_save_profile_layout()
  41. END IF
  42. IF sys_option_scid_msttake_mstpay = 1 THEN
  43. IF ddlb_3.Text = '汇总统计' THEN
  44. dw_1.DataObject = 'dw_rp_sptbalc'
  45. ELSEIF ddlb_3.Text = '按月统计' THEN
  46. dw_1.DataObject = 'dw_rp_sptbalc_2'
  47. ELSEIF ddlb_3.Text = '汇总统计(分类小计)' THEN
  48. dw_1.DataObject = 'dw_rp_sptbalc_sm'
  49. ELSEIF ddlb_3.Text = '按月统计(分类小计)' THEN
  50. dw_1.DataObject = 'dw_rp_sptbalc_2_sm'
  51. END IF
  52. ELSE
  53. IF ddlb_3.Text = '汇总统计' THEN
  54. dw_1.DataObject = 'dw_rp_sptbalc_not_scid'
  55. ELSEIF ddlb_3.Text = '按月统计' THEN
  56. dw_1.DataObject = 'dw_rp_sptbalc_2_not_scid'
  57. ELSEIF ddlb_3.Text = '汇总统计(分类小计)' THEN
  58. dw_1.DataObject = 'dw_rp_sptbalc_not_scid_sm'
  59. ELSEIF ddlb_3.Text = '按月统计(分类小计)' THEN
  60. dw_1.DataObject = 'dw_rp_sptbalc_2_not_scid_sm'
  61. END IF
  62. END IF
  63. dw_1.SetTransObject (sqlca)
  64. IF ddlb_3.Text <> '按月统计' THEN
  65. dw_1.ins_INIfile_name = sys_inifilename
  66. dw_1.ins_opemp = publ_operator
  67. dw_1.cardw_empid = sys_empid
  68. dw_1.cur_DataObject = dw_1.DataObject
  69. dw_1.uf_read_profile_layout()
  70. END IF
  71. end subroutine
  72. on w_rp_sptbalc.create
  73. int iCurrent
  74. call super::create
  75. this.ddlb_2=create ddlb_2
  76. this.st_2=create st_2
  77. this.dw_spttype=create dw_spttype
  78. this.st_1=create st_1
  79. this.ddlb_3=create ddlb_3
  80. this.ddlb_money=create ddlb_money
  81. iCurrent=UpperBound(this.Control)
  82. this.Control[iCurrent+1]=this.ddlb_2
  83. this.Control[iCurrent+2]=this.st_2
  84. this.Control[iCurrent+3]=this.dw_spttype
  85. this.Control[iCurrent+4]=this.st_1
  86. this.Control[iCurrent+5]=this.ddlb_3
  87. this.Control[iCurrent+6]=this.ddlb_money
  88. end on
  89. on w_rp_sptbalc.destroy
  90. call super::destroy
  91. destroy(this.ddlb_2)
  92. destroy(this.st_2)
  93. destroy(this.dw_spttype)
  94. destroy(this.st_1)
  95. destroy(this.ddlb_3)
  96. destroy(this.ddlb_money)
  97. end on
  98. event open;call super::open;dw_spttype.SetTransObject (sqlca)
  99. dw_spttype.Retrieve()
  100. IF cbx_loginretr.Checked THEN
  101. cb_1.TriggerEvent(Clicked!)
  102. END IF
  103. end event
  104. event ue_before_open;call super::ue_before_open;IF sys_option_scid_msttake_mstpay = 1 THEN
  105. dw_1.DataObject = 'dw_rp_sptbalc'
  106. ELSE
  107. dw_1.DataObject = 'dw_rp_sptbalc_not_scid'
  108. END IF
  109. dw_1.SetTransObject (sqlca)
  110. if_ue_retr=true
  111. if_ue_filter=true
  112. if_ue_sort=true
  113. if_ue_sentdataout=true
  114. end event
  115. event resize;call super::resize;dw_spttype.height = dw_1.height
  116. end event
  117. type cb_func from w_publ_easyq`cb_func within w_rp_sptbalc
  118. end type
  119. type cb_exit from w_publ_easyq`cb_exit within w_rp_sptbalc
  120. end type
  121. type cb_2 from w_publ_easyq`cb_2 within w_rp_sptbalc
  122. boolean bringtotop = true
  123. end type
  124. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_sptbalc
  125. boolean bringtotop = true
  126. end type
  127. type cb_1 from w_publ_easyq`cb_1 within w_rp_sptbalc
  128. boolean bringtotop = true
  129. end type
  130. event cb_1::clicked;call super::clicked;IF sys_option_scid_msttake_mstpay = 1 THEN
  131. dw_1.retrieve(cur_scid_arr,sys_user_spttype,ins_spttypeid,ins_moneyid)
  132. else
  133. dw_1.retrieve(sys_user_spttype,ins_spttypeid,ins_moneyid)
  134. end if
  135. end event
  136. type st_3 from w_publ_easyq`st_3 within w_rp_sptbalc
  137. boolean visible = false
  138. end type
  139. type st_4 from w_publ_easyq`st_4 within w_rp_sptbalc
  140. boolean visible = false
  141. end type
  142. type em_1 from w_publ_easyq`em_1 within w_rp_sptbalc
  143. boolean visible = false
  144. end type
  145. type em_2 from w_publ_easyq`em_2 within w_rp_sptbalc
  146. boolean visible = false
  147. end type
  148. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_sptbalc
  149. end type
  150. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_sptbalc
  151. end type
  152. type dw_1 from w_publ_easyq`dw_1 within w_rp_sptbalc
  153. integer x = 800
  154. integer y = 292
  155. integer width = 1618
  156. integer height = 1932
  157. string dataobject = "dw_rp_sptbalc"
  158. end type
  159. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_sptbalc
  160. end type
  161. type sle_cust from w_publ_easyq`sle_cust within w_rp_sptbalc
  162. end type
  163. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_sptbalc
  164. end type
  165. type st_cust from w_publ_easyq`st_cust within w_rp_sptbalc
  166. end type
  167. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_sptbalc
  168. boolean visible = true
  169. end type
  170. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_sptbalc
  171. boolean visible = false
  172. end type
  173. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_sptbalc
  174. boolean visible = false
  175. end type
  176. type pb_2 from w_publ_easyq`pb_2 within w_rp_sptbalc
  177. boolean visible = false
  178. end type
  179. type cb_help from w_publ_easyq`cb_help within w_rp_sptbalc
  180. end type
  181. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_sptbalc
  182. end type
  183. type gb_1 from w_publ_easyq`gb_1 within w_rp_sptbalc
  184. end type
  185. type ln_bar from w_publ_easyq`ln_bar within w_rp_sptbalc
  186. end type
  187. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_sptbalc
  188. end type
  189. type r_bar from w_publ_easyq`r_bar within w_rp_sptbalc
  190. end type
  191. type ln_1 from w_publ_easyq`ln_1 within w_rp_sptbalc
  192. integer beginy = 280
  193. integer endy = 280
  194. end type
  195. type ln_2 from w_publ_easyq`ln_2 within w_rp_sptbalc
  196. integer beginy = 284
  197. integer endy = 284
  198. end type
  199. type ln_3 from w_publ_easyq`ln_3 within w_rp_sptbalc
  200. integer beginy = 392
  201. integer endy = 392
  202. end type
  203. type ln_4 from w_publ_easyq`ln_4 within w_rp_sptbalc
  204. integer beginy = 396
  205. integer endy = 396
  206. end type
  207. type ddlb_2 from uo_ddlb_scid within w_rp_sptbalc
  208. integer x = 155
  209. integer y = 192
  210. integer width = 526
  211. integer height = 768
  212. integer taborder = 60
  213. boolean bringtotop = true
  214. end type
  215. event constructor;call super::constructor;THIS.Enabled = (sys_option_scid_msttake_mstpay = 1)
  216. cur_scid_arr = THIS.uo_scid_arr
  217. end event
  218. event selectionchanged;call super::selectionchanged;cur_scid_arr = THIS.uo_scid_arr
  219. cb_1.TriggerEvent(Clicked!)
  220. end event
  221. type st_2 from statictext within w_rp_sptbalc
  222. integer x = 18
  223. integer y = 204
  224. integer width = 133
  225. integer height = 48
  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. long backcolor = 134217739
  234. string text = "分部"
  235. boolean focusrectangle = false
  236. end type
  237. type dw_spttype from u_dw_rbtnfilter within w_rp_sptbalc
  238. integer y = 292
  239. integer width = 791
  240. integer height = 1656
  241. integer taborder = 20
  242. boolean bringtotop = true
  243. string dataobject = "dw_spttype_index"
  244. end type
  245. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <=0 THEN RETURN
  246. this.selectrow(0,false)
  247. this.selectrow(currentrow,true)
  248. IF dw_spttype.GetRow() <= 0 THEN
  249. ins_spttypeid = 0
  250. ELSE
  251. ins_spttypeid = dw_spttype.Object.spttypeid[dw_spttype.GetRow()]
  252. END IF
  253. cb_1.triggerevent(clicked!)
  254. end event
  255. type st_1 from statictext within w_rp_sptbalc
  256. integer x = 741
  257. integer y = 200
  258. integer width = 133
  259. integer height = 48
  260. boolean bringtotop = true
  261. integer textsize = -9
  262. integer weight = 400
  263. fontcharset fontcharset = gb2312charset!
  264. fontpitch fontpitch = variable!
  265. string facename = "宋体"
  266. long textcolor = 33554432
  267. long backcolor = 134217739
  268. string text = "币种"
  269. boolean focusrectangle = false
  270. end type
  271. type ddlb_3 from dropdownlistbox within w_rp_sptbalc
  272. integer x = 1883
  273. integer y = 52
  274. integer width = 663
  275. integer height = 452
  276. integer taborder = 130
  277. boolean bringtotop = true
  278. integer textsize = -9
  279. integer weight = 400
  280. fontcharset fontcharset = gb2312charset!
  281. fontpitch fontpitch = variable!
  282. string facename = "宋体"
  283. long textcolor = 33554432
  284. string text = "汇总统计"
  285. boolean sorted = false
  286. string item[] = {"汇总统计","按月统计","汇总统计(分类小计)","按月统计(分类小计)"}
  287. borderstyle borderstyle = stylelowered!
  288. end type
  289. event selectionchanged;wf_dw()
  290. cb_1.TriggerEvent(Clicked!)
  291. end event
  292. type ddlb_money from uo_ddlb_moneyid within w_rp_sptbalc
  293. integer x = 873
  294. integer y = 192
  295. integer taborder = 20
  296. boolean bringtotop = true
  297. end type
  298. event selectionchanged;call super::selectionchanged;ins_moneyid = THIS.uo_moneyid
  299. cb_1.TriggerEvent(Clicked!)
  300. end event
  301. event constructor;call super::constructor;ins_moneyid = THIS.uo_moneyid
  302. end event