w_spt_price_change_erp.srw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. $PBExportHeader$w_spt_price_change_erp.srw
  2. $PBExportComments$供应商询价单(ERP的询价单)
  3. forward
  4. global type w_spt_price_change_erp from w_publ_base_style
  5. end type
  6. type cb_retrieve from uo_imflatbutton within w_spt_price_change_erp
  7. end type
  8. type cb_toppage from uo_imflatbutton within w_spt_price_change_erp
  9. end type
  10. type cb_page_ch from uo_imflatbutton within w_spt_price_change_erp
  11. end type
  12. type em_pagesize from editmask within w_spt_price_change_erp
  13. end type
  14. type cb_1 from uo_imflatbutton within w_spt_price_change_erp
  15. end type
  16. type st_1 from statictext within w_spt_price_change_erp
  17. end type
  18. type em_datea from editmask within w_spt_price_change_erp
  19. end type
  20. type st_2 from statictext within w_spt_price_change_erp
  21. end type
  22. type st_3 from statictext within w_spt_price_change_erp
  23. end type
  24. type em_datez from editmask within w_spt_price_change_erp
  25. end type
  26. type sle_likestr from singlelineedit within w_spt_price_change_erp
  27. end type
  28. type dw_main_ff from datawindow within w_spt_price_change_erp
  29. end type
  30. type dw_main from u_dw_rbtnfilter within w_spt_price_change_erp
  31. end type
  32. type dw_mx from u_dw_rbtnfilter within w_spt_price_change_erp
  33. end type
  34. type cb_2 from commandbutton within w_spt_price_change_erp
  35. end type
  36. end forward
  37. global type w_spt_price_change_erp from w_publ_base_style
  38. integer width = 4713
  39. integer height = 2604
  40. string title = "供应商询价单"
  41. boolean maxbox = true
  42. boolean resizable = true
  43. long backcolor = 16777215
  44. event ue_page_next ( )
  45. event ue_page_before ( )
  46. event ue_page_end ( )
  47. cb_retrieve cb_retrieve
  48. cb_toppage cb_toppage
  49. cb_page_ch cb_page_ch
  50. em_pagesize em_pagesize
  51. cb_1 cb_1
  52. st_1 st_1
  53. em_datea em_datea
  54. st_2 st_2
  55. st_3 st_3
  56. em_datez em_datez
  57. sle_likestr sle_likestr
  58. dw_main_ff dw_main_ff
  59. dw_main dw_main
  60. dw_mx dw_mx
  61. cb_2 cb_2
  62. end type
  63. global w_spt_price_change_erp w_spt_price_change_erp
  64. type variables
  65. long ins_cur_pageNum = 1 // 用于记录当前页码
  66. long ins_totalPages = 1 // 用于记录总页数
  67. end variables
  68. forward prototypes
  69. public function integer wf_retrieve_sptprice ()
  70. public function integer wf_retrieve_sptpricemx (readonly string a_sn)
  71. end prototypes
  72. event ue_page_next();// 下页
  73. //if (ins_cur_pageNum = ins_totalPages) then return
  74. ins_cur_pageNum ++
  75. cb_retrieve.post event clicked()
  76. end event
  77. event ue_page_before();// 上页
  78. if (ins_cur_pageNum = 1) then return
  79. ins_cur_pageNum --
  80. cb_retrieve.post event clicked()
  81. end event
  82. event ue_page_end();//// 末页
  83. //if (ins_cur_pageNum = ins_totalPages) then return
  84. //
  85. //ins_cur_pageNum = ins_totalPages
  86. end event
  87. public function integer wf_retrieve_sptprice ();int rslt = 1
  88. string arg_msg
  89. long pageSize
  90. pageSize = long(em_pagesize.Text)
  91. if (pageSize <= 0) then
  92. rslt = 0
  93. arg_msg = '每页显示行数必须大于0'
  94. em_pagesize.SetFocus( )
  95. em_pagesize.SelectText(1, Len(em_pagesize.Text))
  96. goto ext
  97. end if
  98. long pageNum
  99. pageNum = ins_cur_pageNum
  100. datetime dateA, dateZ
  101. dateA = DateTime(Date(em_dateA.Text), Time(0))
  102. dateZ = DateTime(Date(em_dateZ.Text), Time('23:59:59'))
  103. string likeStr
  104. likeStr = Trim(sle_likestr.Text)
  105. oleobject obj, parm, list, item
  106. parm = FxAppCom.CreatePbDictionary()
  107. parm.SetString('token', app_token_fx)
  108. parm.SetInt('pageSize', pageSize)
  109. parm.SetInt('pageNum', pageNum)
  110. parm.SetDateTime('dateA', dateA)
  111. parm.SetDateTime('dateZ', dateZ)
  112. parm.SetString('likeStr', likeStr)
  113. obj = FXAppCom.GetErpSptPriceChange(parm, ref arg_msg)
  114. if (arg_msg <> '') then
  115. rslt = 0
  116. goto ext
  117. end if
  118. dw_main.Reset()
  119. dw_main_ff.Reset()
  120. dw_mx.Reset()
  121. dw_main.SetRedraw(false)
  122. long i, row
  123. list = obj.GetPBArray('list')
  124. for i = 1 to list.Count
  125. item = list.GetPBDictionary(i - 1)
  126. row = dw_main.InsertRow(0)
  127. dw_main.Object.SerialNum[row] = item.GetString('SerialNum')
  128. dw_main.Object.SendSCcode[row] = item.GetString('SendSCcode')
  129. dw_main.Object.AddUser[row] = item.GetString('AddUser')
  130. if (not IsNull(item.GetDateTime('AddTime'))) then
  131. dw_main.Object.AddTime[row] = item.GetDateTime('AddTime')
  132. end if
  133. if (not IsNull(item.GetDateTime('SendTime'))) then
  134. dw_main.Object.LJFIEB_packet_SendTime[row] = item.GetDateTime('SendTime')
  135. end if
  136. if (not IsNull(item.GetDateTime('ConfirmTime'))) then
  137. dw_main.Object.ConfirmTime[row] = item.GetDateTime('ConfirmTime')
  138. end if
  139. dw_main.Object.ConfirmUser[row] = item.GetString('ConfirmUser')
  140. dw_main.Object.RelatedCode[row] = item.GetString('RelatedCode')
  141. dw_main.Object.billcode[row] = item.GetString('billcode')
  142. dw_main.Object.inrep[row] = item.GetString('inrep')
  143. dw_main.Object.dscrp[row] = item.GetString('dscrp')
  144. dw_main.Object.opemp[row] = item.GetString('opemp')
  145. if (not IsNull(item.GetDateTime('opdate'))) then
  146. dw_main.Object.LJFIEB_tempspt_price_change_opdate[row] = item.GetDateTime('opdate')
  147. end if
  148. dw_main.Object.LJFIEB_tempspt_price_change_moneyname[row] = item.GetString('moneyname')
  149. if (not IsNull(item.GetDateTime('requiredate'))) then
  150. dw_main.Object.requiredate[row] = item.GetDateTime('requiredate')
  151. end if
  152. dw_main.Object.comname[row] = item.GetString('comname')
  153. dw_main.Object.simplename[row] = item.GetString('simplename')
  154. next
  155. dw_main.SetRedraw(true)
  156. ext:
  157. if (rslt = 1) then
  158. if (dw_main.RowCount() > 0) then
  159. dw_main.SelectRow(0, false)
  160. dw_main.SelectRow(1, true)
  161. dw_main.SetRow(1)
  162. dw_main.post event RowFocusChanged(1)
  163. end if
  164. else
  165. MessageBox('提示', arg_msg)
  166. end if
  167. return rslt
  168. end function
  169. public function integer wf_retrieve_sptpricemx (readonly string a_sn);int rslt = 1
  170. if (IsNull(a_sn)) then return 0
  171. if (a_sn = '') then return 0
  172. string arg_msg = ''
  173. oleobject obj, parm, list, item
  174. parm = FxAppCom.CreatePbDictionary()
  175. parm.SetString('token', app_token_fx)
  176. parm.SetString('sn', a_sn)
  177. obj = FXAppCom.GetErpSptPriceChangeMx(parm, ref arg_msg)
  178. if (arg_msg <> '') then
  179. rslt = 0
  180. goto ext
  181. end if
  182. dw_mx.Reset()
  183. long i, row
  184. list = obj.GetPBArray('list')
  185. for i = 1 to list.Count
  186. item = list.GetPBDictionary(i - 1)
  187. row = dw_mx.InsertRow(0)
  188. dw_mx.Object.billid[row] = item.GetInt('billid')
  189. dw_mx.Object.printid[row] = item.GetInt('printid')
  190. dw_mx.Object.mtrlid[row] = item.GetInt('mtrlid')
  191. dw_mx.Object.sptmtrlcode[row] = item.GetString('sptmtrlcode')
  192. dw_mx.Object.sptmtrlname[row] = item.GetString('sptmtrlname')
  193. dw_mx.Object.sptmtrlmode[row] = item.GetString('sptmtrlmode')
  194. dw_mx.Object.unit[row] = item.GetString('unit')
  195. dw_mx.Object.ljfieb_tempspt_price_changemx_price[row] = item.GetDouble('price')
  196. dw_mx.Object.qty[row] = item.GetDouble('qty')
  197. dw_mx.Object.qty1[row] = item.GetDouble('qty1')
  198. dw_mx.Object.dscrp[row] = item.GetString('dscrp')
  199. dw_mx.Object.status[row] = item.GetString('status')
  200. dw_mx.Object.woodcode[row] = item.GetString('woodcode')
  201. dw_mx.Object.pcode[row] = item.GetString('pcode')
  202. dw_mx.Object.jgdscrp[row] = item.GetString('jgdscrp')
  203. dw_mx.Object.buydays[row] = item.GetDouble('buydays')
  204. if (not IsNull(item.GetDouble('reprice'))) then
  205. dw_mx.Object.ljfieb_tempquotemx_price[row] = item.GetDouble('reprice')
  206. end if
  207. if (not IsNull(item.GetDouble('rebate'))) then
  208. dw_mx.Object.ljfieb_tempquotemx_rebate[row] = item.GetDouble('rebate')
  209. end if
  210. if (not IsNull(item.GetDouble('reBuyDays'))) then
  211. dw_mx.Object.reBuyDays[row] = item.GetDouble('reBuyDays')
  212. end if
  213. if (not IsNull(item.GetDouble('latestQuotePrice'))) then
  214. dw_mx.Object.zxbj_price[row] = item.GetDouble('latestQuotePrice')
  215. end if
  216. if (not IsNull(item.GetDouble('latestQuoteRebate'))) then
  217. dw_mx.Object.zxbj_rebate[row] = item.GetDouble('latestQuoteRebate')
  218. end if
  219. if (not IsNull(item.GetDouble('latestAcceptPrice'))) then
  220. dw_mx.Object.zxjsbj_price[row] = item.GetDouble('latestAcceptPrice')
  221. end if
  222. if (not IsNull(item.GetDouble('latestAcceptRebate'))) then
  223. dw_mx.Object.zxjsbj_rebate[row] = item.GetDouble('latestAcceptRebate')
  224. end if
  225. next
  226. if (f_find_fx_user_power(11, ref arg_msg) <> 1) then // 11-供应商询价单查看(单价)
  227. dw_mx.Modify('destroy ljfieb_tempspt_price_changemx_price_t ~r~n destroy ljfieb_tempspt_price_changemx_price ~r~n')
  228. dw_mx.Modify('destroy ljfieb_tempquotemx_price_t ~r~n destroy ljfieb_tempquotemx_price ~r~n')
  229. dw_mx.Modify('destroy ljfieb_tempquotemx_rebate_t ~r~n destroy ljfieb_tempquotemx_rebate ~r~n')
  230. dw_mx.Modify('destroy ljfieb_tempquotemx_price_t ~r~n destroy ljfieb_tempquotemx_price ~r~n')
  231. dw_mx.Modify('destroy ljfieb_tempquotemx_rebate_t ~r~n destroy ljfieb_tempquotemx_rebate ~r~n')
  232. dw_mx.Modify('destroy zxbj_price_t ~r~n destroy zxbj_price ~r~n')
  233. dw_mx.Modify('destroy zxbj_rebate_t ~r~n destroy zxbj_rebate ~r~n')
  234. dw_mx.Modify('destroy zxjsbj_price_t ~r~n destroy zxjsbj_price ~r~n')
  235. dw_mx.Modify('destroy zxjsbj_rebate_t ~r~n destroy zxjsbj_rebate ~r~n')
  236. dw_mx.Modify('destroy compute_1_t ~r~n destroy compute_1 ~r~n')
  237. dw_mx.Modify('destroy compute_2_t ~r~n destroy compute_2 ~r~n')
  238. dw_mx.Modify('destroy compute_3_t ~r~n destroy compute_3 ~r~n')
  239. end if
  240. ext:
  241. if (rslt <> 1) then
  242. MessageBox('提示', arg_msg)
  243. end if
  244. return rslt
  245. end function
  246. on w_spt_price_change_erp.create
  247. int iCurrent
  248. call super::create
  249. this.cb_retrieve=create cb_retrieve
  250. this.cb_toppage=create cb_toppage
  251. this.cb_page_ch=create cb_page_ch
  252. this.em_pagesize=create em_pagesize
  253. this.cb_1=create cb_1
  254. this.st_1=create st_1
  255. this.em_datea=create em_datea
  256. this.st_2=create st_2
  257. this.st_3=create st_3
  258. this.em_datez=create em_datez
  259. this.sle_likestr=create sle_likestr
  260. this.dw_main_ff=create dw_main_ff
  261. this.dw_main=create dw_main
  262. this.dw_mx=create dw_mx
  263. this.cb_2=create cb_2
  264. iCurrent=UpperBound(this.Control)
  265. this.Control[iCurrent+1]=this.cb_retrieve
  266. this.Control[iCurrent+2]=this.cb_toppage
  267. this.Control[iCurrent+3]=this.cb_page_ch
  268. this.Control[iCurrent+4]=this.em_pagesize
  269. this.Control[iCurrent+5]=this.cb_1
  270. this.Control[iCurrent+6]=this.st_1
  271. this.Control[iCurrent+7]=this.em_datea
  272. this.Control[iCurrent+8]=this.st_2
  273. this.Control[iCurrent+9]=this.st_3
  274. this.Control[iCurrent+10]=this.em_datez
  275. this.Control[iCurrent+11]=this.sle_likestr
  276. this.Control[iCurrent+12]=this.dw_main_ff
  277. this.Control[iCurrent+13]=this.dw_main
  278. this.Control[iCurrent+14]=this.dw_mx
  279. this.Control[iCurrent+15]=this.cb_2
  280. end on
  281. on w_spt_price_change_erp.destroy
  282. call super::destroy
  283. destroy(this.cb_retrieve)
  284. destroy(this.cb_toppage)
  285. destroy(this.cb_page_ch)
  286. destroy(this.em_pagesize)
  287. destroy(this.cb_1)
  288. destroy(this.st_1)
  289. destroy(this.em_datea)
  290. destroy(this.st_2)
  291. destroy(this.st_3)
  292. destroy(this.em_datez)
  293. destroy(this.sle_likestr)
  294. destroy(this.dw_main_ff)
  295. destroy(this.dw_main)
  296. destroy(this.dw_mx)
  297. destroy(this.cb_2)
  298. end on
  299. event open;call super::open;string arg_msg // 30-采购订单 31-采购订单查看(单价)
  300. if (f_find_fx_user_power(30, ref arg_msg) <> 1 &
  301. and f_find_fx_user_power(31, ref arg_msg) <> 1) then
  302. MessageBox('权限提示', arg_msg)
  303. Close(this)
  304. return
  305. end if
  306. em_datea.Text = String(RelativeDate(Today(), - 30))
  307. em_datez.Text = String(Today())
  308. wf_retrieve_sptprice()
  309. end event
  310. event resize;call super::resize;if (this.Width < 4100) then this.Width = 4100
  311. if (this.Height < 2500) then this.Height = 2500
  312. dw_main.Width = this.workspacewidth( ) - dw_main.X
  313. dw_mx.Width = this.workspacewidth( )
  314. dw_mx.Height = this.workspaceheight( ) - dw_mx.Y
  315. end event
  316. type cb_func from w_publ_base_style`cb_func within w_spt_price_change_erp
  317. boolean visible = false
  318. integer x = 3113
  319. boolean enabled = false
  320. end type
  321. type cb_exit from w_publ_base_style`cb_exit within w_spt_price_change_erp
  322. integer x = 155
  323. end type
  324. type ln_bar from w_publ_base_style`ln_bar within w_spt_price_change_erp
  325. end type
  326. type ln_bar2 from w_publ_base_style`ln_bar2 within w_spt_price_change_erp
  327. end type
  328. type r_bar from w_publ_base_style`r_bar within w_spt_price_change_erp
  329. end type
  330. type cb_retrieve from uo_imflatbutton within w_spt_price_change_erp
  331. integer width = 151
  332. integer height = 164
  333. integer taborder = 20
  334. boolean bringtotop = true
  335. string text = "刷新"
  336. string normalpicname = "refresh.bmp"
  337. integer picsize = 16
  338. toolbaralignment pic_align = alignattop!
  339. boolean border = false
  340. end type
  341. event clicked;call super::clicked;wf_retrieve_sptprice()
  342. end event
  343. type cb_toppage from uo_imflatbutton within w_spt_price_change_erp
  344. integer x = 626
  345. integer width = 151
  346. integer height = 164
  347. integer taborder = 30
  348. boolean bringtotop = true
  349. string text = "首页"
  350. boolean border = false
  351. end type
  352. event clicked;call super::clicked;ins_cur_pageNum = 1
  353. cb_retrieve.post event clicked()
  354. end event
  355. type cb_page_ch from uo_imflatbutton within w_spt_price_change_erp
  356. integer x = 782
  357. integer width = 82
  358. integer height = 164
  359. integer taborder = 40
  360. boolean bringtotop = true
  361. string text = "▼"
  362. boolean border = false
  363. end type
  364. event clicked;call super::clicked;m_Dfc_Control_PopupMenu dmPopupMenu
  365. string menustr
  366. menustr="Text=下页~tEvent=ue_page_next"
  367. menustr = menustr + "|" + "Text=上页~tEvent=ue_page_before"
  368. //menustr = menustr + "|" + "Text=末页~tEvent=ue_page_end"
  369. if len(trim(menustr))<>0 then
  370. dmPopupMenu = Create m_Dfc_Control_PopupMenu
  371. dmPopupMenu.mf_BuildMenu(This, menustr)
  372. dmPopupMenu.mf_PopMenu()
  373. Destroy dmPopupMenu
  374. end if
  375. end event
  376. type em_pagesize from editmask within w_spt_price_change_erp
  377. integer x = 315
  378. integer y = 44
  379. integer width = 302
  380. integer height = 84
  381. integer taborder = 30
  382. boolean bringtotop = true
  383. integer textsize = -9
  384. integer weight = 400
  385. fontcharset fontcharset = gb2312charset!
  386. fontpitch fontpitch = variable!
  387. string facename = "宋体"
  388. long textcolor = 33554432
  389. string text = "100"
  390. alignment alignment = right!
  391. borderstyle borderstyle = stylelowered!
  392. string mask = "#####"
  393. boolean spin = true
  394. double increment = 1
  395. string minmax = "1~~"
  396. end type
  397. type cb_1 from uo_imflatbutton within w_spt_price_change_erp
  398. boolean visible = false
  399. integer x = 2496
  400. integer width = 151
  401. integer height = 164
  402. integer taborder = 20
  403. boolean bringtotop = true
  404. boolean enabled = false
  405. string text = "打印"
  406. end type
  407. type st_1 from statictext within w_spt_price_change_erp
  408. integer x = 14
  409. integer y = 200
  410. integer width = 183
  411. integer height = 56
  412. boolean bringtotop = true
  413. integer textsize = -9
  414. integer weight = 400
  415. fontcharset fontcharset = gb2312charset!
  416. fontpitch fontpitch = variable!
  417. string facename = "宋体"
  418. long textcolor = 33554432
  419. long backcolor = 16777215
  420. string text = "日期从"
  421. boolean focusrectangle = false
  422. end type
  423. type em_datea from editmask within w_spt_price_change_erp
  424. integer x = 192
  425. integer y = 184
  426. integer width = 389
  427. integer height = 84
  428. integer taborder = 40
  429. boolean bringtotop = true
  430. integer textsize = -9
  431. integer weight = 400
  432. fontcharset fontcharset = gb2312charset!
  433. fontpitch fontpitch = variable!
  434. string facename = "宋体"
  435. long textcolor = 33554432
  436. string text = "0000-00-00"
  437. borderstyle borderstyle = stylelowered!
  438. maskdatatype maskdatatype = datemask!
  439. string mask = "yyyy-mm-dd"
  440. boolean spin = true
  441. end type
  442. type st_2 from statictext within w_spt_price_change_erp
  443. integer x = 599
  444. integer y = 200
  445. integer width = 87
  446. integer height = 56
  447. boolean bringtotop = true
  448. integer textsize = -9
  449. integer weight = 400
  450. fontcharset fontcharset = gb2312charset!
  451. fontpitch fontpitch = variable!
  452. string facename = "宋体"
  453. long textcolor = 33554432
  454. long backcolor = 16777215
  455. string text = "到"
  456. boolean focusrectangle = false
  457. end type
  458. type st_3 from statictext within w_spt_price_change_erp
  459. integer x = 1129
  460. integer y = 200
  461. integer width = 178
  462. integer height = 56
  463. boolean bringtotop = true
  464. integer textsize = -9
  465. integer weight = 400
  466. fontcharset fontcharset = gb2312charset!
  467. fontpitch fontpitch = variable!
  468. string facename = "宋体"
  469. long textcolor = 33554432
  470. long backcolor = 16777215
  471. string text = "单号含"
  472. boolean focusrectangle = false
  473. end type
  474. type em_datez from editmask within w_spt_price_change_erp
  475. integer x = 672
  476. integer y = 184
  477. integer width = 389
  478. integer height = 84
  479. integer taborder = 50
  480. boolean bringtotop = true
  481. integer textsize = -9
  482. integer weight = 400
  483. fontcharset fontcharset = gb2312charset!
  484. fontpitch fontpitch = variable!
  485. string facename = "宋体"
  486. long textcolor = 33554432
  487. string text = "0000-00-00"
  488. borderstyle borderstyle = stylelowered!
  489. maskdatatype maskdatatype = datemask!
  490. string mask = "yyyy-mm-dd"
  491. boolean spin = true
  492. end type
  493. type sle_likestr from singlelineedit within w_spt_price_change_erp
  494. integer x = 1307
  495. integer y = 184
  496. integer width = 503
  497. integer height = 84
  498. integer taborder = 60
  499. boolean bringtotop = true
  500. integer textsize = -9
  501. integer weight = 400
  502. fontcharset fontcharset = gb2312charset!
  503. fontpitch fontpitch = variable!
  504. string facename = "宋体"
  505. long textcolor = 33554432
  506. borderstyle borderstyle = stylelowered!
  507. end type
  508. event modified;cb_retrieve.post event clicked()
  509. end event
  510. type dw_main_ff from datawindow within w_spt_price_change_erp
  511. integer y = 280
  512. integer width = 1714
  513. integer height = 936
  514. integer taborder = 50
  515. boolean bringtotop = true
  516. string title = "none"
  517. string dataobject = "dw_erp_spt_price_change_ff"
  518. boolean livescroll = true
  519. borderstyle borderstyle = stylelowered!
  520. end type
  521. type dw_main from u_dw_rbtnfilter within w_spt_price_change_erp
  522. integer x = 1714
  523. integer y = 280
  524. integer width = 2935
  525. integer height = 936
  526. integer taborder = 20
  527. boolean bringtotop = true
  528. boolean titlebar = true
  529. string title = "单据列表"
  530. string dataobject = "dw_erp_spt_price_change"
  531. boolean controlmenu = true
  532. boolean maxbox = true
  533. boolean hscrollbar = true
  534. boolean vscrollbar = true
  535. boolean resizable = true
  536. boolean hsplitscroll = true
  537. boolean rbutton_filter_use = true
  538. boolean rbutton_setposition_use = true
  539. boolean titleclick_sort_use = true
  540. end type
  541. event rowfocuschanged;call super::rowfocuschanged;if IsNull(currentrow) then
  542. currentrow = this.GetRow()
  543. if IsNull(currentrow) then return
  544. end if
  545. if (currentrow <= 0) then return
  546. this.SelectRow(0, false)
  547. this.SelectRow(currentrow, true)
  548. dw_main_ff.Reset( )
  549. this.RowsCopy(currentrow, currentrow, Primary!, dw_main_ff, 1, Primary!)
  550. string sn
  551. sn = this.Object.SerialNum[currentrow]
  552. wf_retrieve_sptpricemx(sn)
  553. end event
  554. type dw_mx from u_dw_rbtnfilter within w_spt_price_change_erp
  555. integer y = 1216
  556. integer width = 4005
  557. integer height = 1072
  558. integer taborder = 20
  559. boolean titlebar = true
  560. string title = "明细内容"
  561. string dataobject = "dw_erp_spt_price_changemx"
  562. boolean controlmenu = true
  563. boolean maxbox = true
  564. boolean hscrollbar = true
  565. boolean vscrollbar = true
  566. boolean resizable = true
  567. boolean hsplitscroll = true
  568. boolean rbutton_filter_use = true
  569. boolean rbutton_setposition_use = true
  570. boolean titleclick_sort_use = true
  571. end type
  572. event clicked;call super::clicked;if (row > 0) then
  573. this.SelectRow(0, false)
  574. this.SelectRow(row, true)
  575. this.SetRow(row)
  576. end if
  577. end event
  578. event rowfocuschanged;call super::rowfocuschanged;if (currentrow > 0) then
  579. this.SelectRow(0, false)
  580. this.SelectRow(currentrow, true)
  581. this.SetRow(currentrow)
  582. end if
  583. end event
  584. type cb_2 from commandbutton within w_spt_price_change_erp
  585. integer width = 4192
  586. integer height = 2384
  587. integer taborder = 30
  588. boolean bringtotop = true
  589. integer textsize = -12
  590. integer weight = 400
  591. fontcharset fontcharset = ansi!
  592. fontpitch fontpitch = variable!
  593. fontfamily fontfamily = swiss!
  594. string facename = "Tahoma"
  595. string text = "废弃"
  596. end type