w_fx_welcome.srw 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. $PBExportHeader$w_fx_welcome.srw
  2. $PBExportComments$协同欢迎界面
  3. forward
  4. global type w_fx_welcome from window
  5. end type
  6. type cb_1 from commandbutton within w_fx_welcome
  7. end type
  8. type st_2 from statictext within w_fx_welcome
  9. end type
  10. type p_1 from picture within w_fx_welcome
  11. end type
  12. type st_1 from statictext within w_fx_welcome
  13. end type
  14. end forward
  15. global type w_fx_welcome from window
  16. integer width = 2286
  17. integer height = 1076
  18. boolean border = false
  19. windowtype windowtype = popup!
  20. long backcolor = 67108864
  21. string icon = "AppIcon!"
  22. boolean center = true
  23. event ue_update ( )
  24. cb_1 cb_1
  25. st_2 st_2
  26. p_1 p_1
  27. st_1 st_1
  28. end type
  29. global w_fx_welcome w_fx_welcome
  30. type variables
  31. string ins_path
  32. end variables
  33. event ue_update();////
  34. //Boolean lb_update
  35. //
  36. //
  37. //
  38. //string arg_msg
  39. //lb_update = FXAppCom.AutoUpdate(path, ref arg_msg)
  40. //IF arg_msg <> '' THEN
  41. //// Close(w_fx_welcome)
  42. // MessageBox('提示', '自动更新失败,' + arg_msg)
  43. // CLose(this)
  44. // return
  45. //ELSE
  46. // IF lb_update THEN
  47. //// Close(w_fx_welcome)
  48. // MessageBox('提示', '程序更新成功,程序即将关闭,请手动重新启动')
  49. // Close(this)
  50. // return
  51. // END IF
  52. //END IF
  53. //
  54. //Close(this)
  55. //open(w_login_fx)
  56. //
  57. end event
  58. on w_fx_welcome.create
  59. this.cb_1=create cb_1
  60. this.st_2=create st_2
  61. this.p_1=create p_1
  62. this.st_1=create st_1
  63. this.Control[]={this.cb_1,&
  64. this.st_2,&
  65. this.p_1,&
  66. this.st_1}
  67. end on
  68. on w_fx_welcome.destroy
  69. destroy(this.cb_1)
  70. destroy(this.st_2)
  71. destroy(this.p_1)
  72. destroy(this.st_1)
  73. end on
  74. event timer;long i
  75. string arg_msg
  76. i = FXAppCom.AutoUpdateAsync(ins_path, ref arg_msg)
  77. if (i = 0) then
  78. return
  79. elseif (i = 1) then
  80. timer(0)
  81. Close(this)
  82. MessageBox('提示', '程序更新成功,程序即将关闭,请手动重新启动')
  83. Close(w_login_fx)
  84. elseif (i = - 1) then
  85. timer(0)
  86. if (arg_msg <> '') then
  87. Close(this)
  88. MessageBox('提示', '自动更新失败,' + arg_msg)
  89. Close(w_login_fx)
  90. else
  91. Close(this)
  92. //Open(w_login_fx)
  93. Open(w_main_fx)
  94. end if
  95. end if
  96. // Close(this)
  97. // Open(w_main_fx)
  98. end event
  99. event open;st_2.Text = ProfileString(sys_fx_ini, 'oem', 'welcome', '欢迎使用龙嘉L1-SCC供应链协同系统')
  100. ins_path = GetCurrentDirectory()
  101. string arg_msg
  102. //FXAppCom.AutoUpdateAsync(ins_path, ref arg_msg)
  103. timer(0.8)
  104. end event
  105. type cb_1 from commandbutton within w_fx_welcome
  106. integer x = 2194
  107. integer width = 91
  108. integer height = 84
  109. integer taborder = 10
  110. integer textsize = -12
  111. integer weight = 400
  112. fontcharset fontcharset = gb2312charset!
  113. fontpitch fontpitch = variable!
  114. string facename = "宋体"
  115. string text = "×"
  116. end type
  117. event clicked;timer(0)
  118. Close(parent)
  119. end event
  120. type st_2 from statictext within w_fx_welcome
  121. integer x = 512
  122. integer y = 44
  123. integer width = 1285
  124. integer height = 76
  125. boolean bringtotop = true
  126. integer textsize = -12
  127. integer weight = 700
  128. fontcharset fontcharset = gb2312charset!
  129. fontpitch fontpitch = fixed!
  130. fontfamily fontfamily = modern!
  131. string facename = "幼圆"
  132. long textcolor = 16777215
  133. long backcolor = 21256673
  134. string text = "欢迎使用XXXXL1-SCC供应链协同系统"
  135. boolean focusrectangle = false
  136. end type
  137. type p_1 from picture within w_fx_welcome
  138. integer width = 2286
  139. integer height = 1076
  140. string picturename = "graphics\loading.gif"
  141. boolean focusrectangle = false
  142. end type
  143. type st_1 from statictext within w_fx_welcome
  144. integer x = 805
  145. integer y = 964
  146. integer width = 1445
  147. integer height = 76
  148. boolean bringtotop = true
  149. integer textsize = -12
  150. integer weight = 700
  151. fontcharset fontcharset = gb2312charset!
  152. fontpitch fontpitch = fixed!
  153. fontfamily fontfamily = modern!
  154. string facename = "幼圆"
  155. long textcolor = 16777215
  156. long backcolor = 21256673
  157. string text = "系统正在检查并获取更新,请耐心等待 •••"
  158. boolean focusrectangle = false
  159. end type