|
|
@@ -28,6 +28,7 @@
|
|
|
/// </summary>
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
+ this.components = new System.ComponentModel.Container();
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
this.txtPort = new System.Windows.Forms.TextBox();
|
|
|
@@ -35,9 +36,10 @@
|
|
|
this.btnConnect = new System.Windows.Forms.Button();
|
|
|
this.lblState = new System.Windows.Forms.Label();
|
|
|
this.showDataGrid = new System.Windows.Forms.DataGridView();
|
|
|
+ this.人员编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
+ this.考勤时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
this.getAllData = new System.Windows.Forms.Button();
|
|
|
- this.saveData = new System.Windows.Forms.Button();
|
|
|
- this.allData = new System.Windows.Forms.BindingSource();
|
|
|
+ this.allData = new System.Windows.Forms.BindingSource(this.components);
|
|
|
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.showDataGrid)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.allData)).BeginInit();
|
|
|
@@ -46,45 +48,48 @@
|
|
|
// label2
|
|
|
//
|
|
|
this.label2.AutoSize = true;
|
|
|
- this.label2.Location = new System.Drawing.Point(206, 31);
|
|
|
+ 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(167, 17);
|
|
|
+ this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
|
this.label2.Name = "label2";
|
|
|
- this.label2.Size = new System.Drawing.Size(44, 18);
|
|
|
+ this.label2.Size = new System.Drawing.Size(42, 21);
|
|
|
this.label2.TabIndex = 14;
|
|
|
this.label2.Text = "Port";
|
|
|
//
|
|
|
// label1
|
|
|
//
|
|
|
this.label1.AutoSize = true;
|
|
|
- this.label1.Location = new System.Drawing.Point(36, 31);
|
|
|
+ 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(24, 16);
|
|
|
+ this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
|
this.label1.Name = "label1";
|
|
|
- this.label1.Size = new System.Drawing.Size(26, 18);
|
|
|
+ this.label1.Size = new System.Drawing.Size(25, 21);
|
|
|
this.label1.TabIndex = 13;
|
|
|
this.label1.Text = "IP";
|
|
|
//
|
|
|
// txtPort
|
|
|
//
|
|
|
- this.txtPort.Location = new System.Drawing.Point(259, 26);
|
|
|
- this.txtPort.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
+ this.txtPort.Location = new System.Drawing.Point(215, 17);
|
|
|
+ this.txtPort.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
|
|
|
this.txtPort.Name = "txtPort";
|
|
|
- this.txtPort.Size = new System.Drawing.Size(54, 28);
|
|
|
+ this.txtPort.Size = new System.Drawing.Size(37, 21);
|
|
|
this.txtPort.TabIndex = 12;
|
|
|
- this.txtPort.Text = "4370";
|
|
|
//
|
|
|
// txtIP
|
|
|
//
|
|
|
- this.txtIP.Location = new System.Drawing.Point(66, 26);
|
|
|
- this.txtIP.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
+ this.txtIP.Location = new System.Drawing.Point(58, 17);
|
|
|
+ this.txtIP.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
|
|
|
this.txtIP.Name = "txtIP";
|
|
|
- this.txtIP.Size = new System.Drawing.Size(132, 28);
|
|
|
+ this.txtIP.Size = new System.Drawing.Size(99, 21);
|
|
|
this.txtIP.TabIndex = 11;
|
|
|
- this.txtIP.Text = "192.168.253.201";
|
|
|
//
|
|
|
// btnConnect
|
|
|
//
|
|
|
- this.btnConnect.Location = new System.Drawing.Point(392, 26);
|
|
|
- this.btnConnect.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
+ 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(279, 15);
|
|
|
+ this.btnConnect.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
|
|
|
this.btnConnect.Name = "btnConnect";
|
|
|
- this.btnConnect.Size = new System.Drawing.Size(78, 30);
|
|
|
+ this.btnConnect.Size = new System.Drawing.Size(50, 25);
|
|
|
this.btnConnect.TabIndex = 10;
|
|
|
this.btnConnect.Text = "连接";
|
|
|
this.btnConnect.UseVisualStyleBackColor = true;
|
|
|
@@ -94,47 +99,55 @@
|
|
|
//
|
|
|
this.lblState.AutoSize = true;
|
|
|
this.lblState.ForeColor = System.Drawing.Color.Crimson;
|
|
|
- this.lblState.Location = new System.Drawing.Point(544, 32);
|
|
|
+ this.lblState.Location = new System.Drawing.Point(359, 22);
|
|
|
+ this.lblState.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
|
this.lblState.Name = "lblState";
|
|
|
- this.lblState.Size = new System.Drawing.Size(242, 18);
|
|
|
+ this.lblState.Size = new System.Drawing.Size(71, 12);
|
|
|
this.lblState.TabIndex = 15;
|
|
|
- this.lblState.Text = "Current State:Disconnected";
|
|
|
+ this.lblState.Text = "状态:未连接";
|
|
|
//
|
|
|
// showDataGrid
|
|
|
//
|
|
|
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.人员编号,
|
|
|
+ this.考勤时间});
|
|
|
this.showDataGrid.Enabled = false;
|
|
|
- this.showDataGrid.Location = new System.Drawing.Point(26, 191);
|
|
|
- this.showDataGrid.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
+ this.showDataGrid.Location = new System.Drawing.Point(17, 59);
|
|
|
+ this.showDataGrid.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
|
|
|
this.showDataGrid.Name = "showDataGrid";
|
|
|
this.showDataGrid.RowTemplate.Height = 30;
|
|
|
- this.showDataGrid.Size = new System.Drawing.Size(1062, 464);
|
|
|
+ this.showDataGrid.Size = new System.Drawing.Size(795, 377);
|
|
|
this.showDataGrid.TabIndex = 16;
|
|
|
//
|
|
|
+ // 人员编号
|
|
|
+ //
|
|
|
+ this.人员编号.DataPropertyName = "cl_emcode";
|
|
|
+ this.人员编号.HeaderText = "人员编号";
|
|
|
+ this.人员编号.Name = "人员编号";
|
|
|
+ this.人员编号.Width = 150;
|
|
|
+ //
|
|
|
+ // 考勤时间
|
|
|
+ //
|
|
|
+ this.考勤时间.DataPropertyName = "cl_time";
|
|
|
+ this.考勤时间.HeaderText = "考勤时间";
|
|
|
+ this.考勤时间.Name = "考勤时间";
|
|
|
+ this.考勤时间.Width = 200;
|
|
|
+ //
|
|
|
// getAllData
|
|
|
//
|
|
|
- this.getAllData.Location = new System.Drawing.Point(29, 97);
|
|
|
- this.getAllData.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
+ this.getAllData.BackColor = System.Drawing.SystemColors.ControlLightLight;
|
|
|
+ this.getAllData.Location = new System.Drawing.Point(560, 18);
|
|
|
+ this.getAllData.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
|
|
|
this.getAllData.Name = "getAllData";
|
|
|
- this.getAllData.Size = new System.Drawing.Size(151, 37);
|
|
|
+ this.getAllData.Size = new System.Drawing.Size(102, 25);
|
|
|
this.getAllData.TabIndex = 17;
|
|
|
- this.getAllData.Text = "获取考勤数据";
|
|
|
- this.getAllData.UseVisualStyleBackColor = true;
|
|
|
+ this.getAllData.Text = "同步考勤数据";
|
|
|
+ this.getAllData.UseVisualStyleBackColor = false;
|
|
|
this.getAllData.Click += new System.EventHandler(this.getAllData_Click);
|
|
|
//
|
|
|
- // saveData
|
|
|
- //
|
|
|
- this.saveData.Location = new System.Drawing.Point(683, 97);
|
|
|
- this.saveData.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
- this.saveData.Name = "saveData";
|
|
|
- this.saveData.Size = new System.Drawing.Size(145, 37);
|
|
|
- this.saveData.TabIndex = 18;
|
|
|
- this.saveData.Text = "保存数据";
|
|
|
- this.saveData.UseVisualStyleBackColor = true;
|
|
|
- this.saveData.Click += new System.EventHandler(this.saveData_Click);
|
|
|
- //
|
|
|
// dataGridViewCheckBoxColumn1
|
|
|
//
|
|
|
this.dataGridViewCheckBoxColumn1.HeaderText = "勾选";
|
|
|
@@ -142,10 +155,9 @@
|
|
|
//
|
|
|
// Form1
|
|
|
//
|
|
|
- this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
|
|
|
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
- this.ClientSize = new System.Drawing.Size(1113, 677);
|
|
|
- this.Controls.Add(this.saveData);
|
|
|
+ this.ClientSize = new System.Drawing.Size(823, 451);
|
|
|
this.Controls.Add(this.getAllData);
|
|
|
this.Controls.Add(this.showDataGrid);
|
|
|
this.Controls.Add(this.lblState);
|
|
|
@@ -154,7 +166,7 @@
|
|
|
this.Controls.Add(this.txtPort);
|
|
|
this.Controls.Add(this.txtIP);
|
|
|
this.Controls.Add(this.btnConnect);
|
|
|
- this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
+ this.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
|
|
|
this.Name = "Form1";
|
|
|
this.Text = "Form1";
|
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
|
@@ -175,9 +187,10 @@
|
|
|
private System.Windows.Forms.Label lblState;
|
|
|
private System.Windows.Forms.DataGridView showDataGrid;
|
|
|
private System.Windows.Forms.Button getAllData;
|
|
|
- private System.Windows.Forms.Button saveData;
|
|
|
private System.Windows.Forms.BindingSource allData;
|
|
|
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
|
|
|
+ private System.Windows.Forms.DataGridViewTextBoxColumn 人员编号;
|
|
|
+ private System.Windows.Forms.DataGridViewTextBoxColumn 考勤时间;
|
|
|
}
|
|
|
}
|
|
|
|