w_dw2xls_progress.srw 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. $PBExportHeader$w_dw2xls_progress.srw
  2. forward
  3. global type w_dw2xls_progress from window
  4. end type
  5. type p_1 from picture within w_dw2xls_progress
  6. end type
  7. type cb_cancel from commandbutton within w_dw2xls_progress
  8. end type
  9. type st_remain from statictext within w_dw2xls_progress
  10. end type
  11. type st_1 from statictext within w_dw2xls_progress
  12. end type
  13. type hpb_1 from hprogressbar within w_dw2xls_progress
  14. end type
  15. end forward
  16. global type w_dw2xls_progress from window
  17. integer width = 1819
  18. integer height = 496
  19. boolean titlebar = true
  20. string title = "数据发送"
  21. boolean controlmenu = true
  22. windowtype windowtype = response!
  23. long backcolor = 67108864
  24. string icon = "AppIcon!"
  25. boolean center = true
  26. p_1 p_1
  27. cb_cancel cb_cancel
  28. st_remain st_remain
  29. st_1 st_1
  30. hpb_1 hpb_1
  31. end type
  32. global w_dw2xls_progress w_dw2xls_progress
  33. type variables
  34. n_dw2xls_progress inv_Progress
  35. end variables
  36. on w_dw2xls_progress.create
  37. this.p_1=create p_1
  38. this.cb_cancel=create cb_cancel
  39. this.st_remain=create st_remain
  40. this.st_1=create st_1
  41. this.hpb_1=create hpb_1
  42. this.Control[]={this.p_1,&
  43. this.cb_cancel,&
  44. this.st_remain,&
  45. this.st_1,&
  46. this.hpb_1}
  47. end on
  48. on w_dw2xls_progress.destroy
  49. destroy(this.p_1)
  50. destroy(this.cb_cancel)
  51. destroy(this.st_remain)
  52. destroy(this.st_1)
  53. destroy(this.hpb_1)
  54. end on
  55. event open;IF Not IsValid(Message.PowerObjectParm) Then
  56. Close(This)
  57. Return
  58. END IF
  59. This.SetPosition(ToTop!)
  60. inv_Progress = Message.PowerObjectParm
  61. //This.Title =inv_Progress.inv_Requestor.Dynamic OF_GetCompanyName()
  62. This.p_1.PictureName = inv_Progress.inv_Res.PicFileName
  63. This.st_1.FaceName = inv_Progress.inv_Res.FontName
  64. This.st_1.Text = inv_Progress.inv_Res.WorkInProcessing
  65. This.st_Remain.FaceName = inv_Progress.inv_Res.FontName
  66. This.cb_Cancel.FaceName = inv_Progress.inv_Res.FontName
  67. This.cb_Cancel.Text = inv_Progress.inv_Res.Cancel
  68. inv_Progress.iu_hpb = This.hpb_1
  69. inv_Progress.inv_Requestor.PostEvent("ue_Process_Export")
  70. end event
  71. type p_1 from picture within w_dw2xls_progress
  72. integer x = 96
  73. integer y = 64
  74. integer width = 110
  75. integer height = 96
  76. boolean originalsize = true
  77. string picturename = "graphics\report_sp.bmp"
  78. boolean focusrectangle = false
  79. end type
  80. type cb_cancel from commandbutton within w_dw2xls_progress
  81. integer x = 1490
  82. integer y = 284
  83. integer width = 270
  84. integer height = 92
  85. integer taborder = 10
  86. integer textsize = -9
  87. integer weight = 400
  88. fontcharset fontcharset = gb2312charset!
  89. fontpitch fontpitch = variable!
  90. string facename = "宋体"
  91. string text = "取消"
  92. end type
  93. event clicked;IF MessageBox(inv_Progress.inv_Res.Tips, inv_Progress.inv_Res.CancelQuestion,Question!,YesNo!,2)=2 Then
  94. Return
  95. END IF
  96. This.Enabled=False
  97. inv_Progress.ib_Cancel =TRUE
  98. Parent.Hide()
  99. end event
  100. type st_remain from statictext within w_dw2xls_progress
  101. integer x = 59
  102. integer y = 288
  103. integer width = 1234
  104. integer height = 68
  105. integer textsize = -9
  106. integer weight = 400
  107. fontcharset fontcharset = gb2312charset!
  108. fontpitch fontpitch = variable!
  109. string facename = "宋体"
  110. long textcolor = 16711680
  111. long backcolor = 67108864
  112. boolean focusrectangle = false
  113. end type
  114. type st_1 from statictext within w_dw2xls_progress
  115. integer x = 229
  116. integer y = 96
  117. integer width = 1394
  118. integer height = 64
  119. integer textsize = -9
  120. integer weight = 400
  121. fontcharset fontcharset = gb2312charset!
  122. fontpitch fontpitch = variable!
  123. string facename = "宋体"
  124. long backcolor = 67108864
  125. string text = "正在生成Excel文件,请稍侯....."
  126. boolean focusrectangle = false
  127. end type
  128. type hpb_1 from hprogressbar within w_dw2xls_progress
  129. integer x = 41
  130. integer y = 200
  131. integer width = 1737
  132. integer height = 64
  133. unsignedinteger maxposition = 100
  134. integer setstep = 1
  135. end type