w_sys_wait_jdt.srw 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. $PBExportHeader$w_sys_wait_jdt.srw
  2. $PBExportComments$单进度条
  3. forward
  4. global type w_sys_wait_jdt from w_publ_base
  5. end type
  6. type r_back from rectangle within w_sys_wait_jdt
  7. end type
  8. type st_msg from statictext within w_sys_wait_jdt
  9. end type
  10. type p_logo from picture within w_sys_wait_jdt
  11. end type
  12. type st_3 from statictext within w_sys_wait_jdt
  13. end type
  14. type r_obj from picture within w_sys_wait_jdt
  15. end type
  16. type hpb_1 from hprogressbar within w_sys_wait_jdt
  17. end type
  18. type ln_6 from line within w_sys_wait_jdt
  19. end type
  20. type ln_1 from line within w_sys_wait_jdt
  21. end type
  22. end forward
  23. global type w_sys_wait_jdt from w_publ_base
  24. integer x = 626
  25. integer y = 488
  26. integer width = 1824
  27. integer height = 508
  28. boolean titlebar = false
  29. string title = ""
  30. boolean controlmenu = false
  31. boolean minbox = false
  32. long backcolor = 67108864
  33. r_back r_back
  34. st_msg st_msg
  35. p_logo p_logo
  36. st_3 st_3
  37. r_obj r_obj
  38. hpb_1 hpb_1
  39. ln_6 ln_6
  40. ln_1 ln_1
  41. end type
  42. global w_sys_wait_jdt w_sys_wait_jdt
  43. type variables
  44. int ls_x
  45. double obj_tol=0,obj_inc=0
  46. string old_msg
  47. end variables
  48. forward prototypes
  49. public function integer wf_inc (double inc)
  50. public function integer wf_accepttol (double tol)
  51. public function integer wf_set_msg (string arg_msg)
  52. end prototypes
  53. public function integer wf_inc (double inc);//wf_inc
  54. obj_inc = inc
  55. Double bf = 0
  56. IF obj_tol = 0 THEN
  57. st_3.Text = '0.0%'
  58. hpb_1.position = 0
  59. RETURN 0
  60. END IF
  61. bf = (obj_inc/obj_tol)
  62. st_3.Text = String(bf,'0.0%')
  63. IF bf > 1 THEN bf = 1
  64. hpb_1.position = bf * 1000
  65. //r_obj.Width = r_back.Width*bf
  66. RETURN 0
  67. end function
  68. public function integer wf_accepttol (double tol);//wf_accepttol
  69. obj_tol=tol
  70. r_obj.width=0
  71. wf_set_msg(old_msg)
  72. return 0
  73. end function
  74. public function integer wf_set_msg (string arg_msg);//wf_set_msg()
  75. st_msg.Text = arg_msg
  76. RETURN 0
  77. end function
  78. on w_sys_wait_jdt.create
  79. int iCurrent
  80. call super::create
  81. this.r_back=create r_back
  82. this.st_msg=create st_msg
  83. this.p_logo=create p_logo
  84. this.st_3=create st_3
  85. this.r_obj=create r_obj
  86. this.hpb_1=create hpb_1
  87. this.ln_6=create ln_6
  88. this.ln_1=create ln_1
  89. iCurrent=UpperBound(this.Control)
  90. this.Control[iCurrent+1]=this.r_back
  91. this.Control[iCurrent+2]=this.st_msg
  92. this.Control[iCurrent+3]=this.p_logo
  93. this.Control[iCurrent+4]=this.st_3
  94. this.Control[iCurrent+5]=this.r_obj
  95. this.Control[iCurrent+6]=this.hpb_1
  96. this.Control[iCurrent+7]=this.ln_6
  97. this.Control[iCurrent+8]=this.ln_1
  98. end on
  99. on w_sys_wait_jdt.destroy
  100. call super::destroy
  101. destroy(this.r_back)
  102. destroy(this.st_msg)
  103. destroy(this.p_logo)
  104. destroy(this.st_3)
  105. destroy(this.r_obj)
  106. destroy(this.hpb_1)
  107. destroy(this.ln_6)
  108. destroy(this.ln_1)
  109. end on
  110. event open;call super::open;ls_x=p_logo.x
  111. wf_accepttol(0)
  112. wf_inc(0)
  113. old_msg=st_msg.text
  114. end event
  115. event timer;//if p_1.x=ls_x then
  116. // p_1.x=ls_x+20
  117. //else
  118. // p_1.x=ls_x
  119. //end if
  120. end event
  121. event hide;//wf_accepttol(0)
  122. //wf_inc(0)
  123. end event
  124. event activate;//timer(0.1)
  125. end event
  126. event show;//wf_accepttol(0)
  127. //wf_inc(0)
  128. end event
  129. event other;////open(w_sys_wait_jdt) //打开进度窗口
  130. ////w_sys_wait_jdt.WF_ACCEPTTOL(dw_contract.ROWCOUNT()) //初始化进度条
  131. ////w_sys_wait_jdt.wf_set_msg('新提示内容,请稍候...')
  132. ////FOR LS_LONG =1 TO dw_contract.ROWCOUNT()
  133. //// ///处理
  134. //// w_sys_wait_jdt.WF_INC(LS_LONG) //进度
  135. ////NEXT
  136. ////messagebox('操作完成','新建合约收费明细 '+STRING(OBJ_RC)+' 个,请核对!')
  137. ////close(w_sys_wait_jdt)
  138. end event
  139. type cb_func from w_publ_base`cb_func within w_sys_wait_jdt
  140. boolean visible = false
  141. boolean enabled = false
  142. end type
  143. type cb_exit from w_publ_base`cb_exit within w_sys_wait_jdt
  144. boolean visible = false
  145. boolean enabled = false
  146. end type
  147. type r_back from rectangle within w_sys_wait_jdt
  148. boolean visible = false
  149. long linecolor = 8421504
  150. integer linethickness = 4
  151. long fillcolor = 16777215
  152. integer x = 87
  153. integer y = 204
  154. integer width = 1568
  155. integer height = 52
  156. end type
  157. type st_msg from statictext within w_sys_wait_jdt
  158. integer x = 27
  159. integer y = 188
  160. integer width = 1760
  161. integer height = 108
  162. boolean bringtotop = true
  163. integer textsize = -9
  164. integer weight = 400
  165. fontcharset fontcharset = gb2312charset!
  166. fontpitch fontpitch = variable!
  167. string facename = "宋体"
  168. long backcolor = 67108864
  169. boolean enabled = false
  170. string text = "系统正在进行数据处理,请稍候..."
  171. boolean focusrectangle = false
  172. end type
  173. type p_logo from picture within w_sys_wait_jdt
  174. integer width = 1829
  175. integer height = 160
  176. boolean bringtotop = true
  177. boolean originalsize = true
  178. string picturename = "graphics\jdt_banner.jpg"
  179. boolean focusrectangle = false
  180. end type
  181. type st_3 from statictext within w_sys_wait_jdt
  182. integer x = 731
  183. integer y = 316
  184. integer width = 288
  185. integer height = 64
  186. boolean bringtotop = true
  187. integer textsize = -11
  188. integer weight = 700
  189. fontcharset fontcharset = ansi!
  190. fontpitch fontpitch = variable!
  191. fontfamily fontfamily = swiss!
  192. string facename = "Arial"
  193. long backcolor = 67108864
  194. boolean enabled = false
  195. string text = "45.6%"
  196. alignment alignment = center!
  197. boolean focusrectangle = false
  198. end type
  199. type r_obj from picture within w_sys_wait_jdt
  200. boolean visible = false
  201. integer x = 87
  202. integer y = 204
  203. integer width = 37
  204. integer height = 52
  205. boolean bringtotop = true
  206. string picturename = "graphics\jdt.bmp"
  207. boolean focusrectangle = false
  208. end type
  209. type hpb_1 from hprogressbar within w_sys_wait_jdt
  210. integer x = 73
  211. integer y = 384
  212. integer width = 1678
  213. integer height = 68
  214. boolean bringtotop = true
  215. unsignedinteger maxposition = 1000
  216. unsignedinteger position = 50
  217. integer setstep = 10
  218. end type
  219. type ln_6 from line within w_sys_wait_jdt
  220. long linecolor = 16777215
  221. integer linethickness = 4
  222. integer beginx = -9
  223. integer beginy = 164
  224. integer endx = 2002
  225. integer endy = 164
  226. end type
  227. type ln_1 from line within w_sys_wait_jdt
  228. long linecolor = 268435456
  229. integer linethickness = 4
  230. integer beginx = -9
  231. integer beginy = 160
  232. integer endx = 2002
  233. integer endy = 160
  234. end type