diff --git a/AddMaterial/App_Code/Function.cs b/AddMaterial/App_Code/Function.cs
index bba0ab1..23fc0d7 100644
--- a/AddMaterial/App_Code/Function.cs
+++ b/AddMaterial/App_Code/Function.cs
@@ -87,7 +87,11 @@ public class Function
return list;
}
}
-
+ ///
+ ///
+ ///
+ /// 桶号
+ ///
public static string GetLastMaterialCode(string drumBarCode)
{
try
@@ -105,8 +109,24 @@ public class Function
}
else
{
- return DateTime.Now.ToString();
+ return DateTime.Now.ToString();
}
+
+ //string sql = @"select top 2 * from tb_InjectPlanReport where Drum='" + drumBarCode + "' order by time1 desc";
+
+ //DataTable res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
+ //if (res.Rows.Count == 2)
+ //{
+ // string stockNo = "";
+ // string batchNo = "";
+ // string partNo = "";
+ // GetCode(res.Rows[1]["BarCode"].ToString(), out stockNo, out batchNo, out partNo);
+ // return partNo;
+ //}
+ //else
+ //{
+ // return DateTime.Now.ToString();
+ //}
}
catch
{
diff --git a/AddMaterial/Handler.ashx b/AddMaterial/Handler.ashx
index 16cc371..0c6fe91 100644
--- a/AddMaterial/Handler.ashx
+++ b/AddMaterial/Handler.ashx
@@ -131,6 +131,10 @@ public class Handler : IHttpHandler
if (i == 0)
{
html += "
" + "加料时间" + " | ";
+ }
+ if(list[i].Drum == "LT09")
+ {
+
}
if (i % 2 == 0)
{
@@ -153,9 +157,10 @@ public class Handler : IHttpHandler
//}
else
{
- string lastMaterial = Function.GetLastMaterialCode(list[i].Drum);
- string currentMaterial = list[i].PartNo;
- if(lastMaterial!= currentMaterial)
+ //string lastMaterial = Function.GetLastMaterialCode(list[i].Drum);
+ //string currentMaterial = list[i].PartNo;
+ //if(lastMaterial!= currentMaterial)
+ if(list[i].Flag == "0")
{
html += "" + list[i].Time1 + " | ";
}
@@ -194,9 +199,10 @@ public class Handler : IHttpHandler
//}
else
{
- string lastMaterial = Function.GetLastMaterialCode(list[i].Drum);
- string currentMaterial = list[i].PartNo;
- if(lastMaterial!= currentMaterial)
+ //string lastMaterial = Function.GetLastMaterialCode(list[i].Drum);
+ //string currentMaterial = list[i].PartNo;
+ //if(lastMaterial!= currentMaterial)
+ if(list[i].Flag == "0")
{
html += "" + list[i].Time1 + " | ";
}
@@ -317,6 +323,10 @@ public class Handler : IHttpHandler
if (i == 5)
{
html += "" + "加料时间" + " | ";
+ }
+ if(list[i].Drum == "LT09")
+ {
+
}
if (i % 2 == 0)
{
@@ -338,9 +348,10 @@ public class Handler : IHttpHandler
//}
else
{
- string lastMaterial = Function.GetLastMaterialCode(list[i].Drum);
- string currentMaterial = list[i].PartNo;
- if(lastMaterial!= currentMaterial)
+ //string lastMaterial = Function.GetLastMaterialCode(list[i].Drum);
+ // string currentMaterial = list[i].PartNo;
+ //if(lastMaterial!= currentMaterial)
+ if(list[i].Flag == "0")
{
html += "" + list[i].Time1 + " | ";
}
@@ -380,9 +391,10 @@ public class Handler : IHttpHandler
//}
else
{
- string lastMaterial = Function.GetLastMaterialCode(list[i].Drum);
- string currentMaterial = list[i].PartNo;
- if(lastMaterial!= currentMaterial)
+ //string lastMaterial = Function.GetLastMaterialCode(list[i].Drum);
+ //string currentMaterial = list[i].PartNo;
+ //if(lastMaterial!= currentMaterial)
+ if(list[i].Flag == "0")
{
html += "" + list[i].Time1 + " | ";
}
diff --git a/AddMaterial/PaintView.html b/AddMaterial/PaintView.html
index 19cf43d..67da626 100644
--- a/AddMaterial/PaintView.html
+++ b/AddMaterial/PaintView.html
@@ -11,7 +11,7 @@