w_rp_ware_alert.srw 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. $PBExportHeader$w_rp_ware_alert.srw
  2. forward
  3. global type w_rp_ware_alert from w_publ_easyq
  4. end type
  5. type rb_1 from radiobutton within w_rp_ware_alert
  6. end type
  7. type rb_2 from radiobutton within w_rp_ware_alert
  8. end type
  9. type ddlb_3 from uo_ddlb_storageid within w_rp_ware_alert
  10. end type
  11. type dw_2 from u_dw_rbtnfilter within w_rp_ware_alert
  12. end type
  13. type tv_1 from uo_tv_mtrltype within w_rp_ware_alert
  14. end type
  15. type cbx_1 from checkbox within w_rp_ware_alert
  16. end type
  17. end forward
  18. global type w_rp_ware_alert from w_publ_easyq
  19. string title = "库存报警表"
  20. rb_1 rb_1
  21. rb_2 rb_2
  22. ddlb_3 ddlb_3
  23. dw_2 dw_2
  24. tv_1 tv_1
  25. cbx_1 cbx_1
  26. end type
  27. global w_rp_ware_alert w_rp_ware_alert
  28. type variables
  29. Long cur_storageid_arr[]
  30. String cur_handtype=''
  31. Long cur_mtrlorigin = -1
  32. long cur_ifpz=0
  33. end variables
  34. on w_rp_ware_alert.create
  35. int iCurrent
  36. call super::create
  37. this.rb_1=create rb_1
  38. this.rb_2=create rb_2
  39. this.ddlb_3=create ddlb_3
  40. this.dw_2=create dw_2
  41. this.tv_1=create tv_1
  42. this.cbx_1=create cbx_1
  43. iCurrent=UpperBound(this.Control)
  44. this.Control[iCurrent+1]=this.rb_1
  45. this.Control[iCurrent+2]=this.rb_2
  46. this.Control[iCurrent+3]=this.ddlb_3
  47. this.Control[iCurrent+4]=this.dw_2
  48. this.Control[iCurrent+5]=this.tv_1
  49. this.Control[iCurrent+6]=this.cbx_1
  50. end on
  51. on w_rp_ware_alert.destroy
  52. call super::destroy
  53. destroy(this.rb_1)
  54. destroy(this.rb_2)
  55. destroy(this.ddlb_3)
  56. destroy(this.dw_2)
  57. destroy(this.tv_1)
  58. destroy(this.cbx_1)
  59. end on
  60. event ue_before_open;call super::ue_before_open;dw_2.settransobject(sqlca)
  61. end event
  62. event resize;call super::resize;tv_1.Height = THIS.Height - (2300 - 1884)
  63. dw_1.Width = THIS.Width - dw_1.x - 40
  64. dw_1.Height = THIS.Height - (2300 - 1232)
  65. dw_2.x = dw_1.x
  66. dw_2.Y = THIS.Height - (2300 - 1540)
  67. dw_2.Width = THIS.Width - dw_2.x - 40
  68. end event
  69. event ue_before_openretrieve;call super::ue_before_openretrieve;s_hide_col s_col_mtrlsectype
  70. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  71. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  72. f_hide_col(1308,dw_2,s_col_mtrlsectype)
  73. s_hide_col s_col_zxmtrlmode
  74. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  75. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  76. f_hide_col(1309,dw_2,s_col_zxmtrlmode)
  77. tv_1.f_maketree(-1)
  78. end event
  79. type cb_func from w_publ_easyq`cb_func within w_rp_ware_alert
  80. end type
  81. type cb_exit from w_publ_easyq`cb_exit within w_rp_ware_alert
  82. end type
  83. type cb_2 from w_publ_easyq`cb_2 within w_rp_ware_alert
  84. boolean bringtotop = true
  85. end type
  86. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_ware_alert
  87. boolean bringtotop = true
  88. end type
  89. type cb_1 from w_publ_easyq`cb_1 within w_rp_ware_alert
  90. boolean bringtotop = true
  91. end type
  92. event cb_1::clicked;call super::clicked;//tv_1.f_maketree(-1)
  93. if rb_1.checked then
  94. if cbx_1.checked then
  95. dw_1.dataobject='dw_rp_ware_alert_up_nopz'
  96. else
  97. dw_1.dataobject='dw_rp_ware_alert_up'
  98. end if
  99. end if
  100. if rb_2.checked then
  101. if cbx_1.checked then
  102. dw_1.dataobject='dw_rp_ware_alert_down_nopz'
  103. else
  104. dw_1.dataobject='dw_rp_ware_alert_down'
  105. end if
  106. end if
  107. dw_1.settransobject(sqlca)
  108. dw_1.retrieve(cur_mtrlorigin,cur_handtype)
  109. end event
  110. type st_3 from w_publ_easyq`st_3 within w_rp_ware_alert
  111. boolean visible = false
  112. integer x = 32
  113. integer y = 224
  114. end type
  115. type st_4 from w_publ_easyq`st_4 within w_rp_ware_alert
  116. boolean visible = false
  117. integer x = 672
  118. integer y = 232
  119. end type
  120. type em_1 from w_publ_easyq`em_1 within w_rp_ware_alert
  121. boolean visible = false
  122. integer x = 256
  123. integer y = 212
  124. end type
  125. type em_2 from w_publ_easyq`em_2 within w_rp_ware_alert
  126. boolean visible = false
  127. integer x = 777
  128. integer y = 216
  129. end type
  130. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_ware_alert
  131. integer x = 1632
  132. integer y = 0
  133. end type
  134. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_ware_alert
  135. integer x = 1422
  136. integer y = 4
  137. end type
  138. type dw_1 from w_publ_easyq`dw_1 within w_rp_ware_alert
  139. integer x = 805
  140. integer y = 308
  141. integer width = 2254
  142. integer height = 1232
  143. string dataobject = "dw_rp_ware_alert_up"
  144. boolean hsplitscroll = false
  145. end type
  146. event dw_1::rowfocuschanged;call super::rowfocuschanged;dw_1.SelectRow( 0, FALSE)
  147. dw_1.SelectRow(currentrow, TRUE)
  148. Long ll_mtrlid
  149. String ls_status,ls_woodcode,ls_pcode
  150. if cbx_1.checked then
  151. dw_2.dataobject='dw_rp_ware_alert_noallocqty_nopz'
  152. else
  153. dw_2.dataobject='dw_rp_ware_alert_noallocqty'
  154. end if
  155. IF dw_1.GetRow() > 0 THEN
  156. ll_mtrlid = dw_1.Object.u_mtrlware_mtrlid[dw_1.GetRow()]
  157. ls_status = dw_1.Object.u_mtrldef_maxminqty_status[dw_1.GetRow()]
  158. ls_woodcode = dw_1.Object.u_mtrldef_maxminqty_woodcode[dw_1.GetRow()]
  159. ls_pcode = dw_1.Object.u_mtrldef_maxminqty_pcode[dw_1.GetRow()]
  160. dw_2.settransobject(sqlca)
  161. dw_2.Retrieve( ll_mtrlid,ls_status,ls_woodcode,ls_pcode)
  162. ELSE
  163. dw_2.Reset( )
  164. END IF
  165. end event
  166. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_ware_alert
  167. end type
  168. type sle_cust from w_publ_easyq`sle_cust within w_rp_ware_alert
  169. end type
  170. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_ware_alert
  171. end type
  172. type st_cust from w_publ_easyq`st_cust within w_rp_ware_alert
  173. end type
  174. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_ware_alert
  175. boolean visible = true
  176. integer x = 1422
  177. integer y = 100
  178. end type
  179. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_ware_alert
  180. boolean visible = false
  181. end type
  182. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_ware_alert
  183. boolean visible = false
  184. end type
  185. type pb_2 from w_publ_easyq`pb_2 within w_rp_ware_alert
  186. boolean visible = false
  187. end type
  188. type cb_help from w_publ_easyq`cb_help within w_rp_ware_alert
  189. end type
  190. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_ware_alert
  191. end type
  192. type gb_1 from w_publ_easyq`gb_1 within w_rp_ware_alert
  193. end type
  194. type ln_bar from w_publ_easyq`ln_bar within w_rp_ware_alert
  195. end type
  196. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_ware_alert
  197. end type
  198. type r_bar from w_publ_easyq`r_bar within w_rp_ware_alert
  199. end type
  200. type ln_1 from w_publ_easyq`ln_1 within w_rp_ware_alert
  201. long linecolor = 0
  202. end type
  203. type ln_2 from w_publ_easyq`ln_2 within w_rp_ware_alert
  204. end type
  205. type ln_3 from w_publ_easyq`ln_3 within w_rp_ware_alert
  206. boolean visible = false
  207. end type
  208. type ln_4 from w_publ_easyq`ln_4 within w_rp_ware_alert
  209. boolean visible = false
  210. end type
  211. type rb_1 from radiobutton within w_rp_ware_alert
  212. integer y = 204
  213. integer width = 288
  214. integer height = 76
  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 = 134217739
  222. string text = "超上限"
  223. boolean checked = true
  224. end type
  225. event constructor;//this.backcolor = 14215660
  226. end event
  227. event clicked;cb_1.triggerevent(clicked!)
  228. end event
  229. type rb_2 from radiobutton within w_rp_ware_alert
  230. integer x = 315
  231. integer y = 204
  232. integer width = 306
  233. integer height = 76
  234. boolean bringtotop = true
  235. integer textsize = -9
  236. integer weight = 400
  237. fontcharset fontcharset = gb2312charset!
  238. fontpitch fontpitch = variable!
  239. string facename = "宋体"
  240. long backcolor = 134217739
  241. string text = "超下限"
  242. end type
  243. event constructor;//this.backcolor = 14215660
  244. end event
  245. event clicked;cb_1.triggerevent(clicked!)
  246. end event
  247. type ddlb_3 from uo_ddlb_storageid within w_rp_ware_alert
  248. boolean visible = false
  249. integer x = 14
  250. integer y = 44
  251. integer width = 622
  252. integer height = 1108
  253. integer taborder = 140
  254. boolean bringtotop = true
  255. end type
  256. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  257. end event
  258. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  259. cb_1.triggerevent(clicked!)
  260. end event
  261. type dw_2 from u_dw_rbtnfilter within w_rp_ware_alert
  262. integer x = 805
  263. integer y = 1540
  264. integer width = 2706
  265. integer height = 652
  266. integer taborder = 20
  267. boolean bringtotop = true
  268. string dataobject = "dw_rp_ware_alert_noallocqty"
  269. boolean hscrollbar = true
  270. boolean vscrollbar = true
  271. end type
  272. type tv_1 from uo_tv_mtrltype within w_rp_ware_alert
  273. integer y = 300
  274. integer width = 800
  275. integer height = 1876
  276. integer taborder = 20
  277. boolean bringtotop = true
  278. integer textsize = -9
  279. fontcharset fontcharset = gb2312charset!
  280. fontfamily fontfamily = anyfont!
  281. string facename = "宋体"
  282. end type
  283. event selectionchanged;call super::selectionchanged;cur_handtype = this.uo_cur_info.handtype
  284. cur_handtype = cur_handtype + '%'
  285. cb_1.triggerevent( clicked! )
  286. end event
  287. type cbx_1 from checkbox within w_rp_ware_alert
  288. integer x = 795
  289. integer y = 204
  290. integer width = 457
  291. integer height = 76
  292. boolean bringtotop = true
  293. integer textsize = -9
  294. integer weight = 400
  295. fontcharset fontcharset = gb2312charset!
  296. fontpitch fontpitch = variable!
  297. string facename = "宋体"
  298. long textcolor = 33554432
  299. long backcolor = 67108864
  300. string text = "不考虑3个配置"
  301. end type
  302. event clicked;cb_1.triggerevent(clicked!)
  303. Long ll_loginretr
  304. IF This.Checked THEN
  305. ll_loginretr = 1
  306. ELSE
  307. ll_loginretr = 0
  308. END IF
  309. //f_SetProfileString(sys_empid,DW_1.DataObject, "LOGIN_RETRIEVE", String(ll_loginretr))
  310. f_SetProfileString(sys_empid,Parent.ClassName(), "LOGIN_RETRIEVE", String(ll_loginretr))
  311. end event
  312. event constructor;This.BackColor = 14215660
  313. Int ll_loginretr
  314. //ll_loginretr = Integer(f_ProfileString(sys_empid,DW_1.DataObject, "LOGIN_RETRIEVE", "1"))
  315. ll_loginretr = Integer(f_ProfileString(sys_empid,Parent.ClassName(), "LOGIN_RETRIEVE", "1"))
  316. IF ll_loginretr = 1 THEN
  317. This.Checked = True
  318. ELSE
  319. This.Checked = False
  320. END IF
  321. end event