w_aifmb_product.srw 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. $PBExportHeader$w_aifmb_product.srw
  2. forward
  3. global type w_aifmb_product from window
  4. end type
  5. type cb_choise from uo_imflatbutton within w_aifmb_product
  6. end type
  7. type cb_sync from uo_imflatbutton within w_aifmb_product
  8. end type
  9. type tv_1 from uo_tv_aifmb_class within w_aifmb_product
  10. end type
  11. type dw_1 from u_dw_rbtnfilter within w_aifmb_product
  12. end type
  13. type cb_exit from uo_imflatbutton within w_aifmb_product
  14. end type
  15. type cb_reflash from uo_imflatbutton within w_aifmb_product
  16. end type
  17. type ln_bar from line within w_aifmb_product
  18. end type
  19. type ln_bar2 from line within w_aifmb_product
  20. end type
  21. type r_bar from rectangle within w_aifmb_product
  22. end type
  23. type ln_1 from line within w_aifmb_product
  24. end type
  25. type ln_2 from line within w_aifmb_product
  26. end type
  27. type ln_3 from line within w_aifmb_product
  28. end type
  29. type ln_4 from line within w_aifmb_product
  30. end type
  31. end forward
  32. global type w_aifmb_product from window
  33. integer width = 3790
  34. integer height = 2280
  35. boolean titlebar = true
  36. string title = "亚洲国际电商标准编码选择"
  37. boolean controlmenu = true
  38. windowtype windowtype = response!
  39. long backcolor = 67108864
  40. string icon = "AppIcon!"
  41. boolean center = true
  42. event ue_sync_node ( )
  43. event ue_retrieve ( )
  44. cb_choise cb_choise
  45. cb_sync cb_sync
  46. tv_1 tv_1
  47. dw_1 dw_1
  48. cb_exit cb_exit
  49. cb_reflash cb_reflash
  50. ln_bar ln_bar
  51. ln_bar2 ln_bar2
  52. r_bar r_bar
  53. ln_1 ln_1
  54. ln_2 ln_2
  55. ln_3 ln_3
  56. ln_4 ln_4
  57. end type
  58. global w_aifmb_product w_aifmb_product
  59. type variables
  60. long ins_nodeid_arr[]
  61. long ins_productid = 0
  62. end variables
  63. event ue_sync_node();uo_aifmb = Create uo_aifmb
  64. Int rslt = 1
  65. String arg_msg
  66. IF uo_aifmb.uf_sync_node(arg_msg) <> 1 THEN
  67. rslt = 0
  68. GOTO ext
  69. END IF
  70. ext:
  71. Destroy uo_aifmb
  72. IF rslt = 1 THEN
  73. MessageBox('提示', '同步成功')
  74. cb_reflash.TriggerEvent(Clicked!)
  75. ELSE
  76. MessageBox('ERROR', arg_msg)
  77. END IF
  78. end event
  79. event ue_retrieve();dw_1.Retrieve(ins_nodeid_arr)
  80. end event
  81. on w_aifmb_product.create
  82. this.cb_choise=create cb_choise
  83. this.cb_sync=create cb_sync
  84. this.tv_1=create tv_1
  85. this.dw_1=create dw_1
  86. this.cb_exit=create cb_exit
  87. this.cb_reflash=create cb_reflash
  88. this.ln_bar=create ln_bar
  89. this.ln_bar2=create ln_bar2
  90. this.r_bar=create r_bar
  91. this.ln_1=create ln_1
  92. this.ln_2=create ln_2
  93. this.ln_3=create ln_3
  94. this.ln_4=create ln_4
  95. this.Control[]={this.cb_choise,&
  96. this.cb_sync,&
  97. this.tv_1,&
  98. this.dw_1,&
  99. this.cb_exit,&
  100. this.cb_reflash,&
  101. this.ln_bar,&
  102. this.ln_bar2,&
  103. this.r_bar,&
  104. this.ln_1,&
  105. this.ln_2,&
  106. this.ln_3,&
  107. this.ln_4}
  108. end on
  109. on w_aifmb_product.destroy
  110. destroy(this.cb_choise)
  111. destroy(this.cb_sync)
  112. destroy(this.tv_1)
  113. destroy(this.dw_1)
  114. destroy(this.cb_exit)
  115. destroy(this.cb_reflash)
  116. destroy(this.ln_bar)
  117. destroy(this.ln_bar2)
  118. destroy(this.r_bar)
  119. destroy(this.ln_1)
  120. destroy(this.ln_2)
  121. destroy(this.ln_3)
  122. destroy(this.ln_4)
  123. end on
  124. event resize;ln_bar.EndX = THIS.Width
  125. ln_bar2.EndX = THIS.Width
  126. ln_1.EndX = THIS.Width
  127. ln_2.EndX = THIS.Width
  128. ln_3.EndX = THIS.Width
  129. ln_4.EndX = THIS.Width
  130. r_bar.Width = THIS.Width
  131. tv_1.Height = this.WorkSpaceHeight() - tv_1.Y
  132. dw_1.Height = this.WorkSpaceHeight() - dw_1.Y
  133. dw_1.Width = this.WOrkSpaceWidth() - dw_1.X
  134. end event
  135. event open;dw_1.SetTransObject(sqlca)
  136. cb_reflash.triggerevent(clicked!)
  137. end event
  138. event close;closewithreturn(this, ins_productid)
  139. end event
  140. type cb_choise from uo_imflatbutton within w_aifmb_product
  141. integer x = 425
  142. integer width = 151
  143. integer height = 164
  144. integer taborder = 90
  145. string text = "选中"
  146. string normalpicname = "ok.bmp"
  147. integer picsize = 16
  148. toolbaralignment pic_align = alignattop!
  149. boolean border = false
  150. end type
  151. event clicked;call super::clicked;long ll_row
  152. ll_row = dw_1.GetRow()
  153. if ll_row <= 0 then
  154. MessageBox('提示', '请选择对象')
  155. return
  156. end if
  157. ins_productid = dw_1.Object.productid[ll_row]
  158. close(parent)
  159. end event
  160. type cb_sync from uo_imflatbutton within w_aifmb_product
  161. integer x = 151
  162. integer width = 274
  163. integer height = 164
  164. integer taborder = 80
  165. string text = "同步基类"
  166. string normalpicname = "refresh.BMP"
  167. integer picsize = 16
  168. toolbaralignment pic_align = alignattop!
  169. boolean border = false
  170. end type
  171. event clicked;call super::clicked;parent.triggerevent('ue_sync_node')
  172. end event
  173. type tv_1 from uo_tv_aifmb_class within w_aifmb_product
  174. integer y = 184
  175. integer width = 841
  176. integer taborder = 90
  177. end type
  178. event selectionchanged;call super::selectionchanged;Long arr_nodeid[]
  179. pf_getnodeid(newhandle, arr_nodeid)
  180. IF UpperBound(arr_nodeid) = 0 THEN
  181. arr_nodeid[1] = -1
  182. END IF
  183. ins_nodeid_arr = arr_nodeid
  184. parent.triggerevent('ue_retrieve')
  185. end event
  186. type dw_1 from u_dw_rbtnfilter within w_aifmb_product
  187. integer x = 841
  188. integer y = 184
  189. integer width = 2057
  190. integer height = 984
  191. integer taborder = 80
  192. string dataobject = "dw_aifmb_product"
  193. boolean hscrollbar = true
  194. boolean vscrollbar = true
  195. boolean hsplitscroll = true
  196. boolean rbutton_filter_use = true
  197. boolean rbutton_setposition_use = true
  198. boolean titleclick_sort_use = true
  199. end type
  200. event clicked;call super::clicked;IF row > 0 THEN
  201. This.SetRow(row)
  202. END IF
  203. end event
  204. event rowfocuschanged;call super::rowfocuschanged;This.SelectRow(0, False)
  205. IF currentrow > 0 THEN
  206. This.SelectRow(currentrow, True)
  207. END IF
  208. end event
  209. type cb_exit from uo_imflatbutton within w_aifmb_product
  210. integer x = 576
  211. integer width = 151
  212. integer height = 164
  213. integer taborder = 70
  214. string text = "退出"
  215. boolean cancel = true
  216. string normalpicname = "exit.bmp"
  217. integer picsize = 16
  218. toolbaralignment pic_align = alignattop!
  219. boolean border = false
  220. end type
  221. event clicked;call super::clicked;Close(PARENT)
  222. end event
  223. type cb_reflash from uo_imflatbutton within w_aifmb_product
  224. integer width = 151
  225. integer height = 164
  226. integer taborder = 10
  227. string text = "刷新"
  228. string normalpicname = "refresh.BMP"
  229. integer picsize = 16
  230. toolbaralignment pic_align = alignattop!
  231. boolean border = false
  232. end type
  233. event clicked;call super::clicked;tv_1.uf_build_tree()
  234. end event
  235. type ln_bar from line within w_aifmb_product
  236. long linecolor = 268435456
  237. integer linethickness = 4
  238. integer beginy = 172
  239. integer endx = 2007
  240. integer endy = 172
  241. end type
  242. type ln_bar2 from line within w_aifmb_product
  243. long linecolor = 16777215
  244. integer linethickness = 4
  245. integer beginy = 176
  246. integer endx = 2039
  247. integer endy = 176
  248. end type
  249. type r_bar from rectangle within w_aifmb_product
  250. long linecolor = 16777215
  251. integer linethickness = 4
  252. long fillcolor = 1073741824
  253. integer x = 2139
  254. integer width = 146
  255. integer height = 68
  256. end type
  257. event constructor;this.fillcolor = 14215660
  258. this.linecolor = 14215660
  259. this.x = -1
  260. this.y = -1
  261. this.height = ln_bar.beginy - 5
  262. end event
  263. type ln_1 from line within w_aifmb_product
  264. boolean visible = false
  265. long linecolor = 268435456
  266. integer linethickness = 4
  267. integer beginy = 292
  268. integer endx = 2016
  269. integer endy = 292
  270. end type
  271. type ln_2 from line within w_aifmb_product
  272. boolean visible = false
  273. long linecolor = 16777215
  274. integer linethickness = 4
  275. integer beginy = 296
  276. integer endx = 2048
  277. integer endy = 296
  278. end type
  279. type ln_3 from line within w_aifmb_product
  280. boolean visible = false
  281. long linecolor = 268435456
  282. integer linethickness = 4
  283. integer beginy = 412
  284. integer endx = 2016
  285. integer endy = 412
  286. end type
  287. type ln_4 from line within w_aifmb_product
  288. boolean visible = false
  289. long linecolor = 16777215
  290. integer linethickness = 4
  291. integer beginy = 416
  292. integer endx = 2048
  293. integer endy = 416
  294. end type