w_rp_assetdepr.srw 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. $PBExportHeader$w_rp_assetdepr.srw
  2. forward
  3. global type w_rp_assetdepr from w_publ_easyq
  4. end type
  5. type ddlb_1 from dropdownlistbox within w_rp_assetdepr
  6. end type
  7. type ddlb_2 from dropdownlistbox within w_rp_assetdepr
  8. end type
  9. type cbx_1 from checkbox within w_rp_assetdepr
  10. end type
  11. type st_1 from statictext within w_rp_assetdepr
  12. end type
  13. end forward
  14. global type w_rp_assetdepr from w_publ_easyq
  15. integer width = 3502
  16. integer height = 2200
  17. string title = "固定资产及累计折旧余额表"
  18. long backcolor = 80269524
  19. ddlb_1 ddlb_1
  20. ddlb_2 ddlb_2
  21. cbx_1 cbx_1
  22. st_1 st_1
  23. end type
  24. global w_rp_assetdepr w_rp_assetdepr
  25. on w_rp_assetdepr.create
  26. int iCurrent
  27. call super::create
  28. this.ddlb_1=create ddlb_1
  29. this.ddlb_2=create ddlb_2
  30. this.cbx_1=create cbx_1
  31. this.st_1=create st_1
  32. iCurrent=UpperBound(this.Control)
  33. this.Control[iCurrent+1]=this.ddlb_1
  34. this.Control[iCurrent+2]=this.ddlb_2
  35. this.Control[iCurrent+3]=this.cbx_1
  36. this.Control[iCurrent+4]=this.st_1
  37. end on
  38. on w_rp_assetdepr.destroy
  39. call super::destroy
  40. destroy(this.ddlb_1)
  41. destroy(this.ddlb_2)
  42. destroy(this.cbx_1)
  43. destroy(this.st_1)
  44. end on
  45. event open;this.triggerevent('ue_before_open')
  46. wf_movetocenter()
  47. dw_1.SetTransObject (sqlca)
  48. dw_1.titleclick_sort_use=false
  49. IF TRIM(DW_1.DATAOBJECT)<>'' THEN
  50. DW_1.OBJECT.DataWindow.PRINT.MARGIN.TOP=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_TOP", "110"))
  51. DW_1.OBJECT.DataWindow.PRINT.MARGIN.LEFT=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_LEFT", "96" ))
  52. DW_1.OBJECT.DataWindow.PRINT.MARGIN.bottom=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_BOTTOM", "110"))
  53. DW_1.OBJECT.DataWindow.PRINT.MARGIN.right=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_RIGHT", "96" ))
  54. end if
  55. cb_1.triggerevent(clicked!)
  56. end event
  57. event ue_before_open;call super::ue_before_open;if_ue_filter = TRUE
  58. if_ue_sort = TRUE
  59. if_ue_sentdataout = TRUE
  60. end event
  61. type cb_func from w_publ_easyq`cb_func within w_rp_assetdepr
  62. end type
  63. type cb_exit from w_publ_easyq`cb_exit within w_rp_assetdepr
  64. integer x = 965
  65. end type
  66. type cb_2 from w_publ_easyq`cb_2 within w_rp_assetdepr
  67. boolean bringtotop = true
  68. end type
  69. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_assetdepr
  70. boolean bringtotop = true
  71. end type
  72. type cb_1 from w_publ_easyq`cb_1 within w_rp_assetdepr
  73. boolean bringtotop = true
  74. end type
  75. event cb_1::clicked;call super::clicked;long ls_firstcmon,ls_lastmon
  76. int li_clearflag
  77. if cbx_1.checked then
  78. li_clearflag = -1
  79. else
  80. li_clearflag = 0
  81. end if
  82. ls_firstcmon=long(em_1.text) * 100 + long(ddlb_1.text)
  83. ls_lastmon=long(em_1.text) * 100 + long(ddlb_2.text)
  84. dw_1.retrieve(sys_accsetid,ls_firstcmon,ls_lastmon,li_clearflag)
  85. dw_1.object.month.text="会计期间:"+string(ls_firstcmon)+" 至 "+string(ls_lastmon)
  86. end event
  87. type st_3 from w_publ_easyq`st_3 within w_rp_assetdepr
  88. integer x = 0
  89. integer width = 288
  90. long backcolor = 67108864
  91. string text = "会计年度:"
  92. end type
  93. type st_4 from w_publ_easyq`st_4 within w_rp_assetdepr
  94. integer x = 1010
  95. integer width = 78
  96. long backcolor = 67108864
  97. string text = "至"
  98. alignment alignment = center!
  99. end type
  100. type em_1 from w_publ_easyq`em_1 within w_rp_assetdepr
  101. integer x = 279
  102. integer width = 219
  103. string mask = "yyyy"
  104. end type
  105. event em_1::constructor;this.text=left(string(sys_curyearmon),4)
  106. end event
  107. type em_2 from w_publ_easyq`em_2 within w_rp_assetdepr
  108. integer x = 1531
  109. integer y = 488
  110. end type
  111. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_assetdepr
  112. integer x = 1349
  113. integer y = 48
  114. end type
  115. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_assetdepr
  116. integer x = 1138
  117. integer y = 44
  118. long backcolor = 67108864
  119. end type
  120. type dw_1 from w_publ_easyq`dw_1 within w_rp_assetdepr
  121. integer y = 300
  122. integer width = 2702
  123. integer height = 944
  124. string dataobject = "dw_rp_assetdepr"
  125. end type
  126. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_assetdepr
  127. end type
  128. type sle_cust from w_publ_easyq`sle_cust within w_rp_assetdepr
  129. end type
  130. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_assetdepr
  131. end type
  132. type st_cust from w_publ_easyq`st_cust within w_rp_assetdepr
  133. end type
  134. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_assetdepr
  135. end type
  136. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_assetdepr
  137. boolean visible = false
  138. integer x = 1403
  139. integer y = 620
  140. end type
  141. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_assetdepr
  142. boolean visible = false
  143. integer x = 2016
  144. integer y = 620
  145. end type
  146. type pb_2 from w_publ_easyq`pb_2 within w_rp_assetdepr
  147. boolean visible = false
  148. integer x = 2126
  149. integer y = 620
  150. end type
  151. type cb_help from w_publ_easyq`cb_help within w_rp_assetdepr
  152. boolean visible = false
  153. integer x = 1938
  154. integer y = 572
  155. end type
  156. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_assetdepr
  157. end type
  158. type gb_1 from w_publ_easyq`gb_1 within w_rp_assetdepr
  159. end type
  160. type ln_bar from w_publ_easyq`ln_bar within w_rp_assetdepr
  161. end type
  162. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_assetdepr
  163. end type
  164. type r_bar from w_publ_easyq`r_bar within w_rp_assetdepr
  165. end type
  166. type ln_1 from w_publ_easyq`ln_1 within w_rp_assetdepr
  167. end type
  168. type ln_2 from w_publ_easyq`ln_2 within w_rp_assetdepr
  169. end type
  170. type ln_3 from w_publ_easyq`ln_3 within w_rp_assetdepr
  171. boolean visible = false
  172. end type
  173. type ln_4 from w_publ_easyq`ln_4 within w_rp_assetdepr
  174. boolean visible = false
  175. end type
  176. type ddlb_1 from dropdownlistbox within w_rp_assetdepr
  177. integer x = 773
  178. integer y = 200
  179. integer width = 229
  180. integer height = 908
  181. integer taborder = 130
  182. boolean bringtotop = true
  183. integer textsize = -9
  184. integer weight = 400
  185. fontcharset fontcharset = gb2312charset!
  186. fontpitch fontpitch = variable!
  187. string facename = "宋体"
  188. long textcolor = 33554432
  189. boolean sorted = false
  190. boolean vscrollbar = true
  191. string item[] = {"1","2","3","4","5","6","7","8","9","10","11","12"}
  192. borderstyle borderstyle = stylelowered!
  193. end type
  194. event constructor;this.text=string(s_sys_accset.currmon)
  195. end event
  196. type ddlb_2 from dropdownlistbox within w_rp_assetdepr
  197. integer x = 1097
  198. integer y = 200
  199. integer width = 229
  200. integer height = 908
  201. integer taborder = 140
  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. boolean sorted = false
  210. boolean vscrollbar = true
  211. string item[] = {"1","2","3","4","5","6","7","8","9","10","11","12"}
  212. borderstyle borderstyle = stylelowered!
  213. end type
  214. event constructor;this.text=string(s_sys_accset.currmon)
  215. end event
  216. event selectionchanged;if long(ddlb_2.text)<long(ddlb_1.text) then
  217. ddlb_1.text=ddlb_2.text
  218. end if
  219. end event
  220. type cbx_1 from checkbox within w_rp_assetdepr
  221. integer x = 1349
  222. integer y = 212
  223. integer width = 466
  224. integer height = 60
  225. boolean bringtotop = true
  226. integer textsize = -9
  227. integer weight = 400
  228. fontcharset fontcharset = gb2312charset!
  229. fontpitch fontpitch = variable!
  230. string facename = "宋体"
  231. long textcolor = 33554432
  232. long backcolor = 67108864
  233. string text = "显示已清理资产"
  234. end type
  235. event clicked;cb_1.triggerevent(clicked!)
  236. end event
  237. type st_1 from statictext within w_rp_assetdepr
  238. integer x = 498
  239. integer y = 216
  240. integer width = 288
  241. integer height = 48
  242. integer textsize = -9
  243. integer weight = 400
  244. fontcharset fontcharset = gb2312charset!
  245. fontpitch fontpitch = variable!
  246. string facename = "宋体"
  247. long textcolor = 33554432
  248. long backcolor = 67108864
  249. string text = "会计期间:"
  250. alignment alignment = right!
  251. boolean focusrectangle = false
  252. end type