w_rp_subid_hz.srw 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. $PBExportHeader$w_rp_subid_hz.srw
  2. forward
  3. global type w_rp_subid_hz from w_publ_easyq
  4. end type
  5. type cbx_1 from checkbox within w_rp_subid_hz
  6. end type
  7. type cb_3 from uo_imflatbutton within w_rp_subid_hz
  8. end type
  9. type cb_4 from uo_imflatbutton within w_rp_subid_hz
  10. end type
  11. type cb_5 from uo_imflatbutton within w_rp_subid_hz
  12. end type
  13. type cbx_2 from checkbox within w_rp_subid_hz
  14. end type
  15. end forward
  16. global type w_rp_subid_hz from w_publ_easyq
  17. integer width = 3502
  18. integer height = 2200
  19. string title = "总分类帐"
  20. long backcolor = 80269524
  21. boolean if_ue_sentdataout = true
  22. cbx_1 cbx_1
  23. cb_3 cb_3
  24. cb_4 cb_4
  25. cb_5 cb_5
  26. cbx_2 cbx_2
  27. end type
  28. global w_rp_subid_hz w_rp_subid_hz
  29. type variables
  30. boolean is_display=false
  31. long firstmon,lastmon,subgrade,cur_year,ls_firstmon,ls_lastmon,ls_grade_len
  32. string firstsubid,lastsubid
  33. end variables
  34. forward prototypes
  35. public subroutine wf_retrieve ()
  36. end prototypes
  37. public subroutine wf_retrieve ();string ls_modify
  38. IF cbx_2.Checked THEN
  39. ls_modify += "destroy cw_balance_rawdebit ~n "
  40. ls_modify += "destroy cw_balance_rawcredit ~n "
  41. ls_modify += "destroy cw_balance_rawdebit_t ~n "
  42. ls_modify += "destroy cw_balance_rawcredit_t ~n "
  43. ls_modify += "destroy rawbalc ~n "
  44. ls_modify += "destroy rawbalc_t ~n "
  45. dw_1.Modify(ls_modify)
  46. ELSE
  47. dw_1.DataObject = 'dw_rp_subid_hz'
  48. dw_1.SetTransObject(sqlca)
  49. END IF
  50. dw_1.retrieve(sys_accsetid,sys_subaccsetid,firstsubid,lastsubid,ls_firstmon,ls_lastmon,ls_grade_len)
  51. dw_1.object.month.text="会计期间:"+string(ls_firstmon)+" 至 "+string(ls_lastmon)
  52. end subroutine
  53. on w_rp_subid_hz.create
  54. int iCurrent
  55. call super::create
  56. this.cbx_1=create cbx_1
  57. this.cb_3=create cb_3
  58. this.cb_4=create cb_4
  59. this.cb_5=create cb_5
  60. this.cbx_2=create cbx_2
  61. iCurrent=UpperBound(this.Control)
  62. this.Control[iCurrent+1]=this.cbx_1
  63. this.Control[iCurrent+2]=this.cb_3
  64. this.Control[iCurrent+3]=this.cb_4
  65. this.Control[iCurrent+4]=this.cb_5
  66. this.Control[iCurrent+5]=this.cbx_2
  67. end on
  68. on w_rp_subid_hz.destroy
  69. call super::destroy
  70. destroy(this.cbx_1)
  71. destroy(this.cb_3)
  72. destroy(this.cb_4)
  73. destroy(this.cb_5)
  74. destroy(this.cbx_2)
  75. end on
  76. event open;this.triggerevent('ue_before_open')
  77. wf_movetocenter()
  78. IF TRIM(DW_1.DATAOBJECT)<>'' THEN
  79. DW_1.OBJECT.DataWindow.PRINT.MARGIN.TOP=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_TOP", "110"))
  80. DW_1.OBJECT.DataWindow.PRINT.MARGIN.LEFT=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_LEFT", "96" ))
  81. DW_1.OBJECT.DataWindow.PRINT.MARGIN.bottom=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_BOTTOM", "110"))
  82. DW_1.OBJECT.DataWindow.PRINT.MARGIN.right=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_RIGHT", "96" ))
  83. end if
  84. dw_1.SetTransObject (sqlca)
  85. cb_1.triggerevent(clicked!)
  86. end event
  87. event ue_before_open;call super::ue_before_open;if_ue_sentdataout = TRUE
  88. end event
  89. type cb_func from w_publ_easyq`cb_func within w_rp_subid_hz
  90. end type
  91. type cb_exit from w_publ_easyq`cb_exit within w_rp_subid_hz
  92. integer x = 1701
  93. end type
  94. type cb_2 from w_publ_easyq`cb_2 within w_rp_subid_hz
  95. integer x = 1262
  96. integer taborder = 120
  97. boolean bringtotop = true
  98. end type
  99. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_subid_hz
  100. integer x = 1006
  101. boolean bringtotop = true
  102. end type
  103. type cb_1 from w_publ_easyq`cb_1 within w_rp_subid_hz
  104. boolean bringtotop = true
  105. string text = "过滤"
  106. end type
  107. event cb_1::clicked;OPEN(w_rp_type_hz)
  108. st_3.Text = '会计年度:'
  109. st_4.Text = '会计期间:'
  110. s_rp_type s_rp_type_hz
  111. s_rp_type_hz = Message.PowerObjectParm
  112. cur_year = s_rp_type_hz.Year
  113. IF cur_year = 0 THEN
  114. IF is_display THEN
  115. RETURN
  116. ELSE
  117. CLOSE(PARENT)
  118. RETURN
  119. END IF
  120. END IF
  121. is_display = TRUE
  122. firstmon = s_rp_type_hz.firstmon
  123. lastmon = s_rp_type_hz.lastmon
  124. subgrade = s_rp_type_hz.subidgrade
  125. firstsubid = s_rp_type_hz.firstsubid
  126. lastsubid = s_rp_type_hz.lastsubid
  127. st_3.Text = '会计年度:'+String(cur_year)
  128. st_4.Text = '会计期间:'+String(firstmon)+' 至 '+String(lastmon)
  129. ls_firstmon = cur_year * 100 + firstmon
  130. ls_lastmon = cur_year * 100 + lastmon
  131. ls_grade_len = f_rst_grade_len(subgrade)
  132. wf_retrieve()
  133. end event
  134. type st_3 from w_publ_easyq`st_3 within w_rp_subid_hz
  135. integer x = 46
  136. integer y = 464
  137. integer width = 453
  138. integer height = 64
  139. integer weight = 700
  140. long backcolor = 16776960
  141. string text = "会计年度:2002"
  142. alignment alignment = left!
  143. boolean border = true
  144. end type
  145. type st_4 from w_publ_easyq`st_4 within w_rp_subid_hz
  146. boolean visible = false
  147. integer x = 407
  148. integer y = 888
  149. integer width = 526
  150. integer height = 64
  151. integer weight = 700
  152. long backcolor = 16776960
  153. string text = "会计期间:2 至 2 "
  154. alignment alignment = left!
  155. boolean border = true
  156. end type
  157. type em_1 from w_publ_easyq`em_1 within w_rp_subid_hz
  158. integer x = 608
  159. integer y = 440
  160. integer taborder = 130
  161. end type
  162. type em_2 from w_publ_easyq`em_2 within w_rp_subid_hz
  163. boolean visible = false
  164. integer x = 983
  165. integer y = 888
  166. integer taborder = 140
  167. end type
  168. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_subid_hz
  169. integer x = 2089
  170. integer y = 56
  171. end type
  172. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_subid_hz
  173. integer x = 1874
  174. integer y = 56
  175. end type
  176. type dw_1 from w_publ_easyq`dw_1 within w_rp_subid_hz
  177. integer y = 300
  178. integer width = 2935
  179. integer height = 1216
  180. string dataobject = "dw_rp_subid_hz"
  181. end type
  182. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_subid_hz
  183. integer x = 1733
  184. integer y = 916
  185. end type
  186. type sle_cust from w_publ_easyq`sle_cust within w_rp_subid_hz
  187. integer x = 571
  188. integer y = 916
  189. end type
  190. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_subid_hz
  191. integer x = 1275
  192. integer y = 932
  193. end type
  194. type st_cust from w_publ_easyq`st_cust within w_rp_subid_hz
  195. integer x = 110
  196. integer y = 932
  197. end type
  198. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_subid_hz
  199. integer x = 1938
  200. integer y = 740
  201. end type
  202. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_subid_hz
  203. boolean visible = false
  204. integer x = 562
  205. integer y = 1096
  206. end type
  207. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_subid_hz
  208. boolean visible = false
  209. integer x = 1175
  210. integer y = 1096
  211. end type
  212. type pb_2 from w_publ_easyq`pb_2 within w_rp_subid_hz
  213. boolean visible = false
  214. integer x = 1285
  215. integer y = 1096
  216. end type
  217. type cb_help from w_publ_easyq`cb_help within w_rp_subid_hz
  218. boolean visible = false
  219. integer x = 1659
  220. integer y = 712
  221. end type
  222. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_subid_hz
  223. integer x = 750
  224. end type
  225. type gb_1 from w_publ_easyq`gb_1 within w_rp_subid_hz
  226. end type
  227. type ln_bar from w_publ_easyq`ln_bar within w_rp_subid_hz
  228. end type
  229. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_subid_hz
  230. end type
  231. type r_bar from w_publ_easyq`r_bar within w_rp_subid_hz
  232. end type
  233. type ln_1 from w_publ_easyq`ln_1 within w_rp_subid_hz
  234. end type
  235. type ln_2 from w_publ_easyq`ln_2 within w_rp_subid_hz
  236. end type
  237. type ln_3 from w_publ_easyq`ln_3 within w_rp_subid_hz
  238. boolean visible = false
  239. end type
  240. type ln_4 from w_publ_easyq`ln_4 within w_rp_subid_hz
  241. boolean visible = false
  242. end type
  243. type cbx_1 from checkbox within w_rp_subid_hz
  244. integer x = 23
  245. integer y = 204
  246. integer width = 466
  247. integer height = 76
  248. boolean bringtotop = true
  249. integer textsize = -9
  250. integer weight = 400
  251. fontcharset fontcharset = gb2312charset!
  252. fontpitch fontpitch = variable!
  253. string facename = "宋体"
  254. long textcolor = 33554432
  255. long backcolor = 67108864
  256. string text = "按科目分页打印"
  257. end type
  258. event clicked;if this.checked then
  259. cbx_yl.enabled = false
  260. dw_1.dataobject= 'dw_rp_subid_hz_2'
  261. else
  262. cbx_yl.enabled = true
  263. dw_1.dataobject= 'dw_rp_subid_hz'
  264. end if
  265. dw_1.settransobject(sqlca)
  266. wf_retrieve()
  267. end event
  268. type cb_3 from uo_imflatbutton within w_rp_subid_hz
  269. integer x = 302
  270. integer width = 224
  271. integer height = 164
  272. integer taborder = 100
  273. boolean bringtotop = true
  274. string text = "上一页"
  275. string normalpicname = "p5.bmp"
  276. integer picsize = 16
  277. toolbaralignment pic_align = alignattop!
  278. boolean border = false
  279. end type
  280. event clicked;dw_1.ScrollPriorPage()
  281. end event
  282. type cb_4 from uo_imflatbutton within w_rp_subid_hz
  283. integer x = 526
  284. integer width = 224
  285. integer height = 164
  286. integer taborder = 90
  287. boolean bringtotop = true
  288. string text = "下一页"
  289. string normalpicname = "p6.bmp"
  290. integer picsize = 16
  291. toolbaralignment pic_align = alignattop!
  292. boolean border = false
  293. end type
  294. event clicked;dw_1.ScrollNextPage()
  295. end event
  296. type cb_5 from uo_imflatbutton within w_rp_subid_hz
  297. integer x = 1413
  298. integer width = 288
  299. integer height = 164
  300. integer taborder = 80
  301. boolean bringtotop = true
  302. string text = "打印封面"
  303. string normalpicname = "print.bmp"
  304. integer picsize = 16
  305. toolbaralignment pic_align = alignattop!
  306. boolean border = false
  307. end type
  308. event clicked;S_print_MSG LS_PRMSG
  309. LS_PRMSG.obj_dwNAME = 'dw_rp_fm_subid_hz'
  310. LS_PRMSG.TAG_TEXT = '封面'
  311. LS_PRMSG.FILTER_STRING = ''
  312. LS_PRMSG.retr_pram_falg = -1
  313. LS_PRMSG.PAGECH_FLAG = 0
  314. OpenWithParm(w_publ_preview,LS_PRMSG)
  315. end event
  316. type cbx_2 from checkbox within w_rp_subid_hz
  317. integer x = 645
  318. integer y = 212
  319. integer width = 521
  320. integer height = 60
  321. boolean bringtotop = true
  322. integer textsize = -9
  323. integer weight = 400
  324. fontcharset fontcharset = gb2312charset!
  325. fontpitch fontpitch = variable!
  326. string facename = "宋体"
  327. long textcolor = 33554432
  328. long backcolor = 67108864
  329. string text = "不显示原币金额"
  330. boolean checked = true
  331. end type
  332. event clicked;wf_retrieve()
  333. end event