w_quote_his_fx.srw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  1. $PBExportHeader$w_quote_his_fx.srw
  2. $PBExportComments$销售报价单历史报价查看(产品最新报价统计表)
  3. forward
  4. global type w_quote_his_fx from w_publ_base_style
  5. end type
  6. type st_1 from statictext within w_quote_his_fx
  7. end type
  8. type ln_1 from line within w_quote_his_fx
  9. end type
  10. type ln_2 from line within w_quote_his_fx
  11. end type
  12. type ddlb_cus from dropdownlistbox within w_quote_his_fx
  13. end type
  14. type tv_1 from uo_tv_fx_mtrltype within w_quote_his_fx
  15. end type
  16. type st_split from u_lbs_stsplitbar within w_quote_his_fx
  17. end type
  18. type dw_mtrl from u_dw_rbtnfilter within w_quote_his_fx
  19. end type
  20. type dw_quote_his from u_dw_rbtnfilter within w_quote_his_fx
  21. end type
  22. type st_2 from statictext within w_quote_his_fx
  23. end type
  24. type sle_lisestr from singlelineedit within w_quote_his_fx
  25. end type
  26. type st_3 from statictext within w_quote_his_fx
  27. end type
  28. type em_pagesize from editmask within w_quote_his_fx
  29. end type
  30. type st_4 from statictext within w_quote_his_fx
  31. end type
  32. type em_cur_page from editmask within w_quote_his_fx
  33. end type
  34. type pb_page_top from picturebutton within w_quote_his_fx
  35. end type
  36. type pb_uppage from picturebutton within w_quote_his_fx
  37. end type
  38. type pb_dnpage from picturebutton within w_quote_his_fx
  39. end type
  40. type pb_page_end from picturebutton within w_quote_his_fx
  41. end type
  42. type st_allpages from statictext within w_quote_his_fx
  43. end type
  44. type pb_search from picturebutton within w_quote_his_fx
  45. end type
  46. end forward
  47. global type w_quote_his_fx from w_publ_base_style
  48. integer width = 4713
  49. integer height = 2796
  50. string title = "最新报价统计表"
  51. boolean maxbox = true
  52. boolean resizable = true
  53. long backcolor = 16777215
  54. st_1 st_1
  55. ln_1 ln_1
  56. ln_2 ln_2
  57. ddlb_cus ddlb_cus
  58. tv_1 tv_1
  59. st_split st_split
  60. dw_mtrl dw_mtrl
  61. dw_quote_his dw_quote_his
  62. st_2 st_2
  63. sle_lisestr sle_lisestr
  64. st_3 st_3
  65. em_pagesize em_pagesize
  66. st_4 st_4
  67. em_cur_page em_cur_page
  68. pb_page_top pb_page_top
  69. pb_uppage pb_uppage
  70. pb_dnpage pb_dnpage
  71. pb_page_end pb_page_end
  72. st_allpages st_allpages
  73. pb_search pb_search
  74. end type
  75. global w_quote_his_fx w_quote_his_fx
  76. type variables
  77. datastore ins_ds_cus // 存放客户列表
  78. datastore ins_mtrltypes
  79. long ins_pagenum = 1
  80. long ins_allpages = 1
  81. long ins_cuscomid
  82. end variables
  83. forward prototypes
  84. public subroutine wf_retrieve_mtrltype (readonly long a_comid)
  85. public subroutine wf_retrieve_mtrl (readonly long arg_mtrltypeid, readonly long arg_sonflag)
  86. public function integer wf_retrieve_quote_his (readonly long a_row)
  87. public subroutine wf_init_split ()
  88. end prototypes
  89. public subroutine wf_retrieve_mtrltype (readonly long a_comid);string arg_msg
  90. oleobject obj, parm, list, item
  91. parm = FXAppCom.CreatePbDictionary()
  92. parm.SetString('token', app_token_fx)
  93. parm.SetInt('comid', a_comid)
  94. obj = FXAppCom.GetMtrltypeByComid(parm, ref arg_msg)
  95. IF (arg_msg <> '') THEN
  96. MessageBox('提示', '获取物料类别失败:' + arg_msg)
  97. RETURN
  98. END IF
  99. list = obj.GetPBArray('list')
  100. dw_mtrl.Reset( )
  101. dw_quote_his.Reset()
  102. ins_mtrltypes.Reset()
  103. long i, row
  104. for i = 1 to list.Count
  105. item = list.GetPBDictionary(i - 1)
  106. row = ins_mtrltypes.InsertRow(0)
  107. ins_mtrltypes.Object.comid[row] = item.GetInt('comid')
  108. ins_mtrltypes.Object.mtrltypeid[row] = item.GetInt('mtrltypeid')
  109. ins_mtrltypes.Object.mtrltype[row] = item.GetString('mtrltype')
  110. ins_mtrltypes.Object.handtype[row] = item.GetString('handtype')
  111. ins_mtrltypes.Object.sonflag[row] = item.GetInt('sonflag')
  112. ins_mtrltypes.Object.parentid[row] = item.GetInt('parentid')
  113. ins_mtrltypes.Object.mtrltypeid_erp[row] = item.GetInt('mtrltypeid_erp')
  114. next
  115. ins_mtrltypes.AcceptText()
  116. tv_1.uof_init(ins_mtrltypes)
  117. end subroutine
  118. public subroutine wf_retrieve_mtrl (readonly long arg_mtrltypeid, readonly long arg_sonflag);string arg_msg
  119. oleobject mtrls, mtrl, parm, obj
  120. parm = FXAppCom.CreatePbDictionary()
  121. parm.SetString('token', app_token_fx)
  122. parm.SetInt('mtrltypeid', arg_mtrltypeid)
  123. parm.SetInt('sonflag', arg_sonflag)
  124. parm.SetInt('pagesize', long(em_pagesize.Text))
  125. parm.SetInt('pagenum', long(em_cur_page.Text))
  126. parm.SetString('likeStr', Trim(sle_lisestr.Text))
  127. parm.SetInt('cusComid', ins_cuscomid)
  128. parm.SetInt('sptComid', 0)
  129. parm.SetInt('ifWithQuote', 1)
  130. obj = FXAppCom.GetMtrlWithRelationFilter(parm, ref arg_msg)
  131. if (arg_msg <> '') then
  132. MessageBox('提示', arg_msg)
  133. return
  134. end if
  135. ins_allpages = obj.GetInt('allpages')
  136. st_allpages.Text = '/' + string(ins_allpages)
  137. dw_mtrl.Reset()
  138. dw_quote_his.Reset()
  139. long i, row
  140. mtrls = obj.GetPBArray('list')
  141. dw_mtrl.SetRedraw(false)
  142. for i = 1 to mtrls.Count
  143. mtrl = mtrls.GetPBDictionary(i - 1)
  144. row = dw_mtrl.InsertRow(0)
  145. dw_mtrl.Object.fxmtrlid[row] = mtrl.GetInt('fxmtrlid')
  146. dw_mtrl.Object.comid[row] = mtrl.GetInt('comid')
  147. dw_mtrl.Object.mtrlid[row] = mtrl.GetInt('mtrlid')
  148. dw_mtrl.Object.mtrlcode[row] = mtrl.GetString('mtrlcode')
  149. dw_mtrl.Object.mtrlname[row] = mtrl.GetString('mtrlname')
  150. dw_mtrl.Object.mtrlmode[row] = mtrl.GetString('mtrlmode')
  151. dw_mtrl.Object.mtrlsectype[row] = mtrl.GetString('mtrlsectype')
  152. dw_mtrl.Object.zxmtrlmode[row] = mtrl.GetString('zxmtrlmode')
  153. dw_mtrl.Object.usermtrlmode[row] = mtrl.GetString('usermtrlmode')
  154. // dw_mtrl.Object.statusflag[row] = mtrl.GetInt('statusflag')
  155. // dw_mtrl.Object.statustype[row] = mtrl.GetInt('statustype')
  156. // dw_mtrl.Object.woodcodeflag[row] = mtrl.GetInt('woodcodeflag')
  157. // dw_mtrl.Object.woodcodetype[row] = mtrl.GetInt('woodcodetype')
  158. // dw_mtrl.Object.pcodeflag[row] = mtrl.GetInt('pcodeflag')
  159. // dw_mtrl.Object.pcodetype[row] = mtrl.GetInt('pcodetype')
  160. // dw_mtrl.Object.configcodetype[row] = mtrl.GetInt('configcodetype')
  161. dw_mtrl.Object.unit[row] = mtrl.GetString('unit')
  162. dw_mtrl.Object.latestQuotePrice[row] = mtrl.GetDouble('latestQuotePrice')
  163. dw_mtrl.Object.latestQuoteRebate[row] = mtrl.GetDouble('latestQuoteRebate')
  164. dw_mtrl.Object.latestAcceptPrice[row] = mtrl.GetDouble('latestAcceptPrice')
  165. dw_mtrl.Object.latestAcceptRebate[row] = mtrl.GetDouble('latestAcceptRebate')
  166. next
  167. dw_mtrl.AcceptText()
  168. dw_mtrl.SetRedraw(true)
  169. if (dw_mtrl.RowCount() > 0) then
  170. dw_mtrl.SelectRow(0, false)
  171. dw_mtrl.SelectRow(1, true)
  172. dw_mtrl.SetRow(1)
  173. dw_mtrl.post event RowFocusChanged(1)
  174. end if
  175. end subroutine
  176. public function integer wf_retrieve_quote_his (readonly long a_row);int rslt = 1
  177. if (IsNull(a_row)) then return 0
  178. if (a_row <= 0) then return 0
  179. string arg_msg
  180. long fxmtrlid, cuscomid
  181. fxmtrlid = dw_mtrl.Object.fxmtrlid[a_row]
  182. cuscomid = dw_mtrl.Object.comid[a_row]
  183. if (IsNull(fxmtrlid)) then return 0
  184. if (IsNull(cuscomid)) then return 0
  185. oleobject parm, obj, list, item
  186. parm = FXAppCom.CreatePbDictionary()
  187. parm.SetString('token', app_token_fx)
  188. parm.SetInt('fxmtrlid', fxmtrlid)
  189. parm.SetInt('cuscomid', cuscomid)
  190. obj = FXAppCom.GetMtrlQuoteHistory(parm, ref arg_msg)
  191. if (arg_msg <> '') then
  192. rslt = 0
  193. goto ext
  194. end if
  195. dw_quote_his.Reset()
  196. long i, row
  197. dw_quote_his.SetRedraw(false)
  198. list = obj.GetPBArray('list')
  199. for i = 1 to list.Count
  200. item = list.GetPBDictionary(i - 1)
  201. row = dw_quote_his.InsertRow(0)
  202. dw_quote_his.Object.quoteid[row] = item.GetInt('quoteid')
  203. dw_quote_his.Object.quotecode[row] = item.GetString('quotecode')
  204. dw_quote_his.Object.assign_emp[row] = item.GetString('assign_emp')
  205. dw_quote_his.Object.opemp[row] = item.GetString('opemp')
  206. if (not IsNull(item.GetDateTime('opdate'))) then
  207. dw_quote_his.Object.opdate[row] = item.GetDateTime('opdate')
  208. end if
  209. dw_quote_his.Object.modemp[row] = item.GetString('modemp')
  210. if (not IsNull(item.GetDateTime('moddate'))) then
  211. dw_quote_his.Object.moddate[row] = item.GetDateTime('moddate')
  212. end if
  213. dw_quote_his.Object.auditemp[row] = item.GetString('auditemp')
  214. if (not IsNull(item.GetDateTime('auditdate'))) then
  215. dw_quote_his.Object.auditdate[row] = item.GetDateTime('auditdate')
  216. end if
  217. dw_quote_his.Object.flag[row] = item.GetInt('flag')
  218. dw_quote_his.Object.sendemp[row] = item.GetString('sendemp')
  219. if (not IsNull(item.GetDateTime('senddate'))) then
  220. dw_quote_his.Object.senddate[row] = item.GetDateTime('senddate')
  221. end if
  222. dw_quote_his.Object.fiebrelcode[row] = item.GetString('fiebrelcode')
  223. dw_quote_his.Object.billtype[row] = item.GetInt('billtype')
  224. dw_quote_his.Object.printid[row] = item.GetInt('printid')
  225. dw_quote_his.Object.sumprice[row] = item.GetDouble('sumprice')
  226. dw_quote_his.Object.sumprice_1[row] = item.GetDouble('sumprice_1')
  227. dw_quote_his.Object.status[row] = item.GetString('status')
  228. dw_quote_his.Object.woodcode[row] = item.GetString('woodcode')
  229. dw_quote_his.Object.pcode[row] = item.GetString('pcode')
  230. dw_quote_his.Object.rebate[row] = item.GetDouble('rebate')
  231. dw_quote_his.Object.qty[row] = item.GetDouble('qty')
  232. dw_quote_his.Object.qty1[row] = item.GetDouble('qty1')
  233. dw_quote_his.Object.unit[row] = item.GetString('unit')
  234. dw_quote_his.Object.mxdscrp[row] = item.GetString('mxdscrp')
  235. dw_quote_his.Object.mxdscrp2[row] = item.GetString('mxdscrp2')
  236. next
  237. dw_quote_his.AcceptText()
  238. dw_quote_his.SetRedraw(true)
  239. ext:
  240. if (rslt <> 1) then
  241. MessageBox('提示', arg_msg)
  242. end if
  243. return rslt
  244. end function
  245. public subroutine wf_init_split ();//将所有该分割条的上下的object都进行注册
  246. st_split.of_Reset()
  247. st_split.of_Register(tv_1, st_split.ABOVE)
  248. st_split.of_Register(dw_mtrl, st_split.ABOVE)
  249. st_split.of_Register(dw_quote_his, st_split.BELOW)
  250. //定位拖动条--以tv_1为位移基准
  251. st_split.uf_possplitbar(tv_1)
  252. end subroutine
  253. on w_quote_his_fx.create
  254. int iCurrent
  255. call super::create
  256. this.st_1=create st_1
  257. this.ln_1=create ln_1
  258. this.ln_2=create ln_2
  259. this.ddlb_cus=create ddlb_cus
  260. this.tv_1=create tv_1
  261. this.st_split=create st_split
  262. this.dw_mtrl=create dw_mtrl
  263. this.dw_quote_his=create dw_quote_his
  264. this.st_2=create st_2
  265. this.sle_lisestr=create sle_lisestr
  266. this.st_3=create st_3
  267. this.em_pagesize=create em_pagesize
  268. this.st_4=create st_4
  269. this.em_cur_page=create em_cur_page
  270. this.pb_page_top=create pb_page_top
  271. this.pb_uppage=create pb_uppage
  272. this.pb_dnpage=create pb_dnpage
  273. this.pb_page_end=create pb_page_end
  274. this.st_allpages=create st_allpages
  275. this.pb_search=create pb_search
  276. iCurrent=UpperBound(this.Control)
  277. this.Control[iCurrent+1]=this.st_1
  278. this.Control[iCurrent+2]=this.ln_1
  279. this.Control[iCurrent+3]=this.ln_2
  280. this.Control[iCurrent+4]=this.ddlb_cus
  281. this.Control[iCurrent+5]=this.tv_1
  282. this.Control[iCurrent+6]=this.st_split
  283. this.Control[iCurrent+7]=this.dw_mtrl
  284. this.Control[iCurrent+8]=this.dw_quote_his
  285. this.Control[iCurrent+9]=this.st_2
  286. this.Control[iCurrent+10]=this.sle_lisestr
  287. this.Control[iCurrent+11]=this.st_3
  288. this.Control[iCurrent+12]=this.em_pagesize
  289. this.Control[iCurrent+13]=this.st_4
  290. this.Control[iCurrent+14]=this.em_cur_page
  291. this.Control[iCurrent+15]=this.pb_page_top
  292. this.Control[iCurrent+16]=this.pb_uppage
  293. this.Control[iCurrent+17]=this.pb_dnpage
  294. this.Control[iCurrent+18]=this.pb_page_end
  295. this.Control[iCurrent+19]=this.st_allpages
  296. this.Control[iCurrent+20]=this.pb_search
  297. end on
  298. on w_quote_his_fx.destroy
  299. call super::destroy
  300. destroy(this.st_1)
  301. destroy(this.ln_1)
  302. destroy(this.ln_2)
  303. destroy(this.ddlb_cus)
  304. destroy(this.tv_1)
  305. destroy(this.st_split)
  306. destroy(this.dw_mtrl)
  307. destroy(this.dw_quote_his)
  308. destroy(this.st_2)
  309. destroy(this.sle_lisestr)
  310. destroy(this.st_3)
  311. destroy(this.em_pagesize)
  312. destroy(this.st_4)
  313. destroy(this.em_cur_page)
  314. destroy(this.pb_page_top)
  315. destroy(this.pb_uppage)
  316. destroy(this.pb_dnpage)
  317. destroy(this.pb_page_end)
  318. destroy(this.st_allpages)
  319. destroy(this.pb_search)
  320. end on
  321. event resize;call super::resize;ln_1.endx = this.width
  322. ln_2.endx = this.width
  323. if (this.Width < 4100) then this.Width = 4100
  324. if (this.Height < 2500) then this.Height = 2500
  325. dw_mtrl.Height = tv_1.Height
  326. dw_mtrl.Width = this.workspacewidth( ) - dw_mtrl.X
  327. dw_quote_his.Width = this.workspacewidth( )
  328. dw_quote_his.Height = this.workspaceheight( ) - dw_quote_his.Y
  329. st_split.Width = this.workspacewidth( )
  330. st_split.Y = tv_1.Y + tv_1.Height
  331. cb_exit.X = this.workspacewidth( ) - cb_exit.Width
  332. end event
  333. event open;call super::open;ins_ds_cus = create datastore
  334. ins_ds_cus.DataObject = 'dw_fx_cust_ch'
  335. ins_ds_cus.Reset()
  336. ins_mtrltypes = create datastore
  337. ins_mtrltypes.DataObject = 'ds_fx_mtrltype'
  338. ins_mtrltypes.Reset()
  339. string arg_msg
  340. if (f_find_fx_user_power(19, ref arg_msg) <> 1) then // 19-最新报价统计表
  341. MessageBox('权限提示', arg_msg)
  342. Close(this)
  343. return
  344. end if
  345. oleobject list, item, parm, obj
  346. parm = FXAppCom.CreatePbDictionary()
  347. parm.SetString('token', app_token_fx)
  348. obj = FXAppCom.GetMyCustList(parm, ref arg_msg)
  349. if (arg_msg <> '') then
  350. MessageBox('提示', '获取客户列表失败:' + arg_msg)
  351. Close(this)
  352. return
  353. end if
  354. list = obj.GetPBArray('list')
  355. long i, row, index
  356. string temp_comname //ddlb_cus
  357. if (list.Count > 0) then
  358. for i = 1 to list.Count
  359. item = list.GetPBDictionary(i - 1)
  360. row = ins_ds_cus.InsertRow(0)
  361. temp_comname = Trim(item.GetString('comname'))
  362. index = ddlb_cus.AddItem(Trim(temp_comname))
  363. ins_ds_cus.Object.ch[i] = index // 使用ch字段记录当前客户在下拉菜单的index
  364. ins_ds_cus.Object.comid[row] = item.GetInt('comid')
  365. ins_ds_cus.Object.comname[row] = temp_comname
  366. ins_ds_cus.Object.simplename[row] = item.GetString('simplename')
  367. // ins_ds_cus.Object.custype[row] = item.GetString('custype')
  368. // ins_ds_cus.Object.tele[row] = item.GetString('tele')
  369. ins_ds_cus.Object.address[row] = item.GetString('address')
  370. ins_ds_cus.Object.freight[row] = item.GetString('freight')
  371. ins_ds_cus.Object.freight_tele[row] = item.GetString('freight_tele')
  372. next
  373. ins_ds_cus.AcceptText()
  374. ddlb_cus.SelectItem(1)
  375. ddlb_cus.post event selectionchanged(1)
  376. else
  377. ddlb_cus.InsertItem('-=没有客户=-', 0)
  378. end if
  379. wf_init_split()
  380. end event
  381. event close;call super::close;destroy ins_ds_cus
  382. destroy ins_mtrltypes
  383. end event
  384. type cb_func from w_publ_base_style`cb_func within w_quote_his_fx
  385. string normalpicname = "setting.BMP"
  386. integer picsize = 16
  387. end type
  388. type cb_exit from w_publ_base_style`cb_exit within w_quote_his_fx
  389. integer x = 2533
  390. end type
  391. type ln_bar from w_publ_base_style`ln_bar within w_quote_his_fx
  392. end type
  393. type ln_bar2 from w_publ_base_style`ln_bar2 within w_quote_his_fx
  394. end type
  395. type r_bar from w_publ_base_style`r_bar within w_quote_his_fx
  396. end type
  397. type st_1 from statictext within w_quote_his_fx
  398. integer x = 23
  399. integer y = 196
  400. integer width = 265
  401. integer height = 56
  402. boolean bringtotop = true
  403. integer textsize = -9
  404. integer weight = 400
  405. fontcharset fontcharset = gb2312charset!
  406. fontpitch fontpitch = variable!
  407. string facename = "宋体"
  408. long textcolor = 33554432
  409. long backcolor = 16777215
  410. string text = "客户列表:"
  411. boolean focusrectangle = false
  412. end type
  413. type ln_1 from line within w_quote_his_fx
  414. long linecolor = 268435456
  415. integer linethickness = 4
  416. integer beginy = 280
  417. integer endx = 667
  418. integer endy = 280
  419. end type
  420. type ln_2 from line within w_quote_his_fx
  421. long linecolor = 16777215
  422. integer linethickness = 4
  423. integer beginy = 284
  424. integer endx = 946
  425. integer endy = 284
  426. end type
  427. type ddlb_cus from dropdownlistbox within w_quote_his_fx
  428. integer x = 270
  429. integer y = 184
  430. integer width = 645
  431. integer height = 600
  432. integer taborder = 20
  433. boolean bringtotop = true
  434. integer textsize = -9
  435. integer weight = 400
  436. fontcharset fontcharset = gb2312charset!
  437. fontpitch fontpitch = variable!
  438. string facename = "宋体"
  439. long textcolor = 33554432
  440. boolean vscrollbar = true
  441. borderstyle borderstyle = stylelowered!
  442. end type
  443. event selectionchanged;if (this.Text = '-=没有客户=-') then return
  444. long comid, findRow
  445. if (index > 0) then
  446. findRow = ins_ds_cus.Find('ch = ' + string(index), 1, ins_ds_cus.RowCount())
  447. if (findRow > 0) then
  448. comid = ins_ds_cus.Object.comid[findRow]
  449. ins_cuscomid = comid
  450. wf_retrieve_mtrltype(comid)
  451. end if
  452. end if
  453. end event
  454. type tv_1 from uo_tv_fx_mtrltype within w_quote_his_fx
  455. integer y = 288
  456. integer width = 914
  457. integer height = 1408
  458. integer taborder = 30
  459. boolean bringtotop = true
  460. integer textsize = -9
  461. fontcharset fontcharset = gb2312charset!
  462. fontfamily fontfamily = anyfont!
  463. string facename = "宋体"
  464. string picturename[] = {"StaticText!","Structure5!"}
  465. end type
  466. event selectionchanged;call super::selectionchanged;wf_retrieve_mtrl(this.ins_cur_info.mtrltypeid[1], this.ins_cur_info.sonflag[1])
  467. end event
  468. type st_split from u_lbs_stsplitbar within w_quote_his_fx
  469. integer y = 1696
  470. integer height = 16
  471. boolean bringtotop = true
  472. end type
  473. event clicked;call super::clicked;parent.postevent('resize')
  474. end event
  475. type dw_mtrl from u_dw_rbtnfilter within w_quote_his_fx
  476. integer x = 910
  477. integer y = 288
  478. integer width = 3529
  479. integer height = 1408
  480. integer taborder = 20
  481. string dataobject = "dw_fx_mtrldef_with_quote"
  482. boolean hscrollbar = true
  483. boolean vscrollbar = true
  484. boolean hsplitscroll = true
  485. boolean rbutton_filter_use = true
  486. boolean rbutton_setposition_use = true
  487. boolean titleclick_sort_use = true
  488. end type
  489. event clicked;call super::clicked;if (row > 0) then
  490. this.SelectRow(0, false)
  491. this.SelectRow(row, true)
  492. this.SetRow(row)
  493. end if
  494. end event
  495. event rowfocuschanged;call super::rowfocuschanged;if (currentrow > 0) then
  496. this.SelectRow(0, false)
  497. this.SelectRow(currentrow, true)
  498. this.SetRow(currentrow)
  499. wf_retrieve_quote_his(currentrow)
  500. end if
  501. end event
  502. type dw_quote_his from u_dw_rbtnfilter within w_quote_his_fx
  503. integer y = 1712
  504. integer width = 4439
  505. integer height = 732
  506. integer taborder = 20
  507. boolean bringtotop = true
  508. string dataobject = "dw_fx_quote_his"
  509. boolean hscrollbar = true
  510. boolean vscrollbar = true
  511. boolean hsplitscroll = true
  512. boolean rbutton_filter_use = true
  513. boolean rbutton_setposition_use = true
  514. boolean titleclick_sort_use = true
  515. end type
  516. event clicked;call super::clicked;if (row > 0) then
  517. this.SelectRow(0, false)
  518. this.SelectRow(row, true)
  519. this.SetRow(row)
  520. end if
  521. end event
  522. event rowfocuschanged;call super::rowfocuschanged;if (currentrow > 0) then
  523. this.SelectRow(0, false)
  524. this.SelectRow(currentrow, true)
  525. this.SetRow(currentrow)
  526. end if
  527. end event
  528. type st_2 from statictext within w_quote_his_fx
  529. integer x = 942
  530. integer y = 200
  531. integer width = 453
  532. integer height = 48
  533. boolean bringtotop = true
  534. integer textsize = -9
  535. integer weight = 400
  536. fontcharset fontcharset = gb2312charset!
  537. fontpitch fontpitch = variable!
  538. string facename = "宋体"
  539. long backcolor = 16777215
  540. string text = "物料编码/名称含:"
  541. boolean focusrectangle = false
  542. end type
  543. type sle_lisestr from singlelineedit within w_quote_his_fx
  544. integer x = 1381
  545. integer y = 184
  546. integer width = 640
  547. integer height = 84
  548. integer taborder = 30
  549. boolean bringtotop = true
  550. integer textsize = -9
  551. integer weight = 400
  552. fontcharset fontcharset = gb2312charset!
  553. fontpitch fontpitch = variable!
  554. string facename = "宋体"
  555. long textcolor = 33554432
  556. borderstyle borderstyle = stylelowered!
  557. end type
  558. event modified;em_cur_page.Text = '1'
  559. pb_search.post event clicked()
  560. end event
  561. type st_3 from statictext within w_quote_his_fx
  562. integer x = 2176
  563. integer y = 200
  564. integer width = 261
  565. integer height = 48
  566. boolean bringtotop = true
  567. integer textsize = -9
  568. integer weight = 400
  569. fontcharset fontcharset = gb2312charset!
  570. fontpitch fontpitch = variable!
  571. string facename = "宋体"
  572. long backcolor = 16777215
  573. string text = "显示行数:"
  574. boolean focusrectangle = false
  575. end type
  576. type em_pagesize from editmask within w_quote_his_fx
  577. integer x = 2423
  578. integer y = 184
  579. integer width = 293
  580. integer height = 84
  581. integer taborder = 40
  582. boolean bringtotop = true
  583. integer textsize = -9
  584. integer weight = 400
  585. fontcharset fontcharset = gb2312charset!
  586. fontpitch fontpitch = variable!
  587. string facename = "宋体"
  588. long textcolor = 33554432
  589. string text = "100"
  590. alignment alignment = center!
  591. borderstyle borderstyle = stylelowered!
  592. string mask = "#####"
  593. boolean spin = true
  594. double increment = 1
  595. string minmax = "1~~"
  596. end type
  597. event modified;long temp
  598. temp = long(this.Text)
  599. if (temp <= 0) then
  600. this.Text = '1'
  601. end if
  602. end event
  603. type st_4 from statictext within w_quote_his_fx
  604. integer x = 2752
  605. integer y = 200
  606. integer width = 206
  607. integer height = 48
  608. boolean bringtotop = true
  609. integer textsize = -9
  610. integer weight = 400
  611. fontcharset fontcharset = gb2312charset!
  612. fontpitch fontpitch = variable!
  613. string facename = "宋体"
  614. long backcolor = 16777215
  615. string text = "当前页:"
  616. boolean focusrectangle = false
  617. end type
  618. type em_cur_page from editmask within w_quote_his_fx
  619. integer x = 2944
  620. integer y = 188
  621. integer width = 151
  622. integer height = 76
  623. integer taborder = 50
  624. boolean bringtotop = true
  625. integer textsize = -9
  626. integer weight = 400
  627. fontcharset fontcharset = gb2312charset!
  628. fontpitch fontpitch = variable!
  629. string facename = "宋体"
  630. long textcolor = 33554432
  631. string text = "1"
  632. alignment alignment = center!
  633. borderstyle borderstyle = stylelowered!
  634. string mask = "#####"
  635. string minmax = "1~~"
  636. end type
  637. event modified;long temp
  638. temp = long(this.Text)
  639. if (temp <= 0) then
  640. this.Text = '1'
  641. end if
  642. end event
  643. type pb_page_top from picturebutton within w_quote_his_fx
  644. integer x = 3264
  645. integer y = 176
  646. integer width = 110
  647. integer height = 96
  648. integer taborder = 20
  649. boolean bringtotop = true
  650. integer textsize = -9
  651. integer weight = 400
  652. fontcharset fontcharset = gb2312charset!
  653. fontpitch fontpitch = variable!
  654. string facename = "宋体"
  655. string picturename = "graphics\page_top.BMP"
  656. string disabledname = "graphics\page_top.BMP"
  657. alignment htextalign = left!
  658. string powertiptext = "首页"
  659. end type
  660. event clicked;long temp
  661. temp = long(em_cur_page.Text)
  662. if (temp <= 1) then return
  663. em_cur_page.Text = '1'
  664. pb_search.post event clicked()
  665. end event
  666. type pb_uppage from picturebutton within w_quote_his_fx
  667. integer x = 3406
  668. integer y = 176
  669. integer width = 110
  670. integer height = 96
  671. integer taborder = 30
  672. boolean bringtotop = true
  673. integer textsize = -9
  674. integer weight = 400
  675. fontcharset fontcharset = gb2312charset!
  676. fontpitch fontpitch = variable!
  677. string facename = "宋体"
  678. string picturename = "graphics\page_up.BMP"
  679. string disabledname = "graphics\page_up.BMP"
  680. alignment htextalign = left!
  681. string powertiptext = "上一页"
  682. end type
  683. event clicked;long temp
  684. temp = long(em_cur_page.Text)
  685. if (temp <= 1) then return
  686. em_cur_page.Text = string(temp - 1)
  687. pb_search.post event clicked()
  688. end event
  689. type pb_dnpage from picturebutton within w_quote_his_fx
  690. integer x = 3547
  691. integer y = 176
  692. integer width = 110
  693. integer height = 96
  694. integer taborder = 30
  695. boolean bringtotop = true
  696. integer textsize = -9
  697. integer weight = 400
  698. fontcharset fontcharset = gb2312charset!
  699. fontpitch fontpitch = variable!
  700. string facename = "宋体"
  701. string picturename = "graphics\page_dn.BMP"
  702. string disabledname = "graphics\page_dn.BMP"
  703. alignment htextalign = left!
  704. string powertiptext = "下一页"
  705. end type
  706. event clicked;long temp
  707. temp = long(em_cur_page.Text)
  708. if (temp >= ins_allpages) then return
  709. em_cur_page.Text = string(temp + 1)
  710. pb_search.post event clicked()
  711. end event
  712. type pb_page_end from picturebutton within w_quote_his_fx
  713. integer x = 3689
  714. integer y = 176
  715. integer width = 110
  716. integer height = 96
  717. integer taborder = 40
  718. boolean bringtotop = true
  719. integer textsize = -9
  720. integer weight = 400
  721. fontcharset fontcharset = gb2312charset!
  722. fontpitch fontpitch = variable!
  723. string facename = "宋体"
  724. string picturename = "graphics\page_end.BMP"
  725. string disabledname = "graphics\page_end.BMP"
  726. alignment htextalign = left!
  727. string powertiptext = "末页"
  728. end type
  729. event clicked;long temp
  730. temp = long(em_cur_page.Text)
  731. if (temp >= ins_allpages) then return
  732. em_cur_page.Text = string(ins_allpages)
  733. pb_search.post event clicked()
  734. end event
  735. type st_allpages from statictext within w_quote_his_fx
  736. integer x = 3104
  737. integer y = 200
  738. integer width = 160
  739. integer height = 48
  740. integer textsize = -9
  741. integer weight = 400
  742. fontcharset fontcharset = gb2312charset!
  743. fontpitch fontpitch = variable!
  744. string facename = "宋体"
  745. long backcolor = 16777215
  746. string text = "/1"
  747. boolean focusrectangle = false
  748. end type
  749. type pb_search from picturebutton within w_quote_his_fx
  750. integer x = 2030
  751. integer y = 176
  752. integer width = 110
  753. integer height = 96
  754. integer taborder = 20
  755. boolean bringtotop = true
  756. integer textsize = -9
  757. integer weight = 400
  758. fontcharset fontcharset = gb2312charset!
  759. fontpitch fontpitch = variable!
  760. string facename = "宋体"
  761. string picturename = "PREVIEW.BMP"
  762. string disabledname = "PREVIEW.BMP"
  763. alignment htextalign = left!
  764. string powertiptext = "查询"
  765. end type
  766. event clicked;long handle
  767. handle = tv_1.FindItem(CurrentTreeItem!, 0)
  768. if (handle > - 1) then
  769. tv_1.post event selectionchanged(0, handle)
  770. end if
  771. end event