w_rp_assetcard.srw 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. $PBExportHeader$w_rp_assetcard.srw
  2. forward
  3. global type w_rp_assetcard from w_publ_easyq
  4. end type
  5. type ddlb_1 from dropdownlistbox within w_rp_assetcard
  6. end type
  7. type ddlb_2 from dropdownlistbox within w_rp_assetcard
  8. end type
  9. end forward
  10. global type w_rp_assetcard from w_publ_easyq
  11. integer width = 3502
  12. integer height = 2200
  13. string title = "固定资产清单"
  14. long backcolor = 80269524
  15. ddlb_1 ddlb_1
  16. ddlb_2 ddlb_2
  17. end type
  18. global w_rp_assetcard w_rp_assetcard
  19. type variables
  20. int cur_clearflag = 0
  21. end variables
  22. on w_rp_assetcard.create
  23. int iCurrent
  24. call super::create
  25. this.ddlb_1=create ddlb_1
  26. this.ddlb_2=create ddlb_2
  27. iCurrent=UpperBound(this.Control)
  28. this.Control[iCurrent+1]=this.ddlb_1
  29. this.Control[iCurrent+2]=this.ddlb_2
  30. end on
  31. on w_rp_assetcard.destroy
  32. call super::destroy
  33. destroy(this.ddlb_1)
  34. destroy(this.ddlb_2)
  35. end on
  36. event open;call super::open;cb_1.triggerevent(clicked!)
  37. end event
  38. event ue_before_open;call super::ue_before_open;if_ue_filter = TRUE
  39. if_ue_sort = TRUE
  40. if_ue_sentdataout = TRUE
  41. end event
  42. type cb_func from w_publ_easyq`cb_func within w_rp_assetcard
  43. end type
  44. type cb_exit from w_publ_easyq`cb_exit within w_rp_assetcard
  45. end type
  46. type cb_2 from w_publ_easyq`cb_2 within w_rp_assetcard
  47. integer taborder = 110
  48. boolean bringtotop = true
  49. end type
  50. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_assetcard
  51. integer taborder = 90
  52. boolean bringtotop = true
  53. end type
  54. type cb_1 from w_publ_easyq`cb_1 within w_rp_assetcard
  55. boolean bringtotop = true
  56. end type
  57. event cb_1::clicked;call super::clicked;dw_1.retrieve(sys_accsetid,cur_clearflag,sys_curyearmon)
  58. end event
  59. type st_3 from w_publ_easyq`st_3 within w_rp_assetcard
  60. boolean visible = false
  61. integer x = 539
  62. integer y = 536
  63. end type
  64. type st_4 from w_publ_easyq`st_4 within w_rp_assetcard
  65. boolean visible = false
  66. integer x = 1129
  67. integer y = 572
  68. end type
  69. type em_1 from w_publ_easyq`em_1 within w_rp_assetcard
  70. boolean visible = false
  71. integer x = 750
  72. integer y = 512
  73. integer taborder = 120
  74. end type
  75. type em_2 from w_publ_easyq`em_2 within w_rp_assetcard
  76. boolean visible = false
  77. integer x = 1248
  78. integer y = 608
  79. integer taborder = 130
  80. end type
  81. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_assetcard
  82. integer y = 48
  83. end type
  84. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_assetcard
  85. integer y = 52
  86. long backcolor = 67108864
  87. end type
  88. type dw_1 from w_publ_easyq`dw_1 within w_rp_assetcard
  89. integer y = 300
  90. integer width = 3154
  91. integer height = 1364
  92. string dataobject = "dw_rp_assetcard"
  93. end type
  94. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_assetcard
  95. end type
  96. type sle_cust from w_publ_easyq`sle_cust within w_rp_assetcard
  97. end type
  98. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_assetcard
  99. end type
  100. type st_cust from w_publ_easyq`st_cust within w_rp_assetcard
  101. end type
  102. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_assetcard
  103. integer x = 2651
  104. integer y = 80
  105. end type
  106. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_assetcard
  107. boolean visible = false
  108. integer x = 1426
  109. integer y = 564
  110. end type
  111. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_assetcard
  112. boolean visible = false
  113. integer x = 2039
  114. integer y = 564
  115. end type
  116. type pb_2 from w_publ_easyq`pb_2 within w_rp_assetcard
  117. boolean visible = false
  118. integer x = 2149
  119. integer y = 564
  120. end type
  121. type cb_help from w_publ_easyq`cb_help within w_rp_assetcard
  122. end type
  123. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_assetcard
  124. end type
  125. type gb_1 from w_publ_easyq`gb_1 within w_rp_assetcard
  126. end type
  127. type ln_bar from w_publ_easyq`ln_bar within w_rp_assetcard
  128. end type
  129. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_assetcard
  130. end type
  131. type r_bar from w_publ_easyq`r_bar within w_rp_assetcard
  132. end type
  133. type ln_1 from w_publ_easyq`ln_1 within w_rp_assetcard
  134. end type
  135. type ln_2 from w_publ_easyq`ln_2 within w_rp_assetcard
  136. end type
  137. type ln_3 from w_publ_easyq`ln_3 within w_rp_assetcard
  138. boolean visible = false
  139. end type
  140. type ln_4 from w_publ_easyq`ln_4 within w_rp_assetcard
  141. boolean visible = false
  142. end type
  143. type ddlb_1 from dropdownlistbox within w_rp_assetcard
  144. integer x = 18
  145. integer y = 196
  146. integer width = 370
  147. integer height = 708
  148. integer taborder = 80
  149. boolean bringtotop = true
  150. integer textsize = -9
  151. integer weight = 400
  152. fontcharset fontcharset = gb2312charset!
  153. fontpitch fontpitch = variable!
  154. string facename = "宋体"
  155. long textcolor = 33554432
  156. string text = "正常"
  157. boolean sorted = false
  158. boolean vscrollbar = true
  159. string item[] = {"正常","已清理","全部"}
  160. borderstyle borderstyle = stylelowered!
  161. end type
  162. event selectionchanged;IF Index = 1 THEN
  163. cur_clearflag = 0
  164. ELSEIF Index = 2 THEN
  165. cur_clearflag = 1
  166. ELSEIF Index = 3 THEN
  167. cur_clearflag = -1
  168. END IF
  169. cb_1.TriggerEvent(clicked!)
  170. end event
  171. type ddlb_2 from dropdownlistbox within w_rp_assetcard
  172. integer x = 389
  173. integer y = 196
  174. integer width = 320
  175. integer height = 240
  176. integer taborder = 70
  177. boolean bringtotop = true
  178. integer textsize = -9
  179. integer weight = 400
  180. fontcharset fontcharset = gb2312charset!
  181. fontpitch fontpitch = variable!
  182. string facename = "宋体"
  183. long textcolor = 33554432
  184. string text = "明细表"
  185. boolean vscrollbar = true
  186. string item[] = {"明细表","汇总表"}
  187. borderstyle borderstyle = stylelowered!
  188. end type
  189. event selectionchanged;if this.text = '明细表' then
  190. dw_1.dataobject = 'dw_rp_assetcard'
  191. else
  192. dw_1.dataobject = 'dw_rp_assetcard_hz'
  193. end if
  194. dw_1.settransobject(sqlca)
  195. cb_1.triggerevent(clicked!)
  196. end event