w_rp_dismantle_install_mx.srw 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. $PBExportHeader$w_rp_dismantle_install_mx.srw
  2. forward
  3. global type w_rp_dismantle_install_mx from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_storageid within w_rp_dismantle_install_mx
  6. end type
  7. type ddlb_status from dropdownlistbox within w_rp_dismantle_install_mx
  8. end type
  9. type st_1 from statictext within w_rp_dismantle_install_mx
  10. end type
  11. type ddlb_billtype from dropdownlistbox within w_rp_dismantle_install_mx
  12. end type
  13. type st_2 from statictext within w_rp_dismantle_install_mx
  14. end type
  15. type st_5 from statictext within w_rp_dismantle_install_mx
  16. end type
  17. end forward
  18. global type w_rp_dismantle_install_mx from w_publ_easyq
  19. string title = "拆装单明细表"
  20. ddlb_2 ddlb_2
  21. ddlb_status ddlb_status
  22. st_1 st_1
  23. ddlb_billtype ddlb_billtype
  24. st_2 st_2
  25. st_5 st_5
  26. end type
  27. global w_rp_dismantle_install_mx w_rp_dismantle_install_mx
  28. type variables
  29. Long cur_storageid_arr[]
  30. Long cur_flag = -1
  31. Long cur_secflag = -1
  32. Long cur_billtype = -1
  33. end variables
  34. on w_rp_dismantle_install_mx.create
  35. int iCurrent
  36. call super::create
  37. this.ddlb_2=create ddlb_2
  38. this.ddlb_status=create ddlb_status
  39. this.st_1=create st_1
  40. this.ddlb_billtype=create ddlb_billtype
  41. this.st_2=create st_2
  42. this.st_5=create st_5
  43. iCurrent=UpperBound(this.Control)
  44. this.Control[iCurrent+1]=this.ddlb_2
  45. this.Control[iCurrent+2]=this.ddlb_status
  46. this.Control[iCurrent+3]=this.st_1
  47. this.Control[iCurrent+4]=this.ddlb_billtype
  48. this.Control[iCurrent+5]=this.st_2
  49. this.Control[iCurrent+6]=this.st_5
  50. end on
  51. on w_rp_dismantle_install_mx.destroy
  52. call super::destroy
  53. destroy(this.ddlb_2)
  54. destroy(this.ddlb_status)
  55. destroy(this.st_1)
  56. destroy(this.ddlb_billtype)
  57. destroy(this.st_2)
  58. destroy(this.st_5)
  59. end on
  60. event ue_before_openretrieve;call super::ue_before_openretrieve;s_hide_col s_col_mtrlsectype
  61. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  62. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  63. s_hide_col s_col_zxmtrlmode
  64. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  65. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  66. end event
  67. type cb_func from w_publ_easyq`cb_func within w_rp_dismantle_install_mx
  68. end type
  69. type cb_exit from w_publ_easyq`cb_exit within w_rp_dismantle_install_mx
  70. end type
  71. type cb_2 from w_publ_easyq`cb_2 within w_rp_dismantle_install_mx
  72. integer taborder = 100
  73. boolean bringtotop = true
  74. end type
  75. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_dismantle_install_mx
  76. boolean bringtotop = true
  77. end type
  78. type cb_1 from w_publ_easyq`cb_1 within w_rp_dismantle_install_mx
  79. boolean bringtotop = true
  80. end type
  81. event cb_1::clicked;DateTime first_date,end_date
  82. first_date = DateTime(Date(em_1.Text),Time(0))
  83. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  84. dw_1.Retrieve(cur_storageid_arr,first_date,end_date,cur_flag,cur_billtype)
  85. end event
  86. type st_3 from w_publ_easyq`st_3 within w_rp_dismantle_install_mx
  87. integer x = 2021
  88. end type
  89. type st_4 from w_publ_easyq`st_4 within w_rp_dismantle_install_mx
  90. integer x = 2725
  91. end type
  92. type em_1 from w_publ_easyq`em_1 within w_rp_dismantle_install_mx
  93. integer x = 2226
  94. integer taborder = 110
  95. end type
  96. type em_2 from w_publ_easyq`em_2 within w_rp_dismantle_install_mx
  97. integer x = 2821
  98. integer taborder = 120
  99. end type
  100. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_dismantle_install_mx
  101. integer x = 1577
  102. integer y = 8
  103. end type
  104. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_dismantle_install_mx
  105. integer x = 1367
  106. integer y = 8
  107. end type
  108. type dw_1 from w_publ_easyq`dw_1 within w_rp_dismantle_install_mx
  109. integer y = 300
  110. integer width = 2994
  111. integer height = 1512
  112. string dataobject = "dw_rp_dismantle_install_mx"
  113. end type
  114. event dw_1::doubleclicked;call super::doubleclicked;IF row > 0 THEN
  115. String ls_code
  116. Long ll_scid
  117. // int li_thflag
  118. ll_scid = THIS.Object.u_inware_scid[row]
  119. ls_code = THIS.Object.u_inware_inwarecode[row]
  120. // li_thflag = THIS.Object.u_inware_thflag[row]
  121. f_open_win(ll_scid,ls_code)
  122. END IF
  123. end event
  124. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_dismantle_install_mx
  125. end type
  126. type sle_cust from w_publ_easyq`sle_cust within w_rp_dismantle_install_mx
  127. end type
  128. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_dismantle_install_mx
  129. end type
  130. type st_cust from w_publ_easyq`st_cust within w_rp_dismantle_install_mx
  131. end type
  132. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_dismantle_install_mx
  133. boolean visible = true
  134. integer x = 1367
  135. end type
  136. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_dismantle_install_mx
  137. integer x = 2638
  138. end type
  139. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_dismantle_install_mx
  140. integer x = 3232
  141. end type
  142. type pb_2 from w_publ_easyq`pb_2 within w_rp_dismantle_install_mx
  143. integer x = 3342
  144. end type
  145. type cb_help from w_publ_easyq`cb_help within w_rp_dismantle_install_mx
  146. end type
  147. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_dismantle_install_mx
  148. end type
  149. type gb_1 from w_publ_easyq`gb_1 within w_rp_dismantle_install_mx
  150. end type
  151. type ln_bar from w_publ_easyq`ln_bar within w_rp_dismantle_install_mx
  152. end type
  153. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_dismantle_install_mx
  154. end type
  155. type r_bar from w_publ_easyq`r_bar within w_rp_dismantle_install_mx
  156. end type
  157. type ln_1 from w_publ_easyq`ln_1 within w_rp_dismantle_install_mx
  158. end type
  159. type ln_2 from w_publ_easyq`ln_2 within w_rp_dismantle_install_mx
  160. end type
  161. type ln_3 from w_publ_easyq`ln_3 within w_rp_dismantle_install_mx
  162. end type
  163. type ln_4 from w_publ_easyq`ln_4 within w_rp_dismantle_install_mx
  164. end type
  165. type ddlb_2 from uo_ddlb_storageid within w_rp_dismantle_install_mx
  166. integer x = 187
  167. integer y = 208
  168. integer width = 681
  169. integer height = 1108
  170. integer taborder = 40
  171. boolean bringtotop = true
  172. end type
  173. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  174. end event
  175. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  176. cb_1.triggerevent(clicked!)
  177. end event
  178. type ddlb_status from dropdownlistbox within w_rp_dismantle_install_mx
  179. integer x = 1609
  180. integer y = 196
  181. integer width = 384
  182. integer height = 556
  183. integer taborder = 70
  184. boolean bringtotop = true
  185. integer textsize = -9
  186. integer weight = 400
  187. fontcharset fontcharset = gb2312charset!
  188. fontpitch fontpitch = variable!
  189. string facename = "宋体"
  190. long textcolor = 33554432
  191. string text = "[全部]"
  192. boolean sorted = false
  193. string item[] = {"[全部]","待审核","已审核"}
  194. borderstyle borderstyle = stylelowered!
  195. end type
  196. event selectionchanged;IF Index = 1 THEN
  197. cur_flag = -1
  198. ELSEIF Index = 2 THEN
  199. cur_flag = 0
  200. ELSEIF Index = 3 THEN
  201. cur_flag = 1
  202. END IF
  203. cb_1.TriggerEvent(clicked!)
  204. end event
  205. type st_1 from statictext within w_rp_dismantle_install_mx
  206. integer x = 873
  207. integer y = 208
  208. integer width = 169
  209. integer height = 48
  210. boolean bringtotop = true
  211. integer textsize = -9
  212. integer weight = 400
  213. fontcharset fontcharset = gb2312charset!
  214. fontpitch fontpitch = variable!
  215. string facename = "宋体"
  216. long textcolor = 33554432
  217. long backcolor = 134217739
  218. string text = "类型:"
  219. alignment alignment = right!
  220. boolean focusrectangle = false
  221. end type
  222. type ddlb_billtype from dropdownlistbox within w_rp_dismantle_install_mx
  223. integer x = 1065
  224. integer y = 196
  225. integer width = 379
  226. integer height = 300
  227. integer taborder = 50
  228. boolean bringtotop = true
  229. integer textsize = -9
  230. integer weight = 400
  231. fontcharset fontcharset = gb2312charset!
  232. fontpitch fontpitch = variable!
  233. string facename = "宋体"
  234. long textcolor = 33554432
  235. string text = "[全部]"
  236. string item[] = {"[全部]","装","拆"}
  237. borderstyle borderstyle = stylelowered!
  238. end type
  239. event selectionchanged;if this.text='[全部]' then
  240. cur_billtype=-1
  241. elseif this.text='装' then
  242. cur_billtype=0
  243. elseif this.text='拆' then
  244. cur_billtype=1
  245. end if
  246. cb_1.triggerevent(clicked!)
  247. end event
  248. type st_2 from statictext within w_rp_dismantle_install_mx
  249. integer x = 5
  250. integer y = 208
  251. integer width = 146
  252. integer height = 48
  253. boolean bringtotop = true
  254. integer textsize = -9
  255. integer weight = 400
  256. fontcharset fontcharset = gb2312charset!
  257. fontpitch fontpitch = variable!
  258. string facename = "宋体"
  259. long textcolor = 33554432
  260. long backcolor = 134217739
  261. string text = "仓库"
  262. alignment alignment = right!
  263. boolean focusrectangle = false
  264. end type
  265. type st_5 from statictext within w_rp_dismantle_install_mx
  266. integer x = 1458
  267. integer y = 212
  268. integer width = 128
  269. integer height = 48
  270. boolean bringtotop = true
  271. integer textsize = -9
  272. integer weight = 400
  273. fontcharset fontcharset = gb2312charset!
  274. fontpitch fontpitch = variable!
  275. string facename = "宋体"
  276. long textcolor = 33554432
  277. long backcolor = 134217739
  278. string text = "状态"
  279. alignment alignment = right!
  280. boolean focusrectangle = false
  281. end type