w_rp_update_cost_mx.srw 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. $PBExportHeader$w_rp_update_cost_mx.srw
  2. forward
  3. global type w_rp_update_cost_mx from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_storageid within w_rp_update_cost_mx
  6. end type
  7. type ddlb_status from dropdownlistbox within w_rp_update_cost_mx
  8. end type
  9. type st_1 from statictext within w_rp_update_cost_mx
  10. end type
  11. type st_2 from statictext within w_rp_update_cost_mx
  12. end type
  13. end forward
  14. global type w_rp_update_cost_mx from w_publ_easyq
  15. string title = "成本价调整单明细表"
  16. ddlb_2 ddlb_2
  17. ddlb_status ddlb_status
  18. st_1 st_1
  19. st_2 st_2
  20. end type
  21. global w_rp_update_cost_mx w_rp_update_cost_mx
  22. type variables
  23. Long cur_storageid_arr[]
  24. Long cur_flag = -1
  25. Long cur_secflag = -1
  26. end variables
  27. on w_rp_update_cost_mx.create
  28. int iCurrent
  29. call super::create
  30. this.ddlb_2=create ddlb_2
  31. this.ddlb_status=create ddlb_status
  32. this.st_1=create st_1
  33. this.st_2=create st_2
  34. iCurrent=UpperBound(this.Control)
  35. this.Control[iCurrent+1]=this.ddlb_2
  36. this.Control[iCurrent+2]=this.ddlb_status
  37. this.Control[iCurrent+3]=this.st_1
  38. this.Control[iCurrent+4]=this.st_2
  39. end on
  40. on w_rp_update_cost_mx.destroy
  41. call super::destroy
  42. destroy(this.ddlb_2)
  43. destroy(this.ddlb_status)
  44. destroy(this.st_1)
  45. destroy(this.st_2)
  46. end on
  47. event ue_before_openretrieve;call super::ue_before_openretrieve;s_hide_col s_col_mtrlsectype
  48. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  49. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  50. s_hide_col s_col_zxmtrlmode
  51. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  52. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  53. end event
  54. type cb_func from w_publ_easyq`cb_func within w_rp_update_cost_mx
  55. end type
  56. type cb_exit from w_publ_easyq`cb_exit within w_rp_update_cost_mx
  57. end type
  58. type cb_2 from w_publ_easyq`cb_2 within w_rp_update_cost_mx
  59. integer taborder = 100
  60. boolean bringtotop = true
  61. end type
  62. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_update_cost_mx
  63. boolean bringtotop = true
  64. end type
  65. type cb_1 from w_publ_easyq`cb_1 within w_rp_update_cost_mx
  66. boolean bringtotop = true
  67. end type
  68. event cb_1::clicked;DateTime first_date,end_date
  69. first_date = DateTime(Date(em_1.Text),Time(0))
  70. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  71. dw_1.Retrieve(cur_storageid_arr,first_date,end_date,cur_flag)
  72. end event
  73. type st_3 from w_publ_easyq`st_3 within w_rp_update_cost_mx
  74. integer x = 1541
  75. end type
  76. type st_4 from w_publ_easyq`st_4 within w_rp_update_cost_mx
  77. integer x = 2281
  78. end type
  79. type em_1 from w_publ_easyq`em_1 within w_rp_update_cost_mx
  80. integer x = 1746
  81. integer taborder = 110
  82. end type
  83. type em_2 from w_publ_easyq`em_2 within w_rp_update_cost_mx
  84. integer x = 2386
  85. integer taborder = 120
  86. end type
  87. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_update_cost_mx
  88. integer x = 1691
  89. integer y = 4
  90. end type
  91. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_update_cost_mx
  92. integer x = 1481
  93. integer y = 4
  94. end type
  95. type dw_1 from w_publ_easyq`dw_1 within w_rp_update_cost_mx
  96. integer y = 300
  97. integer width = 2994
  98. integer height = 940
  99. string dataobject = "dw_rp_update_cost_mx"
  100. end type
  101. event dw_1::doubleclicked;call super::doubleclicked;IF row > 0 THEN
  102. String ls_code
  103. Long ll_scid
  104. ll_scid = THIS.Object.u_updatecost_scid[row]
  105. ls_code = THIS.Object.u_updatecost_warecode[row]
  106. f_open_win(ll_scid,ls_code)
  107. END IF
  108. end event
  109. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_update_cost_mx
  110. end type
  111. type sle_cust from w_publ_easyq`sle_cust within w_rp_update_cost_mx
  112. end type
  113. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_update_cost_mx
  114. end type
  115. type st_cust from w_publ_easyq`st_cust within w_rp_update_cost_mx
  116. end type
  117. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_update_cost_mx
  118. boolean visible = true
  119. integer x = 1481
  120. integer y = 100
  121. end type
  122. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_update_cost_mx
  123. integer x = 2158
  124. end type
  125. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_update_cost_mx
  126. integer x = 2811
  127. end type
  128. type pb_2 from w_publ_easyq`pb_2 within w_rp_update_cost_mx
  129. integer x = 2921
  130. end type
  131. type cb_help from w_publ_easyq`cb_help within w_rp_update_cost_mx
  132. end type
  133. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_update_cost_mx
  134. end type
  135. type gb_1 from w_publ_easyq`gb_1 within w_rp_update_cost_mx
  136. end type
  137. type ln_bar from w_publ_easyq`ln_bar within w_rp_update_cost_mx
  138. end type
  139. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_update_cost_mx
  140. end type
  141. type r_bar from w_publ_easyq`r_bar within w_rp_update_cost_mx
  142. end type
  143. type ln_1 from w_publ_easyq`ln_1 within w_rp_update_cost_mx
  144. end type
  145. type ln_2 from w_publ_easyq`ln_2 within w_rp_update_cost_mx
  146. end type
  147. type ln_3 from w_publ_easyq`ln_3 within w_rp_update_cost_mx
  148. end type
  149. type ln_4 from w_publ_easyq`ln_4 within w_rp_update_cost_mx
  150. end type
  151. type ddlb_2 from uo_ddlb_storageid within w_rp_update_cost_mx
  152. integer x = 169
  153. integer y = 192
  154. integer width = 681
  155. integer height = 1108
  156. integer taborder = 40
  157. boolean bringtotop = true
  158. end type
  159. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  160. end event
  161. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  162. cb_1.triggerevent(clicked!)
  163. end event
  164. type ddlb_status from dropdownlistbox within w_rp_update_cost_mx
  165. integer x = 1029
  166. integer y = 192
  167. integer width = 384
  168. integer height = 556
  169. integer taborder = 70
  170. boolean bringtotop = true
  171. integer textsize = -9
  172. integer weight = 400
  173. fontcharset fontcharset = gb2312charset!
  174. fontpitch fontpitch = variable!
  175. string facename = "宋体"
  176. long textcolor = 33554432
  177. string text = "[全部]"
  178. boolean sorted = false
  179. string item[] = {"[全部]","待审核","已审核"}
  180. borderstyle borderstyle = stylelowered!
  181. end type
  182. event selectionchanged;IF Index = 1 THEN
  183. cur_flag = -1
  184. ELSEIF Index = 2 THEN
  185. cur_flag = 0
  186. ELSEIF Index = 3 THEN
  187. cur_flag = 1
  188. END IF
  189. cb_1.TriggerEvent(clicked!)
  190. end event
  191. type st_1 from statictext within w_rp_update_cost_mx
  192. integer x = 5
  193. integer y = 208
  194. integer width = 146
  195. integer height = 48
  196. boolean bringtotop = true
  197. integer textsize = -9
  198. integer weight = 400
  199. fontcharset fontcharset = gb2312charset!
  200. fontpitch fontpitch = variable!
  201. string facename = "宋体"
  202. long textcolor = 33554432
  203. long backcolor = 134217739
  204. string text = "仓库"
  205. alignment alignment = right!
  206. boolean focusrectangle = false
  207. end type
  208. type st_2 from statictext within w_rp_update_cost_mx
  209. integer x = 878
  210. integer y = 212
  211. integer width = 128
  212. integer height = 48
  213. boolean bringtotop = true
  214. integer textsize = -9
  215. integer weight = 400
  216. fontcharset fontcharset = gb2312charset!
  217. fontpitch fontpitch = variable!
  218. string facename = "宋体"
  219. long textcolor = 33554432
  220. long backcolor = 134217739
  221. string text = "状态"
  222. alignment alignment = right!
  223. boolean focusrectangle = false
  224. end type