w_rp_outware_gj_mx.srw 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. $PBExportHeader$w_rp_outware_gj_mx.srw
  2. forward
  3. global type w_rp_outware_gj_mx from w_publ_easyq
  4. end type
  5. type ddlb_flag from dropdownlistbox within w_rp_outware_gj_mx
  6. end type
  7. type ddlb_1 from uo_ddlb_storageid within w_rp_outware_gj_mx
  8. end type
  9. end forward
  10. global type w_rp_outware_gj_mx from w_publ_easyq
  11. string title = "扣费品单明细表"
  12. ddlb_flag ddlb_flag
  13. ddlb_1 ddlb_1
  14. end type
  15. global w_rp_outware_gj_mx w_rp_outware_gj_mx
  16. type variables
  17. Long cur_storageid_arr[]
  18. Long cur_flag = -1 //-1:全部,0仓库未审,1仓库已审核
  19. Long cur_secflag = -1 //-1:全部,0财务未审
  20. end variables
  21. on w_rp_outware_gj_mx.create
  22. int iCurrent
  23. call super::create
  24. this.ddlb_flag=create ddlb_flag
  25. this.ddlb_1=create ddlb_1
  26. iCurrent=UpperBound(this.Control)
  27. this.Control[iCurrent+1]=this.ddlb_flag
  28. this.Control[iCurrent+2]=this.ddlb_1
  29. end on
  30. on w_rp_outware_gj_mx.destroy
  31. call super::destroy
  32. destroy(this.ddlb_flag)
  33. destroy(this.ddlb_1)
  34. end on
  35. event open;call super::open;EM_1.TEXT=string(today(),'yyyy-mm')+'-01'
  36. EM_2.TEXT=STRING(TODAY(),'YYYY-MM-DD')
  37. //s_hide_col s_col
  38. //s_col.col_1 = 'u_outwaremx_costamt'
  39. //s_col.col_2 = 'gfamt'
  40. //f_hide_col(490,dw_1,s_col)
  41. IF cbx_loginretr.Checked THEN
  42. cb_1.TriggerEvent(Clicked!)
  43. END IF
  44. end event
  45. event ue_before_open;call super::ue_before_open;if_ue_retr=true
  46. if_ue_filter=true
  47. if_ue_sort=true
  48. if_ue_sentdataout=true
  49. end event
  50. type cb_func from w_publ_easyq`cb_func within w_rp_outware_gj_mx
  51. end type
  52. type cb_exit from w_publ_easyq`cb_exit within w_rp_outware_gj_mx
  53. end type
  54. type cb_2 from w_publ_easyq`cb_2 within w_rp_outware_gj_mx
  55. integer taborder = 120
  56. boolean bringtotop = true
  57. end type
  58. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_outware_gj_mx
  59. boolean bringtotop = true
  60. end type
  61. type cb_1 from w_publ_easyq`cb_1 within w_rp_outware_gj_mx
  62. boolean bringtotop = true
  63. end type
  64. event cb_1::clicked;DateTime first_date,end_date
  65. first_date = DateTime(Date(em_1.Text),Time(0))
  66. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  67. IF first_date < sys_showsaledata_mindt THEN first_date = sys_showsaledata_mindt
  68. dw_1.Retrieve(first_date,end_date,cur_flag,cur_secflag,cur_storageid_arr)
  69. end event
  70. type st_3 from w_publ_easyq`st_3 within w_rp_outware_gj_mx
  71. integer x = 695
  72. end type
  73. type st_4 from w_publ_easyq`st_4 within w_rp_outware_gj_mx
  74. integer x = 1449
  75. integer y = 204
  76. end type
  77. type em_1 from w_publ_easyq`em_1 within w_rp_outware_gj_mx
  78. integer x = 914
  79. integer taborder = 130
  80. end type
  81. type em_2 from w_publ_easyq`em_2 within w_rp_outware_gj_mx
  82. integer x = 1559
  83. integer taborder = 140
  84. end type
  85. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_outware_gj_mx
  86. integer x = 1527
  87. integer y = 12
  88. end type
  89. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_outware_gj_mx
  90. integer y = 16
  91. end type
  92. type dw_1 from w_publ_easyq`dw_1 within w_rp_outware_gj_mx
  93. integer y = 304
  94. integer width = 2743
  95. integer height = 928
  96. string dataobject = "dw_rp_outware_gj_mx"
  97. end type
  98. event dw_1::doubleclicked;call super::doubleclicked;IF row > 0 THEN
  99. String ls_code
  100. Long ll_scid
  101. ll_scid = THIS.Object.u_outware_scid[row]
  102. ls_code = THIS.Object.u_outware_outwarecode[row]
  103. f_open_win(ll_scid,ls_code)
  104. END IF
  105. end event
  106. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_outware_gj_mx
  107. end type
  108. type sle_cust from w_publ_easyq`sle_cust within w_rp_outware_gj_mx
  109. end type
  110. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_outware_gj_mx
  111. end type
  112. type st_cust from w_publ_easyq`st_cust within w_rp_outware_gj_mx
  113. end type
  114. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_outware_gj_mx
  115. boolean visible = true
  116. end type
  117. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_outware_gj_mx
  118. integer x = 1330
  119. integer y = 188
  120. end type
  121. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_outware_gj_mx
  122. integer x = 1979
  123. integer y = 188
  124. end type
  125. type pb_2 from w_publ_easyq`pb_2 within w_rp_outware_gj_mx
  126. integer x = 2085
  127. integer y = 188
  128. end type
  129. type cb_help from w_publ_easyq`cb_help within w_rp_outware_gj_mx
  130. end type
  131. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_outware_gj_mx
  132. end type
  133. type gb_1 from w_publ_easyq`gb_1 within w_rp_outware_gj_mx
  134. end type
  135. type ln_bar from w_publ_easyq`ln_bar within w_rp_outware_gj_mx
  136. end type
  137. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_outware_gj_mx
  138. end type
  139. type r_bar from w_publ_easyq`r_bar within w_rp_outware_gj_mx
  140. end type
  141. type ln_1 from w_publ_easyq`ln_1 within w_rp_outware_gj_mx
  142. end type
  143. type ln_2 from w_publ_easyq`ln_2 within w_rp_outware_gj_mx
  144. end type
  145. type ln_3 from w_publ_easyq`ln_3 within w_rp_outware_gj_mx
  146. end type
  147. type ln_4 from w_publ_easyq`ln_4 within w_rp_outware_gj_mx
  148. end type
  149. type ddlb_flag from dropdownlistbox within w_rp_outware_gj_mx
  150. integer x = 2231
  151. integer y = 192
  152. integer width = 379
  153. integer height = 484
  154. integer taborder = 90
  155. boolean bringtotop = true
  156. integer textsize = -9
  157. integer weight = 400
  158. fontcharset fontcharset = gb2312charset!
  159. fontpitch fontpitch = variable!
  160. string facename = "宋体"
  161. long textcolor = 33554432
  162. string text = "[全部]"
  163. boolean sorted = false
  164. boolean vscrollbar = true
  165. string item[] = {"[全部]","待仓库审核","待财务审核","审核完毕"}
  166. borderstyle borderstyle = stylelowered!
  167. end type
  168. event selectionchanged;if index=1 then
  169. cur_flag=-1
  170. cur_secflag= -1
  171. elseif index=2 then
  172. cur_flag= 0
  173. cur_secflag= -1
  174. elseif index=3 then
  175. cur_flag= 1
  176. cur_secflag= 0
  177. elseif index=4 then
  178. cur_flag= 1
  179. cur_secflag= 1
  180. end if
  181. cb_1.triggerevent(clicked!)
  182. end event
  183. type ddlb_1 from uo_ddlb_storageid within w_rp_outware_gj_mx
  184. integer x = 14
  185. integer y = 200
  186. integer width = 681
  187. integer height = 1108
  188. integer taborder = 140
  189. boolean bringtotop = true
  190. end type
  191. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  192. end event
  193. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  194. cb_1.triggerevent(clicked!)
  195. end event