yibo 8 years ago
parent
commit
42f2ea3b96
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      QualityAndOrder/QualityOrderFormForTab2.cs

+ 5
- 5
QualityAndOrder/QualityOrderFormForTab2.cs View File

@ -198,7 +198,7 @@ namespace QualityAndOrder
if ((bool)row.Cells["O_IsHurryButcher"].Value) if ((bool)row.Cells["O_IsHurryButcher"].Value)
row.DefaultCellStyle.BackColor = Color.YellowGreen; row.DefaultCellStyle.BackColor = Color.YellowGreen;
if ((bool)row.Cells["O_SecondarySplit"].Value) if ((bool)row.Cells["O_SecondarySplit"].Value)
row.DefaultCellStyle.BackColor = Color.OrangeRed;
row.DefaultCellStyle.BackColor = Color.DarkOrange;
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;
@ -209,8 +209,8 @@ namespace QualityAndOrder
if (lastOrderDetail.IsHurryButcher) if (lastOrderDetail.IsHurryButcher)
cRow.DefaultCellStyle.BackColor = Color.Yellow; cRow.DefaultCellStyle.BackColor = Color.Yellow;
if (lastOrderDetail.SecondarySplit) if (lastOrderDetail.SecondarySplit)
cRow.DefaultCellStyle.BackColor = Color.OrangeRed;
cRow.DefaultCellStyle.BackColor = c;
cRow.DefaultCellStyle.BackColor = Color.Pink;
cRow.DefaultCellStyle.SelectionBackColor = c;
} }
} }
InitScrollBar2(); InitScrollBar2();
@ -340,7 +340,7 @@ namespace QualityAndOrder
if (lastOrderDetail.IsHurryButcher) if (lastOrderDetail.IsHurryButcher)
c = Color.YellowGreen; c = Color.YellowGreen;
if (lastOrderDetail.SecondarySplit) if (lastOrderDetail.SecondarySplit)
c = Color.OrangeRed;
c = Color.DarkOrange;
row.DefaultCellStyle.BackColor = c; row.DefaultCellStyle.BackColor = c;
break; break;
} }
@ -352,7 +352,7 @@ namespace QualityAndOrder
if (lastOrderDetail.IsHurryButcher) if (lastOrderDetail.IsHurryButcher)
bc = Color.Yellow; bc = Color.Yellow;
if (lastOrderDetail.SecondarySplit) if (lastOrderDetail.SecondarySplit)
bc = Color.OrangeRed;
bc = Color.Pink;
orderGrid.CurrentRow.DefaultCellStyle.SelectionBackColor = bc; orderGrid.CurrentRow.DefaultCellStyle.SelectionBackColor = bc;
} }
orderGrid.Refresh(); orderGrid.Refresh();


Loading…
Cancel
Save