w_xls_sys_wait_jdt.srw 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. $PBExportHeader$w_xls_sys_wait_jdt.srw
  2. forward
  3. global type w_xls_sys_wait_jdt from window
  4. end type
  5. type st_3 from statictext within w_xls_sys_wait_jdt
  6. end type
  7. type st_msg from statictext within w_xls_sys_wait_jdt
  8. end type
  9. type r_back from rectangle within w_xls_sys_wait_jdt
  10. end type
  11. type r_obj from rectangle within w_xls_sys_wait_jdt
  12. end type
  13. end forward
  14. global type w_xls_sys_wait_jdt from window
  15. integer x = 626
  16. integer y = 488
  17. integer width = 1595
  18. integer height = 328
  19. windowtype windowtype = popup!
  20. long backcolor = 16776960
  21. string icon = "AppIcon!"
  22. st_3 st_3
  23. st_msg st_msg
  24. r_back r_back
  25. r_obj r_obj
  26. end type
  27. global w_xls_sys_wait_jdt w_xls_sys_wait_jdt
  28. type variables
  29. Boolean dw_edit_mode = FALSE
  30. Boolean if_modify_mode = FALSE
  31. Boolean if_ue_retr = FALSE
  32. Boolean if_ue_filter = FALSE
  33. Boolean if_ue_sort = FALSE
  34. Boolean if_ue_sentdataout = FALSE
  35. Boolean if_ue_showall = FALSE
  36. Long printnum
  37. Int ls_x
  38. Double obj_tol = 0,obj_inc = 0
  39. String old_msg
  40. end variables
  41. forward prototypes
  42. public function integer wf_movetocenter ()
  43. public function integer wf_set_msg (string arg_msg)
  44. public function integer wf_inc (double inc)
  45. public function integer wf_accepttol (double tol)
  46. end prototypes
  47. public function integer wf_movetocenter ();
  48. //wf_movetocenter
  49. environment exerun_env
  50. GetEnvironment(exerun_env )
  51. THIS.Move ( (PixelsToUnits(exerun_env.ScreenWidth, XPixelsToUnits!) - THIS.Width)/2,&
  52. (PixelsToUnits(exerun_env.ScreenHeight, XPixelsToUnits!) - THIS.Height - 350 )/2) //
  53. //this.Move ( (exerun_env.screenwidth*4.62 - this.Width)/2, (exerun_env.screenheight*3.87 - this.Height)/2)
  54. RETURN 0
  55. end function
  56. public function integer wf_set_msg (string arg_msg);
  57. //wf_set_msg()
  58. st_msg.Text = arg_msg
  59. RETURN 0
  60. end function
  61. public function integer wf_inc (double inc);
  62. //wf_inc
  63. obj_inc = inc
  64. Double bf = 0
  65. IF obj_tol = 0 THEN
  66. r_obj.Width = 0
  67. RETURN 0
  68. END IF
  69. bf = (obj_inc/obj_tol)
  70. st_3.Text = String(bf,'0.0%')
  71. IF bf > 1 THEN bf = 1
  72. r_obj.Width = r_back.Width*bf
  73. //IF Mod( Long(Right(String(bf),1)) ,2 ) = 0 THEN
  74. // p_1.Invert = TRUE
  75. //ELSE
  76. // p_1.Invert = FALSE
  77. //END IF
  78. //messagebox(string(inc)+' '+string(obj_inc),string(r_obj.width)+' '+string(r_back.width))
  79. RETURN 0
  80. end function
  81. public function integer wf_accepttol (double tol);
  82. //wf_accepttol
  83. obj_tol = tol
  84. r_obj.Width = 0
  85. wf_set_msg(old_msg)
  86. RETURN 0
  87. end function
  88. on w_xls_sys_wait_jdt.create
  89. this.st_3=create st_3
  90. this.st_msg=create st_msg
  91. this.r_back=create r_back
  92. this.r_obj=create r_obj
  93. this.Control[]={this.st_3,&
  94. this.st_msg,&
  95. this.r_back,&
  96. this.r_obj}
  97. end on
  98. on w_xls_sys_wait_jdt.destroy
  99. destroy(this.st_3)
  100. destroy(this.st_msg)
  101. destroy(this.r_back)
  102. destroy(this.r_obj)
  103. end on
  104. event open;
  105. THIS.TriggerEvent('ue_before_open')
  106. wf_movetocenter()
  107. //====================================================================
  108. //菜单打开
  109. //if_ue_retr=false
  110. //if_ue_filter=false
  111. //if_ue_sort=false
  112. //if_ue_sentdataout=false
  113. //====================================================================
  114. //ls_x = p_1.X
  115. wf_accepttol(0)
  116. wf_inc(0)
  117. old_msg = st_msg.Text
  118. //
  119. uo_win32api uo_api
  120. uo_api = create uo_win32api
  121. uo_api.u_setwindowpos( handle(this))
  122. //
  123. end event
  124. type st_3 from statictext within w_xls_sys_wait_jdt
  125. integer x = 631
  126. integer y = 148
  127. integer width = 288
  128. integer height = 52
  129. boolean bringtotop = true
  130. integer textsize = -9
  131. integer weight = 400
  132. fontcharset fontcharset = gb2312charset!
  133. fontpitch fontpitch = variable!
  134. string facename = "宋体"
  135. long backcolor = 16776960
  136. boolean enabled = false
  137. string text = "%"
  138. alignment alignment = center!
  139. boolean focusrectangle = false
  140. end type
  141. type st_msg from statictext within w_xls_sys_wait_jdt
  142. integer x = 69
  143. integer y = 40
  144. integer width = 1435
  145. integer height = 108
  146. boolean bringtotop = true
  147. integer textsize = -9
  148. integer weight = 400
  149. fontcharset fontcharset = gb2312charset!
  150. fontpitch fontpitch = variable!
  151. string facename = "宋体"
  152. long backcolor = 16776960
  153. boolean enabled = false
  154. string text = "系统正在进行数据处理,请稍候..."
  155. boolean focusrectangle = false
  156. end type
  157. type r_back from rectangle within w_xls_sys_wait_jdt
  158. long linecolor = 65535
  159. integer linethickness = 4
  160. long fillcolor = 16777215
  161. integer x = 87
  162. integer y = 204
  163. integer width = 1381
  164. integer height = 36
  165. end type
  166. type r_obj from rectangle within w_xls_sys_wait_jdt
  167. long linecolor = 16711680
  168. integer linethickness = 4
  169. long fillcolor = 255
  170. integer x = 87
  171. integer y = 204
  172. integer width = 389
  173. integer height = 36
  174. end type