w_sys_wait_2jdt.srw 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. $PBExportHeader$w_sys_wait_2jdt.srw
  2. forward
  3. global type w_sys_wait_2jdt from w_publ_base
  4. end type
  5. type r_back2 from rectangle within w_sys_wait_2jdt
  6. end type
  7. type r_back from rectangle within w_sys_wait_2jdt
  8. end type
  9. type st_msg from statictext within w_sys_wait_2jdt
  10. end type
  11. type st_3 from statictext within w_sys_wait_2jdt
  12. end type
  13. type st_4 from statictext within w_sys_wait_2jdt
  14. end type
  15. type r_obj from picture within w_sys_wait_2jdt
  16. end type
  17. type r_obj2 from picture within w_sys_wait_2jdt
  18. end type
  19. type p_logo from picture within w_sys_wait_2jdt
  20. end type
  21. type hpb_1 from hprogressbar within w_sys_wait_2jdt
  22. end type
  23. type hpb_2 from hprogressbar within w_sys_wait_2jdt
  24. end type
  25. type ln_6 from line within w_sys_wait_2jdt
  26. end type
  27. type ln_1 from line within w_sys_wait_2jdt
  28. end type
  29. end forward
  30. global type w_sys_wait_2jdt from w_publ_base
  31. integer x = 626
  32. integer y = 488
  33. integer width = 1819
  34. integer height = 704
  35. boolean titlebar = false
  36. string title = ""
  37. boolean controlmenu = false
  38. boolean minbox = false
  39. long backcolor = 67108864
  40. r_back2 r_back2
  41. r_back r_back
  42. st_msg st_msg
  43. st_3 st_3
  44. st_4 st_4
  45. r_obj r_obj
  46. r_obj2 r_obj2
  47. p_logo p_logo
  48. hpb_1 hpb_1
  49. hpb_2 hpb_2
  50. ln_6 ln_6
  51. ln_1 ln_1
  52. end type
  53. global w_sys_wait_2jdt w_sys_wait_2jdt
  54. type variables
  55. int ls_x,ls_x2
  56. double obj_tol=0,obj_inc=0,obj_tol2=0,obj_inc2=0
  57. string old_msg,old_msg2
  58. end variables
  59. forward prototypes
  60. public function integer wf_inc (double inc)
  61. public function integer wf_accepttol (double tol)
  62. public function integer wf_set_msg (string arg_msg)
  63. public function integer wf_accepttol2 (double tol)
  64. public function integer wf_inc2 (double inc)
  65. end prototypes
  66. public function integer wf_inc (double inc);//wf_inc
  67. obj_inc = inc
  68. Double bf = 0
  69. IF obj_tol = 0 THEN
  70. hpb_1.Position = 0
  71. st_3.Text = '0.0%'
  72. RETURN 0
  73. END IF
  74. bf = (obj_inc/obj_tol)
  75. st_3.Text = String(bf,'0.0%')
  76. IF bf > 1 THEN bf = 1
  77. hpb_1.Position = bf * 1000
  78. RETURN 0
  79. end function
  80. public function integer wf_accepttol (double tol);//wf_accepttol
  81. obj_tol=tol
  82. r_obj.width=0
  83. wf_set_msg(old_msg)
  84. return 0
  85. end function
  86. public function integer wf_set_msg (string arg_msg);//wf_set_msg()
  87. st_msg.Text = arg_msg
  88. RETURN 0
  89. end function
  90. public function integer wf_accepttol2 (double tol);
  91. obj_tol2 = tol
  92. IF tol = 0 THEN
  93. hpb_2.Visible = False
  94. st_4.Visible = False
  95. // This.Height = 508
  96. ELSE
  97. hpb_2.Visible = True
  98. st_4.Visible = True
  99. // This.Height = 696
  100. END IF
  101. hpb_2.Position = 0
  102. RETURN 0
  103. end function
  104. public function integer wf_inc2 (double inc);//wf_inc2(inc)
  105. obj_inc2 = inc
  106. Double bf = 0
  107. IF obj_tol2 = 0 THEN
  108. hpb_2.position = 0
  109. st_4.Text = '0.0%'
  110. RETURN 0
  111. END IF
  112. bf = (obj_inc2/obj_tol2)
  113. st_4.Text = String(bf,'0.0%')
  114. IF bf > 1 THEN bf = 1
  115. hpb_2.Position = bf * 1000
  116. RETURN 0
  117. end function
  118. on w_sys_wait_2jdt.create
  119. int iCurrent
  120. call super::create
  121. this.r_back2=create r_back2
  122. this.r_back=create r_back
  123. this.st_msg=create st_msg
  124. this.st_3=create st_3
  125. this.st_4=create st_4
  126. this.r_obj=create r_obj
  127. this.r_obj2=create r_obj2
  128. this.p_logo=create p_logo
  129. this.hpb_1=create hpb_1
  130. this.hpb_2=create hpb_2
  131. this.ln_6=create ln_6
  132. this.ln_1=create ln_1
  133. iCurrent=UpperBound(this.Control)
  134. this.Control[iCurrent+1]=this.r_back2
  135. this.Control[iCurrent+2]=this.r_back
  136. this.Control[iCurrent+3]=this.st_msg
  137. this.Control[iCurrent+4]=this.st_3
  138. this.Control[iCurrent+5]=this.st_4
  139. this.Control[iCurrent+6]=this.r_obj
  140. this.Control[iCurrent+7]=this.r_obj2
  141. this.Control[iCurrent+8]=this.p_logo
  142. this.Control[iCurrent+9]=this.hpb_1
  143. this.Control[iCurrent+10]=this.hpb_2
  144. this.Control[iCurrent+11]=this.ln_6
  145. this.Control[iCurrent+12]=this.ln_1
  146. end on
  147. on w_sys_wait_2jdt.destroy
  148. call super::destroy
  149. destroy(this.r_back2)
  150. destroy(this.r_back)
  151. destroy(this.st_msg)
  152. destroy(this.st_3)
  153. destroy(this.st_4)
  154. destroy(this.r_obj)
  155. destroy(this.r_obj2)
  156. destroy(this.p_logo)
  157. destroy(this.hpb_1)
  158. destroy(this.hpb_2)
  159. destroy(this.ln_6)
  160. destroy(this.ln_1)
  161. end on
  162. event open;call super::open;//ls_x=p_logo.x
  163. wf_accepttol(0)
  164. wf_inc(0)
  165. old_msg=st_msg.text
  166. end event
  167. event timer;//if p_1.x=ls_x then
  168. // p_1.x=ls_x+20
  169. //else
  170. // p_1.x=ls_x
  171. //end if
  172. end event
  173. event hide;//wf_accepttol(0)
  174. //wf_inc(0)
  175. end event
  176. event activate;//timer(0.1)
  177. end event
  178. event show;//wf_accepttol(0)
  179. //wf_inc(0)
  180. end event
  181. event other;////open(w_sys_wait_jdt) //打开进度窗口
  182. ////w_sys_wait_jdt.WF_ACCEPTTOL(dw_contract.ROWCOUNT()) //初始化进度条
  183. ////w_sys_wait_jdt.wf_set_msg('新提示内容,请稍候...')
  184. ////FOR LS_LONG =1 TO dw_contract.ROWCOUNT()
  185. //// ///处理
  186. //// w_sys_wait_jdt.WF_INC(LS_LONG) //进度
  187. ////NEXT
  188. ////messagebox('操作完成','新建合约收费明细 '+STRING(OBJ_RC)+' 个,请核对!')
  189. ////close(w_sys_wait_jdt)
  190. end event
  191. type cb_func from w_publ_base`cb_func within w_sys_wait_2jdt
  192. boolean visible = false
  193. integer x = 914
  194. boolean enabled = false
  195. end type
  196. type cb_exit from w_publ_base`cb_exit within w_sys_wait_2jdt
  197. boolean visible = false
  198. integer x = 1230
  199. boolean enabled = false
  200. end type
  201. type r_back2 from rectangle within w_sys_wait_2jdt
  202. boolean visible = false
  203. long linecolor = 8421504
  204. integer linethickness = 4
  205. long fillcolor = 16777215
  206. integer x = 87
  207. integer y = 656
  208. integer width = 1568
  209. integer height = 52
  210. end type
  211. type r_back from rectangle within w_sys_wait_2jdt
  212. boolean visible = false
  213. long linecolor = 8421504
  214. integer linethickness = 4
  215. long fillcolor = 16777215
  216. integer x = 87
  217. integer y = 420
  218. integer width = 1568
  219. integer height = 52
  220. end type
  221. type st_msg from statictext within w_sys_wait_2jdt
  222. integer x = 27
  223. integer y = 204
  224. integer width = 1737
  225. integer height = 128
  226. boolean bringtotop = true
  227. integer textsize = -9
  228. integer weight = 400
  229. fontcharset fontcharset = gb2312charset!
  230. fontpitch fontpitch = variable!
  231. string facename = "宋体"
  232. long backcolor = 67108864
  233. boolean enabled = false
  234. string text = "系统正在进行数据处理,请稍候..."
  235. boolean focusrectangle = false
  236. end type
  237. type st_3 from statictext within w_sys_wait_2jdt
  238. integer x = 745
  239. integer y = 348
  240. integer width = 288
  241. integer height = 64
  242. boolean bringtotop = true
  243. integer textsize = -11
  244. integer weight = 700
  245. fontcharset fontcharset = ansi!
  246. fontpitch fontpitch = variable!
  247. fontfamily fontfamily = swiss!
  248. string facename = "Arial"
  249. long backcolor = 67108864
  250. boolean enabled = false
  251. string text = "%"
  252. alignment alignment = center!
  253. boolean focusrectangle = false
  254. end type
  255. type st_4 from statictext within w_sys_wait_2jdt
  256. integer x = 745
  257. integer y = 508
  258. integer width = 288
  259. integer height = 64
  260. boolean bringtotop = true
  261. integer textsize = -11
  262. integer weight = 700
  263. fontcharset fontcharset = ansi!
  264. fontpitch fontpitch = variable!
  265. fontfamily fontfamily = swiss!
  266. string facename = "Arial"
  267. long backcolor = 67108864
  268. boolean enabled = false
  269. string text = "%"
  270. alignment alignment = center!
  271. boolean focusrectangle = false
  272. end type
  273. type r_obj from picture within w_sys_wait_2jdt
  274. boolean visible = false
  275. integer x = 87
  276. integer y = 420
  277. integer width = 37
  278. integer height = 52
  279. boolean bringtotop = true
  280. string picturename = "graphics\jdt.bmp"
  281. boolean focusrectangle = false
  282. end type
  283. type r_obj2 from picture within w_sys_wait_2jdt
  284. boolean visible = false
  285. integer x = 87
  286. integer y = 656
  287. integer width = 37
  288. integer height = 52
  289. boolean bringtotop = true
  290. string picturename = "graphics\jdt.bmp"
  291. boolean focusrectangle = false
  292. end type
  293. type p_logo from picture within w_sys_wait_2jdt
  294. integer width = 1829
  295. integer height = 160
  296. boolean bringtotop = true
  297. string picturename = "graphics\jdt_banner.jpg"
  298. boolean focusrectangle = false
  299. end type
  300. type hpb_1 from hprogressbar within w_sys_wait_2jdt
  301. integer x = 64
  302. integer y = 416
  303. integer width = 1678
  304. integer height = 68
  305. boolean bringtotop = true
  306. unsignedinteger maxposition = 1000
  307. unsignedinteger position = 50
  308. integer setstep = 10
  309. end type
  310. type hpb_2 from hprogressbar within w_sys_wait_2jdt
  311. integer x = 64
  312. integer y = 580
  313. integer width = 1678
  314. integer height = 68
  315. boolean bringtotop = true
  316. unsignedinteger maxposition = 1000
  317. unsignedinteger position = 50
  318. integer setstep = 10
  319. end type
  320. type ln_6 from line within w_sys_wait_2jdt
  321. long linecolor = 16777215
  322. integer linethickness = 4
  323. integer beginx = -9
  324. integer beginy = 164
  325. integer endx = 2002
  326. integer endy = 164
  327. end type
  328. type ln_1 from line within w_sys_wait_2jdt
  329. long linecolor = 268435456
  330. integer linethickness = 4
  331. integer beginx = -9
  332. integer beginy = 160
  333. integer endx = 2002
  334. integer endy = 160
  335. end type