w_rp_quote.srw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. $PBExportHeader$w_rp_quote.srw
  2. forward
  3. global type w_rp_quote from w_publ_easyq
  4. end type
  5. type ddlb_status from dropdownlistbox within w_rp_quote
  6. end type
  7. type ddlb_scid from uo_ddlb_scid within w_rp_quote
  8. end type
  9. type st_1 from statictext within w_rp_quote
  10. end type
  11. type st_2 from statictext within w_rp_quote
  12. end type
  13. type tv_1 from uo_tv_mtrltype within w_rp_quote
  14. end type
  15. end forward
  16. global type w_rp_quote from w_publ_easyq
  17. string title = "销售报价单统计表"
  18. ddlb_status ddlb_status
  19. ddlb_scid ddlb_scid
  20. st_1 st_1
  21. st_2 st_2
  22. tv_1 tv_1
  23. end type
  24. global w_rp_quote w_rp_quote
  25. type variables
  26. int cur_status = -1
  27. long cur_scid_arr[]
  28. String cur_handtype
  29. datawindow dw_orderwfjg, dw_inwarewfjg
  30. end variables
  31. on w_rp_quote.create
  32. int iCurrent
  33. call super::create
  34. this.ddlb_status=create ddlb_status
  35. this.ddlb_scid=create ddlb_scid
  36. this.st_1=create st_1
  37. this.st_2=create st_2
  38. this.tv_1=create tv_1
  39. iCurrent=UpperBound(this.Control)
  40. this.Control[iCurrent+1]=this.ddlb_status
  41. this.Control[iCurrent+2]=this.ddlb_scid
  42. this.Control[iCurrent+3]=this.st_1
  43. this.Control[iCurrent+4]=this.st_2
  44. this.Control[iCurrent+5]=this.tv_1
  45. end on
  46. on w_rp_quote.destroy
  47. call super::destroy
  48. destroy(this.ddlb_status)
  49. destroy(this.ddlb_scid)
  50. destroy(this.st_1)
  51. destroy(this.st_2)
  52. destroy(this.tv_1)
  53. end on
  54. type cb_func from w_publ_easyq`cb_func within w_rp_quote
  55. end type
  56. type cb_exit from w_publ_easyq`cb_exit within w_rp_quote
  57. end type
  58. type cb_2 from w_publ_easyq`cb_2 within w_rp_quote
  59. boolean bringtotop = true
  60. end type
  61. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_quote
  62. boolean bringtotop = true
  63. end type
  64. type cb_1 from w_publ_easyq`cb_1 within w_rp_quote
  65. boolean bringtotop = true
  66. end type
  67. event cb_1::clicked;call super::clicked;datetime firstdate,enddate
  68. firstdate = DATEtime(date(EM_1.TEXT),time(0))
  69. enddate = datetime(date(EM_2.TEXT),time('23:59:59'))
  70. dw_1.Retrieve(cur_scid_arr,cur_status,firstdate,enddate)
  71. end event
  72. type st_3 from w_publ_easyq`st_3 within w_rp_quote
  73. integer x = 1344
  74. integer y = 204
  75. integer width = 215
  76. alignment alignment = left!
  77. end type
  78. type st_4 from w_publ_easyq`st_4 within w_rp_quote
  79. integer x = 2025
  80. integer y = 204
  81. end type
  82. type em_1 from w_publ_easyq`em_1 within w_rp_quote
  83. integer x = 1518
  84. integer y = 188
  85. end type
  86. type em_2 from w_publ_easyq`em_2 within w_rp_quote
  87. integer x = 2126
  88. integer y = 188
  89. end type
  90. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_quote
  91. integer y = 20
  92. end type
  93. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_quote
  94. integer y = 24
  95. end type
  96. type dw_1 from w_publ_easyq`dw_1 within w_rp_quote
  97. integer y = 300
  98. integer width = 2039
  99. integer height = 908
  100. string dataobject = "dw_rp_quote"
  101. end type
  102. event dw_1::doubleclicked;call super::doubleclicked;if dw_1.dataobject = 'dw_rp_quotemx_record' then
  103. IF row > 0 THEN
  104. String ls_code
  105. long ll_scid
  106. ls_code = THIS.Object.u_quote_quotecode[row]
  107. ll_scid = this.object.u_quote_scid[row]
  108. f_open_win(ll_scid,ls_code)
  109. END IF
  110. end if
  111. end event
  112. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_quote
  113. integer x = 480
  114. integer y = 300
  115. end type
  116. type sle_cust from w_publ_easyq`sle_cust within w_rp_quote
  117. end type
  118. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_quote
  119. integer x = 18
  120. integer y = 316
  121. end type
  122. type st_cust from w_publ_easyq`st_cust within w_rp_quote
  123. end type
  124. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_quote
  125. boolean visible = true
  126. end type
  127. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_quote
  128. integer x = 1938
  129. integer y = 188
  130. end type
  131. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_quote
  132. integer x = 2537
  133. integer y = 188
  134. end type
  135. type pb_2 from w_publ_easyq`pb_2 within w_rp_quote
  136. integer x = 2647
  137. integer y = 188
  138. end type
  139. type cb_help from w_publ_easyq`cb_help within w_rp_quote
  140. end type
  141. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_quote
  142. end type
  143. type gb_1 from w_publ_easyq`gb_1 within w_rp_quote
  144. integer y = 408
  145. integer width = 2336
  146. integer height = 248
  147. long textcolor = 0
  148. end type
  149. type ln_bar from w_publ_easyq`ln_bar within w_rp_quote
  150. end type
  151. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_quote
  152. end type
  153. type r_bar from w_publ_easyq`r_bar within w_rp_quote
  154. end type
  155. type ln_1 from w_publ_easyq`ln_1 within w_rp_quote
  156. boolean visible = false
  157. integer beginy = 392
  158. integer endy = 392
  159. end type
  160. type ln_2 from w_publ_easyq`ln_2 within w_rp_quote
  161. boolean visible = false
  162. integer beginy = 396
  163. integer endy = 396
  164. end type
  165. type ln_3 from w_publ_easyq`ln_3 within w_rp_quote
  166. integer beginy = 288
  167. integer endy = 288
  168. end type
  169. type ln_4 from w_publ_easyq`ln_4 within w_rp_quote
  170. integer beginy = 292
  171. integer endy = 292
  172. end type
  173. type ddlb_status from dropdownlistbox within w_rp_quote
  174. integer x = 905
  175. integer y = 192
  176. integer width = 411
  177. integer height = 496
  178. integer taborder = 80
  179. boolean bringtotop = true
  180. integer textsize = -9
  181. integer weight = 400
  182. fontcharset fontcharset = gb2312charset!
  183. fontpitch fontpitch = variable!
  184. string facename = "宋体"
  185. long textcolor = 33554432
  186. string text = "[所有]"
  187. boolean sorted = false
  188. boolean vscrollbar = true
  189. string item[] = {"[所有]","待审核","已审核"}
  190. borderstyle borderstyle = stylelowered!
  191. end type
  192. event selectionchanged;IF Index = 1 THEN
  193. cur_status = -1
  194. ELSEIF Index = 2 THEN
  195. cur_status = 0
  196. ELSEIF Index = 3 THEN
  197. cur_status = 1
  198. END IF
  199. cb_1.PostEvent(Clicked!)
  200. end event
  201. type ddlb_scid from uo_ddlb_scid within w_rp_quote
  202. integer x = 169
  203. integer y = 192
  204. integer width = 558
  205. integer height = 620
  206. integer taborder = 20
  207. boolean bringtotop = true
  208. end type
  209. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  210. end event
  211. event selectionchanged;call super::selectionchanged;
  212. cur_scid_arr = THIS.uo_scid_arr
  213. cb_1.triggerevent(clicked!)
  214. end event
  215. type st_1 from statictext within w_rp_quote
  216. integer x = 18
  217. integer y = 204
  218. integer width = 142
  219. integer height = 52
  220. boolean bringtotop = true
  221. integer textsize = -9
  222. integer weight = 400
  223. fontcharset fontcharset = gb2312charset!
  224. fontpitch fontpitch = variable!
  225. string facename = "宋体"
  226. long textcolor = 33554432
  227. long backcolor = 134217739
  228. string text = "分部:"
  229. alignment alignment = right!
  230. boolean focusrectangle = false
  231. end type
  232. type st_2 from statictext within w_rp_quote
  233. integer x = 759
  234. integer y = 204
  235. integer width = 146
  236. integer height = 48
  237. boolean bringtotop = true
  238. integer textsize = -9
  239. integer weight = 400
  240. fontcharset fontcharset = gb2312charset!
  241. fontpitch fontpitch = variable!
  242. string facename = "宋体"
  243. long textcolor = 33554432
  244. long backcolor = 134217739
  245. string text = "状态:"
  246. alignment alignment = right!
  247. boolean focusrectangle = false
  248. end type
  249. type tv_1 from uo_tv_mtrltype within w_rp_quote
  250. boolean visible = false
  251. integer y = 400
  252. integer width = 1001
  253. integer height = 1888
  254. integer taborder = 20
  255. boolean bringtotop = true
  256. integer textsize = -9
  257. fontcharset fontcharset = gb2312charset!
  258. fontfamily fontfamily = anyfont!
  259. string facename = "宋体"
  260. end type
  261. event constructor;f_maketree(-1)
  262. end event
  263. event selectionchanged;call super::selectionchanged;cur_handtype = THIS.uo_cur_info.handtype
  264. cur_handtype = cur_handtype + '%'
  265. cb_1.triggerevent(clicked!)
  266. end event