w_rp_mtrlware_pzcode_trans.srw 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. $PBExportHeader$w_rp_mtrlware_pzcode_trans.srw
  2. forward
  3. global type w_rp_mtrlware_pzcode_trans from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_storageid within w_rp_mtrlware_pzcode_trans
  6. end type
  7. type ddlb_status from dropdownlistbox within w_rp_mtrlware_pzcode_trans
  8. end type
  9. end forward
  10. global type w_rp_mtrlware_pzcode_trans from w_publ_easyq
  11. string title = "库存配置调整单统计表"
  12. ddlb_2 ddlb_2
  13. ddlb_status ddlb_status
  14. end type
  15. global w_rp_mtrlware_pzcode_trans w_rp_mtrlware_pzcode_trans
  16. type variables
  17. Long cur_storageid_arr[]
  18. Long cur_flag = -1
  19. Long cur_secflag = -1
  20. end variables
  21. forward prototypes
  22. public function integer wf_hide_col ()
  23. end prototypes
  24. public function integer wf_hide_col ();s_hide_col s_col
  25. s_col.col_1 = 'u_mtrlware_transmx_fprice'
  26. s_col.col_2 = 'amt'
  27. //f_hide_col(121,dw_1,s_col)
  28. f_hide_col(1449,dw_1,s_col)
  29. s_hide_col s_col_mtrlsectype
  30. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  31. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  32. s_hide_col s_col_zxmtrlmode
  33. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  34. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  35. RETURN 1
  36. end function
  37. on w_rp_mtrlware_pzcode_trans.create
  38. int iCurrent
  39. call super::create
  40. this.ddlb_2=create ddlb_2
  41. this.ddlb_status=create ddlb_status
  42. iCurrent=UpperBound(this.Control)
  43. this.Control[iCurrent+1]=this.ddlb_2
  44. this.Control[iCurrent+2]=this.ddlb_status
  45. end on
  46. on w_rp_mtrlware_pzcode_trans.destroy
  47. call super::destroy
  48. destroy(this.ddlb_2)
  49. destroy(this.ddlb_status)
  50. end on
  51. event ue_before_openretrieve;call super::ue_before_openretrieve;wf_hide_col()
  52. end event
  53. type cb_func from w_publ_easyq`cb_func within w_rp_mtrlware_pzcode_trans
  54. end type
  55. type cb_exit from w_publ_easyq`cb_exit within w_rp_mtrlware_pzcode_trans
  56. end type
  57. type cb_2 from w_publ_easyq`cb_2 within w_rp_mtrlware_pzcode_trans
  58. integer taborder = 100
  59. boolean bringtotop = true
  60. end type
  61. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_mtrlware_pzcode_trans
  62. boolean bringtotop = true
  63. end type
  64. type cb_1 from w_publ_easyq`cb_1 within w_rp_mtrlware_pzcode_trans
  65. boolean bringtotop = true
  66. end type
  67. event cb_1::clicked;DateTime first_date,end_date
  68. first_date = DateTime(Date(em_1.Text),Time(0))
  69. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  70. dw_1.Retrieve(cur_storageid_arr,first_date,end_date,cur_flag)
  71. end event
  72. type st_3 from w_publ_easyq`st_3 within w_rp_mtrlware_pzcode_trans
  73. integer x = 695
  74. integer y = 216
  75. end type
  76. type st_4 from w_publ_easyq`st_4 within w_rp_mtrlware_pzcode_trans
  77. integer x = 1422
  78. integer y = 216
  79. end type
  80. type em_1 from w_publ_easyq`em_1 within w_rp_mtrlware_pzcode_trans
  81. integer x = 901
  82. integer y = 200
  83. integer taborder = 110
  84. end type
  85. type em_2 from w_publ_easyq`em_2 within w_rp_mtrlware_pzcode_trans
  86. integer x = 1527
  87. integer y = 200
  88. integer taborder = 120
  89. end type
  90. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_mtrlware_pzcode_trans
  91. integer x = 1614
  92. integer y = 8
  93. end type
  94. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_mtrlware_pzcode_trans
  95. integer x = 1394
  96. integer y = 8
  97. end type
  98. type dw_1 from w_publ_easyq`dw_1 within w_rp_mtrlware_pzcode_trans
  99. integer y = 308
  100. integer width = 2994
  101. integer height = 940
  102. string dataobject = "dw_rp_mtrlware_pzcode_trans"
  103. end type
  104. event dw_1::doubleclicked;call super::doubleclicked;IF row > 0 THEN
  105. String ls_code
  106. Long ll_scid
  107. // int li_thflag
  108. ll_scid = THIS.Object.u_inware_scid[row]
  109. ls_code = THIS.Object.u_inware_inwarecode[row]
  110. // li_thflag = THIS.Object.u_inware_thflag[row]
  111. f_open_win(ll_scid,ls_code)
  112. END IF
  113. end event
  114. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_mtrlware_pzcode_trans
  115. end type
  116. type sle_cust from w_publ_easyq`sle_cust within w_rp_mtrlware_pzcode_trans
  117. end type
  118. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_mtrlware_pzcode_trans
  119. end type
  120. type st_cust from w_publ_easyq`st_cust within w_rp_mtrlware_pzcode_trans
  121. end type
  122. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_mtrlware_pzcode_trans
  123. boolean visible = true
  124. integer x = 1394
  125. end type
  126. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_mtrlware_pzcode_trans
  127. integer x = 1312
  128. integer y = 196
  129. end type
  130. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_mtrlware_pzcode_trans
  131. integer x = 1938
  132. end type
  133. type pb_2 from w_publ_easyq`pb_2 within w_rp_mtrlware_pzcode_trans
  134. integer x = 2048
  135. end type
  136. type cb_help from w_publ_easyq`cb_help within w_rp_mtrlware_pzcode_trans
  137. end type
  138. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_mtrlware_pzcode_trans
  139. end type
  140. type gb_1 from w_publ_easyq`gb_1 within w_rp_mtrlware_pzcode_trans
  141. end type
  142. type ln_bar from w_publ_easyq`ln_bar within w_rp_mtrlware_pzcode_trans
  143. end type
  144. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_mtrlware_pzcode_trans
  145. end type
  146. type r_bar from w_publ_easyq`r_bar within w_rp_mtrlware_pzcode_trans
  147. end type
  148. type ln_1 from w_publ_easyq`ln_1 within w_rp_mtrlware_pzcode_trans
  149. end type
  150. type ln_2 from w_publ_easyq`ln_2 within w_rp_mtrlware_pzcode_trans
  151. end type
  152. type ln_3 from w_publ_easyq`ln_3 within w_rp_mtrlware_pzcode_trans
  153. end type
  154. type ln_4 from w_publ_easyq`ln_4 within w_rp_mtrlware_pzcode_trans
  155. end type
  156. type ddlb_2 from uo_ddlb_storageid within w_rp_mtrlware_pzcode_trans
  157. integer x = 14
  158. integer y = 208
  159. integer width = 681
  160. integer height = 1108
  161. integer taborder = 40
  162. boolean bringtotop = true
  163. end type
  164. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  165. end event
  166. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  167. cb_1.triggerevent(clicked!)
  168. end event
  169. type ddlb_status from dropdownlistbox within w_rp_mtrlware_pzcode_trans
  170. integer x = 2167
  171. integer y = 196
  172. integer width = 384
  173. integer height = 556
  174. integer taborder = 70
  175. boolean bringtotop = true
  176. integer textsize = -9
  177. integer weight = 400
  178. fontcharset fontcharset = gb2312charset!
  179. fontpitch fontpitch = variable!
  180. string facename = "宋体"
  181. long textcolor = 33554432
  182. string text = "[全部]"
  183. boolean sorted = false
  184. string item[] = {"[全部]","待审核","已审核"}
  185. borderstyle borderstyle = stylelowered!
  186. end type
  187. event selectionchanged;IF Index = 1 THEN
  188. cur_flag = -1
  189. ELSEIF Index = 2 THEN
  190. cur_flag = 0
  191. ELSEIF Index = 3 THEN
  192. cur_flag = 1
  193. END IF
  194. cb_1.TriggerEvent(clicked!)
  195. end event