w_rp_musttake_balc.srw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. $PBExportHeader$w_rp_musttake_balc.srw
  2. forward
  3. global type w_rp_musttake_balc from w_publ_easyq
  4. end type
  5. type cbx_1 from checkbox within w_rp_musttake_balc
  6. end type
  7. type ddlb_1 from dropdownlistbox within w_rp_musttake_balc
  8. end type
  9. type tv_1 from uo_tv_cusarea within w_rp_musttake_balc
  10. end type
  11. type st_1 from statictext within w_rp_musttake_balc
  12. end type
  13. type ddlb_3 from uo_ddlb_scid within w_rp_musttake_balc
  14. end type
  15. type st_2 from statictext within w_rp_musttake_balc
  16. end type
  17. type ddlb_4 from dropdownlistbox within w_rp_musttake_balc
  18. end type
  19. type ddlb_money from uo_ddlb_moneyid within w_rp_musttake_balc
  20. end type
  21. end forward
  22. global type w_rp_musttake_balc from w_publ_easyq
  23. integer x = 9
  24. integer y = 12
  25. string title = "应收汇总表"
  26. cbx_1 cbx_1
  27. ddlb_1 ddlb_1
  28. tv_1 tv_1
  29. st_1 st_1
  30. ddlb_3 ddlb_3
  31. st_2 st_2
  32. ddlb_4 ddlb_4
  33. ddlb_money ddlb_money
  34. end type
  35. global w_rp_musttake_balc w_rp_musttake_balc
  36. type variables
  37. long ins_moneyid=0
  38. String ls_areaname = ''
  39. long cur_scid
  40. long cur_scid_arr[]
  41. end variables
  42. on w_rp_musttake_balc.create
  43. int iCurrent
  44. call super::create
  45. this.cbx_1=create cbx_1
  46. this.ddlb_1=create ddlb_1
  47. this.tv_1=create tv_1
  48. this.st_1=create st_1
  49. this.ddlb_3=create ddlb_3
  50. this.st_2=create st_2
  51. this.ddlb_4=create ddlb_4
  52. this.ddlb_money=create ddlb_money
  53. iCurrent=UpperBound(this.Control)
  54. this.Control[iCurrent+1]=this.cbx_1
  55. this.Control[iCurrent+2]=this.ddlb_1
  56. this.Control[iCurrent+3]=this.tv_1
  57. this.Control[iCurrent+4]=this.st_1
  58. this.Control[iCurrent+5]=this.ddlb_3
  59. this.Control[iCurrent+6]=this.st_2
  60. this.Control[iCurrent+7]=this.ddlb_4
  61. this.Control[iCurrent+8]=this.ddlb_money
  62. end on
  63. on w_rp_musttake_balc.destroy
  64. call super::destroy
  65. destroy(this.cbx_1)
  66. destroy(this.ddlb_1)
  67. destroy(this.tv_1)
  68. destroy(this.st_1)
  69. destroy(this.ddlb_3)
  70. destroy(this.st_2)
  71. destroy(this.ddlb_4)
  72. destroy(this.ddlb_money)
  73. end on
  74. event ue_before_open;IF sys_option_scid_msttake_mstpay = 1 THEN
  75. dw_1.DataObject = 'dw_rp_musttake_balc'
  76. ELSE
  77. dw_1.DataObject = 'dw_rp_musttake_balc_not_scid'
  78. END IF
  79. CALL Super :: ue_before_open ;
  80. end event
  81. event resize;call super::resize;tv_1.height=this.height - dw_1.y - 115
  82. end event
  83. type cb_func from w_publ_easyq`cb_func within w_rp_musttake_balc
  84. end type
  85. type cb_exit from w_publ_easyq`cb_exit within w_rp_musttake_balc
  86. end type
  87. type cb_2 from w_publ_easyq`cb_2 within w_rp_musttake_balc
  88. boolean bringtotop = true
  89. end type
  90. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_musttake_balc
  91. boolean bringtotop = true
  92. end type
  93. type cb_1 from w_publ_easyq`cb_1 within w_rp_musttake_balc
  94. boolean bringtotop = true
  95. end type
  96. event cb_1::clicked;call super::clicked;DateTime firstdate,enddate
  97. firstdate = DateTime(Date(em_1.Text),Time(0))
  98. enddate = DateTime(Date(em_2.Text),Time('23:59:59'))
  99. DELETE From u_parm_pay Where id = 2 ;
  100. IF sqlca.SQLCode <> 0 THEN
  101. MessageBox('错误','数据库操作失败!'+sqlca.SQLErrText,stopsign!,ok!)
  102. ROLLBACK;
  103. RETURN
  104. END IF
  105. INSERT INTO u_parm_pay (firstdate,enddate,id)
  106. Values (:firstdate,:enddate,2);
  107. IF sqlca.SQLCode <> 0 THEN
  108. MessageBox('错误','数据库操作失败!'+sqlca.SQLErrText,stopsign!,ok!)
  109. ROLLBACK;
  110. RETURN
  111. END IF
  112. COMMIT;
  113. Int arg_flag
  114. IF cbx_1.Checked THEN
  115. arg_flag = 0
  116. ELSE
  117. arg_flag = 1
  118. END IF
  119. IF sys_option_scid_msttake_mstpay = 1 THEN
  120. dw_1.Retrieve(ls_areaname,arg_flag,ins_moneyid,cur_scid_arr)
  121. ELSE
  122. dw_1.Retrieve(ls_areaname,arg_flag,ins_moneyid)
  123. END IF
  124. dw_1.Object.dt_ar.Text = "日期范围: "+String(Date(firstdate))+" 到 "+em_2.Text
  125. end event
  126. type st_3 from w_publ_easyq`st_3 within w_rp_musttake_balc
  127. integer x = 9
  128. integer y = 324
  129. integer width = 315
  130. integer height = 64
  131. string text = "发生日期从:"
  132. alignment alignment = left!
  133. end type
  134. type st_4 from w_publ_easyq`st_4 within w_rp_musttake_balc
  135. integer x = 873
  136. integer y = 328
  137. end type
  138. type em_1 from w_publ_easyq`em_1 within w_rp_musttake_balc
  139. integer x = 315
  140. integer y = 304
  141. integer width = 453
  142. integer textsize = -10
  143. end type
  144. type em_2 from w_publ_easyq`em_2 within w_rp_musttake_balc
  145. integer x = 974
  146. integer y = 304
  147. integer width = 453
  148. integer textsize = -10
  149. end type
  150. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_musttake_balc
  151. integer x = 1559
  152. integer y = 0
  153. integer height = 668
  154. end type
  155. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_musttake_balc
  156. integer x = 1339
  157. integer y = 8
  158. end type
  159. type dw_1 from w_publ_easyq`dw_1 within w_rp_musttake_balc
  160. integer x = 850
  161. integer y = 416
  162. integer width = 2546
  163. integer height = 1520
  164. string dataobject = "dw_rp_musttake_balc"
  165. end type
  166. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_musttake_balc
  167. end type
  168. type sle_cust from w_publ_easyq`sle_cust within w_rp_musttake_balc
  169. end type
  170. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_musttake_balc
  171. end type
  172. type st_cust from w_publ_easyq`st_cust within w_rp_musttake_balc
  173. end type
  174. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_musttake_balc
  175. boolean visible = true
  176. integer x = 1339
  177. end type
  178. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_musttake_balc
  179. integer x = 768
  180. integer y = 300
  181. end type
  182. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_musttake_balc
  183. integer x = 1431
  184. integer y = 304
  185. end type
  186. type pb_2 from w_publ_easyq`pb_2 within w_rp_musttake_balc
  187. integer x = 1531
  188. integer y = 304
  189. end type
  190. type cb_help from w_publ_easyq`cb_help within w_rp_musttake_balc
  191. end type
  192. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_musttake_balc
  193. end type
  194. type gb_1 from w_publ_easyq`gb_1 within w_rp_musttake_balc
  195. end type
  196. type ln_bar from w_publ_easyq`ln_bar within w_rp_musttake_balc
  197. end type
  198. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_musttake_balc
  199. end type
  200. type r_bar from w_publ_easyq`r_bar within w_rp_musttake_balc
  201. end type
  202. type ln_1 from w_publ_easyq`ln_1 within w_rp_musttake_balc
  203. integer beginx = -46
  204. integer endx = 1970
  205. end type
  206. type ln_2 from w_publ_easyq`ln_2 within w_rp_musttake_balc
  207. integer beginx = -46
  208. integer endx = 2002
  209. end type
  210. type ln_3 from w_publ_easyq`ln_3 within w_rp_musttake_balc
  211. end type
  212. type ln_4 from w_publ_easyq`ln_4 within w_rp_musttake_balc
  213. end type
  214. type cbx_1 from checkbox within w_rp_musttake_balc
  215. integer x = 1339
  216. integer y = 200
  217. integer width = 585
  218. integer height = 76
  219. boolean bringtotop = true
  220. integer textsize = -9
  221. integer weight = 400
  222. fontcharset fontcharset = gb2312charset!
  223. fontpitch fontpitch = variable!
  224. string facename = "宋体"
  225. long textcolor = 16711680
  226. long backcolor = 134217739
  227. string text = "不显示无交易的客户"
  228. boolean checked = true
  229. end type
  230. type ddlb_1 from dropdownlistbox within w_rp_musttake_balc
  231. boolean visible = false
  232. integer x = 2834
  233. integer y = 204
  234. integer width = 494
  235. integer height = 564
  236. integer taborder = 20
  237. boolean bringtotop = true
  238. integer textsize = -9
  239. integer weight = 400
  240. fontcharset fontcharset = gb2312charset!
  241. fontpitch fontpitch = variable!
  242. string facename = "宋体"
  243. long textcolor = 33554432
  244. boolean enabled = false
  245. string text = "格式一"
  246. boolean sorted = false
  247. string item[] = {"格式一","格式二"}
  248. borderstyle borderstyle = stylelowered!
  249. end type
  250. event selectionchanged;IF THIS.Text = '格式二' THEN
  251. dw_1.uf_save_profile_layout()
  252. END IF
  253. IF THIS.Text = '格式一' THEN
  254. dw_1.DataObject = 'dw_rp_musttake_balc'
  255. ELSE
  256. dw_1.DataObject = 'dw_rp_musttake_balc_2'
  257. END IF
  258. dw_1.SetTransObject(sqlca)
  259. IF THIS.Text = '格式一' THEN
  260. dw_1.ins_INIfile_name = sys_inifilename
  261. dw_1.ins_opemp = publ_operator
  262. dw_1.cardw_empid = sys_empid
  263. dw_1.cur_DataObject = dw_1.DataObject
  264. dw_1.uf_read_profile_layout()
  265. END IF
  266. end event
  267. type tv_1 from uo_tv_cusarea within w_rp_musttake_balc
  268. integer y = 416
  269. integer width = 850
  270. integer height = 1520
  271. integer taborder = 60
  272. boolean bringtotop = true
  273. integer textsize = -9
  274. fontcharset fontcharset = gb2312charset!
  275. fontfamily fontfamily = anyfont!
  276. string facename = "宋体"
  277. end type
  278. event selectionchanged;call super::selectionchanged;ls_areaname = THIS.uo_cur_info.areaname
  279. ls_areaname = ls_areaname + '%'
  280. cb_1.TriggerEvent(Clicked!)
  281. end event
  282. type st_1 from statictext within w_rp_musttake_balc
  283. integer x = 695
  284. integer y = 216
  285. integer width = 128
  286. integer height = 48
  287. boolean bringtotop = true
  288. integer textsize = -9
  289. integer weight = 400
  290. fontcharset fontcharset = gb2312charset!
  291. fontpitch fontpitch = variable!
  292. string facename = "宋体"
  293. long textcolor = 33554432
  294. long backcolor = 134217739
  295. string text = "币种"
  296. boolean focusrectangle = false
  297. end type
  298. type ddlb_3 from uo_ddlb_scid within w_rp_musttake_balc
  299. integer x = 155
  300. integer y = 204
  301. integer width = 526
  302. integer height = 768
  303. integer taborder = 30
  304. boolean bringtotop = true
  305. end type
  306. event constructor;call super::constructor;THIS.Enabled = (sys_option_scid_msttake_mstpay = 1)
  307. cur_scid_arr = THIS.uo_scid_arr
  308. end event
  309. event selectionchanged;call super::selectionchanged;cur_scid_arr = THIS.uo_scid_arr
  310. cb_1.TriggerEvent(Clicked!)
  311. end event
  312. type st_2 from statictext within w_rp_musttake_balc
  313. integer x = 18
  314. integer y = 216
  315. integer width = 133
  316. integer height = 48
  317. boolean bringtotop = true
  318. integer textsize = -9
  319. integer weight = 400
  320. fontcharset fontcharset = gb2312charset!
  321. fontpitch fontpitch = variable!
  322. string facename = "宋体"
  323. long textcolor = 33554432
  324. long backcolor = 134217739
  325. string text = "分部"
  326. boolean focusrectangle = false
  327. end type
  328. type ddlb_4 from dropdownlistbox within w_rp_musttake_balc
  329. integer x = 1961
  330. integer y = 48
  331. integer width = 645
  332. integer height = 448
  333. integer taborder = 100
  334. boolean bringtotop = true
  335. integer textsize = -9
  336. integer weight = 400
  337. fontcharset fontcharset = gb2312charset!
  338. fontpitch fontpitch = variable!
  339. string facename = "宋体"
  340. long textcolor = 33554432
  341. string text = "汇总统计"
  342. boolean sorted = false
  343. boolean vscrollbar = true
  344. string item[] = {"汇总统计","分项目统计"}
  345. borderstyle borderstyle = stylelowered!
  346. end type
  347. event selectionchanged;IF This.Text <> '分项目统计' THEN
  348. dw_1.uf_save_profile_layout()
  349. END IF
  350. IF sys_option_scid_msttake_mstpay = 1 THEN
  351. IF This.Text = '汇总统计' THEN
  352. dw_1.DataObject = 'dw_rp_musttake_balc'
  353. ELSE //分项目统计
  354. dw_1.DataObject = 'dw_rp_musttake_balc_2'
  355. END IF
  356. ELSE
  357. IF This.Text = '汇总统计' THEN
  358. dw_1.DataObject = 'dw_rp_musttake_balc_not_scid'
  359. ELSE //分项目统计
  360. dw_1.DataObject = 'dw_rp_musttake_balc_2_not_scid'
  361. END IF
  362. END IF
  363. dw_1.SetTransObject(sqlca)
  364. IF This.Text <> '分项目统计' THEN
  365. dw_1.ins_INIfile_name = sys_inifilename
  366. dw_1.ins_opemp = publ_operator
  367. dw_1.cardw_empid = sys_empid
  368. dw_1.cur_DataObject = dw_1.DataObject
  369. dw_1.uf_read_profile_layout()
  370. END IF
  371. cb_1.TriggerEvent(Clicked!)
  372. end event
  373. type ddlb_money from uo_ddlb_moneyid within w_rp_musttake_balc
  374. integer x = 827
  375. integer y = 196
  376. integer taborder = 30
  377. boolean bringtotop = true
  378. end type
  379. event constructor;call super::constructor;ins_moneyid = THIS.uo_moneyid
  380. end event
  381. event selectionchanged;call super::selectionchanged;ins_moneyid = THIS.uo_moneyid
  382. cb_1.TriggerEvent(Clicked!)
  383. end event