Commit 81ef7794 by 任天宇

优化

parent a0374d7c
......@@ -33,6 +33,8 @@
this.gbInfo = new System.Windows.Forms.GroupBox();
this.rtbMessage = new System.Windows.Forms.RichTextBox();
this.gbLogin = new System.Windows.Forms.GroupBox();
this.cbAssignOperatorName = new System.Windows.Forms.ComboBox();
this.lbAssignOperatorName = new System.Windows.Forms.Label();
this.cbSetCurrentPackageOwner = new System.Windows.Forms.ComboBox();
this.tbCurrentPackage = new System.Windows.Forms.TextBox();
this.lbCurrentPackage = new System.Windows.Forms.Label();
......@@ -91,8 +93,6 @@
this.btnClearCurrentPackage = new System.Windows.Forms.Button();
this.lbSetPackage = new System.Windows.Forms.Label();
this.tbSetCurrentPackage = new System.Windows.Forms.TextBox();
this.lbAssignOperatorName = new System.Windows.Forms.Label();
this.cbAssignOperatorName = new System.Windows.Forms.ComboBox();
this.plLeft.SuspendLayout();
this.gbInfo.SuspendLayout();
this.gbLogin.SuspendLayout();
......@@ -162,6 +162,27 @@
this.gbLogin.TabStop = false;
this.gbLogin.Text = "登录";
//
// cbAssignOperatorName
//
this.cbAssignOperatorName.Enabled = false;
this.cbAssignOperatorName.Font = new System.Drawing.Font("宋体", 20F);
this.cbAssignOperatorName.FormattingEnabled = true;
this.cbAssignOperatorName.Location = new System.Drawing.Point(11, 421);
this.cbAssignOperatorName.Name = "cbAssignOperatorName";
this.cbAssignOperatorName.Size = new System.Drawing.Size(187, 35);
this.cbAssignOperatorName.TabIndex = 33;
this.cbAssignOperatorName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cbAssignOperatorName_KeyDown);
//
// lbAssignOperatorName
//
this.lbAssignOperatorName.AutoSize = true;
this.lbAssignOperatorName.Font = new System.Drawing.Font("宋体", 12F);
this.lbAssignOperatorName.Location = new System.Drawing.Point(8, 402);
this.lbAssignOperatorName.Name = "lbAssignOperatorName";
this.lbAssignOperatorName.Size = new System.Drawing.Size(72, 16);
this.lbAssignOperatorName.TabIndex = 32;
this.lbAssignOperatorName.Text = "交接人:";
//
// cbSetCurrentPackageOwner
//
this.cbSetCurrentPackageOwner.Enabled = false;
......@@ -348,6 +369,7 @@
this.dgvRfidSamples.RowTemplate.Height = 23;
this.dgvRfidSamples.Size = new System.Drawing.Size(526, 503);
this.dgvRfidSamples.TabIndex = 0;
this.dgvRfidSamples.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.dgvRfidSamples_DataBindingComplete);
this.dgvRfidSamples.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvRfidSamples_RowPostPaint);
this.dgvRfidSamples.RowStateChanged += new System.Windows.Forms.DataGridViewRowStateChangedEventHandler(this.dgvRfidSamples_RowStateChanged);
//
......@@ -770,27 +792,6 @@
this.tbSetCurrentPackage.TabIndex = 78;
this.tbSetCurrentPackage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbSetCurrentPackage_KeyDown);
//
// lbAssignOperatorName
//
this.lbAssignOperatorName.AutoSize = true;
this.lbAssignOperatorName.Font = new System.Drawing.Font("宋体", 12F);
this.lbAssignOperatorName.Location = new System.Drawing.Point(8, 402);
this.lbAssignOperatorName.Name = "lbAssignOperatorName";
this.lbAssignOperatorName.Size = new System.Drawing.Size(72, 16);
this.lbAssignOperatorName.TabIndex = 32;
this.lbAssignOperatorName.Text = "交接人:";
//
// cbAssignOperatorName
//
this.cbAssignOperatorName.Enabled = false;
this.cbAssignOperatorName.Font = new System.Drawing.Font("宋体", 20F);
this.cbAssignOperatorName.FormattingEnabled = true;
this.cbAssignOperatorName.Location = new System.Drawing.Point(11, 421);
this.cbAssignOperatorName.Name = "cbAssignOperatorName";
this.cbAssignOperatorName.Size = new System.Drawing.Size(187, 35);
this.cbAssignOperatorName.TabIndex = 33;
this.cbAssignOperatorName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cbAssignOperatorName_KeyDown);
//
// FrmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
......
......@@ -964,9 +964,20 @@ namespace Kivii.Client.SampleInbounds
for (int i = 0; i < dgvSamples.Rows.Count; i++)
{
var item = dgvSamples.Rows[i].DataBoundItem as Sample;
if (item.IsMatched)
if (!item.IsMatched)
{
dgvSamples.Rows[i].DefaultCellStyle.BackColor = Color.Green;
dgvSamples.Rows[i].DefaultCellStyle.BackColor = Color.PapayaWhip;
}
}
}
private void dgvRfidSamples_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
{
for (int i = 0; i < dgvRfidSamples.Rows.Count; i++)
{
var item = dgvRfidSamples.Rows[i].DataBoundItem as Sample;
if (!item.IsMatched)
{
dgvRfidSamples.Rows[i].DefaultCellStyle.BackColor = Color.PapayaWhip;
}
}
}
......@@ -996,5 +1007,6 @@ namespace Kivii.Client.SampleInbounds
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment