w_rp_outware_scll.srw 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. $PBExportHeader$w_rp_outware_scll.srw
  2. forward
  3. global type w_rp_outware_scll from w_publ_easyq
  4. end type
  5. type ddlb_storageid from uo_ddlb_storageid within w_rp_outware_scll
  6. end type
  7. type ddlb_rptype from dropdownlistbox within w_rp_outware_scll
  8. end type
  9. type ddlb_status from dropdownlistbox within w_rp_outware_scll
  10. end type
  11. type st_2 from statictext within w_rp_outware_scll
  12. end type
  13. type st_1 from statictext within w_rp_outware_scll
  14. end type
  15. end forward
  16. global type w_rp_outware_scll from w_publ_easyq
  17. integer x = 123
  18. string title = "生产领料统计表"
  19. ddlb_storageid ddlb_storageid
  20. ddlb_rptype ddlb_rptype
  21. ddlb_status ddlb_status
  22. st_2 st_2
  23. st_1 st_1
  24. end type
  25. global w_rp_outware_scll w_rp_outware_scll
  26. type variables
  27. Long cur_storageid_arr[]
  28. Long cur_flag = -1
  29. end variables
  30. forward prototypes
  31. public subroutine wf_hidecol ()
  32. end prototypes
  33. public subroutine wf_hidecol ();//IF Trim(THIS.Text) = "明细表" THEN
  34. // dw_1.DataObject = "dw_rp_outware_scll_mx"
  35. //ELSEIF Trim(THIS.Text) = "按工作中心汇总" THEN
  36. // dw_1.DataObject = "dw_rp_outware_scll_hz"
  37. //ELSEIF Trim(THIS.Text) = "按生产线汇总" THEN
  38. // dw_1.DataObject = "dw_rp_outware_scll_hz_bill"
  39. //END IF
  40. s_hide_col s_col,s_col2
  41. if dw_1.dataobject = 'dw_rp_outware_scll_mx' then
  42. s_col.col_1 = 'u_outwaremx_price'
  43. s_col.col_2 = 'amt'
  44. s_col.col_3 = 'cost'
  45. s_col.col_4 = 'u_outwaremx_costamt'
  46. s_col2.col_1 = 'planamt'
  47. s_col2.col_2 = 'u_mtrldef_planprice'
  48. elseif dw_1.dataobject = 'dw_rp_outware_scll_hz' then
  49. s_col.col_1 = 'costamt'
  50. s_col.col_2 = 'price'
  51. s_col2.col_1 = 'u_mtrldef_planprice'
  52. s_col2.col_2 = 'planamt'
  53. //elseif dw_1.dataobject = 'dw_rp_outware_sc_hz_order' then
  54. // s_col.col_1 = 'costamt'
  55. // s_col.col_2 = 'price'
  56. // s_col2.col_1 = 'u_mtrldef_planprice'
  57. // s_col2.col_2 = 'planamt'
  58. //elseif dw_1.dataobject = 'dw_rp_outware_sc_hz_not_order' then
  59. // s_col.col_1 = 'costamt'
  60. // s_col.col_2 = 'price'
  61. // s_col2.col_1 = 'u_mtrldef_planprice'
  62. // s_col2.col_2 = 'planamt'
  63. elseif dw_1.dataobject = 'dw_rp_outware_scll_hz_bill' then
  64. s_col.col_1 = 'costamt'
  65. s_col.col_2 = 'price'
  66. s_col2.col_1 = 'u_mtrldef_planprice'
  67. s_col2.col_2 = 'planamt'
  68. end if
  69. f_hide_col(490,dw_1,s_col)
  70. f_hide_col(1451,dw_1,s_col2)
  71. s_hide_col s_col_mtrlsectype
  72. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  73. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  74. s_hide_col s_col_zxmtrlmode
  75. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  76. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  77. return
  78. end subroutine
  79. on w_rp_outware_scll.create
  80. int iCurrent
  81. call super::create
  82. this.ddlb_storageid=create ddlb_storageid
  83. this.ddlb_rptype=create ddlb_rptype
  84. this.ddlb_status=create ddlb_status
  85. this.st_2=create st_2
  86. this.st_1=create st_1
  87. iCurrent=UpperBound(this.Control)
  88. this.Control[iCurrent+1]=this.ddlb_storageid
  89. this.Control[iCurrent+2]=this.ddlb_rptype
  90. this.Control[iCurrent+3]=this.ddlb_status
  91. this.Control[iCurrent+4]=this.st_2
  92. this.Control[iCurrent+5]=this.st_1
  93. end on
  94. on w_rp_outware_scll.destroy
  95. call super::destroy
  96. destroy(this.ddlb_storageid)
  97. destroy(this.ddlb_rptype)
  98. destroy(this.ddlb_status)
  99. destroy(this.st_2)
  100. destroy(this.st_1)
  101. end on
  102. type cb_func from w_publ_easyq`cb_func within w_rp_outware_scll
  103. end type
  104. type cb_exit from w_publ_easyq`cb_exit within w_rp_outware_scll
  105. end type
  106. type cb_2 from w_publ_easyq`cb_2 within w_rp_outware_scll
  107. boolean bringtotop = true
  108. end type
  109. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_outware_scll
  110. boolean bringtotop = true
  111. end type
  112. type cb_1 from w_publ_easyq`cb_1 within w_rp_outware_scll
  113. boolean bringtotop = true
  114. end type
  115. event cb_1::clicked;DateTime first_date,end_date
  116. first_date = DateTime(Date(em_1.Text),Time(0))
  117. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  118. //f_title_change(dw_1)
  119. dw_1.Retrieve(first_date,end_date,cur_flag,cur_storageid_arr)
  120. end event
  121. type st_3 from w_publ_easyq`st_3 within w_rp_outware_scll
  122. integer x = 1221
  123. integer y = 216
  124. end type
  125. type st_4 from w_publ_easyq`st_4 within w_rp_outware_scll
  126. integer x = 1957
  127. integer y = 216
  128. end type
  129. type em_1 from w_publ_easyq`em_1 within w_rp_outware_scll
  130. integer x = 1426
  131. integer y = 200
  132. integer taborder = 120
  133. end type
  134. type em_2 from w_publ_easyq`em_2 within w_rp_outware_scll
  135. integer x = 2062
  136. integer y = 200
  137. integer taborder = 130
  138. end type
  139. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_outware_scll
  140. integer x = 1609
  141. integer y = 8
  142. end type
  143. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_outware_scll
  144. integer x = 1399
  145. integer y = 8
  146. end type
  147. type dw_1 from w_publ_easyq`dw_1 within w_rp_outware_scll
  148. integer y = 308
  149. integer width = 2427
  150. string dataobject = "dw_rp_outware_scll_mx"
  151. end type
  152. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_outware_scll
  153. end type
  154. type sle_cust from w_publ_easyq`sle_cust within w_rp_outware_scll
  155. end type
  156. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_outware_scll
  157. end type
  158. type st_cust from w_publ_easyq`st_cust within w_rp_outware_scll
  159. end type
  160. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_outware_scll
  161. boolean visible = true
  162. integer x = 1399
  163. end type
  164. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_outware_scll
  165. integer x = 1842
  166. integer y = 188
  167. end type
  168. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_outware_scll
  169. integer x = 2473
  170. end type
  171. type pb_2 from w_publ_easyq`pb_2 within w_rp_outware_scll
  172. integer x = 2583
  173. end type
  174. type cb_help from w_publ_easyq`cb_help within w_rp_outware_scll
  175. end type
  176. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_outware_scll
  177. end type
  178. type gb_1 from w_publ_easyq`gb_1 within w_rp_outware_scll
  179. end type
  180. type ln_bar from w_publ_easyq`ln_bar within w_rp_outware_scll
  181. end type
  182. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_outware_scll
  183. end type
  184. type r_bar from w_publ_easyq`r_bar within w_rp_outware_scll
  185. end type
  186. type ln_1 from w_publ_easyq`ln_1 within w_rp_outware_scll
  187. end type
  188. type ln_2 from w_publ_easyq`ln_2 within w_rp_outware_scll
  189. end type
  190. type ln_3 from w_publ_easyq`ln_3 within w_rp_outware_scll
  191. boolean visible = false
  192. end type
  193. type ln_4 from w_publ_easyq`ln_4 within w_rp_outware_scll
  194. boolean visible = false
  195. end type
  196. type ddlb_storageid from uo_ddlb_storageid within w_rp_outware_scll
  197. integer x = 151
  198. integer y = 200
  199. integer width = 585
  200. integer height = 976
  201. integer taborder = 70
  202. boolean bringtotop = true
  203. end type
  204. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  205. end event
  206. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  207. cb_1.triggerevent(clicked!)
  208. end event
  209. type ddlb_rptype from dropdownlistbox within w_rp_outware_scll
  210. integer x = 1984
  211. integer y = 40
  212. integer width = 585
  213. integer height = 976
  214. integer taborder = 90
  215. boolean bringtotop = true
  216. integer textsize = -9
  217. integer weight = 400
  218. fontcharset fontcharset = gb2312charset!
  219. fontpitch fontpitch = variable!
  220. string facename = "宋体"
  221. long backcolor = 16777215
  222. string text = "明细表"
  223. boolean sorted = false
  224. boolean vscrollbar = true
  225. string item[] = {"明细表","按工作中心汇总","按生产线汇总"}
  226. borderstyle borderstyle = stylelowered!
  227. end type
  228. event selectionchanged;dw_1.uf_save_profile_layout()
  229. IF Trim(THIS.Text) = "明细表" THEN
  230. dw_1.DataObject = "dw_rp_outware_scll_mx"
  231. ELSEIF Trim(THIS.Text) = "按工作中心汇总" THEN
  232. dw_1.DataObject = "dw_rp_outware_scll_hz"
  233. ELSEIF Trim(THIS.Text) = "按生产线汇总" THEN
  234. dw_1.DataObject = "dw_rp_outware_scll_hz_bill"
  235. END IF
  236. wf_replacedw()
  237. //dw_1.SetTransObject(sqlca)
  238. //
  239. //dw_1.ins_INIfile_name = sys_inifilename
  240. //dw_1.ins_opemp = publ_operator
  241. //dw_1.cardw_empid = sys_empid
  242. //dw_1.cur_DataObject = dw_1.DataObject
  243. //
  244. //
  245. //dw_1.uf_read_profile_layout()
  246. //f_title_change(dw_1)
  247. //wf_hide_col()
  248. cb_1.TriggerEvent(Clicked!)
  249. end event
  250. type ddlb_status from dropdownlistbox within w_rp_outware_scll
  251. integer x = 905
  252. integer y = 196
  253. integer width = 325
  254. integer height = 976
  255. integer taborder = 80
  256. boolean bringtotop = true
  257. integer textsize = -9
  258. integer weight = 400
  259. fontcharset fontcharset = gb2312charset!
  260. fontpitch fontpitch = variable!
  261. string facename = "宋体"
  262. long textcolor = 33554432
  263. string text = "[全部]"
  264. boolean sorted = false
  265. string item[] = {"[全部]","待审核","已审核"}
  266. borderstyle borderstyle = stylelowered!
  267. end type
  268. event selectionchanged;IF Index = 1 THEN
  269. cur_flag = -1
  270. ELSEIF Index = 2 THEN
  271. cur_flag = 0
  272. ELSEIF Index = 3 THEN
  273. cur_flag = 1
  274. END IF
  275. cb_1.TriggerEvent(clicked!)
  276. end event
  277. type st_2 from statictext within w_rp_outware_scll
  278. integer y = 216
  279. integer width = 151
  280. integer height = 48
  281. boolean bringtotop = true
  282. integer textsize = -9
  283. integer weight = 400
  284. fontcharset fontcharset = gb2312charset!
  285. fontpitch fontpitch = variable!
  286. string facename = "宋体"
  287. long textcolor = 33554432
  288. long backcolor = 134217739
  289. string text = "仓库:"
  290. alignment alignment = right!
  291. boolean focusrectangle = false
  292. end type
  293. type st_1 from statictext within w_rp_outware_scll
  294. integer x = 754
  295. integer y = 216
  296. integer width = 128
  297. integer height = 48
  298. boolean bringtotop = true
  299. integer textsize = -9
  300. integer weight = 400
  301. fontcharset fontcharset = gb2312charset!
  302. fontpitch fontpitch = variable!
  303. string facename = "宋体"
  304. long textcolor = 33554432
  305. long backcolor = 134217739
  306. string text = "状态"
  307. alignment alignment = right!
  308. boolean focusrectangle = false
  309. end type