w_aifmb_mybuyinfo.srw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  1. $PBExportHeader$w_aifmb_mybuyinfo.srw
  2. forward
  3. global type w_aifmb_mybuyinfo from window
  4. end type
  5. type cb_1 from commandbutton within w_aifmb_mybuyinfo
  6. end type
  7. type em_1 from editmask within w_aifmb_mybuyinfo
  8. end type
  9. type cb_2 from commandbutton within w_aifmb_mybuyinfo
  10. end type
  11. type em_2 from editmask within w_aifmb_mybuyinfo
  12. end type
  13. type tv_1 from uo_aifmb_tv_class within w_aifmb_mybuyinfo
  14. end type
  15. type cb_edit from uo_imflatbutton within w_aifmb_mybuyinfo
  16. end type
  17. type cb_del from uo_imflatbutton within w_aifmb_mybuyinfo
  18. end type
  19. type cb_add from uo_imflatbutton within w_aifmb_mybuyinfo
  20. end type
  21. type r_bar from rectangle within w_aifmb_mybuyinfo
  22. end type
  23. type em_3 from editmask within w_aifmb_mybuyinfo
  24. end type
  25. type pb_1 from picturebutton within w_aifmb_mybuyinfo
  26. end type
  27. type em_4 from editmask within w_aifmb_mybuyinfo
  28. end type
  29. type pb_3 from picturebutton within w_aifmb_mybuyinfo
  30. end type
  31. type st_1 from statictext within w_aifmb_mybuyinfo
  32. end type
  33. type cbx_begin from checkbox within w_aifmb_mybuyinfo
  34. end type
  35. type cbx_end from checkbox within w_aifmb_mybuyinfo
  36. end type
  37. type sle_keyword from singlelineedit within w_aifmb_mybuyinfo
  38. end type
  39. type st_2 from statictext within w_aifmb_mybuyinfo
  40. end type
  41. type cb_search from commandbutton within w_aifmb_mybuyinfo
  42. end type
  43. type cb_exit from uo_imflatbutton within w_aifmb_mybuyinfo
  44. end type
  45. type dw_1 from u_dw_rbtnfilter within w_aifmb_mybuyinfo
  46. end type
  47. type cb_refresh from uo_imflatbutton within w_aifmb_mybuyinfo
  48. end type
  49. type ln_bar from line within w_aifmb_mybuyinfo
  50. end type
  51. type ln_bar2 from line within w_aifmb_mybuyinfo
  52. end type
  53. type ln_1 from line within w_aifmb_mybuyinfo
  54. end type
  55. type ln_2 from line within w_aifmb_mybuyinfo
  56. end type
  57. type ln_3 from line within w_aifmb_mybuyinfo
  58. end type
  59. type ln_4 from line within w_aifmb_mybuyinfo
  60. end type
  61. type ole_1 from uo_aifmb_webbrowser within w_aifmb_mybuyinfo
  62. end type
  63. end forward
  64. global type w_aifmb_mybuyinfo from window
  65. integer width = 3497
  66. integer height = 1876
  67. windowtype windowtype = child!
  68. long backcolor = 67108864
  69. string icon = "AppIcon!"
  70. boolean center = true
  71. event ue_search ( )
  72. cb_1 cb_1
  73. em_1 em_1
  74. cb_2 cb_2
  75. em_2 em_2
  76. tv_1 tv_1
  77. cb_edit cb_edit
  78. cb_del cb_del
  79. cb_add cb_add
  80. r_bar r_bar
  81. em_3 em_3
  82. pb_1 pb_1
  83. em_4 em_4
  84. pb_3 pb_3
  85. st_1 st_1
  86. cbx_begin cbx_begin
  87. cbx_end cbx_end
  88. sle_keyword sle_keyword
  89. st_2 st_2
  90. cb_search cb_search
  91. cb_exit cb_exit
  92. dw_1 dw_1
  93. cb_refresh cb_refresh
  94. ln_bar ln_bar
  95. ln_bar2 ln_bar2
  96. ln_1 ln_1
  97. ln_2 ln_2
  98. ln_3 ln_3
  99. ln_4 ln_4
  100. ole_1 ole_1
  101. end type
  102. global w_aifmb_mybuyinfo w_aifmb_mybuyinfo
  103. type variables
  104. long ins_nodeid_arr[]
  105. end variables
  106. event ue_search();DataStore ds_productcode
  107. ds_productcode = Create DataStore
  108. uo_aifmb = Create uo_aifmb
  109. Int rslt = 1
  110. String arg_msg
  111. DateTime ld_starttime, ld_endtime
  112. IF cbx_begin.Checked THEN
  113. ld_starttime = DateTime(Date(em_3.Text), Time(0))
  114. ELSE
  115. SetNull(ld_starttime)
  116. END IF
  117. IF cbx_end.Checked THEN
  118. ld_endtime = DateTime(Date(em_4.Text), Time(0))
  119. ELSE
  120. SetNull(ld_endtime)
  121. END IF
  122. ds_productcode.DataObject = 'ds_aifmb_searchbuyinfo'
  123. long ll_entid_arr[]
  124. Long ll_curEntid
  125. IF uo_aifmb.uf_getlocaluserid(ll_curEntid, arg_msg) <> 1 THEN
  126. rslt = 0
  127. GOTO ext
  128. END IF
  129. ll_entid_arr[1] = ll_curEntid
  130. Long pageindex = 0
  131. Long pagesize = 0
  132. pageindex = Long(em_1.Text)
  133. IF pageindex <= 0 THEN
  134. em_1.Text = '1'
  135. pageindex = 1
  136. END IF
  137. pagesize = Long(em_2.Text)
  138. IF pagesize <= 0 THEN
  139. em_2.Text = '10'
  140. pagesize = 10
  141. END IF
  142. IF uo_aifmb.uf_searchbuyinfolist(ld_starttime, ld_endtime, sle_keyword.Text, ins_nodeid_arr, ll_entid_arr, pageindex, pagesize, ds_productcode, arg_msg) <> 1 THEN
  143. rslt = 0
  144. GOTO ext
  145. END IF
  146. dw_1.Reset()
  147. ds_productcode.RowsCopy(1, ds_productcode.RowCount(), Primary!, dw_1, 1, Primary!)
  148. ext:
  149. Destroy ds_productcode
  150. Destroy uo_aifmb
  151. IF rslt = 0 THEN
  152. MessageBox('ERROR', arg_msg)
  153. END IF
  154. end event
  155. on w_aifmb_mybuyinfo.create
  156. this.cb_1=create cb_1
  157. this.em_1=create em_1
  158. this.cb_2=create cb_2
  159. this.em_2=create em_2
  160. this.tv_1=create tv_1
  161. this.cb_edit=create cb_edit
  162. this.cb_del=create cb_del
  163. this.cb_add=create cb_add
  164. this.r_bar=create r_bar
  165. this.em_3=create em_3
  166. this.pb_1=create pb_1
  167. this.em_4=create em_4
  168. this.pb_3=create pb_3
  169. this.st_1=create st_1
  170. this.cbx_begin=create cbx_begin
  171. this.cbx_end=create cbx_end
  172. this.sle_keyword=create sle_keyword
  173. this.st_2=create st_2
  174. this.cb_search=create cb_search
  175. this.cb_exit=create cb_exit
  176. this.dw_1=create dw_1
  177. this.cb_refresh=create cb_refresh
  178. this.ln_bar=create ln_bar
  179. this.ln_bar2=create ln_bar2
  180. this.ln_1=create ln_1
  181. this.ln_2=create ln_2
  182. this.ln_3=create ln_3
  183. this.ln_4=create ln_4
  184. this.ole_1=create ole_1
  185. this.Control[]={this.cb_1,&
  186. this.em_1,&
  187. this.cb_2,&
  188. this.em_2,&
  189. this.tv_1,&
  190. this.cb_edit,&
  191. this.cb_del,&
  192. this.cb_add,&
  193. this.r_bar,&
  194. this.em_3,&
  195. this.pb_1,&
  196. this.em_4,&
  197. this.pb_3,&
  198. this.st_1,&
  199. this.cbx_begin,&
  200. this.cbx_end,&
  201. this.sle_keyword,&
  202. this.st_2,&
  203. this.cb_search,&
  204. this.cb_exit,&
  205. this.dw_1,&
  206. this.cb_refresh,&
  207. this.ln_bar,&
  208. this.ln_bar2,&
  209. this.ln_1,&
  210. this.ln_2,&
  211. this.ln_3,&
  212. this.ln_4,&
  213. this.ole_1}
  214. end on
  215. on w_aifmb_mybuyinfo.destroy
  216. destroy(this.cb_1)
  217. destroy(this.em_1)
  218. destroy(this.cb_2)
  219. destroy(this.em_2)
  220. destroy(this.tv_1)
  221. destroy(this.cb_edit)
  222. destroy(this.cb_del)
  223. destroy(this.cb_add)
  224. destroy(this.r_bar)
  225. destroy(this.em_3)
  226. destroy(this.pb_1)
  227. destroy(this.em_4)
  228. destroy(this.pb_3)
  229. destroy(this.st_1)
  230. destroy(this.cbx_begin)
  231. destroy(this.cbx_end)
  232. destroy(this.sle_keyword)
  233. destroy(this.st_2)
  234. destroy(this.cb_search)
  235. destroy(this.cb_exit)
  236. destroy(this.dw_1)
  237. destroy(this.cb_refresh)
  238. destroy(this.ln_bar)
  239. destroy(this.ln_bar2)
  240. destroy(this.ln_1)
  241. destroy(this.ln_2)
  242. destroy(this.ln_3)
  243. destroy(this.ln_4)
  244. destroy(this.ole_1)
  245. end on
  246. event resize;ln_bar.endx = this.width
  247. ln_bar2.endx = this.width
  248. ln_1.endx = this.width
  249. ln_2.endx = this.width
  250. ln_3.endx = this.width
  251. ln_4.endx = this.width
  252. r_bar.width = this.width
  253. tv_1.Height = this.WorkSpaceHeight() - tv_1.Y
  254. dw_1.Height = this.WorkSpaceHeight() - dw_1.Y
  255. dw_1.Width = this.WorkSpaceWidth() - dw_1.X
  256. ole_1.X = this.WorkSpaceWidth() - ole_1.Width
  257. end event
  258. event open;ole_1.Object.Navigate("http://www.fib2b.cn/ad/adforerp.htm?positionid=36")
  259. em_3.Text = string(RelativeDate(Today(), - 7), 'yyyy-MM-dd')
  260. em_4.Text = string(Today(), 'yyyy-MM-dd')
  261. dw_1.SetTransObject(sqlca)
  262. cb_refresh.triggerevent(clicked!)
  263. end event
  264. type cb_1 from commandbutton within w_aifmb_mybuyinfo
  265. integer x = 901
  266. integer y = 308
  267. integer width = 242
  268. integer height = 84
  269. integer taborder = 40
  270. integer textsize = -9
  271. integer weight = 400
  272. fontcharset fontcharset = gb2312charset!
  273. fontpitch fontpitch = variable!
  274. string facename = "宋体"
  275. string text = "上一页"
  276. end type
  277. event clicked;long pageindex
  278. pageindex = long(em_1.Text)
  279. pageindex -= 1
  280. em_1.Text = string(pageindex)
  281. parent.triggerevent('ue_search')
  282. end event
  283. type em_1 from editmask within w_aifmb_mybuyinfo
  284. integer x = 1143
  285. integer y = 308
  286. integer width = 165
  287. integer height = 84
  288. integer taborder = 40
  289. integer textsize = -9
  290. integer weight = 400
  291. fontcharset fontcharset = gb2312charset!
  292. fontpitch fontpitch = variable!
  293. string facename = "宋体"
  294. long textcolor = 33554432
  295. string text = "1"
  296. alignment alignment = right!
  297. borderstyle borderstyle = stylelowered!
  298. string mask = "#,##0"
  299. end type
  300. type cb_2 from commandbutton within w_aifmb_mybuyinfo
  301. integer x = 1307
  302. integer y = 308
  303. integer width = 242
  304. integer height = 84
  305. integer taborder = 40
  306. integer textsize = -9
  307. integer weight = 400
  308. fontcharset fontcharset = gb2312charset!
  309. fontpitch fontpitch = variable!
  310. string facename = "宋体"
  311. string text = "下一页"
  312. end type
  313. event clicked;long pageindex
  314. pageindex = long(em_1.Text)
  315. pageindex += 1
  316. em_1.Text = string(pageindex)
  317. parent.triggerevent('ue_search')
  318. end event
  319. type em_2 from editmask within w_aifmb_mybuyinfo
  320. integer x = 1573
  321. integer y = 308
  322. integer width = 165
  323. integer height = 84
  324. integer taborder = 40
  325. integer textsize = -9
  326. integer weight = 400
  327. fontcharset fontcharset = gb2312charset!
  328. fontpitch fontpitch = variable!
  329. string facename = "宋体"
  330. long textcolor = 33554432
  331. string text = "10"
  332. alignment alignment = right!
  333. borderstyle borderstyle = stylelowered!
  334. string mask = "#,##0"
  335. end type
  336. type tv_1 from uo_aifmb_tv_class within w_aifmb_mybuyinfo
  337. integer y = 420
  338. integer width = 841
  339. integer taborder = 40
  340. end type
  341. event ue_selectionchanged;call super::ue_selectionchanged;ins_nodeid_arr = uo_nodeid_arr
  342. IF uo_keyword <> '' THEN
  343. sle_keyword.Text = uo_keyword
  344. END IF
  345. end event
  346. on tv_1.destroy
  347. call uo_aifmb_tv_class::destroy
  348. end on
  349. type cb_edit from uo_imflatbutton within w_aifmb_mybuyinfo
  350. integer x = 155
  351. integer width = 151
  352. integer height = 164
  353. integer taborder = 30
  354. string text = "修改"
  355. string normalpicname = "open.bmp"
  356. integer picsize = 16
  357. toolbaralignment pic_align = alignattop!
  358. boolean border = false
  359. end type
  360. event clicked;call super::clicked;Long row
  361. row = dw_1.GetRow()
  362. IF row <= 0 THEN RETURN
  363. s_aifmb_buyinfo s_tran
  364. s_tran.BuyID = dw_1.Object.BuyID[row]
  365. s_tran.EntID = dw_1.Object.EntID[row]
  366. s_tran.CreaterID = dw_1.Object.CreaterID[row]
  367. s_tran.CreatTime = dw_1.Object.CreatTime[row]
  368. s_tran.IsAudit = dw_1.Object.IsAudit[row]
  369. s_tran.AuditerID = dw_1.Object.AuditerID[row]
  370. s_tran.AuditTime = dw_1.Object.AuditTime[row]
  371. s_tran.StartTime = dw_1.Object.StartTime[row]
  372. s_tran.EndTime = dw_1.Object.EndTime[row]
  373. s_tran.BuyCode = dw_1.Object.BuyCode[row]
  374. s_tran.BuyName = dw_1.Object.BuyName[row]
  375. s_tran.BuyTitle = dw_1.Object.BuyTitle[row]
  376. s_tran.BuyURL = dw_1.Object.BuyURL[row]
  377. s_tran.BuyRange = dw_1.Object.BuyRange[row]
  378. s_tran.BuyRemark = dw_1.Object.BuyRemark[row]
  379. s_tran.MonthlyUse = dw_1.Object.MonthlyUse[row]
  380. s_tran.DesiredPrice = dw_1.Object.DesiredPrice[row]
  381. s_tran.Quality = dw_1.Object.Quality[row]
  382. s_tran.NodeID = dw_1.Object.NodeID[row]
  383. s_tran.StandardCode = dw_1.Object.StandardCode[row]
  384. s_tran.ProductID = dw_1.Object.ProductID[row]
  385. s_tran.ProCode = dw_1.Object.ProCode[row]
  386. s_tran.ProName = dw_1.Object.ProName[row]
  387. s_tran.ProMode = dw_1.Object.ProMode[row]
  388. s_tran.ProUnit = dw_1.Object.ProUnit[row]
  389. s_tran.IsPublic = (dw_1.Object.IsPublic[row] = 1)
  390. s_tran.CreaterName = dw_1.Object.CreaterName[row]
  391. s_tran.CreaterPhone = dw_1.Object.CreaterPhone[row]
  392. s_tran.CreaterEmail = dw_1.Object.CreaterEmail[row]
  393. s_tran.CreaterQQ = dw_1.Object.CreaterQQ[row]
  394. OpenWithParm(w_aifmb_addbuyinfo, s_tran)
  395. s_tran = Message.PowerObjectParm
  396. IF s_tran.BuyID > 0 THEN
  397. dw_1.Object.BuyID[row] = s_tran.BuyID
  398. dw_1.Object.EntID[row] = s_tran.EntID
  399. dw_1.Object.CreaterID[row] = s_tran.CreaterID
  400. dw_1.Object.CreatTime[row] = s_tran.CreatTime
  401. dw_1.Object.IsAudit[row] = s_tran.IsAudit
  402. dw_1.Object.AuditerID[row] = s_tran.AuditerID
  403. dw_1.Object.AuditTime[row] = s_tran.AuditTime
  404. dw_1.Object.StartTime[row] = s_tran.StartTime
  405. dw_1.Object.EndTime[row] = s_tran.EndTime
  406. dw_1.Object.BuyCode[row] = s_tran.BuyCode
  407. dw_1.Object.BuyName[row] = s_tran.BuyName
  408. dw_1.Object.BuyTitle[row] = s_tran.BuyTitle
  409. dw_1.Object.BuyURL[row] = s_tran.BuyURL
  410. dw_1.Object.BuyRange[row] = s_tran.BuyRange
  411. dw_1.Object.BuyRemark[row] = s_tran.BuyRemark
  412. dw_1.Object.MonthlyUse[row] = s_tran.MonthlyUse
  413. dw_1.Object.DesiredPrice[row] = s_tran.DesiredPrice
  414. dw_1.Object.Quality[row] = s_tran.Quality
  415. dw_1.Object.NodeID[row] = s_tran.NodeID
  416. dw_1.Object.StandardCode[row] = s_tran.StandardCode
  417. dw_1.Object.ProductID[row] = s_tran.ProductID
  418. dw_1.Object.ProCode[row] = s_tran.ProCode
  419. dw_1.Object.ProName[row] = s_tran.ProName
  420. dw_1.Object.ProMode[row] = s_tran.ProMode
  421. dw_1.Object.ProUnit[row] = s_tran.ProUnit
  422. IF s_tran.IsPublic THEN
  423. dw_1.Object.IsPublic[row] = 1
  424. ELSE
  425. dw_1.Object.IsPublic[row] = 0
  426. END IF
  427. dw_1.Object.CreaterName[row] = s_tran.CreaterName
  428. dw_1.Object.CreaterPhone[row] = s_tran.CreaterPhone
  429. dw_1.Object.CreaterEmail[row] = s_tran.CreaterEmail
  430. dw_1.Object.CreaterQQ[row] = s_tran.CreaterQQ
  431. END IF
  432. end event
  433. type cb_del from uo_imflatbutton within w_aifmb_mybuyinfo
  434. integer x = 311
  435. integer width = 151
  436. integer height = 164
  437. integer taborder = 40
  438. string text = "删除"
  439. string normalpicname = "delete.bmp"
  440. integer picsize = 16
  441. toolbaralignment pic_align = alignattop!
  442. boolean border = false
  443. end type
  444. event clicked;call super::clicked;Long row
  445. row = dw_1.GetRow()
  446. IF row <= 0 THEN RETURN
  447. Long arr_promoids[]
  448. arr_promoids[1] = dw_1.Object.BuyID[row]
  449. Int rslt = 1
  450. String arg_msg
  451. uo_aifmb = Create uo_aifmb
  452. IF uo_aifmb.uf_delbuyinfo(arr_promoids, arg_msg) <> 1 THEN
  453. rslt = 0
  454. GOTO ext
  455. END IF
  456. ext:
  457. Destroy uo_aifmb
  458. IF rslt = 0 THEN
  459. MessageBox('ERROR', arg_msg)
  460. ELSE
  461. dw_1.DeleteRow(row)
  462. MessageBox('OK', '删除成功')
  463. END IF
  464. end event
  465. type cb_add from uo_imflatbutton within w_aifmb_mybuyinfo
  466. integer width = 151
  467. integer height = 164
  468. integer taborder = 30
  469. string text = "新建"
  470. string normalpicname = "new.bmp"
  471. integer picsize = 16
  472. toolbaralignment pic_align = alignattop!
  473. boolean border = false
  474. end type
  475. event clicked;call super::clicked;Open(w_aifmb_addbuyinfo)
  476. s_aifmb_buyinfo s_tran
  477. s_tran = Message.PowerObjectParm
  478. Long row
  479. IF s_tran.BuyID > 0 THEN
  480. row = dw_1.InsertRow(0)
  481. dw_1.Object.BuyID[row] = s_tran.BuyID
  482. dw_1.Object.EntID[row] = s_tran.EntID
  483. dw_1.Object.CreaterID[row] = s_tran.CreaterID
  484. dw_1.Object.CreatTime[row] = s_tran.CreatTime
  485. dw_1.Object.IsAudit[row] = s_tran.IsAudit
  486. dw_1.Object.AuditerID[row] = s_tran.AuditerID
  487. dw_1.Object.AuditTime[row] = s_tran.AuditTime
  488. dw_1.Object.StartTime[row] = s_tran.StartTime
  489. dw_1.Object.EndTime[row] = s_tran.EndTime
  490. dw_1.Object.BuyCode[row] = s_tran.BuyCode
  491. dw_1.Object.BuyName[row] = s_tran.BuyName
  492. dw_1.Object.BuyTitle[row] = s_tran.BuyTitle
  493. dw_1.Object.BuyURL[row] = s_tran.BuyURL
  494. dw_1.Object.BuyRange[row] = s_tran.BuyRange
  495. dw_1.Object.BuyRemark[row] = s_tran.BuyRemark
  496. dw_1.Object.MonthlyUse[row] = s_tran.MonthlyUse
  497. dw_1.Object.DesiredPrice[row] = s_tran.DesiredPrice
  498. dw_1.Object.Quality[row] = s_tran.Quality
  499. dw_1.Object.NodeID[row] = s_tran.NodeID
  500. dw_1.Object.StandardCode[row] = s_tran.StandardCode
  501. dw_1.Object.ProductID[row] = s_tran.ProductID
  502. dw_1.Object.ProCode[row] = s_tran.ProCode
  503. dw_1.Object.ProName[row] = s_tran.ProName
  504. dw_1.Object.ProMode[row] = s_tran.ProMode
  505. dw_1.Object.ProUnit[row] = s_tran.ProUnit
  506. IF s_tran.IsPublic THEN
  507. dw_1.Object.IsPublic[row] = 1
  508. ELSE
  509. dw_1.Object.IsPublic[row] = 0
  510. END IF
  511. dw_1.Object.CreaterName[row] = s_tran.CreaterName
  512. dw_1.Object.CreaterPhone[row] = s_tran.CreaterPhone
  513. dw_1.Object.CreaterEmail[row] = s_tran.CreaterEmail
  514. dw_1.Object.CreaterQQ[row] = s_tran.CreaterQQ
  515. END IF
  516. end event
  517. type r_bar from rectangle within w_aifmb_mybuyinfo
  518. long linecolor = 16777215
  519. integer linethickness = 4
  520. long fillcolor = 1073741824
  521. integer x = 2089
  522. integer width = 146
  523. integer height = 68
  524. end type
  525. event constructor;this.fillcolor = 14215660
  526. this.linecolor = 14215660
  527. this.x = -1
  528. this.y = -1
  529. this.height = ln_3.beginy - 5
  530. end event
  531. type em_3 from editmask within w_aifmb_mybuyinfo
  532. integer x = 416
  533. integer y = 188
  534. integer width = 407
  535. integer height = 88
  536. integer taborder = 30
  537. boolean bringtotop = true
  538. integer textsize = -9
  539. integer weight = 400
  540. fontcharset fontcharset = gb2312charset!
  541. fontpitch fontpitch = variable!
  542. string facename = "宋体"
  543. long textcolor = 33554432
  544. borderstyle borderstyle = stylelowered!
  545. maskdatatype maskdatatype = datemask!
  546. string mask = "yyyy-mm-dd"
  547. boolean spin = true
  548. end type
  549. event rbuttondown;s_calender_arg s_calender
  550. s_calender.PointerX = THIS.PointerX()
  551. s_calender.PointerY = THIS.PointerY()
  552. s_calender.X = THIS.X
  553. s_calender.Y = THIS.Y
  554. OpenWithParm(w_calendar,s_calender)
  555. THIS.Text = String(id_date_selected)
  556. end event
  557. type pb_1 from picturebutton within w_aifmb_mybuyinfo
  558. integer x = 832
  559. integer y = 188
  560. integer width = 101
  561. integer height = 92
  562. integer taborder = 30
  563. boolean bringtotop = true
  564. integer textsize = -9
  565. integer weight = 400
  566. fontcharset fontcharset = gb2312charset!
  567. fontpitch fontpitch = variable!
  568. string facename = "宋体"
  569. string picturename = "date.BMP"
  570. alignment htextalign = left!
  571. end type
  572. event clicked;em_3.triggerevent(rbuttondown!)
  573. end event
  574. type em_4 from editmask within w_aifmb_mybuyinfo
  575. integer x = 1106
  576. integer y = 188
  577. integer width = 407
  578. integer height = 88
  579. integer taborder = 30
  580. boolean bringtotop = true
  581. integer textsize = -9
  582. integer weight = 400
  583. fontcharset fontcharset = gb2312charset!
  584. fontpitch fontpitch = variable!
  585. string facename = "宋体"
  586. long textcolor = 33554432
  587. borderstyle borderstyle = stylelowered!
  588. maskdatatype maskdatatype = datemask!
  589. string mask = "yyyy-mm-dd"
  590. boolean spin = true
  591. end type
  592. event rbuttondown;s_calender_arg s_calender
  593. s_calender.PointerX = THIS.PointerX()
  594. s_calender.PointerY = THIS.PointerY()
  595. s_calender.X = THIS.X
  596. s_calender.Y = THIS.Y
  597. OpenWithParm(w_calendar,s_calender)
  598. THIS.Text = String(id_date_selected)
  599. end event
  600. type pb_3 from picturebutton within w_aifmb_mybuyinfo
  601. integer x = 1518
  602. integer y = 188
  603. integer width = 101
  604. integer height = 92
  605. integer taborder = 30
  606. boolean bringtotop = true
  607. integer textsize = -9
  608. integer weight = 400
  609. fontcharset fontcharset = gb2312charset!
  610. fontpitch fontpitch = variable!
  611. string facename = "宋体"
  612. string picturename = "date.BMP"
  613. alignment htextalign = left!
  614. end type
  615. event clicked;em_4.triggerevent(rbuttondown!)
  616. end event
  617. type st_1 from statictext within w_aifmb_mybuyinfo
  618. integer x = 14
  619. integer y = 208
  620. integer width = 247
  621. integer height = 48
  622. integer textsize = -9
  623. integer weight = 400
  624. fontcharset fontcharset = gb2312charset!
  625. fontpitch fontpitch = variable!
  626. string facename = "宋体"
  627. long textcolor = 33554432
  628. long backcolor = 67108864
  629. string text = "发布日期"
  630. boolean focusrectangle = false
  631. end type
  632. event constructor;this.backcolor = 14215660
  633. end event
  634. type cbx_begin from checkbox within w_aifmb_mybuyinfo
  635. integer x = 270
  636. integer y = 204
  637. integer width = 174
  638. integer height = 60
  639. integer textsize = -9
  640. integer weight = 400
  641. fontcharset fontcharset = gb2312charset!
  642. fontpitch fontpitch = variable!
  643. string facename = "宋体"
  644. long textcolor = 33554432
  645. long backcolor = 67108864
  646. string text = ">="
  647. end type
  648. event constructor;this.backcolor = 14215660
  649. end event
  650. type cbx_end from checkbox within w_aifmb_mybuyinfo
  651. integer x = 955
  652. integer y = 204
  653. integer width = 174
  654. integer height = 60
  655. integer textsize = -9
  656. integer weight = 400
  657. fontcharset fontcharset = gb2312charset!
  658. fontpitch fontpitch = variable!
  659. string facename = "宋体"
  660. long textcolor = 33554432
  661. long backcolor = 67108864
  662. string text = "<="
  663. end type
  664. event constructor;this.backcolor = 14215660
  665. end event
  666. type sle_keyword from singlelineedit within w_aifmb_mybuyinfo
  667. integer x = 206
  668. integer y = 308
  669. integer width = 402
  670. integer height = 84
  671. integer taborder = 30
  672. integer textsize = -9
  673. integer weight = 400
  674. fontcharset fontcharset = gb2312charset!
  675. fontpitch fontpitch = variable!
  676. string facename = "宋体"
  677. long textcolor = 33554432
  678. borderstyle borderstyle = stylelowered!
  679. end type
  680. type st_2 from statictext within w_aifmb_mybuyinfo
  681. integer x = 18
  682. integer y = 324
  683. integer width = 183
  684. integer height = 48
  685. integer textsize = -9
  686. integer weight = 400
  687. fontcharset fontcharset = gb2312charset!
  688. fontpitch fontpitch = variable!
  689. string facename = "宋体"
  690. long textcolor = 33554432
  691. long backcolor = 67108864
  692. string text = "关键字"
  693. boolean focusrectangle = false
  694. end type
  695. event constructor;this.backcolor = 14215660
  696. end event
  697. type cb_search from commandbutton within w_aifmb_mybuyinfo
  698. integer x = 640
  699. integer y = 308
  700. integer width = 242
  701. integer height = 84
  702. integer taborder = 30
  703. integer textsize = -9
  704. integer weight = 400
  705. fontcharset fontcharset = gb2312charset!
  706. fontpitch fontpitch = variable!
  707. string facename = "宋体"
  708. string text = "查找"
  709. end type
  710. event clicked;parent.triggerevent('ue_search')
  711. end event
  712. type cb_exit from uo_imflatbutton within w_aifmb_mybuyinfo
  713. integer x = 622
  714. integer width = 151
  715. integer height = 164
  716. integer taborder = 20
  717. string text = "退出"
  718. string normalpicname = "exit.bmp"
  719. integer picsize = 16
  720. toolbaralignment pic_align = alignattop!
  721. boolean border = false
  722. end type
  723. event clicked;call super::clicked;close(parent)
  724. end event
  725. type dw_1 from u_dw_rbtnfilter within w_aifmb_mybuyinfo
  726. integer x = 841
  727. integer y = 420
  728. integer width = 1691
  729. integer height = 1360
  730. integer taborder = 20
  731. boolean bringtotop = true
  732. string dataobject = "dw_aifmb_searchbuyinfo"
  733. boolean hscrollbar = true
  734. boolean vscrollbar = true
  735. boolean hsplitscroll = true
  736. end type
  737. event clicked;call super::clicked;IF row > 0 THEN
  738. This.SetRow(row)
  739. END IF
  740. end event
  741. event rowfocuschanged;call super::rowfocuschanged;This.SelectRow(0,False)
  742. IF currentrow > 0 THEN
  743. This.SelectRow(currentrow,True)
  744. END IF
  745. end event
  746. type cb_refresh from uo_imflatbutton within w_aifmb_mybuyinfo
  747. integer x = 466
  748. integer width = 151
  749. integer height = 164
  750. integer taborder = 10
  751. string text = "刷新"
  752. string normalpicname = "refresh.bmp"
  753. integer picsize = 16
  754. toolbaralignment pic_align = alignattop!
  755. boolean border = false
  756. end type
  757. event clicked;call super::clicked;tv_1.uf_build_tree()
  758. end event
  759. type ln_bar from line within w_aifmb_mybuyinfo
  760. long linecolor = 268435456
  761. integer linethickness = 4
  762. integer beginy = 168
  763. integer endx = 2007
  764. integer endy = 168
  765. end type
  766. type ln_bar2 from line within w_aifmb_mybuyinfo
  767. long linecolor = 16777215
  768. integer linethickness = 4
  769. integer beginy = 172
  770. integer endx = 2039
  771. integer endy = 172
  772. end type
  773. type ln_1 from line within w_aifmb_mybuyinfo
  774. long linecolor = 268435456
  775. integer linethickness = 4
  776. integer beginy = 288
  777. integer endx = 2016
  778. integer endy = 288
  779. end type
  780. type ln_2 from line within w_aifmb_mybuyinfo
  781. long linecolor = 16777215
  782. integer linethickness = 4
  783. integer beginy = 292
  784. integer endx = 2048
  785. integer endy = 292
  786. end type
  787. type ln_3 from line within w_aifmb_mybuyinfo
  788. long linecolor = 268435456
  789. integer linethickness = 4
  790. integer beginy = 408
  791. integer endx = 2007
  792. integer endy = 408
  793. end type
  794. type ln_4 from line within w_aifmb_mybuyinfo
  795. long linecolor = 16777215
  796. integer linethickness = 4
  797. integer beginy = 412
  798. integer endx = 2039
  799. integer endy = 412
  800. end type
  801. type ole_1 from uo_aifmb_webbrowser within w_aifmb_mybuyinfo
  802. integer x = 2208
  803. integer width = 1829
  804. integer height = 284
  805. integer taborder = 40
  806. boolean bringtotop = true
  807. string binarykey = "w_aifmb_mybuyinfo.win"
  808. end type
  809. Start of PowerBuilder Binary Data Section : Do NOT Edit
  810. 0Dw_aifmb_mybuyinfo.bin
  811. 2900000a00e011cfd0e11ab1a1000000000000000000000000000000000003003e0009fffe000000060000000000000000000000010000000100000000000010000000000200000001fffffffe0000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffefffffffefffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff006f00520074006f004500200074006e00790072000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050016ffffffffffffffff00000001000000000000000000000000000000000000000000000000000000001967328001cee43b00000003000001800000000000500003004f0042005800430054005300450052004d0041000000000000000000000000000000000000000000000000000000000000000000000000000000000102001affffffff00000002ffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000009c00000000004200500043004f00530058004f00540041005200450047000000000000000000000000000000000000000000000000000000000000000000000000000000000001001affffffffffffffff000000038856f96111d0340ac0006ba9a205d74f000000001967328001cee43b1967328001cee43b000000000000000000000000004f00430054004e004e00450053005400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001020012ffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000030000009c000000000000000100000002fffffffe0000000400000005fffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
  812. 24ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000004c00002957000007570000000000000000000000000000000000000000000000000000004c0000000000000000000000010057d0e011cf3573000869ae62122e2b00000008000000000000004c0002140100000000000000c0460000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c00002957000007570000000000000000000000000000000000000000000000000000004c0000000000000000000000010057d0e011cf3573000869ae62122e2b00000008000000000000004c0002140100000000000000c0460000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  813. 1Dw_aifmb_mybuyinfo.bin
  814. End of PowerBuilder Binary Data Section : No Source Expected After This Point