w_rp_suject_hz.srw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. $PBExportHeader$w_rp_suject_hz.srw
  2. forward
  3. global type w_rp_suject_hz from w_publ_easyq
  4. end type
  5. type st_2 from statictext within w_rp_suject_hz
  6. end type
  7. type em_3 from editmask within w_rp_suject_hz
  8. end type
  9. type em_4 from editmask within w_rp_suject_hz
  10. end type
  11. type st_5 from statictext within w_rp_suject_hz
  12. end type
  13. type st_1 from statictext within w_rp_suject_hz
  14. end type
  15. type ddlb_1 from dropdownlistbox within w_rp_suject_hz
  16. end type
  17. end forward
  18. global type w_rp_suject_hz from w_publ_easyq
  19. integer width = 3502
  20. integer height = 2200
  21. string title = "科目汇总表"
  22. long backcolor = 80269524
  23. st_2 st_2
  24. em_3 em_3
  25. em_4 em_4
  26. st_5 st_5
  27. st_1 st_1
  28. ddlb_1 ddlb_1
  29. end type
  30. global w_rp_suject_hz w_rp_suject_hz
  31. type variables
  32. int cur_postflag=-1 ,cur_checkflag=-1
  33. end variables
  34. on w_rp_suject_hz.create
  35. int iCurrent
  36. call super::create
  37. this.st_2=create st_2
  38. this.em_3=create em_3
  39. this.em_4=create em_4
  40. this.st_5=create st_5
  41. this.st_1=create st_1
  42. this.ddlb_1=create ddlb_1
  43. iCurrent=UpperBound(this.Control)
  44. this.Control[iCurrent+1]=this.st_2
  45. this.Control[iCurrent+2]=this.em_3
  46. this.Control[iCurrent+3]=this.em_4
  47. this.Control[iCurrent+4]=this.st_5
  48. this.Control[iCurrent+5]=this.st_1
  49. this.Control[iCurrent+6]=this.ddlb_1
  50. end on
  51. on w_rp_suject_hz.destroy
  52. call super::destroy
  53. destroy(this.st_2)
  54. destroy(this.em_3)
  55. destroy(this.em_4)
  56. destroy(this.st_5)
  57. destroy(this.st_1)
  58. destroy(this.ddlb_1)
  59. end on
  60. event open;this.triggerevent('ue_before_open')
  61. wf_movetocenter()
  62. dw_1.SetTransObject (sqlca)
  63. EM_1.TEXT=STRING(f_rst_mon_1st(1,sys_curyearmon),'YYYY-MM-DD')
  64. EM_2.TEXT=STRING(f_rst_mon_1st(3,sys_curyearmon),'YYYY-MM-DD')
  65. dw_1.RBUTTON_FILTER_USE=true //右键查询功能开关
  66. IF TRIM(DW_1.DATAOBJECT)<>'' THEN
  67. DW_1.OBJECT.DataWindow.PRINT.MARGIN.TOP=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_TOP", "110"))
  68. DW_1.OBJECT.DataWindow.PRINT.MARGIN.LEFT=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_LEFT", "96" ))
  69. DW_1.OBJECT.DataWindow.PRINT.MARGIN.bottom=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_BOTTOM", "110"))
  70. DW_1.OBJECT.DataWindow.PRINT.MARGIN.right=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_RIGHT", "96" ))
  71. end if
  72. cb_1.triggerevent(clicked!)
  73. end event
  74. event ue_before_open;call super::ue_before_open;if_ue_filter = TRUE
  75. if_ue_sort = TRUE
  76. if_ue_sentdataout = TRUE
  77. end event
  78. type cb_func from w_publ_easyq`cb_func within w_rp_suject_hz
  79. end type
  80. type cb_exit from w_publ_easyq`cb_exit within w_rp_suject_hz
  81. integer x = 965
  82. integer taborder = 30
  83. end type
  84. type cb_2 from w_publ_easyq`cb_2 within w_rp_suject_hz
  85. integer taborder = 110
  86. boolean bringtotop = true
  87. end type
  88. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_suject_hz
  89. integer taborder = 90
  90. boolean bringtotop = true
  91. end type
  92. type cb_1 from w_publ_easyq`cb_1 within w_rp_suject_hz
  93. boolean bringtotop = true
  94. end type
  95. event cb_1::clicked;call super::clicked;datetime firstdate,enddate
  96. long firstcredno,endcredno
  97. firstdate=datetime(date(em_1.text),time(0))
  98. enddate=datetime(date(em_2.text),time('23:59:59'))
  99. firstcredno=long(em_3.text)
  100. endcredno=long(em_4.text)
  101. dw_1.retrieve(cur_checkflag,cur_postflag,firstdate,enddate,sys_accsetid,firstcredno,endcredno,s_sys_accset.step1)
  102. end event
  103. type st_3 from w_publ_easyq`st_3 within w_rp_suject_hz
  104. integer x = 686
  105. integer y = 212
  106. integer width = 288
  107. integer height = 56
  108. long backcolor = 67108864
  109. string text = "日期:"
  110. end type
  111. type st_4 from w_publ_easyq`st_4 within w_rp_suject_hz
  112. integer x = 1477
  113. integer y = 212
  114. integer width = 78
  115. integer height = 56
  116. string text = "至"
  117. alignment alignment = center!
  118. end type
  119. type em_1 from w_publ_easyq`em_1 within w_rp_suject_hz
  120. integer x = 960
  121. integer taborder = 120
  122. end type
  123. type em_2 from w_publ_easyq`em_2 within w_rp_suject_hz
  124. integer x = 1554
  125. integer taborder = 130
  126. end type
  127. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_suject_hz
  128. integer x = 1349
  129. integer y = 40
  130. integer taborder = 70
  131. end type
  132. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_suject_hz
  133. integer x = 1143
  134. integer y = 40
  135. integer taborder = 80
  136. long backcolor = 67108864
  137. end type
  138. type dw_1 from w_publ_easyq`dw_1 within w_rp_suject_hz
  139. integer y = 300
  140. integer width = 3163
  141. string dataobject = "dw_rp_subject_hz"
  142. end type
  143. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_suject_hz
  144. integer x = 1646
  145. integer y = 1292
  146. end type
  147. type sle_cust from w_publ_easyq`sle_cust within w_rp_suject_hz
  148. integer x = 485
  149. integer y = 1292
  150. end type
  151. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_suject_hz
  152. integer x = 1189
  153. integer y = 1308
  154. end type
  155. type st_cust from w_publ_easyq`st_cust within w_rp_suject_hz
  156. integer x = 23
  157. integer y = 1308
  158. end type
  159. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_suject_hz
  160. integer x = 1563
  161. integer y = 1064
  162. end type
  163. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_suject_hz
  164. integer x = 1371
  165. end type
  166. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_suject_hz
  167. integer x = 1970
  168. end type
  169. type pb_2 from w_publ_easyq`pb_2 within w_rp_suject_hz
  170. integer x = 2080
  171. end type
  172. type cb_help from w_publ_easyq`cb_help within w_rp_suject_hz
  173. boolean visible = false
  174. integer x = 2409
  175. integer y = 388
  176. end type
  177. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_suject_hz
  178. end type
  179. type gb_1 from w_publ_easyq`gb_1 within w_rp_suject_hz
  180. end type
  181. type ln_bar from w_publ_easyq`ln_bar within w_rp_suject_hz
  182. end type
  183. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_suject_hz
  184. end type
  185. type r_bar from w_publ_easyq`r_bar within w_rp_suject_hz
  186. end type
  187. type ln_1 from w_publ_easyq`ln_1 within w_rp_suject_hz
  188. end type
  189. type ln_2 from w_publ_easyq`ln_2 within w_rp_suject_hz
  190. end type
  191. type ln_3 from w_publ_easyq`ln_3 within w_rp_suject_hz
  192. boolean visible = false
  193. end type
  194. type ln_4 from w_publ_easyq`ln_4 within w_rp_suject_hz
  195. boolean visible = false
  196. end type
  197. type st_2 from statictext within w_rp_suject_hz
  198. integer x = 2190
  199. integer y = 212
  200. integer width = 279
  201. integer height = 56
  202. boolean bringtotop = true
  203. integer textsize = -9
  204. integer weight = 400
  205. fontcharset fontcharset = gb2312charset!
  206. fontpitch fontpitch = variable!
  207. string facename = "宋体"
  208. long textcolor = 33554432
  209. long backcolor = 67108864
  210. boolean enabled = false
  211. string text = "凭证编号:"
  212. alignment alignment = right!
  213. boolean focusrectangle = false
  214. end type
  215. type em_3 from editmask within w_rp_suject_hz
  216. integer x = 2459
  217. integer y = 196
  218. integer width = 247
  219. integer height = 88
  220. integer taborder = 140
  221. boolean bringtotop = true
  222. integer textsize = -9
  223. integer weight = 400
  224. fontcharset fontcharset = gb2312charset!
  225. fontpitch fontpitch = variable!
  226. string facename = "宋体"
  227. long textcolor = 33554432
  228. string text = "1"
  229. alignment alignment = right!
  230. borderstyle borderstyle = stylelowered!
  231. string mask = "####"
  232. boolean spin = true
  233. string minmax = "1~~9999"
  234. end type
  235. type em_4 from editmask within w_rp_suject_hz
  236. integer x = 2789
  237. integer y = 196
  238. integer width = 247
  239. integer height = 88
  240. integer taborder = 150
  241. boolean bringtotop = true
  242. integer textsize = -9
  243. integer weight = 400
  244. fontcharset fontcharset = gb2312charset!
  245. fontpitch fontpitch = variable!
  246. string facename = "宋体"
  247. long textcolor = 33554432
  248. string text = "9999"
  249. alignment alignment = right!
  250. borderstyle borderstyle = stylelowered!
  251. string mask = "####"
  252. boolean spin = true
  253. string minmax = "1~~9999"
  254. end type
  255. type st_5 from statictext within w_rp_suject_hz
  256. integer x = 2711
  257. integer y = 212
  258. integer width = 78
  259. integer height = 56
  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 = 67108864
  268. boolean enabled = false
  269. string text = "至"
  270. alignment alignment = center!
  271. boolean focusrectangle = false
  272. end type
  273. type st_1 from statictext within w_rp_suject_hz
  274. integer y = 212
  275. integer width = 178
  276. integer height = 48
  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. long backcolor = 67108864
  285. string text = "范围:"
  286. alignment alignment = right!
  287. boolean focusrectangle = false
  288. end type
  289. type ddlb_1 from dropdownlistbox within w_rp_suject_hz
  290. integer x = 165
  291. integer y = 196
  292. integer width = 631
  293. integer height = 400
  294. integer taborder = 20
  295. boolean bringtotop = true
  296. integer textsize = -9
  297. integer weight = 400
  298. fontcharset fontcharset = gb2312charset!
  299. fontpitch fontpitch = variable!
  300. string facename = "宋体"
  301. long textcolor = 33554432
  302. string text = "[全部凭证]"
  303. boolean sorted = false
  304. boolean vscrollbar = true
  305. string item[] = {"[全部凭证]","未审核凭证","已审核未登帐凭证","已登帐凭证"}
  306. borderstyle borderstyle = stylelowered!
  307. end type
  308. event selectionchanged;if index=1 then
  309. cur_checkflag = -1
  310. cur_postflag = -1
  311. elseif index=2 then
  312. cur_checkflag = 0
  313. cur_postflag = 0
  314. elseif index=3 then
  315. cur_checkflag = 1
  316. cur_postflag = 0
  317. elseif index=4 then
  318. cur_checkflag = 1
  319. cur_postflag = 1
  320. end if
  321. end event