w_rp_balance.srw 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. $PBExportHeader$w_rp_balance.srw
  2. forward
  3. global type w_rp_balance from w_publ_easyq
  4. end type
  5. type st_2 from statictext within w_rp_balance
  6. end type
  7. type ddlb_1 from dropdownlistbox within w_rp_balance
  8. end type
  9. type cbx_1 from checkbox within w_rp_balance
  10. end type
  11. type cbx_ifpost from checkbox within w_rp_balance
  12. end type
  13. type cbx_raw from checkbox within w_rp_balance
  14. end type
  15. end forward
  16. global type w_rp_balance from w_publ_easyq
  17. integer width = 3502
  18. integer height = 2200
  19. string title = "试算平衡表"
  20. long backcolor = 80269524
  21. boolean if_ue_sort = true
  22. boolean if_ue_sentdataout = true
  23. st_2 st_2
  24. ddlb_1 ddlb_1
  25. cbx_1 cbx_1
  26. cbx_ifpost cbx_ifpost
  27. cbx_raw cbx_raw
  28. end type
  29. global w_rp_balance w_rp_balance
  30. on w_rp_balance.create
  31. int iCurrent
  32. call super::create
  33. this.st_2=create st_2
  34. this.ddlb_1=create ddlb_1
  35. this.cbx_1=create cbx_1
  36. this.cbx_ifpost=create cbx_ifpost
  37. this.cbx_raw=create cbx_raw
  38. iCurrent=UpperBound(this.Control)
  39. this.Control[iCurrent+1]=this.st_2
  40. this.Control[iCurrent+2]=this.ddlb_1
  41. this.Control[iCurrent+3]=this.cbx_1
  42. this.Control[iCurrent+4]=this.cbx_ifpost
  43. this.Control[iCurrent+5]=this.cbx_raw
  44. end on
  45. on w_rp_balance.destroy
  46. call super::destroy
  47. destroy(this.st_2)
  48. destroy(this.ddlb_1)
  49. destroy(this.cbx_1)
  50. destroy(this.cbx_ifpost)
  51. destroy(this.cbx_raw)
  52. end on
  53. event open;this.triggerevent('ue_before_open')
  54. wf_movetocenter()
  55. dw_1.SetTransObject (sqlca)
  56. dw_1.RBUTTON_FILTER_USE=true //右键查询功能开关
  57. IF TRIM(DW_1.DATAOBJECT)<>'' THEN
  58. DW_1.OBJECT.DataWindow.PRINT.MARGIN.TOP=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_TOP", "110"))
  59. DW_1.OBJECT.DataWindow.PRINT.MARGIN.LEFT=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_LEFT", "96" ))
  60. DW_1.OBJECT.DataWindow.PRINT.MARGIN.bottom=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_BOTTOM", "110"))
  61. DW_1.OBJECT.DataWindow.PRINT.MARGIN.right=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_RIGHT", "96" ))
  62. end if
  63. cb_1.triggerevent(clicked!)
  64. end event
  65. event ue_before_open;call super::ue_before_open;if_ue_filter = TRUE
  66. if_ue_sort = TRUE
  67. if_ue_sentdataout = TRUE
  68. end event
  69. type cb_func from w_publ_easyq`cb_func within w_rp_balance
  70. end type
  71. type cb_exit from w_publ_easyq`cb_exit within w_rp_balance
  72. integer x = 965
  73. end type
  74. type cb_2 from w_publ_easyq`cb_2 within w_rp_balance
  75. boolean bringtotop = true
  76. end type
  77. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_balance
  78. boolean bringtotop = true
  79. end type
  80. type cb_1 from w_publ_easyq`cb_1 within w_rp_balance
  81. boolean bringtotop = true
  82. end type
  83. event cb_1::clicked;call super::clicked;String ls_modify = ''
  84. dw_1.DataObject = 'dw_rp_balance'
  85. dw_1.SetTransObject(sqlca)
  86. IF cbx_1.Checked THEN
  87. ls_modify += "destroy ydebit ~n "
  88. ls_modify += "destroy ycredit ~n "
  89. ls_modify += "destroy ydebit_t ~n "
  90. ls_modify += "destroy ycredit_t ~n "
  91. ls_modify += "destroy ydebit_t2 ~n "
  92. ls_modify += "destroy ycredit_t2 ~n "
  93. ls_modify += "bar.width = 3936 ~n "
  94. dw_1.Modify(ls_modify)
  95. END IF
  96. IF cbx_raw.Checked THEN
  97. ls_modify= ''
  98. ls_modify += "destroy brawdebit ~n "
  99. ls_modify += "destroy brawdebit_t ~n "
  100. ls_modify += "destroy brawcredit ~n "
  101. ls_modify += "destroy brawcredit_t ~n "
  102. ls_modify += "destroy cw_balance_rawdebit ~n "
  103. ls_modify += "destroy cw_balance_rawdebit_t ~n "
  104. ls_modify += "destroy cw_balance_rawcredit ~n "
  105. ls_modify += "destroy cw_balance_rawcredit_t ~n "
  106. ls_modify += "destroy cw_balance_yrawdebit ~n "
  107. ls_modify += "destroy cw_balance_yrawdebit_t ~n "
  108. ls_modify += "destroy cw_balance_yrawcredit ~n "
  109. ls_modify += "destroy cw_balance_yrawcredit_t ~n "
  110. ls_modify += "destroy erawdebit ~n "
  111. ls_modify += "destroy erawdebit_t ~n "
  112. ls_modify += "destroy erawcredit ~n "
  113. ls_modify += "destroy erawcredit_t ~n "
  114. dw_1.Modify(ls_modify)
  115. END IF
  116. datawindowchild childdw_subid
  117. dw_1.GetChild("subid",childdw_subid)
  118. childdw_subid.SetTransObject (sqlca)
  119. ddd_subid_display.ShareData(childdw_subid)
  120. Long ls_cmonth,ls_grade_len,ls_grade
  121. Int li_ifpost
  122. IF cbx_ifpost.Checked THEN
  123. li_ifpost = 1
  124. ELSE
  125. li_ifpost = 0
  126. END IF
  127. ls_cmonth = Long(em_1.Text) * 100 + Long(ddlb_1.Text)
  128. ls_grade_len = f_rst_grade_len(Long(em_2.Text))
  129. ls_grade = Long(em_2.Text)
  130. dw_1.Retrieve(sys_accsetid,sys_subaccsetid,ls_cmonth,ls_grade_len,ls_grade,li_ifpost)
  131. dw_1.Object.Month.Text = "会计期间:"+String(ls_cmonth)
  132. end event
  133. type st_3 from w_publ_easyq`st_3 within w_rp_balance
  134. integer x = 0
  135. integer width = 288
  136. long backcolor = 67108864
  137. string text = "会计年度:"
  138. end type
  139. type st_4 from w_publ_easyq`st_4 within w_rp_balance
  140. integer x = 517
  141. integer width = 288
  142. long backcolor = 67108864
  143. string text = "会计期间:"
  144. end type
  145. type em_1 from w_publ_easyq`em_1 within w_rp_balance
  146. integer x = 288
  147. integer width = 219
  148. integer height = 92
  149. string mask = "yyyy"
  150. end type
  151. event em_1::constructor;this.text=left(string(sys_curyearmon),4)
  152. end event
  153. type em_2 from w_publ_easyq`em_2 within w_rp_balance
  154. integer x = 1358
  155. integer width = 215
  156. integer height = 92
  157. string text = "1"
  158. alignment alignment = right!
  159. maskdatatype maskdatatype = decimalmask!
  160. string mask = "#"
  161. end type
  162. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_balance
  163. integer x = 1349
  164. integer y = 44
  165. end type
  166. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_balance
  167. integer x = 1134
  168. integer y = 48
  169. end type
  170. type dw_1 from w_publ_easyq`dw_1 within w_rp_balance
  171. integer y = 300
  172. integer width = 2382
  173. string dataobject = "dw_rp_balance"
  174. boolean rbutton_filter_use = true
  175. boolean rbutton_setposition_use = true
  176. boolean titleclick_sort_use = true
  177. end type
  178. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_balance
  179. end type
  180. type sle_cust from w_publ_easyq`sle_cust within w_rp_balance
  181. end type
  182. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_balance
  183. end type
  184. type st_cust from w_publ_easyq`st_cust within w_rp_balance
  185. end type
  186. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_balance
  187. integer x = 1042
  188. integer y = 1176
  189. end type
  190. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_balance
  191. boolean visible = false
  192. integer x = 2510
  193. integer y = 736
  194. end type
  195. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_balance
  196. boolean visible = false
  197. integer x = 2597
  198. integer y = 956
  199. end type
  200. type pb_2 from w_publ_easyq`pb_2 within w_rp_balance
  201. boolean visible = false
  202. integer x = 2706
  203. integer y = 956
  204. end type
  205. type cb_help from w_publ_easyq`cb_help within w_rp_balance
  206. boolean visible = false
  207. integer x = 1586
  208. integer y = 884
  209. end type
  210. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_balance
  211. end type
  212. type gb_1 from w_publ_easyq`gb_1 within w_rp_balance
  213. end type
  214. type ln_bar from w_publ_easyq`ln_bar within w_rp_balance
  215. end type
  216. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_balance
  217. end type
  218. type r_bar from w_publ_easyq`r_bar within w_rp_balance
  219. end type
  220. type ln_1 from w_publ_easyq`ln_1 within w_rp_balance
  221. end type
  222. type ln_2 from w_publ_easyq`ln_2 within w_rp_balance
  223. end type
  224. type ln_3 from w_publ_easyq`ln_3 within w_rp_balance
  225. boolean visible = false
  226. end type
  227. type ln_4 from w_publ_easyq`ln_4 within w_rp_balance
  228. boolean visible = false
  229. end type
  230. type st_2 from statictext within w_rp_balance
  231. integer x = 1070
  232. integer y = 216
  233. integer width = 288
  234. integer height = 52
  235. boolean bringtotop = true
  236. integer textsize = -9
  237. integer weight = 400
  238. fontcharset fontcharset = gb2312charset!
  239. fontpitch fontpitch = variable!
  240. string facename = "宋体"
  241. long textcolor = 33554432
  242. long backcolor = 67108864
  243. boolean enabled = false
  244. string text = "科目级别:"
  245. alignment alignment = right!
  246. boolean focusrectangle = false
  247. end type
  248. type ddlb_1 from dropdownlistbox within w_rp_balance
  249. integer x = 791
  250. integer y = 204
  251. integer width = 247
  252. integer height = 1016
  253. integer taborder = 40
  254. boolean bringtotop = true
  255. integer textsize = -9
  256. integer weight = 400
  257. fontcharset fontcharset = gb2312charset!
  258. fontpitch fontpitch = variable!
  259. string facename = "宋体"
  260. long textcolor = 33554432
  261. boolean sorted = false
  262. boolean vscrollbar = true
  263. string item[] = {"1","2","3","4","5","6","7","8","9","10","11","12"}
  264. borderstyle borderstyle = stylelowered!
  265. end type
  266. event constructor;this.text=string(s_sys_accset.currmon)
  267. end event
  268. event selectionchanged;cb_1.TriggerEvent(Clicked!)
  269. end event
  270. type cbx_1 from checkbox within w_rp_balance
  271. integer x = 1600
  272. integer y = 216
  273. integer width = 521
  274. integer height = 60
  275. boolean bringtotop = true
  276. integer textsize = -9
  277. integer weight = 400
  278. fontcharset fontcharset = gb2312charset!
  279. fontpitch fontpitch = variable!
  280. string facename = "宋体"
  281. long textcolor = 33554432
  282. long backcolor = 67108864
  283. string text = "不显示本年累计数"
  284. end type
  285. event clicked;Int li_ystat
  286. IF THIS.Checked THEN
  287. li_ystat = 1
  288. ELSE
  289. li_ystat = 0
  290. END IF
  291. //write ini
  292. SetProfileString (sys_inifilename,publ_userid+'_'+dw_1.DataObject,'ystat',string(li_ystat))
  293. //
  294. cb_1.TriggerEvent(Clicked!)
  295. end event
  296. event constructor;//read ini
  297. Int li_ystat
  298. li_ystat = Long(ProfileString(sys_inifilename,publ_userid+'_'+dw_1.DataObject,'ystat','0'))
  299. THIS.Checked = (li_ystat = 1)
  300. end event
  301. type cbx_ifpost from checkbox within w_rp_balance
  302. integer x = 2715
  303. integer y = 216
  304. integer width = 466
  305. integer height = 60
  306. boolean bringtotop = true
  307. integer textsize = -9
  308. integer weight = 400
  309. fontcharset fontcharset = gb2312charset!
  310. fontpitch fontpitch = variable!
  311. string facename = "宋体"
  312. long textcolor = 33554432
  313. long backcolor = 67108864
  314. string text = "包括未登帐凭证"
  315. end type
  316. event clicked;cb_1.TriggerEvent(Clicked!)
  317. end event
  318. type cbx_raw from checkbox within w_rp_balance
  319. integer x = 2226
  320. integer y = 216
  321. integer width = 471
  322. integer height = 60
  323. boolean bringtotop = true
  324. integer textsize = -9
  325. integer weight = 400
  326. fontcharset fontcharset = gb2312charset!
  327. fontpitch fontpitch = variable!
  328. string facename = "宋体"
  329. long textcolor = 33554432
  330. long backcolor = 67108864
  331. string text = "不显示外币数"
  332. boolean checked = true
  333. end type
  334. event clicked;cb_1.TriggerEvent(Clicked!)
  335. end event