w_rp_mtrl_spt_name.srw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. $PBExportHeader$w_rp_mtrl_spt_name.srw
  2. forward
  3. global type w_rp_mtrl_spt_name from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_storageid within w_rp_mtrl_spt_name
  6. end type
  7. type ddlb_storageid from uo_ddlb_storageid within w_rp_mtrl_spt_name
  8. end type
  9. type tv_1 from uo_tv_mtrltype within w_rp_mtrl_spt_name
  10. end type
  11. type ddlb_1 from dropdownlistbox within w_rp_mtrl_spt_name
  12. end type
  13. end forward
  14. global type w_rp_mtrl_spt_name from w_publ_easyq
  15. string title = "供应商物料别名统计表"
  16. ddlb_2 ddlb_2
  17. ddlb_storageid ddlb_storageid
  18. tv_1 tv_1
  19. ddlb_1 ddlb_1
  20. end type
  21. global w_rp_mtrl_spt_name w_rp_mtrl_spt_name
  22. type variables
  23. Long cur_storageid_arr[]
  24. Long cur_storageid = -1
  25. String ls_handtype = ''
  26. end variables
  27. forward prototypes
  28. public subroutine wf_hidecol ()
  29. end prototypes
  30. public subroutine wf_hidecol ();s_hide_col s_col
  31. end subroutine
  32. on w_rp_mtrl_spt_name.create
  33. int iCurrent
  34. call super::create
  35. this.ddlb_2=create ddlb_2
  36. this.ddlb_storageid=create ddlb_storageid
  37. this.tv_1=create tv_1
  38. this.ddlb_1=create ddlb_1
  39. iCurrent=UpperBound(this.Control)
  40. this.Control[iCurrent+1]=this.ddlb_2
  41. this.Control[iCurrent+2]=this.ddlb_storageid
  42. this.Control[iCurrent+3]=this.tv_1
  43. this.Control[iCurrent+4]=this.ddlb_1
  44. end on
  45. on w_rp_mtrl_spt_name.destroy
  46. call super::destroy
  47. destroy(this.ddlb_2)
  48. destroy(this.ddlb_storageid)
  49. destroy(this.tv_1)
  50. destroy(this.ddlb_1)
  51. end on
  52. event resize;call super::resize;tv_1.Height = dw_1.Height
  53. end event
  54. type cb_func from w_publ_easyq`cb_func within w_rp_mtrl_spt_name
  55. end type
  56. type cb_exit from w_publ_easyq`cb_exit within w_rp_mtrl_spt_name
  57. end type
  58. type cb_2 from w_publ_easyq`cb_2 within w_rp_mtrl_spt_name
  59. integer taborder = 100
  60. boolean bringtotop = true
  61. end type
  62. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_mtrl_spt_name
  63. boolean bringtotop = true
  64. end type
  65. type cb_1 from w_publ_easyq`cb_1 within w_rp_mtrl_spt_name
  66. boolean bringtotop = true
  67. end type
  68. event cb_1::clicked;//DateTime firstdate,enddate
  69. //
  70. //firstdate = DateTime(Date(em_1.Text),Time(0))
  71. //enddate = DateTime(Date(em_2.Text),Time('23:59:59'))
  72. //
  73. ////IF cur_storageid <= 0 THEN
  74. //// MessageBox('提示','请选择仓库')
  75. //// dw_1.Reset()
  76. //// RETURN
  77. ////END IF
  78. //
  79. //DELETE u_parm_batchtake
  80. //Where cusid = :cur_storageid Or :cur_storageid = -1 ;
  81. //IF sqlca.SQLCode <> 0 THEN
  82. // ROLLBACK ;
  83. // MessageBox(publ_operator,"更新查询时间失败!"+sqlca.SQLErrText)
  84. // RETURN
  85. //END IF
  86. //
  87. //INSERT INTO u_parm_batchtake
  88. // (cusid,firstdate,enddate,balcdateint)
  89. // SELECT storageid,:firstdate,:enddate,0
  90. // FROM u_storage
  91. // Where storageid = :cur_storageid Or :cur_storageid = -1;
  92. //IF sqlca.SQLCode <> 0 THEN
  93. // ROLLBACK ;
  94. // MessageBox(publ_operator,"更新查询时间失败!"+sqlca.SQLErrText)
  95. // RETURN
  96. //END IF
  97. // COMMIT ;
  98. //
  99. //
  100. //SetPointer(HourGlass!)
  101. //
  102. dw_1.Retrieve(cur_storageid_arr,ls_handtype)
  103. //IF ddlb_1.Text = '汇总表' THEN
  104. // dw_1.Object.Title.Text = f_rst_storagename(cur_storageid)+'历史库存表(汇总表)'
  105. //ELSE
  106. // dw_1.Object.Title.Text = f_rst_storagename(cur_storageid)+'历史库存表'
  107. //END IF
  108. //SetPointer(Arrow!)
  109. //IF retrieve_all THEN
  110. // THIS.TriggerEvent("ue_usual_query_filt")
  111. //END IF
  112. end event
  113. type st_3 from w_publ_easyq`st_3 within w_rp_mtrl_spt_name
  114. boolean visible = false
  115. integer x = 754
  116. integer y = 216
  117. end type
  118. type st_4 from w_publ_easyq`st_4 within w_rp_mtrl_spt_name
  119. boolean visible = false
  120. integer x = 1504
  121. integer y = 212
  122. end type
  123. type em_1 from w_publ_easyq`em_1 within w_rp_mtrl_spt_name
  124. boolean visible = false
  125. integer x = 960
  126. integer y = 200
  127. integer taborder = 110
  128. end type
  129. type em_2 from w_publ_easyq`em_2 within w_rp_mtrl_spt_name
  130. boolean visible = false
  131. integer x = 1609
  132. integer y = 196
  133. integer taborder = 120
  134. end type
  135. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_mtrl_spt_name
  136. integer x = 1595
  137. integer y = 8
  138. end type
  139. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_mtrl_spt_name
  140. integer x = 1385
  141. integer y = 8
  142. end type
  143. type dw_1 from w_publ_easyq`dw_1 within w_rp_mtrl_spt_name
  144. integer x = 805
  145. integer y = 308
  146. integer width = 2181
  147. integer height = 940
  148. string dataobject = "dw_rp_mtrl_spt_name"
  149. end type
  150. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_mtrl_spt_name
  151. integer x = 1614
  152. integer y = 320
  153. end type
  154. type sle_cust from w_publ_easyq`sle_cust within w_rp_mtrl_spt_name
  155. end type
  156. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_mtrl_spt_name
  157. integer x = 1157
  158. integer y = 336
  159. end type
  160. type st_cust from w_publ_easyq`st_cust within w_rp_mtrl_spt_name
  161. end type
  162. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_mtrl_spt_name
  163. boolean visible = true
  164. integer x = 1385
  165. integer y = 100
  166. end type
  167. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_mtrl_spt_name
  168. boolean visible = false
  169. integer x = 1376
  170. end type
  171. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_mtrl_spt_name
  172. boolean visible = false
  173. integer x = 2034
  174. end type
  175. type pb_2 from w_publ_easyq`pb_2 within w_rp_mtrl_spt_name
  176. boolean visible = false
  177. integer x = 2144
  178. end type
  179. type cb_help from w_publ_easyq`cb_help within w_rp_mtrl_spt_name
  180. end type
  181. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_mtrl_spt_name
  182. end type
  183. type gb_1 from w_publ_easyq`gb_1 within w_rp_mtrl_spt_name
  184. end type
  185. type ln_bar from w_publ_easyq`ln_bar within w_rp_mtrl_spt_name
  186. end type
  187. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_mtrl_spt_name
  188. end type
  189. type r_bar from w_publ_easyq`r_bar within w_rp_mtrl_spt_name
  190. end type
  191. type ln_1 from w_publ_easyq`ln_1 within w_rp_mtrl_spt_name
  192. end type
  193. type ln_2 from w_publ_easyq`ln_2 within w_rp_mtrl_spt_name
  194. end type
  195. type ln_3 from w_publ_easyq`ln_3 within w_rp_mtrl_spt_name
  196. end type
  197. type ln_4 from w_publ_easyq`ln_4 within w_rp_mtrl_spt_name
  198. end type
  199. type ddlb_2 from uo_ddlb_storageid within w_rp_mtrl_spt_name
  200. boolean visible = false
  201. integer x = 14
  202. integer y = 208
  203. integer width = 681
  204. integer height = 1108
  205. integer taborder = 40
  206. boolean bringtotop = true
  207. end type
  208. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  209. end event
  210. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  211. cb_1.triggerevent(clicked!)
  212. end event
  213. type ddlb_storageid from uo_ddlb_storageid within w_rp_mtrl_spt_name
  214. integer x = 5
  215. integer y = 200
  216. integer width = 681
  217. integer height = 1108
  218. integer taborder = 30
  219. boolean bringtotop = true
  220. end type
  221. event constructor;call super::constructor;cur_storageid_arr = THIS.uo_storageid_arr
  222. cur_storageid = THIS.uo_storageid
  223. end event
  224. event selectionchanged;call super::selectionchanged;cur_storageid_arr = THIS.uo_storageid_arr
  225. cur_storageid = THIS.uo_storageid
  226. cb_1.TriggerEvent(Clicked!)
  227. end event
  228. type tv_1 from uo_tv_mtrltype within w_rp_mtrl_spt_name
  229. integer y = 304
  230. integer width = 805
  231. integer height = 1312
  232. integer taborder = 60
  233. boolean bringtotop = true
  234. integer textsize = -9
  235. fontcharset fontcharset = gb2312charset!
  236. fontfamily fontfamily = anyfont!
  237. string facename = "宋体"
  238. end type
  239. event selectionchanged;call super::selectionchanged;ls_handtype = THIS.uo_cur_info.handtype
  240. ls_handtype = ls_handtype + '%'
  241. cb_1.TriggerEvent(Clicked!)
  242. end event
  243. type ddlb_1 from dropdownlistbox within w_rp_mtrl_spt_name
  244. boolean visible = false
  245. integer x = 1943
  246. integer y = 48
  247. integer width = 398
  248. integer height = 356
  249. integer taborder = 100
  250. boolean bringtotop = true
  251. integer textsize = -9
  252. integer weight = 400
  253. fontcharset fontcharset = gb2312charset!
  254. fontpitch fontpitch = variable!
  255. string facename = "宋体"
  256. long textcolor = 33554432
  257. string text = "明细表"
  258. boolean sorted = false
  259. string item[] = {"明细表","汇总表"}
  260. borderstyle borderstyle = stylelowered!
  261. end type
  262. event selectionchanged;dw_1.uf_save_profile_layout()
  263. IF THIS.Text = '明细表' THEN
  264. dw_1.DataObject = 'dw_rp_mtrlware_warebalc'
  265. ELSEIF THIS.Text = '汇总表' THEN
  266. dw_1.DataObject = 'dw_rp_mtrlware_warebalc_hz'
  267. //ELSEIF THIS.Text = '明细表[带计划价]' THEN
  268. // dw_1.DataObject = 'dw_ware_day_1'
  269. END IF
  270. wf_replacedw()
  271. cb_1.TriggerEvent(Clicked!)
  272. //dw_1.SetTransObject(sqlca)
  273. //
  274. //dw_1.ins_INIfile_name = sys_inifilename
  275. //dw_1.ins_opemp = publ_operator
  276. //dw_1.cardw_empid = sys_empid
  277. //dw_1.cur_DataObject = dw_1.DataObject
  278. //
  279. //dw_1.uf_read_profile_layout()
  280. //f_title_change(dw_1)
  281. //wf_hide_col()
  282. //cb_refresh.TriggerEvent(Clicked!)
  283. end event