progressexcel.cs 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. using System;
  2. using System.ComponentModel;
  3. using System.Diagnostics;
  4. using System.Drawing;
  5. using System.Runtime.CompilerServices;
  6. using System.Windows.Forms;
  7. using ExportExcel.Properties;
  8. using Microsoft.VisualBasic.CompilerServices;
  9. namespace Dongke.IBOSS.PRD.Framework.Controls
  10. {
  11. [DesignerGenerated]
  12. [EditorBrowsable(EditorBrowsableState.Never)]
  13. public class progressexcel : Form
  14. {
  15. private IContainer components;
  16. [AccessedThroughProperty("Label1")]
  17. private Label _Label1;
  18. [AccessedThroughProperty("Button1")]
  19. private Button _Button1;
  20. [AccessedThroughProperty("ToolTip1")]
  21. private ToolTip _ToolTip1;
  22. [AccessedThroughProperty("Panel1")]
  23. private Panel _Panel1;
  24. [AccessedThroughProperty("Panel2")]
  25. private Panel _Panel2;
  26. [AccessedThroughProperty("ProgressBar1")]
  27. private ProgressBar _ProgressBar1;
  28. internal virtual Label Label1
  29. {
  30. get
  31. {
  32. return _Label1;
  33. }
  34. [MethodImpl(MethodImplOptions.Synchronized)]
  35. set
  36. {
  37. _Label1 = value;
  38. }
  39. }
  40. internal virtual Button Button1
  41. {
  42. get
  43. {
  44. return _Button1;
  45. }
  46. [MethodImpl(MethodImplOptions.Synchronized)]
  47. set
  48. {
  49. EventHandler value2 = Button1_Click;
  50. if (_Button1 != null)
  51. {
  52. _Button1.Click -= value2;
  53. }
  54. _Button1 = value;
  55. if (_Button1 != null)
  56. {
  57. _Button1.Click += value2;
  58. }
  59. }
  60. }
  61. internal virtual ToolTip ToolTip1
  62. {
  63. get
  64. {
  65. return _ToolTip1;
  66. }
  67. [MethodImpl(MethodImplOptions.Synchronized)]
  68. set
  69. {
  70. _ToolTip1 = value;
  71. }
  72. }
  73. internal virtual Panel Panel1
  74. {
  75. get
  76. {
  77. return _Panel1;
  78. }
  79. [MethodImpl(MethodImplOptions.Synchronized)]
  80. set
  81. {
  82. _Panel1 = value;
  83. }
  84. }
  85. internal virtual Panel Panel2
  86. {
  87. get
  88. {
  89. return _Panel2;
  90. }
  91. [MethodImpl(MethodImplOptions.Synchronized)]
  92. set
  93. {
  94. _Panel2 = value;
  95. }
  96. }
  97. internal virtual ProgressBar ProgressBar1
  98. {
  99. get
  100. {
  101. return _ProgressBar1;
  102. }
  103. [MethodImpl(MethodImplOptions.Synchronized)]
  104. set
  105. {
  106. _ProgressBar1 = value;
  107. }
  108. }
  109. public progressexcel()
  110. {
  111. base.Load += progressexcel_Load;
  112. InitializeComponent();
  113. }
  114. [DebuggerNonUserCode]
  115. protected override void Dispose(bool disposing)
  116. {
  117. try
  118. {
  119. if (disposing && components != null)
  120. {
  121. components.Dispose();
  122. }
  123. }
  124. finally
  125. {
  126. base.Dispose(disposing);
  127. }
  128. }
  129. [System.Diagnostics.DebuggerStepThrough]
  130. private void InitializeComponent()
  131. {
  132. this.components = new System.ComponentModel.Container();
  133. this.Label1 = new System.Windows.Forms.Label();
  134. this.Button1 = new System.Windows.Forms.Button();
  135. this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components);
  136. this.Panel1 = new System.Windows.Forms.Panel();
  137. this.Panel2 = new System.Windows.Forms.Panel();
  138. this.ProgressBar1 = new System.Windows.Forms.ProgressBar();
  139. this.Panel1.SuspendLayout();
  140. this.Panel2.SuspendLayout();
  141. base.SuspendLayout();
  142. this.Label1.BackColor = System.Drawing.SystemColors.Control;
  143. this.Label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
  144. this.Label1.Dock = System.Windows.Forms.DockStyle.Fill;
  145. this.Label1.Font = new System.Drawing.Font("宋体", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
  146. this.Label1.ForeColor = System.Drawing.SystemColors.ControlText;
  147. System.Windows.Forms.Control label = this.Label1;
  148. System.Drawing.Point location = new System.Drawing.Point(0, 0);
  149. label.Location = location;
  150. this.Label1.Name = "Label1";
  151. System.Windows.Forms.Control label2 = this.Label1;
  152. System.Drawing.Size size = new System.Drawing.Size(242, 54);
  153. label2.Size = size;
  154. this.Label1.TabIndex = 0;
  155. this.Label1.Text = "正在处理中,请稍候...";
  156. this.Label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  157. this.Button1.BackColor = System.Drawing.SystemColors.Control;
  158. //this.Button1.Image = ExportExcel.Properties.Resources.delete;
  159. this.Button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
  160. System.Windows.Forms.Control button = this.Button1;
  161. location = new System.Drawing.Point(75, 7);
  162. button.Location = location;
  163. this.Button1.Name = "Button1";
  164. System.Windows.Forms.Control button2 = this.Button1;
  165. size = new System.Drawing.Size(83, 31);
  166. button2.Size = size;
  167. this.Button1.TabIndex = 1;
  168. this.Button1.Text = "取消导出";
  169. this.ToolTip1.SetToolTip(this.Button1, "关于进度窗口,立即取消导出");
  170. this.Button1.UseVisualStyleBackColor = false;
  171. this.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  172. this.Panel1.Controls.Add(this.ProgressBar1);
  173. this.Panel1.Controls.Add(this.Label1);
  174. this.Panel1.Dock = System.Windows.Forms.DockStyle.Top;
  175. System.Windows.Forms.Control panel = this.Panel1;
  176. location = new System.Drawing.Point(0, 0);
  177. panel.Location = location;
  178. this.Panel1.Name = "Panel1";
  179. System.Windows.Forms.Control panel2 = this.Panel1;
  180. size = new System.Drawing.Size(244, 56);
  181. panel2.Size = size;
  182. this.Panel1.TabIndex = 2;
  183. this.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  184. this.Panel2.Controls.Add(this.Button1);
  185. this.Panel2.Dock = System.Windows.Forms.DockStyle.Fill;
  186. System.Windows.Forms.Control panel3 = this.Panel2;
  187. location = new System.Drawing.Point(0, 56);
  188. panel3.Location = location;
  189. this.Panel2.Name = "Panel2";
  190. System.Windows.Forms.Control panel4 = this.Panel2;
  191. size = new System.Drawing.Size(244, 41);
  192. panel4.Size = size;
  193. this.Panel2.TabIndex = 3;
  194. System.Windows.Forms.Control progressBar = this.ProgressBar1;
  195. location = new System.Drawing.Point(-1, 34);
  196. progressBar.Location = location;
  197. this.ProgressBar1.Name = "ProgressBar1";
  198. System.Windows.Forms.Control progressBar2 = this.ProgressBar1;
  199. size = new System.Drawing.Size(244, 23);
  200. progressBar2.Size = size;
  201. this.ProgressBar1.Step = 1;
  202. this.ProgressBar1.TabIndex = 1;
  203. System.Drawing.SizeF sizeF = new System.Drawing.SizeF(6f, 12f);
  204. base.AutoScaleDimensions = sizeF;
  205. base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  206. size = new System.Drawing.Size(244, 97);
  207. base.ClientSize = size;
  208. base.Controls.Add(this.Panel2);
  209. base.Controls.Add(this.Panel1);
  210. base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
  211. base.MaximizeBox = false;
  212. base.MinimizeBox = false;
  213. base.Name = "progressexcel";
  214. base.ShowIcon = false;
  215. base.ShowInTaskbar = false;
  216. base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  217. this.Text = "导出数据为Excel文件";
  218. this.Panel1.ResumeLayout(false);
  219. this.Panel2.ResumeLayout(false);
  220. base.ResumeLayout(false);
  221. }
  222. public void SetStatus(string tt)
  223. {
  224. Label1.Text = tt;
  225. Application.DoEvents();
  226. }
  227. private void Button1_Click(object sender, EventArgs e)
  228. {
  229. base.Visible = false;
  230. Module1.G_CancelExportDGVToExcel = true;
  231. Close();
  232. }
  233. private void progressexcel_Load(object sender, EventArgs e)
  234. {
  235. Button1.Visible = true;
  236. }
  237. }
  238. }