|
|
@ -68,7 +68,7 @@ namespace MESWebSite.Manage |
|
|
|
|
|
|
|
Bom_MKBLL bll = new Bom_MKBLL(); |
|
|
|
List<tb_Bom_MK> list = new List<tb_Bom_MK>(); |
|
|
|
tb_Bom_MK md = new tb_Bom_MK(); |
|
|
|
|
|
|
|
|
|
|
|
ProductBLL pbll = new ProductBLL(); |
|
|
|
LineBLL linebll = new LineBLL(); |
|
|
@ -174,12 +174,22 @@ namespace MESWebSite.Manage |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if(IsPartAssemble == "是") |
|
|
|
{ |
|
|
|
var isPartAssembleList = partNoBindDB.Search<tb_Bom_MK>(p => p.PartNo1 == PartNo1 && p.IsPartAssemble == 1 && p.LineName == LineName && p.StationNo == StationNo); |
|
|
|
if (isPartAssembleList != null && isPartAssembleList.Count > 0) |
|
|
|
{ |
|
|
|
ClientScript.RegisterStartupScript(this.GetType(), "提示", "<script type='text/javascript'>$.messager.alert('提示', '第" + i.ToString() + "行,BOM总成零件号已存在一个半成品,不能存在多个半成品,故无法导入', 'warning');</script>"); |
|
|
|
return; |
|
|
|
} |
|
|
|
var isPartAssembleListExcel = list.Where(p => p.PartNo1 == PartNo1 && p.IsPartAssemble == 1 && p.LineName == LineName && p.StationNo == StationNo).ToList(); |
|
|
|
if (isPartAssembleListExcel != null && isPartAssembleListExcel.Count > 0) |
|
|
|
{ |
|
|
|
ClientScript.RegisterStartupScript(this.GetType(), "提示", "<script type='text/javascript'>$.messager.alert('提示', '第" + i.ToString() + "行,同一BOM总成零件号不能存在多个半成品,故无法导入', 'warning');</script>"); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (IsChecked != "是" && IsChecked != "否") |
|
|
|
{ |
|
|
@ -195,7 +205,7 @@ namespace MESWebSite.Manage |
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
tb_Bom_MK md = new tb_Bom_MK(); |
|
|
|
var info = Request.Cookies.Get("LoginUserInfo"); |
|
|
|
if (info != null) |
|
|
|
{ |
|
|
|