w_rp_inware_other.srw 9.3 KB

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