diff --git a/MESWebSite/Excel/装配Bom导入模板.xlsx b/MESWebSite/Excel/装配Bom导入模板.xlsx
index 1b1182f..013c2a2 100644
Binary files a/MESWebSite/Excel/装配Bom导入模板.xlsx and b/MESWebSite/Excel/装配Bom导入模板.xlsx differ
diff --git a/MESWebSite/Manage/Bom_MK.aspx.cs b/MESWebSite/Manage/Bom_MK.aspx.cs
index aa01a3a..08a0904 100644
--- a/MESWebSite/Manage/Bom_MK.aspx.cs
+++ b/MESWebSite/Manage/Bom_MK.aspx.cs
@@ -97,28 +97,42 @@ namespace MESWebSite.Manage
return;
}
- string LineName = dt.Rows[i][2].ToString();
+ string IsChecked = dt.Rows[i][2].ToString();
+ if (IsChecked == "")
+ {
+ ClientScript.RegisterStartupScript(this.GetType(), "tishi", "");
+ return;
+ }
+
+ string IsPartAssemble = dt.Rows[i][3].ToString();
+ if (IsPartAssemble == "")
+ {
+ ClientScript.RegisterStartupScript(this.GetType(), "tishi", "");
+ return;
+ }
+
+ string LineName = dt.Rows[i][4].ToString();
if (LineName == "")
{
ClientScript.RegisterStartupScript(this.GetType(), "tishi", "");
return;
}
- string StationNo = dt.Rows[i][3].ToString();
+ string StationNo = dt.Rows[i][5].ToString();
if (StationNo == "")
{
ClientScript.RegisterStartupScript(this.GetType(), "tishi", "");
return;
}
- string LeftCount = dt.Rows[i][4].ToString();
+ string LeftCount = dt.Rows[i][6].ToString();
if (LeftCount == "")
{
ClientScript.RegisterStartupScript(this.GetType(), "tishi", "");
return;
}
- string RightCount = dt.Rows[i][5].ToString();
+ string RightCount = dt.Rows[i][7].ToString();
if (RightCount == "")
{
ClientScript.RegisterStartupScript(this.GetType(), "tishi", "");
@@ -158,7 +172,27 @@ namespace MESWebSite.Manage
{
ClientScript.RegisterStartupScript(this.GetType(), "提示", "");
return;
- }
+ }
+
+ var isPartAssembleList = partNoBindDB.Search(p => p.PartNo1 == PartNo1 && p.IsPartAssemble == 1 && p.LineName == LineName && p.StationNo == StationNo);
+ if (isPartAssembleList != null && isPartAssembleList.Count > 0)
+ {
+ ClientScript.RegisterStartupScript(this.GetType(), "提示", "");
+ return;
+ }
+
+ if (IsChecked != "是" && IsChecked != "否")
+ {
+ ClientScript.RegisterStartupScript(this.GetType(), "提示", "");
+ return;
+ }
+
+ if (IsPartAssemble != "是" && IsPartAssemble != "否")
+ {
+ ClientScript.RegisterStartupScript(this.GetType(), "提示", "");
+ return;
+ }
+
#endregion
@@ -176,6 +210,24 @@ namespace MESWebSite.Manage
md.LeftCount = int.Parse(LeftCount);
md.RightCount = int.Parse(RightCount);
+ if(IsChecked == "是")
+ {
+ md.IsChecked = true;
+ }
+ else
+ {
+ md.IsChecked = false;
+ }
+
+ if (IsPartAssemble == "是")
+ {
+ md.IsPartAssemble = 1;
+ }
+ else
+ {
+ md.IsPartAssemble = 0;
+ }
+
list.Add(md);
}
}