|
@@ -0,0 +1,346 @@
|
|
|
+namespace FileWatcher
|
|
|
+{
|
|
|
+ partial class AutoMakeQTYRZ
|
|
|
+ {
|
|
|
+ /// <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.StartWatch = new System.Windows.Forms.Button();
|
|
|
+ this.StopWatch = new System.Windows.Forms.Button();
|
|
|
+ this.OperateResult = new System.Windows.Forms.RichTextBox();
|
|
|
+ this.Clean = new System.Windows.Forms.Button();
|
|
|
+ this.MakeCode_lable = new System.Windows.Forms.Label();
|
|
|
+ this.Timer = new System.Windows.Forms.Timer(this.components);
|
|
|
+ this.ATEFile = new System.IO.FileSystemWatcher();
|
|
|
+ this.Type = new System.Windows.Forms.ComboBox();
|
|
|
+ this.label1 = new System.Windows.Forms.Label();
|
|
|
+ this.AutoStart = new System.Windows.Forms.CheckBox();
|
|
|
+ this.label2 = new System.Windows.Forms.Label();
|
|
|
+ this.label3 = new System.Windows.Forms.Label();
|
|
|
+ this.BaudRate = new System.Windows.Forms.TextBox();
|
|
|
+ this.NowQTY = new System.Windows.Forms.TextBox();
|
|
|
+ this.label4 = new System.Windows.Forms.Label();
|
|
|
+ this.ComPort = new FileWatcher.SerialPortCombox();
|
|
|
+ this.li_code = new FileWatcher.SearchTextBox();
|
|
|
+ this.label5 = new System.Windows.Forms.Label();
|
|
|
+ this.ma_code = new FileWatcher.SearchTextBox();
|
|
|
+ this.GetData = new System.Windows.Forms.Button();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.XmlWatcher)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.ATEFile)).BeginInit();
|
|
|
+ this.SuspendLayout();
|
|
|
+ //
|
|
|
+ // XmlWatcher
|
|
|
+ //
|
|
|
+ this.XmlWatcher.EnableRaisingEvents = true;
|
|
|
+ this.XmlWatcher.Filter = "*.log";
|
|
|
+ this.XmlWatcher.SynchronizingObject = this;
|
|
|
+ //
|
|
|
+ // StartWatch
|
|
|
+ //
|
|
|
+ this.StartWatch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.StartWatch.Location = new System.Drawing.Point(290, 557);
|
|
|
+ this.StartWatch.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
+ this.StartWatch.Name = "StartWatch";
|
|
|
+ this.StartWatch.Size = new System.Drawing.Size(128, 56);
|
|
|
+ this.StartWatch.TabIndex = 0;
|
|
|
+ this.StartWatch.Text = "开始监控";
|
|
|
+ this.StartWatch.UseVisualStyleBackColor = true;
|
|
|
+ this.StartWatch.Click += new System.EventHandler(this.StartWatch_Click);
|
|
|
+ //
|
|
|
+ // StopWatch
|
|
|
+ //
|
|
|
+ this.StopWatch.Enabled = false;
|
|
|
+ this.StopWatch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.StopWatch.Location = new System.Drawing.Point(700, 557);
|
|
|
+ this.StopWatch.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
+ this.StopWatch.Name = "StopWatch";
|
|
|
+ this.StopWatch.Size = new System.Drawing.Size(128, 56);
|
|
|
+ this.StopWatch.TabIndex = 1;
|
|
|
+ this.StopWatch.Text = "停止监控";
|
|
|
+ this.StopWatch.UseVisualStyleBackColor = true;
|
|
|
+ this.StopWatch.Click += new System.EventHandler(this.StopWatch_Click);
|
|
|
+ //
|
|
|
+ // OperateResult
|
|
|
+ //
|
|
|
+ this.OperateResult.Location = new System.Drawing.Point(892, 22);
|
|
|
+ this.OperateResult.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
+ this.OperateResult.Name = "OperateResult";
|
|
|
+ this.OperateResult.Size = new System.Drawing.Size(517, 535);
|
|
|
+ this.OperateResult.TabIndex = 7;
|
|
|
+ this.OperateResult.Text = "";
|
|
|
+ //
|
|
|
+ // Clean
|
|
|
+ //
|
|
|
+ this.Clean.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.Clean.Location = new System.Drawing.Point(1096, 580);
|
|
|
+ this.Clean.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
+ this.Clean.Name = "Clean";
|
|
|
+ this.Clean.Size = new System.Drawing.Size(112, 48);
|
|
|
+ this.Clean.TabIndex = 8;
|
|
|
+ this.Clean.Text = "清除";
|
|
|
+ this.Clean.UseVisualStyleBackColor = true;
|
|
|
+ this.Clean.Click += new System.EventHandler(this.Clean_Click);
|
|
|
+ //
|
|
|
+ // MakeCode_lable
|
|
|
+ //
|
|
|
+ this.MakeCode_lable.AutoSize = true;
|
|
|
+ this.MakeCode_lable.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.MakeCode_lable.Location = new System.Drawing.Point(34, 220);
|
|
|
+ this.MakeCode_lable.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
+ this.MakeCode_lable.Name = "MakeCode_lable";
|
|
|
+ this.MakeCode_lable.Size = new System.Drawing.Size(104, 38);
|
|
|
+ this.MakeCode_lable.TabIndex = 12;
|
|
|
+ this.MakeCode_lable.Text = "工单号";
|
|
|
+ //
|
|
|
+ // Timer
|
|
|
+ //
|
|
|
+ this.Timer.Interval = 2000;
|
|
|
+ this.Timer.Tick += new System.EventHandler(this.Timer_Tick);
|
|
|
+ //
|
|
|
+ // ATEFile
|
|
|
+ //
|
|
|
+ this.ATEFile.EnableRaisingEvents = true;
|
|
|
+ this.ATEFile.Filter = "*.txt";
|
|
|
+ this.ATEFile.SynchronizingObject = this;
|
|
|
+ //
|
|
|
+ // Type
|
|
|
+ //
|
|
|
+ this.Type.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.Type.FormattingEnabled = true;
|
|
|
+ this.Type.Items.AddRange(new object[] {
|
|
|
+ "投入",
|
|
|
+ "产出"});
|
|
|
+ this.Type.Location = new System.Drawing.Point(204, 44);
|
|
|
+ this.Type.Name = "Type";
|
|
|
+ this.Type.Size = new System.Drawing.Size(436, 32);
|
|
|
+ this.Type.TabIndex = 18;
|
|
|
+ this.Type.Visible = false;
|
|
|
+ //
|
|
|
+ // label1
|
|
|
+ //
|
|
|
+ this.label1.AutoSize = true;
|
|
|
+ this.label1.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.label1.Location = new System.Drawing.Point(34, 38);
|
|
|
+ this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
+ this.label1.Name = "label1";
|
|
|
+ this.label1.Size = new System.Drawing.Size(75, 38);
|
|
|
+ this.label1.TabIndex = 19;
|
|
|
+ this.label1.Text = "类型";
|
|
|
+ this.label1.Visible = false;
|
|
|
+ //
|
|
|
+ // AutoStart
|
|
|
+ //
|
|
|
+ this.AutoStart.AutoSize = true;
|
|
|
+ this.AutoStart.Checked = true;
|
|
|
+ this.AutoStart.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
|
+ this.AutoStart.Location = new System.Drawing.Point(678, 227);
|
|
|
+ this.AutoStart.Name = "AutoStart";
|
|
|
+ this.AutoStart.Size = new System.Drawing.Size(186, 28);
|
|
|
+ this.AutoStart.TabIndex = 20;
|
|
|
+ this.AutoStart.Text = "开机自动启动";
|
|
|
+ this.AutoStart.UseVisualStyleBackColor = true;
|
|
|
+ //
|
|
|
+ // label2
|
|
|
+ //
|
|
|
+ this.label2.AutoSize = true;
|
|
|
+ this.label2.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.label2.Location = new System.Drawing.Point(34, 120);
|
|
|
+ this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
+ this.label2.Name = "label2";
|
|
|
+ this.label2.Size = new System.Drawing.Size(75, 38);
|
|
|
+ this.label2.TabIndex = 22;
|
|
|
+ this.label2.Text = "串口";
|
|
|
+ //
|
|
|
+ // label3
|
|
|
+ //
|
|
|
+ this.label3.AutoSize = true;
|
|
|
+ this.label3.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.label3.Location = new System.Drawing.Point(426, 120);
|
|
|
+ this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
+ this.label3.Name = "label3";
|
|
|
+ this.label3.Size = new System.Drawing.Size(104, 38);
|
|
|
+ this.label3.TabIndex = 23;
|
|
|
+ this.label3.Text = "波特率";
|
|
|
+ //
|
|
|
+ // BaudRate
|
|
|
+ //
|
|
|
+ this.BaudRate.Location = new System.Drawing.Point(564, 120);
|
|
|
+ this.BaudRate.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
+ this.BaudRate.Name = "BaudRate";
|
|
|
+ this.BaudRate.Size = new System.Drawing.Size(146, 35);
|
|
|
+ this.BaudRate.TabIndex = 24;
|
|
|
+ //
|
|
|
+ // NowQTY
|
|
|
+ //
|
|
|
+ this.NowQTY.Location = new System.Drawing.Point(204, 373);
|
|
|
+ this.NowQTY.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
+ this.NowQTY.Name = "NowQTY";
|
|
|
+ this.NowQTY.Size = new System.Drawing.Size(146, 35);
|
|
|
+ this.NowQTY.TabIndex = 26;
|
|
|
+ //
|
|
|
+ // label4
|
|
|
+ //
|
|
|
+ this.label4.AutoSize = true;
|
|
|
+ this.label4.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.label4.Location = new System.Drawing.Point(34, 370);
|
|
|
+ this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
+ this.label4.Name = "label4";
|
|
|
+ this.label4.Size = new System.Drawing.Size(133, 38);
|
|
|
+ this.label4.TabIndex = 25;
|
|
|
+ this.label4.Text = "当前计数";
|
|
|
+ //
|
|
|
+ // ComPort
|
|
|
+ //
|
|
|
+ this.ComPort.Location = new System.Drawing.Point(204, 120);
|
|
|
+ this.ComPort.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
|
+ this.ComPort.Name = "ComPort";
|
|
|
+ this.ComPort.Size = new System.Drawing.Size(176, 40);
|
|
|
+ this.ComPort.TabIndex = 21;
|
|
|
+ //
|
|
|
+ // li_code
|
|
|
+ //
|
|
|
+ this.li_code.AllPower = null;
|
|
|
+ this.li_code.Caller = null;
|
|
|
+ this.li_code.Condition = null;
|
|
|
+ this.li_code.DBTitle = null;
|
|
|
+ this.li_code.FormName = null;
|
|
|
+ this.li_code.Location = new System.Drawing.Point(204, 291);
|
|
|
+ this.li_code.Name = "li_code";
|
|
|
+ this.li_code.Power = null;
|
|
|
+ this.li_code.ReturnData = null;
|
|
|
+ this.li_code.SelectField = null;
|
|
|
+ this.li_code.SetValueField = null;
|
|
|
+ this.li_code.Size = new System.Drawing.Size(436, 41);
|
|
|
+ this.li_code.TabIndex = 28;
|
|
|
+ this.li_code.TableName = null;
|
|
|
+ this.li_code.TextBoxEnable = false;
|
|
|
+ //
|
|
|
+ // label5
|
|
|
+ //
|
|
|
+ this.label5.AutoSize = true;
|
|
|
+ this.label5.Font = new System.Drawing.Font("微软雅黑", 12F);
|
|
|
+ this.label5.Location = new System.Drawing.Point(34, 291);
|
|
|
+ this.label5.Name = "label5";
|
|
|
+ this.label5.Size = new System.Drawing.Size(82, 41);
|
|
|
+ this.label5.TabIndex = 27;
|
|
|
+ this.label5.Text = "线别";
|
|
|
+ //
|
|
|
+ // ma_code
|
|
|
+ //
|
|
|
+ this.ma_code.AllPower = null;
|
|
|
+ this.ma_code.Caller = null;
|
|
|
+ this.ma_code.Condition = null;
|
|
|
+ this.ma_code.DBTitle = null;
|
|
|
+ this.ma_code.FormName = null;
|
|
|
+ this.ma_code.Location = new System.Drawing.Point(204, 214);
|
|
|
+ this.ma_code.Name = "ma_code";
|
|
|
+ this.ma_code.Power = null;
|
|
|
+ this.ma_code.ReturnData = null;
|
|
|
+ this.ma_code.SelectField = null;
|
|
|
+ this.ma_code.SetValueField = null;
|
|
|
+ this.ma_code.Size = new System.Drawing.Size(436, 41);
|
|
|
+ this.ma_code.TabIndex = 29;
|
|
|
+ this.ma_code.TableName = null;
|
|
|
+ this.ma_code.TextBoxEnable = false;
|
|
|
+ //
|
|
|
+ // GetData
|
|
|
+ //
|
|
|
+ this.GetData.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.GetData.Location = new System.Drawing.Point(492, 557);
|
|
|
+ this.GetData.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
+ this.GetData.Name = "GetData";
|
|
|
+ this.GetData.Size = new System.Drawing.Size(128, 56);
|
|
|
+ this.GetData.TabIndex = 30;
|
|
|
+ this.GetData.Text = "获取数据";
|
|
|
+ this.GetData.UseVisualStyleBackColor = true;
|
|
|
+ this.GetData.Click += new System.EventHandler(this.GetData_Click);
|
|
|
+ //
|
|
|
+ // AutoMakeQTYRZ
|
|
|
+ //
|
|
|
+ this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
|
|
|
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
+ this.ClientSize = new System.Drawing.Size(1443, 640);
|
|
|
+ this.Controls.Add(this.GetData);
|
|
|
+ this.Controls.Add(this.ma_code);
|
|
|
+ this.Controls.Add(this.li_code);
|
|
|
+ this.Controls.Add(this.label5);
|
|
|
+ this.Controls.Add(this.NowQTY);
|
|
|
+ this.Controls.Add(this.label4);
|
|
|
+ this.Controls.Add(this.BaudRate);
|
|
|
+ this.Controls.Add(this.label3);
|
|
|
+ this.Controls.Add(this.label2);
|
|
|
+ this.Controls.Add(this.ComPort);
|
|
|
+ this.Controls.Add(this.AutoStart);
|
|
|
+ this.Controls.Add(this.label1);
|
|
|
+ this.Controls.Add(this.Type);
|
|
|
+ this.Controls.Add(this.MakeCode_lable);
|
|
|
+ this.Controls.Add(this.Clean);
|
|
|
+ this.Controls.Add(this.OperateResult);
|
|
|
+ this.Controls.Add(this.StopWatch);
|
|
|
+ this.Controls.Add(this.StartWatch);
|
|
|
+ this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
+ this.MaximizeBox = false;
|
|
|
+ this.Name = "AutoMakeQTYRZ";
|
|
|
+ this.Text = "UAS设备数据解析 2024-11-29 10:05";
|
|
|
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
|
|
|
+ this.Load += new System.EventHandler(this.Form1_Load);
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.XmlWatcher)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.ATEFile)).EndInit();
|
|
|
+ this.ResumeLayout(false);
|
|
|
+ this.PerformLayout();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ private System.IO.FileSystemWatcher XmlWatcher;
|
|
|
+ private System.Windows.Forms.FolderBrowserDialog XmlFolder;
|
|
|
+ private System.Windows.Forms.Button StopWatch;
|
|
|
+ private System.Windows.Forms.Button StartWatch;
|
|
|
+ private System.Windows.Forms.RichTextBox OperateResult;
|
|
|
+ private System.Windows.Forms.Button Clean;
|
|
|
+ private System.Windows.Forms.Label MakeCode_lable;
|
|
|
+ private System.Windows.Forms.Timer Timer;
|
|
|
+ private System.IO.FileSystemWatcher ATEFile;
|
|
|
+ private System.Windows.Forms.ComboBox Type;
|
|
|
+ private System.Windows.Forms.Label label1;
|
|
|
+ private System.Windows.Forms.CheckBox AutoStart;
|
|
|
+ private SerialPortCombox ComPort;
|
|
|
+ private System.Windows.Forms.Label label2;
|
|
|
+ private System.Windows.Forms.Label label3;
|
|
|
+ private System.Windows.Forms.TextBox BaudRate;
|
|
|
+ private System.Windows.Forms.TextBox NowQTY;
|
|
|
+ private System.Windows.Forms.Label label4;
|
|
|
+ private SearchTextBox li_code;
|
|
|
+ private System.Windows.Forms.Label label5;
|
|
|
+ private SearchTextBox ma_code;
|
|
|
+ private System.Windows.Forms.Button GetData;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|