|
@@ -0,0 +1,163 @@
|
|
|
|
|
+namespace FileWatcher
|
|
|
|
|
+{
|
|
|
|
|
+ partial class UploadMakePlan
|
|
|
|
|
+ {
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 必需的设计器变量。
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ private System.ComponentModel.IContainer components = null;
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 清理所有正在使用的资源。
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
|
|
|
|
+ protected override void Dispose(bool disposing)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (disposing && (components != null))
|
|
|
|
|
+ {
|
|
|
|
|
+ components.Dispose();
|
|
|
|
|
+ }
|
|
|
|
|
+ base.Dispose(disposing);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ #region Windows 窗体设计器生成的代码
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 设计器支持所需的方法 - 不要修改
|
|
|
|
|
+ /// 使用代码编辑器修改此方法的内容。
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ private void InitializeComponent()
|
|
|
|
|
+ {
|
|
|
|
|
+ this.components = new System.ComponentModel.Container();
|
|
|
|
|
+ this.XmlWatcher = new System.IO.FileSystemWatcher();
|
|
|
|
|
+ this.XmlFolder = new System.Windows.Forms.FolderBrowserDialog();
|
|
|
|
|
+ this.OperateResult = new System.Windows.Forms.RichTextBox();
|
|
|
|
|
+ this.Timer = new System.Windows.Forms.Timer(this.components);
|
|
|
|
|
+ this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
|
|
|
|
+ this.DateTime = new System.Windows.Forms.DateTimePicker();
|
|
|
|
|
+ this.FilePath = new System.Windows.Forms.TextBox();
|
|
|
|
|
+ this.label8 = new System.Windows.Forms.Label();
|
|
|
|
|
+ this.label2 = new System.Windows.Forms.Label();
|
|
|
|
|
+ this.ImportExcel1 = new System.Windows.Forms.OpenFileDialog();
|
|
|
|
|
+ this.Upload = new System.Windows.Forms.Button();
|
|
|
|
|
+ this.ChooseFile = new System.Windows.Forms.Button();
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.XmlWatcher)).BeginInit();
|
|
|
|
|
+ this.SuspendLayout();
|
|
|
|
|
+ //
|
|
|
|
|
+ // XmlWatcher
|
|
|
|
|
+ //
|
|
|
|
|
+ this.XmlWatcher.EnableRaisingEvents = true;
|
|
|
|
|
+ this.XmlWatcher.Filter = "*.xml";
|
|
|
|
|
+ this.XmlWatcher.IncludeSubdirectories = true;
|
|
|
|
|
+ this.XmlWatcher.SynchronizingObject = this;
|
|
|
|
|
+ //
|
|
|
|
|
+ // OperateResult
|
|
|
|
|
+ //
|
|
|
|
|
+ this.OperateResult.Location = new System.Drawing.Point(979, 12);
|
|
|
|
|
+ this.OperateResult.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
|
|
+ this.OperateResult.Name = "OperateResult";
|
|
|
|
|
+ this.OperateResult.Size = new System.Drawing.Size(506, 564);
|
|
|
|
|
+ this.OperateResult.TabIndex = 7;
|
|
|
|
|
+ this.OperateResult.Text = "";
|
|
|
|
|
+ //
|
|
|
|
|
+ // DateTime
|
|
|
|
|
+ //
|
|
|
|
|
+ this.DateTime.Location = new System.Drawing.Point(211, 107);
|
|
|
|
|
+ this.DateTime.Name = "DateTime";
|
|
|
|
|
+ this.DateTime.Size = new System.Drawing.Size(200, 35);
|
|
|
|
|
+ this.DateTime.TabIndex = 8;
|
|
|
|
|
+ //
|
|
|
|
|
+ // FilePath
|
|
|
|
|
+ //
|
|
|
|
|
+ this.FilePath.Enabled = false;
|
|
|
|
|
+ this.FilePath.Location = new System.Drawing.Point(211, 200);
|
|
|
|
|
+ this.FilePath.Name = "FilePath";
|
|
|
|
|
+ this.FilePath.Size = new System.Drawing.Size(395, 35);
|
|
|
|
|
+ this.FilePath.TabIndex = 204;
|
|
|
|
|
+ //
|
|
|
|
|
+ // label8
|
|
|
|
|
+ //
|
|
|
|
|
+ this.label8.AutoSize = true;
|
|
|
|
|
+ this.label8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
+ this.label8.Location = new System.Drawing.Point(48, 194);
|
|
|
|
|
+ this.label8.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
|
|
+ this.label8.Name = "label8";
|
|
|
|
|
+ this.label8.Size = new System.Drawing.Size(146, 41);
|
|
|
|
|
+ this.label8.TabIndex = 203;
|
|
|
|
|
+ this.label8.Text = "文件路径";
|
|
|
|
|
+ //
|
|
|
|
|
+ // label2
|
|
|
|
|
+ //
|
|
|
|
|
+ this.label2.AutoSize = true;
|
|
|
|
|
+ this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
+ this.label2.Location = new System.Drawing.Point(48, 102);
|
|
|
|
|
+ this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
|
|
|
|
+ this.label2.Name = "label2";
|
|
|
|
|
+ this.label2.Size = new System.Drawing.Size(146, 41);
|
|
|
|
|
+ this.label2.TabIndex = 205;
|
|
|
|
|
+ this.label2.Text = "计划日期";
|
|
|
|
|
+ //
|
|
|
|
|
+ // ImportExcel1
|
|
|
|
|
+ //
|
|
|
|
|
+ this.ImportExcel1.FileName = "ImportExcel";
|
|
|
|
|
+ //
|
|
|
|
|
+ // Upload
|
|
|
|
|
+ //
|
|
|
|
|
+ this.Upload.Location = new System.Drawing.Point(211, 313);
|
|
|
|
|
+ this.Upload.Name = "Upload";
|
|
|
|
|
+ this.Upload.Size = new System.Drawing.Size(185, 43);
|
|
|
|
|
+ this.Upload.TabIndex = 206;
|
|
|
|
|
+ this.Upload.Text = "上传";
|
|
|
|
|
+ this.Upload.UseVisualStyleBackColor = true;
|
|
|
|
|
+ this.Upload.Click += new System.EventHandler(this.Upload_Click);
|
|
|
|
|
+ //
|
|
|
|
|
+ // ChooseFile
|
|
|
|
|
+ //
|
|
|
|
|
+ this.ChooseFile.Location = new System.Drawing.Point(642, 197);
|
|
|
|
|
+ this.ChooseFile.Name = "ChooseFile";
|
|
|
|
|
+ this.ChooseFile.Size = new System.Drawing.Size(185, 43);
|
|
|
|
|
+ this.ChooseFile.TabIndex = 207;
|
|
|
|
|
+ this.ChooseFile.Text = "选择文件";
|
|
|
|
|
+ this.ChooseFile.UseVisualStyleBackColor = true;
|
|
|
|
|
+ this.ChooseFile.Click += new System.EventHandler(this.ChooseFile_Click);
|
|
|
|
|
+ //
|
|
|
|
|
+ // UploadMakePlan
|
|
|
|
|
+ //
|
|
|
|
|
+ this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
|
|
|
|
|
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
|
|
+ this.ClientSize = new System.Drawing.Size(1498, 640);
|
|
|
|
|
+ this.Controls.Add(this.ChooseFile);
|
|
|
|
|
+ this.Controls.Add(this.Upload);
|
|
|
|
|
+ this.Controls.Add(this.label2);
|
|
|
|
|
+ this.Controls.Add(this.FilePath);
|
|
|
|
|
+ this.Controls.Add(this.label8);
|
|
|
|
|
+ this.Controls.Add(this.DateTime);
|
|
|
|
|
+ this.Controls.Add(this.OperateResult);
|
|
|
|
|
+ this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
|
|
+ this.MaximizeBox = false;
|
|
|
|
|
+ this.Name = "UploadMakePlan";
|
|
|
|
|
+ this.Text = "生产计划上传";
|
|
|
|
|
+ this.Load += new System.EventHandler(this.Form1_Load);
|
|
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.XmlWatcher)).EndInit();
|
|
|
|
|
+ this.ResumeLayout(false);
|
|
|
|
|
+ this.PerformLayout();
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ #endregion
|
|
|
|
|
+
|
|
|
|
|
+ private System.IO.FileSystemWatcher XmlWatcher;
|
|
|
|
|
+ private System.Windows.Forms.FolderBrowserDialog XmlFolder;
|
|
|
|
|
+ private System.Windows.Forms.RichTextBox OperateResult;
|
|
|
|
|
+ private System.Windows.Forms.Timer Timer;
|
|
|
|
|
+ private System.Windows.Forms.NotifyIcon notifyIcon1;
|
|
|
|
|
+ private System.Windows.Forms.DateTimePicker DateTime;
|
|
|
|
|
+ private System.Windows.Forms.Label label2;
|
|
|
|
|
+ private System.Windows.Forms.TextBox FilePath;
|
|
|
|
|
+ private System.Windows.Forms.Label label8;
|
|
|
|
|
+ private System.Windows.Forms.OpenFileDialog ImportExcel1;
|
|
|
|
|
+ private System.Windows.Forms.Button Upload;
|
|
|
|
|
+ private System.Windows.Forms.Button ChooseFile;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|