w_rp_outware_other.srw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. $PBExportHeader$w_rp_outware_other.srw
  2. forward
  3. global type w_rp_outware_other from w_publ_easyq
  4. end type
  5. type ddlb_storageid from uo_ddlb_storageid within w_rp_outware_other
  6. end type
  7. type ddlb_status from dropdownlistbox within w_rp_outware_other
  8. end type
  9. type st_1 from statictext within w_rp_outware_other
  10. end type
  11. type st_2 from statictext within w_rp_outware_other
  12. end type
  13. type ddlb_1 from dropdownlistbox within w_rp_outware_other
  14. end type
  15. type tv_1 from uo_tv_mtrltype within w_rp_outware_other
  16. end type
  17. end forward
  18. global type w_rp_outware_other from w_publ_easyq
  19. integer x = 123
  20. integer height = 2504
  21. string title = "其他出仓分类统计表"
  22. ddlb_storageid ddlb_storageid
  23. ddlb_status ddlb_status
  24. st_1 st_1
  25. st_2 st_2
  26. ddlb_1 ddlb_1
  27. tv_1 tv_1
  28. end type
  29. global w_rp_outware_other w_rp_outware_other
  30. type variables
  31. Long cur_storageid
  32. Long cur_flag = -1
  33. String ls_handtype = '',ls_mtrltype = ''
  34. Int ls_sonflag
  35. Int cur_mtrlorigin = -1
  36. end variables
  37. forward prototypes
  38. public function integer wf_hide_col ()
  39. end prototypes
  40. public function integer wf_hide_col ();s_hide_col s_col
  41. if dw_1.dataobject = 'dw_rp_inware_sc_mx' then
  42. s_col.col_1 = 'u_inwaremx_planprice'
  43. s_col.col_2 = 'u_inwaremx_price'
  44. s_col.col_3 = 'planamt'
  45. s_col.col_4 = 'amt_1'
  46. s_col.col_5 = 'saleprice'
  47. s_col.col_6 = 'saleamt'
  48. else
  49. s_col.col_1 = 'amt'
  50. s_col.col_2 = 'price'
  51. s_col.col_3 = 'planamt'
  52. s_col.col_4 = 'u_mtrldef_planprice'
  53. s_col.col_5 = 'u_mtrldef_lmsaleprice'
  54. s_col.col_6 = 'lmsaleamt'
  55. end if
  56. //f_hide_col(121,dw_1,s_col)
  57. f_hide_col(1449,dw_1,s_col)
  58. s_hide_col s_col_mtrlsectype
  59. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  60. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  61. s_hide_col s_col_zxmtrlmode
  62. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  63. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  64. return 1
  65. end function
  66. on w_rp_outware_other.create
  67. int iCurrent
  68. call super::create
  69. this.ddlb_storageid=create ddlb_storageid
  70. this.ddlb_status=create ddlb_status
  71. this.st_1=create st_1
  72. this.st_2=create st_2
  73. this.ddlb_1=create ddlb_1
  74. this.tv_1=create tv_1
  75. iCurrent=UpperBound(this.Control)
  76. this.Control[iCurrent+1]=this.ddlb_storageid
  77. this.Control[iCurrent+2]=this.ddlb_status
  78. this.Control[iCurrent+3]=this.st_1
  79. this.Control[iCurrent+4]=this.st_2
  80. this.Control[iCurrent+5]=this.ddlb_1
  81. this.Control[iCurrent+6]=this.tv_1
  82. end on
  83. on w_rp_outware_other.destroy
  84. call super::destroy
  85. destroy(this.ddlb_storageid)
  86. destroy(this.ddlb_status)
  87. destroy(this.st_1)
  88. destroy(this.st_2)
  89. destroy(this.ddlb_1)
  90. destroy(this.tv_1)
  91. end on
  92. event resize;call super::resize;tv_1.height=this.height - dw_1.y - 150
  93. end event
  94. event ue_before_openretrieve;call super::ue_before_openretrieve;wf_hide_col()
  95. end event
  96. type cb_func from w_publ_easyq`cb_func within w_rp_outware_other
  97. end type
  98. type cb_exit from w_publ_easyq`cb_exit within w_rp_outware_other
  99. end type
  100. type cb_2 from w_publ_easyq`cb_2 within w_rp_outware_other
  101. boolean bringtotop = true
  102. end type
  103. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_outware_other
  104. boolean bringtotop = true
  105. end type
  106. type cb_1 from w_publ_easyq`cb_1 within w_rp_outware_other
  107. boolean bringtotop = true
  108. end type
  109. event cb_1::clicked;DateTime first_date,end_date
  110. first_date = DateTime(Date(em_1.Text),Time(0))
  111. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  112. string ls_storage
  113. if cur_storageid<>-1 then
  114. ls_storage=trim(mid(ddlb_storageid.text,1,pos(ddlb_storageid.text,'[')-1))
  115. else
  116. ls_storage='全部仓库'
  117. end if
  118. //f_title_change(dw_1)
  119. //wf_hide_col()
  120. //dw_1.SetTransObject(sqlca)
  121. IF ls_handtype <> '' THEN
  122. ls_mtrltype = ls_handtype+'%'
  123. ELSE
  124. ls_mtrltype = ""
  125. END IF
  126. IF ddlb_1.Text = '按产品汇总' THEN
  127. // ls_handtype=ls_handtype+'%'
  128. dw_1.Retrieve(cur_storageid,cur_flag,first_date,end_date,ls_handtype,cur_mtrlorigin)
  129. ELSE
  130. dw_1.Retrieve(cur_storageid,cur_flag,first_date,end_date,ls_handtype,ls_mtrltype,cur_mtrlorigin)
  131. END IF
  132. dw_1.Object.t_6.Text = '仓库:'+ls_storage
  133. end event
  134. type st_3 from w_publ_easyq`st_3 within w_rp_outware_other
  135. integer x = 841
  136. integer y = 216
  137. end type
  138. type st_4 from w_publ_easyq`st_4 within w_rp_outware_other
  139. integer x = 1554
  140. integer y = 224
  141. end type
  142. type em_1 from w_publ_easyq`em_1 within w_rp_outware_other
  143. integer x = 1047
  144. integer y = 196
  145. integer taborder = 120
  146. end type
  147. type em_2 from w_publ_easyq`em_2 within w_rp_outware_other
  148. integer x = 1659
  149. integer y = 200
  150. integer taborder = 130
  151. end type
  152. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_outware_other
  153. integer x = 1568
  154. integer y = 4
  155. end type
  156. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_outware_other
  157. integer x = 1349
  158. integer y = 4
  159. end type
  160. type dw_1 from w_publ_easyq`dw_1 within w_rp_outware_other
  161. integer x = 805
  162. integer y = 312
  163. integer width = 2427
  164. string dataobject = "dw_rp_other_outware"
  165. end type
  166. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_outware_other
  167. end type
  168. type sle_cust from w_publ_easyq`sle_cust within w_rp_outware_other
  169. end type
  170. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_outware_other
  171. end type
  172. type st_cust from w_publ_easyq`st_cust within w_rp_outware_other
  173. end type
  174. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_outware_other
  175. boolean visible = true
  176. integer x = 1349
  177. integer y = 100
  178. end type
  179. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_outware_other
  180. integer x = 1458
  181. end type
  182. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_outware_other
  183. integer x = 2071
  184. integer y = 196
  185. end type
  186. type pb_2 from w_publ_easyq`pb_2 within w_rp_outware_other
  187. integer x = 2181
  188. integer y = 196
  189. end type
  190. type cb_help from w_publ_easyq`cb_help within w_rp_outware_other
  191. end type
  192. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_outware_other
  193. end type
  194. type gb_1 from w_publ_easyq`gb_1 within w_rp_outware_other
  195. end type
  196. type ln_bar from w_publ_easyq`ln_bar within w_rp_outware_other
  197. end type
  198. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_outware_other
  199. end type
  200. type r_bar from w_publ_easyq`r_bar within w_rp_outware_other
  201. end type
  202. type ln_1 from w_publ_easyq`ln_1 within w_rp_outware_other
  203. end type
  204. type ln_2 from w_publ_easyq`ln_2 within w_rp_outware_other
  205. end type
  206. type ln_3 from w_publ_easyq`ln_3 within w_rp_outware_other
  207. end type
  208. type ln_4 from w_publ_easyq`ln_4 within w_rp_outware_other
  209. end type
  210. type ddlb_storageid from uo_ddlb_storageid within w_rp_outware_other
  211. integer x = 146
  212. integer y = 204
  213. integer width = 681
  214. integer height = 976
  215. integer taborder = 130
  216. boolean bringtotop = true
  217. end type
  218. event constructor;call super::constructor;cur_storageid= this.uo_storageid
  219. end event
  220. event selectionchanged;call super::selectionchanged;cur_storageid= this.uo_storageid
  221. cb_1.triggerevent(clicked!)
  222. end event
  223. type ddlb_status from dropdownlistbox within w_rp_outware_other
  224. integer x = 2295
  225. integer y = 200
  226. integer width = 325
  227. integer height = 976
  228. integer taborder = 80
  229. boolean bringtotop = true
  230. integer textsize = -9
  231. integer weight = 400
  232. fontcharset fontcharset = gb2312charset!
  233. fontpitch fontpitch = variable!
  234. string facename = "宋体"
  235. long textcolor = 33554432
  236. string text = "[全部]"
  237. boolean sorted = false
  238. string item[] = {"[全部]","待审核","已审核"}
  239. borderstyle borderstyle = stylelowered!
  240. end type
  241. event selectionchanged;IF Index = 1 THEN
  242. cur_flag = -1
  243. ELSEIF Index = 2 THEN
  244. cur_flag = 0
  245. ELSEIF Index = 3 THEN
  246. cur_flag = 1
  247. END IF
  248. cb_1.TriggerEvent(clicked!)
  249. end event
  250. type st_1 from statictext within w_rp_outware_other
  251. integer y = 220
  252. integer width = 128
  253. integer height = 48
  254. boolean bringtotop = true
  255. integer textsize = -9
  256. integer weight = 400
  257. fontcharset fontcharset = gb2312charset!
  258. fontpitch fontpitch = variable!
  259. string facename = "宋体"
  260. long textcolor = 33554432
  261. long backcolor = 134217739
  262. string text = "仓库"
  263. boolean focusrectangle = false
  264. end type
  265. type st_2 from statictext within w_rp_outware_other
  266. integer x = 2295
  267. integer y = 56
  268. integer width = 155
  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. boolean focusrectangle = false
  280. end type
  281. event constructor;this.backcolor = 14215660
  282. end event
  283. type ddlb_1 from dropdownlistbox within w_rp_outware_other
  284. integer x = 2423
  285. integer y = 40
  286. integer width = 567
  287. integer height = 956
  288. integer taborder = 90
  289. boolean bringtotop = true
  290. integer textsize = -9
  291. integer weight = 400
  292. fontcharset fontcharset = gb2312charset!
  293. fontpitch fontpitch = variable!
  294. string facename = "宋体"
  295. long textcolor = 33554432
  296. string text = "按产品汇总"
  297. string item[] = {"按产品汇总","按物料类别汇总"}
  298. borderstyle borderstyle = stylelowered!
  299. end type
  300. event selectionchanged;dw_1.uf_save_profile_layout()
  301. if index=1 then
  302. dw_1.dataobject='dw_rp_other_outware'
  303. else
  304. dw_1.dataobject='dw_rp_other_outware_mtrltype'
  305. end if
  306. dw_1.SetTransObject(sqlca)
  307. dw_1.ins_INIfile_name = sys_inifilename
  308. dw_1.ins_opemp = publ_operator
  309. dw_1.cardw_empid = sys_empid
  310. dw_1.cur_DataObject = dw_1.DataObject
  311. dw_1.uf_read_profile_layout()
  312. wf_hide_col()
  313. cb_1.TriggerEvent(Clicked!)
  314. end event
  315. type tv_1 from uo_tv_mtrltype within w_rp_outware_other
  316. integer y = 300
  317. integer width = 800
  318. integer height = 1820
  319. integer taborder = 90
  320. boolean bringtotop = true
  321. integer textsize = -9
  322. fontcharset fontcharset = gb2312charset!
  323. fontfamily fontfamily = anyfont!
  324. string facename = "宋体"
  325. end type
  326. event selectionchanged;call super::selectionchanged;ls_handtype = THIS.uo_cur_info.handtype
  327. ls_mtrltype = THIS.uo_cur_info.mtrltype
  328. ls_sonflag = THIS.uo_cur_info.sonflag
  329. cb_1.triggerevent(clicked!)
  330. end event