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