|
@@ -379,5 +379,23 @@ namespace SIMDP.View
|
|
|
if (txt_batchid.Text == "")
|
|
|
SbtnSelect_Click(sender, e);
|
|
|
}
|
|
|
+
|
|
|
+ private void gridView1_RowStyle(object sender, RowStyleEventArgs e)
|
|
|
+ {
|
|
|
+ GridView view = sender as GridView;
|
|
|
+ if (e.RowHandle >= 0)
|
|
|
+ {
|
|
|
+ DataRow postIs = view.GetDataRow(e.RowHandle);
|
|
|
+
|
|
|
+ foreach (object ob in postIs.ItemArray)
|
|
|
+ {
|
|
|
+ if (string.Equals(ob.ToString(), "NG"))
|
|
|
+ {
|
|
|
+ e.Appearance.BackColor = Color.Tomato;
|
|
|
+ //e.Appearance.BackColor2 = Color.SeaShell;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|