w_aifmb_mypromotions.srw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922
  1. $PBExportHeader$w_aifmb_mypromotions.srw
  2. forward
  3. global type w_aifmb_mypromotions from window
  4. end type
  5. type cb_1 from commandbutton within w_aifmb_mypromotions
  6. end type
  7. type em_1 from editmask within w_aifmb_mypromotions
  8. end type
  9. type cb_2 from commandbutton within w_aifmb_mypromotions
  10. end type
  11. type em_2 from editmask within w_aifmb_mypromotions
  12. end type
  13. type tv_1 from uo_aifmb_tv_class within w_aifmb_mypromotions
  14. end type
  15. type cb_edit from uo_imflatbutton within w_aifmb_mypromotions
  16. end type
  17. type cb_del from uo_imflatbutton within w_aifmb_mypromotions
  18. end type
  19. type cb_add from uo_imflatbutton within w_aifmb_mypromotions
  20. end type
  21. type r_bar from rectangle within w_aifmb_mypromotions
  22. end type
  23. type em_3 from editmask within w_aifmb_mypromotions
  24. end type
  25. type pb_1 from picturebutton within w_aifmb_mypromotions
  26. end type
  27. type em_4 from editmask within w_aifmb_mypromotions
  28. end type
  29. type pb_3 from picturebutton within w_aifmb_mypromotions
  30. end type
  31. type st_1 from statictext within w_aifmb_mypromotions
  32. end type
  33. type cbx_begin from checkbox within w_aifmb_mypromotions
  34. end type
  35. type cbx_end from checkbox within w_aifmb_mypromotions
  36. end type
  37. type sle_keyword from singlelineedit within w_aifmb_mypromotions
  38. end type
  39. type st_2 from statictext within w_aifmb_mypromotions
  40. end type
  41. type cb_search from commandbutton within w_aifmb_mypromotions
  42. end type
  43. type cb_exit from uo_imflatbutton within w_aifmb_mypromotions
  44. end type
  45. type dw_1 from u_dw_rbtnfilter within w_aifmb_mypromotions
  46. end type
  47. type cb_refresh from uo_imflatbutton within w_aifmb_mypromotions
  48. end type
  49. type ln_bar from line within w_aifmb_mypromotions
  50. end type
  51. type ln_bar2 from line within w_aifmb_mypromotions
  52. end type
  53. type ln_1 from line within w_aifmb_mypromotions
  54. end type
  55. type ln_2 from line within w_aifmb_mypromotions
  56. end type
  57. type ln_3 from line within w_aifmb_mypromotions
  58. end type
  59. type ln_4 from line within w_aifmb_mypromotions
  60. end type
  61. type ole_1 from uo_aifmb_webbrowser within w_aifmb_mypromotions
  62. end type
  63. end forward
  64. global type w_aifmb_mypromotions from window
  65. integer width = 3419
  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_mypromotions w_aifmb_mypromotions
  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_searchpromotions'
  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_searchpromotionslist(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_mypromotions.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_mypromotions.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. r_bar.width = this.width
  251. tv_1.Height = this.WorkSpaceHeight() - tv_1.Y
  252. dw_1.Height = this.WorkSpaceHeight() - dw_1.Y
  253. dw_1.Width = this.WorkSpaceWidth() - dw_1.X
  254. ole_1.X = this.WorkSpaceWidth() - ole_1.Width
  255. end event
  256. event open;ole_1.Object.Navigate("http://www.fib2b.cn/ad/adforerp.htm?positionid=38")
  257. em_3.Text = string(RelativeDate(Today(), - 7), 'yyyy-MM-dd')
  258. em_4.Text = string(Today(), 'yyyy-MM-dd')
  259. dw_1.SetTransObject(sqlca)
  260. cb_refresh.triggerevent(clicked!)
  261. end event
  262. type cb_1 from commandbutton within w_aifmb_mypromotions
  263. integer x = 891
  264. integer y = 308
  265. integer width = 242
  266. integer height = 84
  267. integer taborder = 40
  268. integer textsize = -9
  269. integer weight = 400
  270. fontcharset fontcharset = gb2312charset!
  271. fontpitch fontpitch = variable!
  272. string facename = "宋体"
  273. string text = "上一页"
  274. end type
  275. event clicked;long pageindex
  276. pageindex = long(em_1.Text)
  277. pageindex -= 1
  278. em_1.Text = string(pageindex)
  279. parent.triggerevent('ue_search')
  280. end event
  281. type em_1 from editmask within w_aifmb_mypromotions
  282. integer x = 1134
  283. integer y = 308
  284. integer width = 165
  285. integer height = 84
  286. integer taborder = 40
  287. integer textsize = -9
  288. integer weight = 400
  289. fontcharset fontcharset = gb2312charset!
  290. fontpitch fontpitch = variable!
  291. string facename = "宋体"
  292. long textcolor = 33554432
  293. string text = "1"
  294. alignment alignment = right!
  295. borderstyle borderstyle = stylelowered!
  296. string mask = "#,##0"
  297. end type
  298. type cb_2 from commandbutton within w_aifmb_mypromotions
  299. integer x = 1298
  300. integer y = 308
  301. integer width = 242
  302. integer height = 84
  303. integer taborder = 40
  304. integer textsize = -9
  305. integer weight = 400
  306. fontcharset fontcharset = gb2312charset!
  307. fontpitch fontpitch = variable!
  308. string facename = "宋体"
  309. string text = "下一页"
  310. end type
  311. event clicked;long pageindex
  312. pageindex = long(em_1.Text)
  313. pageindex += 1
  314. em_1.Text = string(pageindex)
  315. parent.triggerevent('ue_search')
  316. end event
  317. type em_2 from editmask within w_aifmb_mypromotions
  318. integer x = 1563
  319. integer y = 308
  320. integer width = 165
  321. integer height = 84
  322. integer taborder = 40
  323. integer textsize = -9
  324. integer weight = 400
  325. fontcharset fontcharset = gb2312charset!
  326. fontpitch fontpitch = variable!
  327. string facename = "宋体"
  328. long textcolor = 33554432
  329. string text = "10"
  330. alignment alignment = right!
  331. borderstyle borderstyle = stylelowered!
  332. string mask = "#,##0"
  333. end type
  334. type tv_1 from uo_aifmb_tv_class within w_aifmb_mypromotions
  335. integer y = 420
  336. integer width = 841
  337. integer taborder = 40
  338. end type
  339. event ue_selectionchanged;call super::ue_selectionchanged;ins_nodeid_arr = uo_nodeid_arr
  340. IF uo_keyword <> '' THEN
  341. sle_keyword.Text = uo_keyword
  342. END IF
  343. end event
  344. on tv_1.destroy
  345. call uo_aifmb_tv_class::destroy
  346. end on
  347. type cb_edit from uo_imflatbutton within w_aifmb_mypromotions
  348. integer x = 151
  349. integer width = 151
  350. integer height = 164
  351. integer taborder = 50
  352. string text = "修改"
  353. string normalpicname = "open.bmp"
  354. integer picsize = 16
  355. toolbaralignment pic_align = alignattop!
  356. boolean border = false
  357. end type
  358. event clicked;call super::clicked;Long row
  359. row = dw_1.GetRow()
  360. IF row <= 0 THEN RETURN
  361. s_aifmb_promotions s_tran
  362. s_tran.PromoID = dw_1.Object.PromoID[row]
  363. s_tran.EntID = dw_1.Object.EntID[row]
  364. s_tran.CreaterID = dw_1.Object.CreaterID[row]
  365. s_tran.CreatTime = dw_1.Object.CreatTime[row]
  366. s_tran.IsAudit = dw_1.Object.IsAudit[row]
  367. s_tran.AuditerID = dw_1.Object.AuditerID[row]
  368. s_tran.AuditTime = dw_1.Object.AuditTime[row]
  369. s_tran.StartTime = dw_1.Object.StartTime[row]
  370. s_tran.EndTime = dw_1.Object.EndTime[row]
  371. s_tran.PromoName = dw_1.Object.PromoName[row]
  372. s_tran.PromoTitle = dw_1.Object.PromoTitle[row]
  373. s_tran.PromoURL = dw_1.Object.PromoURL[row]
  374. s_tran.PromoRange = dw_1.Object.PromoRange[row]
  375. s_tran.PromoRemark = dw_1.Object.PromoRemark[row]
  376. s_tran.PromoCode = dw_1.Object.PromoCode[row]
  377. s_tran.NodeID = dw_1.Object.NodeID[row]
  378. s_tran.ProductID = dw_1.Object.ProductID[row]
  379. s_tran.ProCode = dw_1.Object.ProCode[row]
  380. s_tran.ProName = dw_1.Object.ProName[row]
  381. s_tran.ProMode = dw_1.Object.ProMode[row]
  382. s_tran.ProUnit = dw_1.Object.ProUnit[row]
  383. s_tran.IsPublic = (dw_1.Object.IsPublic[row] = 1)
  384. s_tran.PromoType = dw_1.Object.PromoType[row]
  385. s_tran.MPrice = dw_1.Object.MPrice[row]
  386. s_tran.NPrice = dw_1.Object.NPrice[row]
  387. s_tran.CreaterName = dw_1.Object.CreaterName[row]
  388. s_tran.CreaterPhone = dw_1.Object.CreaterPhone[row]
  389. s_tran.CreaterEmail = dw_1.Object.CreaterEmail[row]
  390. s_tran.CreaterQQ = dw_1.Object.CreaterQQ[row]
  391. OpenWithParm(w_aifmb_addpromotions, s_tran)
  392. s_tran = Message.PowerObjectParm
  393. IF s_tran.PromoID > 0 THEN
  394. dw_1.Object.PromoID[row] = s_tran.PromoID
  395. dw_1.Object.EntID[row] = s_tran.EntID
  396. dw_1.Object.CreaterID[row] = s_tran.CreaterID
  397. dw_1.Object.CreatTime[row] = s_tran.CreatTime
  398. dw_1.Object.IsAudit[row] = s_tran.IsAudit
  399. dw_1.Object.AuditerID[row] = s_tran.AuditerID
  400. dw_1.Object.AuditTime[row] = s_tran.AuditTime
  401. dw_1.Object.StartTime[row] = s_tran.StartTime
  402. dw_1.Object.EndTime[row] = s_tran.EndTime
  403. dw_1.Object.PromoName[row] = s_tran.PromoName
  404. dw_1.Object.PromoTitle[row] = s_tran.PromoTitle
  405. dw_1.Object.PromoURL[row] = s_tran.PromoURL
  406. dw_1.Object.PromoRange[row] = s_tran.PromoRange
  407. dw_1.Object.PromoRemark[row] = s_tran.PromoRemark
  408. dw_1.Object.PromoCode[row] = s_tran.PromoCode
  409. dw_1.Object.NodeID[row] = s_tran.NodeID
  410. dw_1.Object.ProductID[row] = s_tran.ProductID
  411. dw_1.Object.ProCode[row] = s_tran.ProCode
  412. dw_1.Object.ProName[row] = s_tran.ProName
  413. dw_1.Object.ProMode[row] = s_tran.ProMode
  414. dw_1.Object.ProUnit[row] = s_tran.ProUnit
  415. IF s_tran.IsPublic THEN
  416. dw_1.Object.IsPublic[row] = 1
  417. ELSE
  418. dw_1.Object.IsPublic[row] = 0
  419. END IF
  420. dw_1.Object.PromoType[row] = s_tran.PromoType
  421. dw_1.Object.MPrice[row] = s_tran.MPrice
  422. dw_1.Object.NPrice[row] = s_tran.NPrice
  423. dw_1.Object.CreaterName[row] = s_tran.CreaterName
  424. dw_1.Object.CreaterPhone[row] = s_tran.CreaterPhone
  425. dw_1.Object.CreaterEmail[row] = s_tran.CreaterEmail
  426. dw_1.Object.CreaterQQ[row] = s_tran.CreaterQQ
  427. END IF
  428. end event
  429. type cb_del from uo_imflatbutton within w_aifmb_mypromotions
  430. integer x = 302
  431. integer width = 151
  432. integer height = 164
  433. integer taborder = 40
  434. string text = "删除"
  435. string normalpicname = "delete.bmp"
  436. integer picsize = 16
  437. toolbaralignment pic_align = alignattop!
  438. boolean border = false
  439. end type
  440. event clicked;call super::clicked;Long row
  441. row = dw_1.GetRow()
  442. IF row <= 0 THEN RETURN
  443. Long arr_promoids[]
  444. arr_promoids[1] = dw_1.Object.PromoID[row]
  445. Int rslt = 1
  446. String arg_msg
  447. uo_aifmb = Create uo_aifmb
  448. IF uo_aifmb.uf_delpromotions(arr_promoids, arg_msg) <> 1 THEN
  449. rslt = 0
  450. GOTO ext
  451. END IF
  452. ext:
  453. Destroy uo_aifmb
  454. IF rslt = 0 THEN
  455. MessageBox('ERROR', arg_msg)
  456. ELSE
  457. dw_1.DeleteRow(row)
  458. MessageBox('OK', '删除成功')
  459. END IF
  460. end event
  461. type cb_add from uo_imflatbutton within w_aifmb_mypromotions
  462. integer width = 151
  463. integer height = 164
  464. integer taborder = 30
  465. string text = "新建"
  466. string normalpicname = "new.bmp"
  467. integer picsize = 16
  468. toolbaralignment pic_align = alignattop!
  469. boolean border = false
  470. end type
  471. event clicked;call super::clicked;Open(w_aifmb_addpromotions)
  472. s_aifmb_promotions s_tran
  473. s_tran = Message.PowerObjectParm
  474. Long row
  475. IF s_tran.PromoID > 0 THEN
  476. row = dw_1.InsertRow(0)
  477. dw_1.Object.PromoID[row] = s_tran.PromoID
  478. dw_1.Object.EntID[row] = s_tran.EntID
  479. dw_1.Object.CreaterID[row] = s_tran.CreaterID
  480. dw_1.Object.CreatTime[row] = s_tran.CreatTime
  481. dw_1.Object.IsAudit[row] = s_tran.IsAudit
  482. dw_1.Object.AuditerID[row] = s_tran.AuditerID
  483. dw_1.Object.AuditTime[row] = s_tran.AuditTime
  484. dw_1.Object.StartTime[row] = s_tran.StartTime
  485. dw_1.Object.EndTime[row] = s_tran.EndTime
  486. dw_1.Object.PromoName[row] = s_tran.PromoName
  487. dw_1.Object.PromoTitle[row] = s_tran.PromoTitle
  488. dw_1.Object.PromoURL[row] = s_tran.PromoURL
  489. dw_1.Object.PromoRange[row] = s_tran.PromoRange
  490. dw_1.Object.PromoRemark[row] = s_tran.PromoRemark
  491. dw_1.Object.PromoCode[row] = s_tran.PromoCode
  492. dw_1.Object.NodeID[row] = s_tran.NodeID
  493. dw_1.Object.ProductID[row] = s_tran.ProductID
  494. dw_1.Object.ProCode[row] = s_tran.ProCode
  495. dw_1.Object.ProName[row] = s_tran.ProName
  496. dw_1.Object.ProMode[row] = s_tran.ProMode
  497. dw_1.Object.ProUnit[row] = s_tran.ProUnit
  498. IF s_tran.IsPublic THEN
  499. dw_1.Object.IsPublic[row] = 1
  500. ELSE
  501. dw_1.Object.IsPublic[row] = 0
  502. END IF
  503. dw_1.Object.PromoType[row] = s_tran.PromoType
  504. dw_1.Object.MPrice[row] = s_tran.MPrice
  505. dw_1.Object.NPrice[row] = s_tran.NPrice
  506. dw_1.Object.CreaterName[row] = s_tran.CreaterName
  507. dw_1.Object.CreaterPhone[row] = s_tran.CreaterPhone
  508. dw_1.Object.CreaterEmail[row] = s_tran.CreaterEmail
  509. dw_1.Object.CreaterQQ[row] = s_tran.CreaterQQ
  510. END IF
  511. end event
  512. type r_bar from rectangle within w_aifmb_mypromotions
  513. long linecolor = 16777215
  514. integer linethickness = 4
  515. long fillcolor = 1073741824
  516. integer x = 2089
  517. integer width = 146
  518. integer height = 68
  519. end type
  520. event constructor;this.fillcolor = 14215660
  521. this.linecolor = 14215660
  522. this.x = -1
  523. this.y = -1
  524. this.height = ln_3.beginy - 5
  525. end event
  526. type em_3 from editmask within w_aifmb_mypromotions
  527. integer x = 416
  528. integer y = 188
  529. integer width = 407
  530. integer height = 88
  531. integer taborder = 30
  532. boolean bringtotop = true
  533. integer textsize = -9
  534. integer weight = 400
  535. fontcharset fontcharset = gb2312charset!
  536. fontpitch fontpitch = variable!
  537. string facename = "宋体"
  538. long textcolor = 33554432
  539. borderstyle borderstyle = stylelowered!
  540. maskdatatype maskdatatype = datemask!
  541. string mask = "yyyy-mm-dd"
  542. boolean spin = true
  543. end type
  544. event rbuttondown;s_calender_arg s_calender
  545. s_calender.PointerX = THIS.PointerX()
  546. s_calender.PointerY = THIS.PointerY()
  547. s_calender.X = THIS.X
  548. s_calender.Y = THIS.Y
  549. OpenWithParm(w_calendar,s_calender)
  550. THIS.Text = String(id_date_selected)
  551. end event
  552. type pb_1 from picturebutton within w_aifmb_mypromotions
  553. integer x = 832
  554. integer y = 188
  555. integer width = 101
  556. integer height = 92
  557. integer taborder = 30
  558. boolean bringtotop = true
  559. integer textsize = -9
  560. integer weight = 400
  561. fontcharset fontcharset = gb2312charset!
  562. fontpitch fontpitch = variable!
  563. string facename = "宋体"
  564. string picturename = "date.BMP"
  565. alignment htextalign = left!
  566. end type
  567. event clicked;em_3.triggerevent(rbuttondown!)
  568. end event
  569. type em_4 from editmask within w_aifmb_mypromotions
  570. integer x = 1106
  571. integer y = 188
  572. integer width = 407
  573. integer height = 88
  574. integer taborder = 30
  575. boolean bringtotop = true
  576. integer textsize = -9
  577. integer weight = 400
  578. fontcharset fontcharset = gb2312charset!
  579. fontpitch fontpitch = variable!
  580. string facename = "宋体"
  581. long textcolor = 33554432
  582. borderstyle borderstyle = stylelowered!
  583. maskdatatype maskdatatype = datemask!
  584. string mask = "yyyy-mm-dd"
  585. boolean spin = true
  586. end type
  587. event rbuttondown;s_calender_arg s_calender
  588. s_calender.PointerX = THIS.PointerX()
  589. s_calender.PointerY = THIS.PointerY()
  590. s_calender.X = THIS.X
  591. s_calender.Y = THIS.Y
  592. OpenWithParm(w_calendar,s_calender)
  593. THIS.Text = String(id_date_selected)
  594. end event
  595. type pb_3 from picturebutton within w_aifmb_mypromotions
  596. integer x = 1518
  597. integer y = 188
  598. integer width = 101
  599. integer height = 92
  600. integer taborder = 30
  601. boolean bringtotop = true
  602. integer textsize = -9
  603. integer weight = 400
  604. fontcharset fontcharset = gb2312charset!
  605. fontpitch fontpitch = variable!
  606. string facename = "宋体"
  607. string picturename = "date.BMP"
  608. alignment htextalign = left!
  609. end type
  610. event clicked;em_4.triggerevent(rbuttondown!)
  611. end event
  612. type st_1 from statictext within w_aifmb_mypromotions
  613. integer x = 14
  614. integer y = 208
  615. integer width = 247
  616. integer height = 48
  617. integer textsize = -9
  618. integer weight = 400
  619. fontcharset fontcharset = gb2312charset!
  620. fontpitch fontpitch = variable!
  621. string facename = "宋体"
  622. long textcolor = 33554432
  623. long backcolor = 67108864
  624. string text = "发布日期"
  625. boolean focusrectangle = false
  626. end type
  627. event constructor;this.backcolor = 14215660
  628. end event
  629. type cbx_begin from checkbox within w_aifmb_mypromotions
  630. integer x = 270
  631. integer y = 204
  632. integer width = 174
  633. integer height = 60
  634. integer textsize = -9
  635. integer weight = 400
  636. fontcharset fontcharset = gb2312charset!
  637. fontpitch fontpitch = variable!
  638. string facename = "宋体"
  639. long textcolor = 33554432
  640. long backcolor = 67108864
  641. string text = ">="
  642. end type
  643. event constructor;this.backcolor = 14215660
  644. end event
  645. type cbx_end from checkbox within w_aifmb_mypromotions
  646. integer x = 955
  647. integer y = 204
  648. integer width = 174
  649. integer height = 60
  650. integer textsize = -9
  651. integer weight = 400
  652. fontcharset fontcharset = gb2312charset!
  653. fontpitch fontpitch = variable!
  654. string facename = "宋体"
  655. long textcolor = 33554432
  656. long backcolor = 67108864
  657. string text = "<="
  658. end type
  659. event constructor;this.backcolor = 14215660
  660. end event
  661. type sle_keyword from singlelineedit within w_aifmb_mypromotions
  662. integer x = 187
  663. integer y = 308
  664. integer width = 402
  665. integer height = 84
  666. integer taborder = 30
  667. integer textsize = -9
  668. integer weight = 400
  669. fontcharset fontcharset = gb2312charset!
  670. fontpitch fontpitch = variable!
  671. string facename = "宋体"
  672. long textcolor = 33554432
  673. borderstyle borderstyle = stylelowered!
  674. end type
  675. type st_2 from statictext within w_aifmb_mypromotions
  676. integer y = 324
  677. integer width = 183
  678. integer height = 48
  679. integer textsize = -9
  680. integer weight = 400
  681. fontcharset fontcharset = gb2312charset!
  682. fontpitch fontpitch = variable!
  683. string facename = "宋体"
  684. long textcolor = 33554432
  685. long backcolor = 67108864
  686. string text = "关键字"
  687. boolean focusrectangle = false
  688. end type
  689. event constructor;this.backcolor = 14215660
  690. end event
  691. type cb_search from commandbutton within w_aifmb_mypromotions
  692. integer x = 622
  693. integer y = 308
  694. integer width = 242
  695. integer height = 84
  696. integer taborder = 30
  697. integer textsize = -9
  698. integer weight = 400
  699. fontcharset fontcharset = gb2312charset!
  700. fontpitch fontpitch = variable!
  701. string facename = "宋体"
  702. string text = "查找"
  703. end type
  704. event clicked;parent.triggerevent('ue_search')
  705. end event
  706. type cb_exit from uo_imflatbutton within w_aifmb_mypromotions
  707. integer x = 603
  708. integer width = 151
  709. integer height = 164
  710. integer taborder = 20
  711. string text = "退出"
  712. string normalpicname = "exit.bmp"
  713. integer picsize = 16
  714. toolbaralignment pic_align = alignattop!
  715. boolean border = false
  716. end type
  717. event clicked;call super::clicked;close(parent)
  718. end event
  719. type dw_1 from u_dw_rbtnfilter within w_aifmb_mypromotions
  720. integer x = 841
  721. integer y = 420
  722. integer width = 1691
  723. integer height = 1360
  724. integer taborder = 20
  725. boolean bringtotop = true
  726. string dataobject = "dw_aifmb_searchpromotions"
  727. boolean hscrollbar = true
  728. boolean vscrollbar = true
  729. boolean hsplitscroll = true
  730. end type
  731. event clicked;call super::clicked;IF row > 0 THEN
  732. This.SetRow(row)
  733. END IF
  734. end event
  735. event rowfocuschanged;call super::rowfocuschanged;This.SelectRow(0,False)
  736. IF currentrow > 0 THEN
  737. This.SelectRow(currentrow,True)
  738. END IF
  739. end event
  740. type cb_refresh from uo_imflatbutton within w_aifmb_mypromotions
  741. integer x = 453
  742. integer width = 151
  743. integer height = 164
  744. integer taborder = 10
  745. string text = "刷新"
  746. string normalpicname = "refresh.bmp"
  747. integer picsize = 16
  748. toolbaralignment pic_align = alignattop!
  749. boolean border = false
  750. end type
  751. event clicked;call super::clicked;tv_1.uf_build_tree()
  752. end event
  753. type ln_bar from line within w_aifmb_mypromotions
  754. long linecolor = 268435456
  755. integer linethickness = 4
  756. integer beginy = 168
  757. integer endx = 2007
  758. integer endy = 168
  759. end type
  760. type ln_bar2 from line within w_aifmb_mypromotions
  761. long linecolor = 16777215
  762. integer linethickness = 4
  763. integer beginy = 172
  764. integer endx = 2039
  765. integer endy = 172
  766. end type
  767. type ln_1 from line within w_aifmb_mypromotions
  768. long linecolor = 268435456
  769. integer linethickness = 4
  770. integer beginy = 288
  771. integer endx = 2016
  772. integer endy = 288
  773. end type
  774. type ln_2 from line within w_aifmb_mypromotions
  775. long linecolor = 16777215
  776. integer linethickness = 4
  777. integer beginy = 292
  778. integer endx = 2048
  779. integer endy = 292
  780. end type
  781. type ln_3 from line within w_aifmb_mypromotions
  782. long linecolor = 268435456
  783. integer linethickness = 4
  784. integer beginy = 408
  785. integer endx = 2034
  786. integer endy = 408
  787. end type
  788. type ln_4 from line within w_aifmb_mypromotions
  789. long linecolor = 16777215
  790. integer linethickness = 4
  791. integer beginy = 412
  792. integer endx = 2066
  793. integer endy = 412
  794. end type
  795. type ole_1 from uo_aifmb_webbrowser within w_aifmb_mypromotions
  796. integer x = 2450
  797. integer width = 1829
  798. integer height = 284
  799. integer taborder = 40
  800. boolean bringtotop = true
  801. string binarykey = "w_aifmb_mypromotions.win"
  802. end type
  803. Start of PowerBuilder Binary Data Section : Do NOT Edit
  804. 0Bw_aifmb_mypromotions.bin
  805. 2B00000a00e011cfd0e11ab1a1000000000000000000000000000000000003003e0009fffe000000060000000000000000000000010000000100000000000010000000000200000001fffffffe0000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffefffffffefffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff006f00520074006f004500200074006e00790072000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050016ffffffffffffffff00000001000000000000000000000000000000000000000000000000000000008fe3bb4001cee43100000003000001800000000000500003004f0042005800430054005300450052004d0041000000000000000000000000000000000000000000000000000000000000000000000000000000000102001affffffff00000002ffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000009c00000000004200500043004f00530058004f00540041005200450047000000000000000000000000000000000000000000000000000000000000000000000000000000000001001affffffffffffffff000000038856f96111d0340ac0006ba9a205d74f000000008fe3bb4001cee4318fe3bb4001cee431000000000000000000000000004f00430054004e004e00450053005400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001020012ffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000030000009c000000000000000100000002fffffffe0000000400000005fffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
  806. 24ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000004c00002957000007570000000000000000000000000000000000000000000000000000004c0000000000000000000000010057d0e011cf3573000869ae62122e2b00000008000000000000004c0002140100000000000000c0460000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c00002957000007570000000000000000000000000000000000000000000000000000004c0000000000000000000000010057d0e011cf3573000869ae62122e2b00000008000000000000004c0002140100000000000000c0460000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  807. 1Bw_aifmb_mypromotions.bin
  808. End of PowerBuilder Binary Data Section : No Source Expected After This Point