|
|
|
@ -81,9 +81,15 @@ namespace Mesnac.Action.ChemicalWeighing.Su
|
|
|
|
|
|
|
|
|
|
private void SelectButton_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
Sel();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string[] destinations = new string[] {
|
|
|
|
|
"大仓A", "大仓B", "大仓C", "大仓D", "大仓E", "大仓F", "大仓G", "大仓H",
|
|
|
|
|
"大仓I", "大仓J", "大仓K", "大仓L", "大仓M", "大仓N", "大仓O", "大仓P",
|
|
|
|
|
"大仓Q", "大仓R", "大仓S", "大仓T", "大仓U", "大仓V", "大仓W", "大仓X",
|
|
|
|
|
"大仓Y", "大仓Z"
|
|
|
|
|
};
|
|
|
|
|
private void Sel()
|
|
|
|
|
{
|
|
|
|
|
var a = Convert.ToDateTime(GetA());
|
|
|
|
@ -105,11 +111,18 @@ namespace Mesnac.Action.ChemicalWeighing.Su
|
|
|
|
|
dt.Columns.Add("目标仓", typeof(string));
|
|
|
|
|
dt.Columns.Add("数量", typeof(string));
|
|
|
|
|
dt.Columns.Add("时间", typeof(string));
|
|
|
|
|
dt.Columns.Add("状态", typeof(string));
|
|
|
|
|
|
|
|
|
|
foreach (var x in list)
|
|
|
|
|
{
|
|
|
|
|
var dr = dt.NewRow();
|
|
|
|
|
dr[0] = x.No;
|
|
|
|
|
|
|
|
|
|
String aa = "";
|
|
|
|
|
if (x.No == 1) aa = "A";
|
|
|
|
|
if (x.No == 2) aa = "B";
|
|
|
|
|
if (x.No == 3) aa = "C";
|
|
|
|
|
|
|
|
|
|
dr[0] = "输送线路"+aa;
|
|
|
|
|
dr[1] = x.Soure;
|
|
|
|
|
dr[2] = x.Model;
|
|
|
|
|
string shu = "";
|
|
|
|
@ -128,9 +141,25 @@ namespace Mesnac.Action.ChemicalWeighing.Su
|
|
|
|
|
dr[2] = shu;
|
|
|
|
|
|
|
|
|
|
dr[3] = x.Destination;
|
|
|
|
|
|
|
|
|
|
if (x.Destination > 0)
|
|
|
|
|
{
|
|
|
|
|
string info = destinations[x.Destination - 1];
|
|
|
|
|
dr[3] = info;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dr[4] = x.Number;
|
|
|
|
|
dr[5] = Convert.ToDateTime(x.CreateTime).ToString("yyyy-MM-dd hh:mm:ss");
|
|
|
|
|
|
|
|
|
|
string state = "结束";
|
|
|
|
|
if (x.EndInfo == 0)
|
|
|
|
|
{
|
|
|
|
|
state = "运行中";
|
|
|
|
|
}
|
|
|
|
|
dr[6] = state;
|
|
|
|
|
|
|
|
|
|
dt.Rows.Add(dr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|