w_rp_assetdrp.srw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. $PBExportHeader$w_rp_assetdrp.srw
  2. forward
  3. global type w_rp_assetdrp from w_publ_easyq
  4. end type
  5. type ddlb_1 from dropdownlistbox within w_rp_assetdrp
  6. end type
  7. type cbx_1 from checkbox within w_rp_assetdrp
  8. end type
  9. type ddlb_3 from dropdownlistbox within w_rp_assetdrp
  10. end type
  11. end forward
  12. global type w_rp_assetdrp from w_publ_easyq
  13. integer width = 3502
  14. integer height = 2200
  15. string title = "固定资产折旧表"
  16. long backcolor = 80269524
  17. ddlb_1 ddlb_1
  18. cbx_1 cbx_1
  19. ddlb_3 ddlb_3
  20. end type
  21. global w_rp_assetdrp w_rp_assetdrp
  22. type variables
  23. int cur_clearflag = 0
  24. end variables
  25. on w_rp_assetdrp.create
  26. int iCurrent
  27. call super::create
  28. this.ddlb_1=create ddlb_1
  29. this.cbx_1=create cbx_1
  30. this.ddlb_3=create ddlb_3
  31. iCurrent=UpperBound(this.Control)
  32. this.Control[iCurrent+1]=this.ddlb_1
  33. this.Control[iCurrent+2]=this.cbx_1
  34. this.Control[iCurrent+3]=this.ddlb_3
  35. end on
  36. on w_rp_assetdrp.destroy
  37. call super::destroy
  38. destroy(this.ddlb_1)
  39. destroy(this.cbx_1)
  40. destroy(this.ddlb_3)
  41. end on
  42. event open;this.triggerevent('ue_before_open')
  43. wf_movetocenter()
  44. dw_1.SetTransObject (sqlca)
  45. dw_1.RBUTTON_FILTER_USE=true //右键查询功能开关
  46. IF TRIM(DW_1.DATAOBJECT)<>'' THEN
  47. DW_1.OBJECT.DataWindow.PRINT.MARGIN.TOP=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_TOP", "110"))
  48. DW_1.OBJECT.DataWindow.PRINT.MARGIN.LEFT=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_LEFT", "96" ))
  49. DW_1.OBJECT.DataWindow.PRINT.MARGIN.bottom=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_BOTTOM", "110"))
  50. DW_1.OBJECT.DataWindow.PRINT.MARGIN.right=INTEGER(ProfileString(sys_inifilename,DW_1.DATAOBJECT, "MARGIN_RIGHT", "96" ))
  51. end if
  52. cb_1.triggerevent(clicked!)
  53. end event
  54. event ue_before_open;call super::ue_before_open;if_ue_filter = TRUE
  55. if_ue_sort = TRUE
  56. if_ue_sentdataout = TRUE
  57. end event
  58. type cb_func from w_publ_easyq`cb_func within w_rp_assetdrp
  59. end type
  60. type cb_exit from w_publ_easyq`cb_exit within w_rp_assetdrp
  61. integer x = 965
  62. end type
  63. type cb_2 from w_publ_easyq`cb_2 within w_rp_assetdrp
  64. integer taborder = 110
  65. boolean bringtotop = true
  66. end type
  67. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_assetdrp
  68. integer taborder = 90
  69. boolean bringtotop = true
  70. end type
  71. type cb_1 from w_publ_easyq`cb_1 within w_rp_assetdrp
  72. boolean bringtotop = true
  73. end type
  74. event cb_1::clicked;call super::clicked;long ls_cmonth
  75. int if_zero=1
  76. ls_cmonth=long(em_1.text) * 100 + long(ddlb_1.text)
  77. if cbx_1.checked then
  78. if_zero = -1
  79. end if
  80. dw_1.retrieve(sys_accsetid,ls_cmonth,if_zero,cur_clearflag)
  81. dw_1.object.month.text="会计期间:"+string(ls_cmonth)
  82. end event
  83. type st_3 from w_publ_easyq`st_3 within w_rp_assetdrp
  84. integer x = 0
  85. integer y = 204
  86. integer width = 288
  87. long backcolor = 67108864
  88. string text = "会计年度:"
  89. end type
  90. type st_4 from w_publ_easyq`st_4 within w_rp_assetdrp
  91. integer x = 517
  92. integer y = 204
  93. integer width = 288
  94. long backcolor = 67108864
  95. string text = "会计期间:"
  96. end type
  97. type em_1 from w_publ_easyq`em_1 within w_rp_assetdrp
  98. integer x = 288
  99. integer y = 188
  100. integer width = 219
  101. integer height = 92
  102. integer taborder = 120
  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_assetdrp
  108. boolean visible = false
  109. integer x = 1339
  110. integer y = 676
  111. integer width = 215
  112. integer height = 92
  113. integer taborder = 130
  114. string text = "1"
  115. alignment alignment = right!
  116. maskdatatype maskdatatype = decimalmask!
  117. string mask = "#"
  118. end type
  119. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_assetdrp
  120. integer x = 1403
  121. integer y = 40
  122. integer taborder = 70
  123. end type
  124. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_assetdrp
  125. integer x = 1157
  126. integer y = 40
  127. integer taborder = 80
  128. long backcolor = 67108864
  129. end type
  130. type dw_1 from w_publ_easyq`dw_1 within w_rp_assetdrp
  131. integer y = 300
  132. integer width = 2382
  133. string dataobject = "dw_rp_depr"
  134. end type
  135. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_assetdrp
  136. end type
  137. type sle_cust from w_publ_easyq`sle_cust within w_rp_assetdrp
  138. end type
  139. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_assetdrp
  140. end type
  141. type st_cust from w_publ_easyq`st_cust within w_rp_assetdrp
  142. end type
  143. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_assetdrp
  144. end type
  145. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_assetdrp
  146. boolean visible = false
  147. integer x = 2533
  148. integer y = 476
  149. end type
  150. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_assetdrp
  151. boolean visible = false
  152. integer x = 2537
  153. integer y = 592
  154. end type
  155. type pb_2 from w_publ_easyq`pb_2 within w_rp_assetdrp
  156. boolean visible = false
  157. integer x = 2647
  158. integer y = 592
  159. end type
  160. type cb_help from w_publ_easyq`cb_help within w_rp_assetdrp
  161. boolean visible = false
  162. integer x = 2523
  163. integer y = 460
  164. end type
  165. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_assetdrp
  166. end type
  167. type gb_1 from w_publ_easyq`gb_1 within w_rp_assetdrp
  168. end type
  169. type ln_bar from w_publ_easyq`ln_bar within w_rp_assetdrp
  170. end type
  171. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_assetdrp
  172. end type
  173. type r_bar from w_publ_easyq`r_bar within w_rp_assetdrp
  174. end type
  175. type ln_1 from w_publ_easyq`ln_1 within w_rp_assetdrp
  176. end type
  177. type ln_2 from w_publ_easyq`ln_2 within w_rp_assetdrp
  178. end type
  179. type ln_3 from w_publ_easyq`ln_3 within w_rp_assetdrp
  180. boolean visible = false
  181. end type
  182. type ln_4 from w_publ_easyq`ln_4 within w_rp_assetdrp
  183. boolean visible = false
  184. end type
  185. type ddlb_1 from dropdownlistbox within w_rp_assetdrp
  186. integer x = 791
  187. integer y = 196
  188. integer width = 247
  189. integer height = 1016
  190. integer taborder = 50
  191. boolean bringtotop = true
  192. integer textsize = -9
  193. integer weight = 400
  194. fontcharset fontcharset = gb2312charset!
  195. fontpitch fontpitch = variable!
  196. string facename = "宋体"
  197. long textcolor = 33554432
  198. boolean sorted = false
  199. boolean vscrollbar = true
  200. string item[] = {"1","2","3","4","5","6","7","8","9","10","11","12"}
  201. borderstyle borderstyle = stylelowered!
  202. end type
  203. event constructor;this.text=string(s_sys_accset.currmon)
  204. end event
  205. event selectionchanged;cb_1.TriggerEvent(Clicked!)
  206. end event
  207. type cbx_1 from checkbox within w_rp_assetdrp
  208. integer x = 1047
  209. integer y = 200
  210. integer width = 823
  211. integer height = 76
  212. boolean bringtotop = true
  213. integer textsize = -9
  214. integer weight = 400
  215. fontcharset fontcharset = gb2312charset!
  216. fontpitch fontpitch = variable!
  217. string facename = "宋体"
  218. long textcolor = 33554432
  219. long backcolor = 67108864
  220. string text = "包括本期折旧为零的固定资产"
  221. boolean checked = true
  222. end type
  223. type ddlb_3 from dropdownlistbox within w_rp_assetdrp
  224. integer x = 1861
  225. integer y = 196
  226. integer width = 338
  227. integer height = 708
  228. integer taborder = 140
  229. boolean bringtotop = true
  230. integer textsize = -9
  231. integer weight = 400
  232. fontcharset fontcharset = gb2312charset!
  233. fontpitch fontpitch = variable!
  234. string facename = "宋体"
  235. long textcolor = 33554432
  236. string text = "正常"
  237. boolean sorted = false
  238. boolean vscrollbar = true
  239. string item[] = {"正常","已清理","全部"}
  240. borderstyle borderstyle = stylelowered!
  241. end type
  242. event selectionchanged;IF Index = 1 THEN
  243. cur_clearflag = 0
  244. ELSEIF Index = 2 THEN
  245. cur_clearflag = 1
  246. ELSEIF Index = 3 THEN
  247. cur_clearflag = -1
  248. END IF
  249. cb_1.TriggerEvent(Clicked!)
  250. end event