w_aifmb_myproductcode.srw 30 KB

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