Browse Source

修改配色

master
yibo 8 years ago
parent
commit
7bf50d745e
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      QualityAndOrder/QualityOrderFormForTab2.cs

+ 8
- 8
QualityAndOrder/QualityOrderFormForTab2.cs View File

@ -196,9 +196,9 @@ namespace QualityAndOrder
foreach (DataGridViewRow row in orderGrid.Rows) foreach (DataGridViewRow row in orderGrid.Rows)
{ {
if ((bool)row.Cells["O_IsHurryButcher"].Value) if ((bool)row.Cells["O_IsHurryButcher"].Value)
row.DefaultCellStyle.BackColor = Color.YellowGreen;
row.DefaultCellStyle.BackColor = ColorTranslator.FromHtml("#CC9999");
if ((bool)row.Cells["O_SecondarySplit"].Value) if ((bool)row.Cells["O_SecondarySplit"].Value)
row.DefaultCellStyle.BackColor = Color.DarkOrange;
row.DefaultCellStyle.BackColor = ColorTranslator.FromHtml("#6699CC");
if (lastOrderDetail != null && lastOrderDetail.ID == (long)row.Cells["O_ID"].Value) if (lastOrderDetail != null && lastOrderDetail.ID == (long)row.Cells["O_ID"].Value)
{ {
var cRow = row; var cRow = row;
@ -207,9 +207,9 @@ namespace QualityAndOrder
lastOrderDetail = cRow.DataBoundItem as OrderDetail; lastOrderDetail = cRow.DataBoundItem as OrderDetail;
var c = orderGrid.RowsDefaultCellStyle.SelectionBackColor; var c = orderGrid.RowsDefaultCellStyle.SelectionBackColor;
if (lastOrderDetail.IsHurryButcher) if (lastOrderDetail.IsHurryButcher)
cRow.DefaultCellStyle.BackColor = Color.Yellow;
cRow.DefaultCellStyle.BackColor = ColorTranslator.FromHtml("#FF9900");
if (lastOrderDetail.SecondarySplit) if (lastOrderDetail.SecondarySplit)
cRow.DefaultCellStyle.BackColor = Color.Pink;
cRow.DefaultCellStyle.BackColor = ColorTranslator.FromHtml("#006699");
cRow.DefaultCellStyle.SelectionBackColor = c; cRow.DefaultCellStyle.SelectionBackColor = c;
} }
} }
@ -338,9 +338,9 @@ namespace QualityAndOrder
{ {
Color c = orderGrid.RowsDefaultCellStyle.BackColor; Color c = orderGrid.RowsDefaultCellStyle.BackColor;
if (lastOrderDetail.IsHurryButcher) if (lastOrderDetail.IsHurryButcher)
c = Color.YellowGreen;
c = ColorTranslator.FromHtml("#CC9999");
if (lastOrderDetail.SecondarySplit) if (lastOrderDetail.SecondarySplit)
c = Color.DarkOrange;
c = ColorTranslator.FromHtml("#6699CC");
row.DefaultCellStyle.BackColor = c; row.DefaultCellStyle.BackColor = c;
break; break;
} }
@ -350,9 +350,9 @@ namespace QualityAndOrder
var bc = orderGrid.RowsDefaultCellStyle.SelectionBackColor; var bc = orderGrid.RowsDefaultCellStyle.SelectionBackColor;
if (lastOrderDetail.IsHurryButcher) if (lastOrderDetail.IsHurryButcher)
bc = Color.Yellow;
bc = ColorTranslator.FromHtml("#FF9900");
if (lastOrderDetail.SecondarySplit) if (lastOrderDetail.SecondarySplit)
bc = Color.Pink;
bc = ColorTranslator.FromHtml("#006699");
orderGrid.CurrentRow.DefaultCellStyle.SelectionBackColor = bc; orderGrid.CurrentRow.DefaultCellStyle.SelectionBackColor = bc;
} }
orderGrid.Refresh(); orderGrid.Refresh();


Loading…
Cancel
Save