|
@@ -32,12 +32,7 @@
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
this.txtPort = new System.Windows.Forms.TextBox();
|
|
|
- this.txtIP = new System.Windows.Forms.TextBox();
|
|
|
- this.btnConnect = new System.Windows.Forms.Button();
|
|
|
this.lblState = new System.Windows.Forms.Label();
|
|
|
- this.showDataGrid = new System.Windows.Forms.DataGridView();
|
|
|
- this.cl_cardcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
- this.cl_time = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
this.getAllData = new System.Windows.Forms.Button();
|
|
|
this.allData = new System.Windows.Forms.BindingSource(this.components);
|
|
|
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
|
@@ -45,7 +40,8 @@
|
|
|
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
|
|
|
this.Master = new System.Windows.Forms.ComboBox();
|
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.showDataGrid)).BeginInit();
|
|
|
+ this.OperateResult = new System.Windows.Forms.RichTextBox();
|
|
|
+ this.IP = new System.Windows.Forms.ComboBox();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.allData)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
|
|
|
@@ -53,7 +49,7 @@
|
|
|
|
|
|
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(334, 34);
|
|
|
+ this.label2.Location = new System.Drawing.Point(386, 38);
|
|
|
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
this.label2.Name = "label2";
|
|
|
this.label2.Size = new System.Drawing.Size(82, 41);
|
|
@@ -64,7 +60,7 @@
|
|
|
|
|
|
this.label1.AutoSize = true;
|
|
|
this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
- this.label1.Location = new System.Drawing.Point(48, 32);
|
|
|
+ this.label1.Location = new System.Drawing.Point(48, 38);
|
|
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
this.label1.Name = "label1";
|
|
|
this.label1.Size = new System.Drawing.Size(47, 41);
|
|
@@ -73,75 +69,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
- this.txtPort.Location = new System.Drawing.Point(430, 34);
|
|
|
+ this.txtPort.Location = new System.Drawing.Point(476, 38);
|
|
|
this.txtPort.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2);
|
|
|
this.txtPort.Name = "txtPort";
|
|
|
this.txtPort.Size = new System.Drawing.Size(70, 35);
|
|
|
this.txtPort.TabIndex = 12;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- this.txtIP.Location = new System.Drawing.Point(116, 34);
|
|
|
- this.txtIP.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2);
|
|
|
- this.txtIP.Name = "txtIP";
|
|
|
- this.txtIP.Size = new System.Drawing.Size(194, 35);
|
|
|
- this.txtIP.TabIndex = 11;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- this.btnConnect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
- this.btnConnect.Location = new System.Drawing.Point(558, 30);
|
|
|
- this.btnConnect.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2);
|
|
|
- this.btnConnect.Name = "btnConnect";
|
|
|
- this.btnConnect.Size = new System.Drawing.Size(100, 50);
|
|
|
- this.btnConnect.TabIndex = 10;
|
|
|
- this.btnConnect.Text = "连接";
|
|
|
- this.btnConnect.UseVisualStyleBackColor = true;
|
|
|
- this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
|
|
|
+ this.txtPort.Text = "4370";
|
|
|
|
|
|
|
|
|
|
|
|
this.lblState.AutoSize = true;
|
|
|
this.lblState.ForeColor = System.Drawing.Color.Crimson;
|
|
|
- this.lblState.Location = new System.Drawing.Point(718, 44);
|
|
|
+ this.lblState.Location = new System.Drawing.Point(613, 49);
|
|
|
this.lblState.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
this.lblState.Name = "lblState";
|
|
|
this.lblState.Size = new System.Drawing.Size(142, 24);
|
|
|
this.lblState.TabIndex = 15;
|
|
|
this.lblState.Text = "状态:未连接";
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- this.showDataGrid.AllowUserToAddRows = false;
|
|
|
- this.showDataGrid.AllowUserToDeleteRows = false;
|
|
|
- this.showDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
|
- this.showDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
|
- this.cl_cardcode,
|
|
|
- this.cl_time});
|
|
|
- this.showDataGrid.Enabled = false;
|
|
|
- this.showDataGrid.Location = new System.Drawing.Point(34, 116);
|
|
|
- this.showDataGrid.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2);
|
|
|
- this.showDataGrid.Name = "showDataGrid";
|
|
|
- this.showDataGrid.RowTemplate.Height = 30;
|
|
|
- this.showDataGrid.Size = new System.Drawing.Size(1734, 756);
|
|
|
- this.showDataGrid.TabIndex = 16;
|
|
|
- this.showDataGrid.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.showDataGrid_DataError);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- this.cl_cardcode.DataPropertyName = "cl_cardcode";
|
|
|
- this.cl_cardcode.HeaderText = "卡号";
|
|
|
- this.cl_cardcode.Name = "cl_cardcode";
|
|
|
- this.cl_cardcode.Width = 200;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- this.cl_time.DataPropertyName = "cl_time";
|
|
|
- this.cl_time.HeaderText = "打卡时间";
|
|
|
- this.cl_time.MinimumWidth = 250;
|
|
|
- this.cl_time.Name = "cl_time";
|
|
|
- this.cl_time.Width = 250;
|
|
|
-
|
|
|
|
|
|
|
|
|
this.getAllData.BackColor = System.Drawing.SystemColors.ControlLightLight;
|
|
@@ -175,7 +120,7 @@
|
|
|
|
|
|
this.Master.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
this.Master.FormattingEnabled = true;
|
|
|
- this.Master.Location = new System.Drawing.Point(1018, 41);
|
|
|
+ this.Master.Location = new System.Drawing.Point(929, 52);
|
|
|
this.Master.Name = "Master";
|
|
|
this.Master.Size = new System.Drawing.Size(480, 32);
|
|
|
this.Master.TabIndex = 19;
|
|
@@ -184,35 +129,63 @@
|
|
|
|
|
|
this.label3.AutoSize = true;
|
|
|
this.label3.ForeColor = System.Drawing.Color.Black;
|
|
|
- this.label3.Location = new System.Drawing.Point(905, 44);
|
|
|
+ this.label3.Location = new System.Drawing.Point(816, 55);
|
|
|
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
this.label3.Name = "label3";
|
|
|
this.label3.Size = new System.Drawing.Size(106, 24);
|
|
|
this.label3.TabIndex = 20;
|
|
|
this.label3.Text = "选择账套";
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ this.OperateResult.Location = new System.Drawing.Point(55, 136);
|
|
|
+ this.OperateResult.Name = "OperateResult";
|
|
|
+ this.OperateResult.Size = new System.Drawing.Size(1693, 734);
|
|
|
+ this.OperateResult.TabIndex = 21;
|
|
|
+ this.OperateResult.Text = "";
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ this.IP.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.IP.FormattingEnabled = true;
|
|
|
+ this.IP.Items.AddRange(new object[] {
|
|
|
+ "192.168.2.230",
|
|
|
+ "192.168.2.231",
|
|
|
+ "192.168.2.232",
|
|
|
+ "192.168.1.4",
|
|
|
+ "192.168.1.241",
|
|
|
+ "192.168.1.153",
|
|
|
+ "192.168.1.182",
|
|
|
+ "192.168.1.183",
|
|
|
+ "192.168.1.75",
|
|
|
+ "192.168.1.181",
|
|
|
+ "192.168.1.219",
|
|
|
+ "192.168.1.244"});
|
|
|
+ this.IP.Location = new System.Drawing.Point(111, 44);
|
|
|
+ this.IP.Name = "IP";
|
|
|
+ this.IP.Size = new System.Drawing.Size(268, 32);
|
|
|
+ this.IP.TabIndex = 22;
|
|
|
+
|
|
|
|
|
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
this.ClientSize = new System.Drawing.Size(1781, 902);
|
|
|
+ this.Controls.Add(this.IP);
|
|
|
+ this.Controls.Add(this.OperateResult);
|
|
|
this.Controls.Add(this.label3);
|
|
|
this.Controls.Add(this.Master);
|
|
|
this.Controls.Add(this.ExportEmp);
|
|
|
this.Controls.Add(this.getAllData);
|
|
|
- this.Controls.Add(this.showDataGrid);
|
|
|
this.Controls.Add(this.lblState);
|
|
|
this.Controls.Add(this.label2);
|
|
|
this.Controls.Add(this.label1);
|
|
|
this.Controls.Add(this.txtPort);
|
|
|
- this.Controls.Add(this.txtIP);
|
|
|
- this.Controls.Add(this.btnConnect);
|
|
|
this.Margin = new System.Windows.Forms.Padding(4, 2, 4, 2);
|
|
|
this.Name = "Form1";
|
|
|
this.Text = "Form1";
|
|
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.showDataGrid)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.allData)).EndInit();
|
|
|
this.ResumeLayout(false);
|
|
|
this.PerformLayout();
|
|
@@ -224,19 +197,16 @@
|
|
|
private System.Windows.Forms.Label label2;
|
|
|
private System.Windows.Forms.Label label1;
|
|
|
private System.Windows.Forms.TextBox txtPort;
|
|
|
- private System.Windows.Forms.TextBox txtIP;
|
|
|
- private System.Windows.Forms.Button btnConnect;
|
|
|
private System.Windows.Forms.Label lblState;
|
|
|
- private System.Windows.Forms.DataGridView showDataGrid;
|
|
|
private System.Windows.Forms.Button getAllData;
|
|
|
private System.Windows.Forms.BindingSource allData;
|
|
|
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
|
|
|
- private System.Windows.Forms.DataGridViewTextBoxColumn cl_cardcode;
|
|
|
- private System.Windows.Forms.DataGridViewTextBoxColumn cl_time;
|
|
|
private System.Windows.Forms.Button ExportEmp;
|
|
|
private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
|
|
|
private System.Windows.Forms.ComboBox Master;
|
|
|
private System.Windows.Forms.Label label3;
|
|
|
+ private System.Windows.Forms.RichTextBox OperateResult;
|
|
|
+ private System.Windows.Forms.ComboBox IP;
|
|
|
}
|
|
|
}
|
|
|
|