|
|
|
@ -511,7 +511,7 @@ namespace FactorySystemBll
|
|
|
|
for (int i = 0; i < viewList.Count; i++)
|
|
|
|
for (int i = 0; i < viewList.Count; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//判断是否等于中间品
|
|
|
|
//判断是否等于中间品
|
|
|
|
if (viewList[i]["FMRP1Type"].ToString() == "30")
|
|
|
|
if (viewList[i]["FMRP1ProductType"].ToString() == "30")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TFS_MaterialType materialType = materialTypeBll.GetMaterialTypeByID(int.Parse(viewList[i]["FTypeID2"].ToString())).LastOrDefault();
|
|
|
|
TFS_MaterialType materialType = materialTypeBll.GetMaterialTypeByID(int.Parse(viewList[i]["FTypeID2"].ToString())).LastOrDefault();
|
|
|
|
if (materialType.FName.Contains("香基"))
|
|
|
|
if (materialType.FName.Contains("香基"))
|
|
|
|
@ -537,10 +537,10 @@ namespace FactorySystemBll
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result += db.Updateable(viewList[i]).AS("TFS_ViewMaterial").WhereColumns("FMaterialID").Where(sqlWhere).ExecuteCommand();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
result += db.Updateable(viewList).AS("TFS_ViewMaterial").WhereColumns("FMaterialID").Where(sqlWhere).ExecuteCommand();
|
|
|
|
|
|
|
|
result += UnionModifyData(viewList, "TFS_ViewMaterial", teamId, db, "FMaterialID");
|
|
|
|
result += UnionModifyData(viewList, "TFS_ViewMaterial", teamId, db, "FMaterialID");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (materialList != null && materialList.Count > 0)
|
|
|
|
if (materialList != null && materialList.Count > 0)
|
|
|
|
@ -560,8 +560,9 @@ namespace FactorySystemBll
|
|
|
|
materialList[i].Add("FK3ShortCode", k3Code.ToString().Split('.').Last());
|
|
|
|
materialList[i].Add("FK3ShortCode", k3Code.ToString().Split('.').Last());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
result += db.Updateable(materialList[i]).AS("TFS_Material").WhereColumns("FID").ExecuteCommand();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
result += db.Updateable(materialList).AS("TFS_Material").WhereColumns("FID").ExecuteCommand();
|
|
|
|
|
|
|
|
result += UnionModifyData(materialList, "TFS_Material", teamId, db);
|
|
|
|
result += UnionModifyData(materialList, "TFS_Material", teamId, db);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (infoList != null && infoList.Count > 0)
|
|
|
|
if (infoList != null && infoList.Count > 0)
|
|
|
|
@ -571,8 +572,9 @@ namespace FactorySystemBll
|
|
|
|
infoList[i]["FDataID"] = infoList[i]["FMaterialID"];
|
|
|
|
infoList[i]["FDataID"] = infoList[i]["FMaterialID"];
|
|
|
|
infoList[i].Remove("FMaterialID");
|
|
|
|
infoList[i].Remove("FMaterialID");
|
|
|
|
infoList[i].Add("FType", 2);
|
|
|
|
infoList[i].Add("FType", 2);
|
|
|
|
|
|
|
|
result += db.Updateable(infoList[i]).AS("TFS_MaterialInfo").WhereColumns("FType", "FDataID").ExecuteCommand();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
result += db.Updateable(infoList).AS("TFS_MaterialInfo").WhereColumns("FType", "FDataID").ExecuteCommand();
|
|
|
|
|
|
|
|
result += UnionModifyData(infoList, "TFS_MaterialInfo", teamId, db, "FDataID");
|
|
|
|
result += UnionModifyData(infoList, "TFS_MaterialInfo", teamId, db, "FDataID");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
result += CheckTaskComplete(db, teamId, viewType, userId);
|
|
|
|
result += CheckTaskComplete(db, teamId, viewType, userId);
|
|
|
|
|