Commit 8312c34d LN

1

1 个父辈 0f22bd8e
...@@ -97,20 +97,27 @@ namespace OnlineStore.ACSquareStore ...@@ -97,20 +97,27 @@ namespace OnlineStore.ACSquareStore
} }
foreach (var item in store.posDebug.LPos) foreach (var item in store.posDebug.LPos)
{ {
dataGridView1.Rows[item.Row - 1].Cells[item.Col - 1].Value = item.PosName;
dataGridView1.Rows[item.Row - 1].Cells[item.Col - 1].Tag = item.PosId;
dataGridView1.Rows[item.Row - 1].Cells[item.Col - 1].Style = GetStyle(item.PosId);
string[] arrays = item.PosName.Split('_'); string[] arrays = item.PosName.Split('_');
if (arrays.Length >= 2) if (arrays.Length >= 2)
{ {
dataGridView1.Columns[item.Col - 1].HeaderText = arrays[0]; dataGridView1.Columns[item.Col - 1].HeaderText = arrays[0];
} }
dataGridView1.Rows[item.Row - 1].Cells[item.Col - 1].Value = item.PosName;
dataGridView1.Rows[item.Row - 1].Cells[item.Col - 1].Tag = item.PosId;
dataGridView1.Rows[item.Row - 1].Cells[item.Col - 1].Style = GetStyle(item.PosId);
} }
foreach (var item in store.posDebug.RPos) foreach (var item in store.posDebug.RPos)
{ {
dataGridView2.Rows[item.Row - 1].Cells[item.Col - 1].Value = item.PosName; dataGridView2.Rows[item.Row - 1].Cells[item.Col - 1].Value = item.PosName;
dataGridView2.Rows[item.Row - 1].Cells[item.Col - 1].Tag = item.PosId; dataGridView2.Rows[item.Row - 1].Cells[item.Col - 1].Tag = item.PosId;
dataGridView2.Rows[item.Row - 1].Cells[item.Col - 1].Style = GetStyle(item.PosId); dataGridView2.Rows[item.Row - 1].Cells[item.Col - 1].Style = GetStyle(item.PosId);
string[] arrays = item.PosName.Split('_');
if (arrays.Length >= 2)
{
dataGridView2.Columns[item.Col - 1].HeaderText = arrays[0];
}
} }
} }
private void Store_InOutEndEvent(string posId, StoreMoveType movetype, bool isLast) private void Store_InOutEndEvent(string posId, StoreMoveType movetype, bool isLast)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!