w_aifmb_index_read.srw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. $PBExportHeader$w_aifmb_index_read.srw
  2. forward
  3. global type w_aifmb_index_read from window
  4. end type
  5. type r_bar from rectangle within w_aifmb_index_read
  6. end type
  7. type cb_exit from uo_imflatbutton within w_aifmb_index_read
  8. end type
  9. type cb_book from uo_imflatbutton within w_aifmb_index_read
  10. end type
  11. type cb_download from uo_imflatbutton within w_aifmb_index_read
  12. end type
  13. type dw_2 from datawindow within w_aifmb_index_read
  14. end type
  15. type dw_1 from u_dw_rbtnfilter within w_aifmb_index_read
  16. end type
  17. type cb_refresh from uo_imflatbutton within w_aifmb_index_read
  18. end type
  19. type ln_bar from line within w_aifmb_index_read
  20. end type
  21. type ln_bar2 from line within w_aifmb_index_read
  22. end type
  23. type ln_1 from line within w_aifmb_index_read
  24. end type
  25. type ln_2 from line within w_aifmb_index_read
  26. end type
  27. type ln_3 from line within w_aifmb_index_read
  28. end type
  29. type ln_4 from line within w_aifmb_index_read
  30. end type
  31. type ole_1 from uo_aifmb_webbrowser within w_aifmb_index_read
  32. end type
  33. end forward
  34. global type w_aifmb_index_read from window
  35. integer width = 3369
  36. integer height = 1848
  37. windowtype windowtype = child!
  38. long backcolor = 67108864
  39. string icon = "AppIcon!"
  40. boolean center = true
  41. event ue_retrieve ( )
  42. event ue_retrieve_mx ( )
  43. r_bar r_bar
  44. cb_exit cb_exit
  45. cb_book cb_book
  46. cb_download cb_download
  47. dw_2 dw_2
  48. dw_1 dw_1
  49. cb_refresh cb_refresh
  50. ln_bar ln_bar
  51. ln_bar2 ln_bar2
  52. ln_1 ln_1
  53. ln_2 ln_2
  54. ln_3 ln_3
  55. ln_4 ln_4
  56. ole_1 ole_1
  57. end type
  58. global w_aifmb_index_read w_aifmb_index_read
  59. event ue_retrieve();dw_1.Retrieve()
  60. end event
  61. event ue_retrieve_mx();Long ll_row
  62. ll_row = dw_1.GetRow()
  63. IF ll_row > 0 THEN
  64. dw_2.Retrieve(dw_1.Object.indexid[ll_row])
  65. ELSE
  66. dw_2.Reset()
  67. END IF
  68. end event
  69. on w_aifmb_index_read.create
  70. this.r_bar=create r_bar
  71. this.cb_exit=create cb_exit
  72. this.cb_book=create cb_book
  73. this.cb_download=create cb_download
  74. this.dw_2=create dw_2
  75. this.dw_1=create dw_1
  76. this.cb_refresh=create cb_refresh
  77. this.ln_bar=create ln_bar
  78. this.ln_bar2=create ln_bar2
  79. this.ln_1=create ln_1
  80. this.ln_2=create ln_2
  81. this.ln_3=create ln_3
  82. this.ln_4=create ln_4
  83. this.ole_1=create ole_1
  84. this.Control[]={this.r_bar,&
  85. this.cb_exit,&
  86. this.cb_book,&
  87. this.cb_download,&
  88. this.dw_2,&
  89. this.dw_1,&
  90. this.cb_refresh,&
  91. this.ln_bar,&
  92. this.ln_bar2,&
  93. this.ln_1,&
  94. this.ln_2,&
  95. this.ln_3,&
  96. this.ln_4,&
  97. this.ole_1}
  98. end on
  99. on w_aifmb_index_read.destroy
  100. destroy(this.r_bar)
  101. destroy(this.cb_exit)
  102. destroy(this.cb_book)
  103. destroy(this.cb_download)
  104. destroy(this.dw_2)
  105. destroy(this.dw_1)
  106. destroy(this.cb_refresh)
  107. destroy(this.ln_bar)
  108. destroy(this.ln_bar2)
  109. destroy(this.ln_1)
  110. destroy(this.ln_2)
  111. destroy(this.ln_3)
  112. destroy(this.ln_4)
  113. destroy(this.ole_1)
  114. end on
  115. event resize;ln_bar.endx = this.width
  116. ln_bar2.endx = this.width
  117. ln_1.endx = this.width
  118. ln_2.endx = this.width
  119. ln_3.endx = this.width
  120. ln_4.endx = this.width
  121. r_bar.width = this.width
  122. dw_1.Height = this.WorkSpaceHeight() - dw_1.Y
  123. dw_2.X = dw_1.X + dw_1.Width
  124. dw_2.Width = this.WorkSpaceWidth() - dw_2.X
  125. dw_2.Height = this.WorkSpaceHeight() - dw_2.Y
  126. ole_1.X = this.WorkSpaceWidth() - ole_1.Width
  127. end event
  128. event open;ole_1.Object.Navigate("http://www.fib2b.cn/ad/adforerp.htm?positionid=39")
  129. dw_1.SetTransObject(sqlca)
  130. dw_2.SetTransObject(sqlca)
  131. cb_refresh.TriggerEvent(Clicked!)
  132. end event
  133. type r_bar from rectangle within w_aifmb_index_read
  134. long linecolor = 16777215
  135. integer linethickness = 4
  136. long fillcolor = 1073741824
  137. integer x = 2089
  138. integer width = 146
  139. integer height = 68
  140. end type
  141. event constructor;this.fillcolor = 14215660
  142. this.linecolor = 14215660
  143. this.x = -1
  144. this.y = -1
  145. this.height = ln_3.beginy - 5
  146. end event
  147. type cb_exit from uo_imflatbutton within w_aifmb_index_read
  148. integer x = 576
  149. integer width = 151
  150. integer height = 164
  151. integer taborder = 30
  152. string text = "退出"
  153. string normalpicname = "exit.bmp"
  154. integer picsize = 16
  155. toolbaralignment pic_align = alignattop!
  156. boolean border = false
  157. end type
  158. event clicked;call super::clicked;close(parent)
  159. end event
  160. type cb_book from uo_imflatbutton within w_aifmb_index_read
  161. integer width = 151
  162. integer height = 164
  163. integer taborder = 30
  164. string text = "订阅"
  165. string normalpicname = "p2.BMP"
  166. integer picsize = 16
  167. toolbaralignment pic_align = alignattop!
  168. boolean border = false
  169. end type
  170. event clicked;call super::clicked;open(w_aifmb_index_book)
  171. end event
  172. type cb_download from uo_imflatbutton within w_aifmb_index_read
  173. integer x = 302
  174. integer width = 274
  175. integer height = 164
  176. integer taborder = 20
  177. string text = "下载订阅"
  178. string normalpicname = "imexport.BMP"
  179. integer picsize = 16
  180. toolbaralignment pic_align = alignattop!
  181. boolean border = false
  182. end type
  183. event clicked;call super::clicked;Int rslt = 1
  184. String arg_msg
  185. uo_aifmb lo_aifmb
  186. lo_aifmb = Create uo_aifmb
  187. IF lo_aifmb.uf_syncindexandvalue(arg_msg) <> 1 THEN
  188. rslt = 0
  189. GOTO ext
  190. END IF
  191. ext:
  192. Destroy lo_aifmb
  193. IF rslt = 1 THEN
  194. MessageBox('OK', '下载成功')
  195. ELSE
  196. MessageBox('ERROR', arg_msg)
  197. END IF
  198. Parent.TriggerEvent('ue_retrieve')
  199. end event
  200. type dw_2 from datawindow within w_aifmb_index_read
  201. integer x = 1737
  202. integer y = 420
  203. integer width = 1614
  204. integer height = 1364
  205. integer taborder = 30
  206. boolean titlebar = true
  207. string title = "指数"
  208. string dataobject = "dw_aifmb_index_readmx"
  209. boolean minbox = true
  210. boolean maxbox = true
  211. boolean hscrollbar = true
  212. boolean vscrollbar = true
  213. boolean resizable = true
  214. boolean livescroll = true
  215. borderstyle borderstyle = stylelowered!
  216. end type
  217. type dw_1 from u_dw_rbtnfilter within w_aifmb_index_read
  218. integer y = 420
  219. integer width = 1691
  220. integer height = 1360
  221. integer taborder = 20
  222. boolean bringtotop = true
  223. string dataobject = "dw_aifmb_index_read"
  224. boolean hscrollbar = true
  225. boolean vscrollbar = true
  226. boolean hsplitscroll = true
  227. end type
  228. event rowfocuschanged;call super::rowfocuschanged;This.SelectRow(0,False)
  229. IF currentrow > 0 THEN
  230. This.SelectRow(currentrow,True)
  231. END IF
  232. parent.triggerevent('ue_retrieve_mx')
  233. end event
  234. event clicked;call super::clicked;IF row > 0 THEN
  235. This.SetRow(row)
  236. END IF
  237. end event
  238. type cb_refresh from uo_imflatbutton within w_aifmb_index_read
  239. integer x = 151
  240. integer width = 151
  241. integer height = 164
  242. integer taborder = 10
  243. string text = "刷新"
  244. string normalpicname = "refresh.bmp"
  245. integer picsize = 16
  246. toolbaralignment pic_align = alignattop!
  247. boolean border = false
  248. end type
  249. event clicked;call super::clicked;parent.triggerevent('ue_retrieve')
  250. end event
  251. type ln_bar from line within w_aifmb_index_read
  252. long linecolor = 268435456
  253. integer linethickness = 4
  254. integer beginy = 168
  255. integer endx = 2007
  256. integer endy = 168
  257. end type
  258. type ln_bar2 from line within w_aifmb_index_read
  259. long linecolor = 16777215
  260. integer linethickness = 4
  261. integer beginy = 172
  262. integer endx = 2039
  263. integer endy = 172
  264. end type
  265. type ln_1 from line within w_aifmb_index_read
  266. long linecolor = 268435456
  267. integer linethickness = 4
  268. integer beginy = 288
  269. integer endx = 2016
  270. integer endy = 288
  271. end type
  272. type ln_2 from line within w_aifmb_index_read
  273. long linecolor = 16777215
  274. integer linethickness = 4
  275. integer beginy = 292
  276. integer endx = 2048
  277. integer endy = 292
  278. end type
  279. type ln_3 from line within w_aifmb_index_read
  280. long linecolor = 268435456
  281. integer linethickness = 4
  282. integer beginy = 408
  283. integer endx = 2016
  284. integer endy = 408
  285. end type
  286. type ln_4 from line within w_aifmb_index_read
  287. long linecolor = 16777215
  288. integer linethickness = 4
  289. integer beginy = 412
  290. integer endx = 2048
  291. integer endy = 412
  292. end type
  293. type ole_1 from uo_aifmb_webbrowser within w_aifmb_index_read
  294. integer x = 2464
  295. integer width = 1829
  296. integer height = 284
  297. integer taborder = 40
  298. boolean bringtotop = true
  299. string binarykey = "w_aifmb_index_read.win"
  300. end type
  301. Start of PowerBuilder Binary Data Section : Do NOT Edit
  302. 0Ew_aifmb_index_read.bin
  303. 2B00000a00e011cfd0e11ab1a1000000000000000000000000000000000003003e0009fffe000000060000000000000000000000010000000100000000000010000000000200000001fffffffe0000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfffffffefffffffefffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff006f00520074006f004500200074006e00790072000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050016ffffffffffffffff00000001000000000000000000000000000000000000000000000000000000002fefb9a001cec63100000003000001800000000000500003004f0042005800430054005300450052004d0041000000000000000000000000000000000000000000000000000000000000000000000000000000000102001affffffff00000002ffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000009c00000000004200500043004f00530058004f00540041005200450047000000000000000000000000000000000000000000000000000000000000000000000000000000000001001affffffffffffffff000000038856f96111d0340ac0006ba9a205d74f000000002fefb9a001cec6312fefb9a001cec631000000000000000000000000004f00430054004e004e00450053005400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001020012ffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000030000009c000000000000000100000002fffffffe0000000400000005fffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
  304. 24ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000004c00002957000007570000000000000000000000000000000000000000000000000000004c0000000000000000000000010057d0e011cf3573000869ae62122e2b00000008000000000000004c0002140100000000000000c0460000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c00002957000007570000000000000000000000000000000000000000000000000000004c0000000000000000000000010057d0e011cf3573000869ae62122e2b00000008000000000000004c0002140100000000000000c0460000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  305. 1Ew_aifmb_index_read.bin
  306. End of PowerBuilder Binary Data Section : No Source Expected After This Point