|
|
|
@ -1132,29 +1132,45 @@ namespace AUCMA.STORE
|
|
|
|
|
}
|
|
|
|
|
public virtual void ReFresh_TaskInfo_dgv(TaskDTO inStoreTask,int state)
|
|
|
|
|
{
|
|
|
|
|
if (dataGridView1.Rows.Count > 0)
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
for (int i = 0; i < dataGridView1.Rows.Count; i++)
|
|
|
|
|
LogHelper.Pilerlog($"任务:{inStoreTask.taskCode};修改界面展示");
|
|
|
|
|
|
|
|
|
|
if(dataGridView1 != null)
|
|
|
|
|
{
|
|
|
|
|
if (dataGridView1.Rows[i].Cells[0].FormattedValue.ToString() == inStoreTask.taskCode)
|
|
|
|
|
if (dataGridView1.Rows.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if(inStoreTask.locationArea == LocationArea.Location_Left)
|
|
|
|
|
for (int i = 0; i < dataGridView1.Rows.Count; i++)
|
|
|
|
|
{
|
|
|
|
|
dataGridView1.Rows[i].Cells[3].Value = "1#库";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
dataGridView1.Rows[i].Cells[3].Value = "2#库";
|
|
|
|
|
}
|
|
|
|
|
if (dataGridView1.Rows[i].Cells[0].FormattedValue.ToString() == inStoreTask.taskCode)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (inStoreTask.locationArea == LocationArea.Location_Left)
|
|
|
|
|
{
|
|
|
|
|
dataGridView1.Rows[i].Cells[3].Value = "1#库";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
dataGridView1.Rows[i].Cells[3].Value = "2#库";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dataGridView1.Rows[i].Cells[4].Value = inStoreTask.locationCode;
|
|
|
|
|
dataGridView1.Rows[i].Cells[4].Value = inStoreTask.locationCode;
|
|
|
|
|
|
|
|
|
|
dataGridView1.Rows[i].Cells[5].Value = "执行中";
|
|
|
|
|
dataGridView1.Rows[i].Cells[5].Value = "执行中";
|
|
|
|
|
|
|
|
|
|
dataGridView1.Rows[i].Cells[6].Value = inStoreTask.recordTime.ToString("HH:mm:ss");
|
|
|
|
|
dataGridView1.Rows[i].Cells[6].Value = inStoreTask.recordTime.ToString("HH:mm:ss");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
LogHelper.Pilerlog($"任务:{inStoreTask.taskCode};修改界面展示失败,任务列表为null");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
LogHelper.Error($"ReFresh_TaskInfo_dgv异常:{ex.Message}", ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|