|
|
|
|
@ -251,7 +251,9 @@ namespace FactorySystemApi.Controllers
|
|
|
|
|
|
|
|
|
|
//创建 TFS_FTeamwork
|
|
|
|
|
int teamId = BaseBll.InsertDataModel(inParam, "TFS_HalfMaterialFTeamwork");
|
|
|
|
|
TFS_Material tFS_Material = BaseBll.GetTempModel<TFS_Material>(string.Format("FTestCode='{0}'", inParam["FNewTestCode"].ToString()));
|
|
|
|
|
TeamworkBll TeamworkBll = new TeamworkBll();
|
|
|
|
|
List<TFS_Material> materialList = TeamworkBll.CheckMaterialListByTest(inParam["FNewTestCode"].ToString(), inParam["FVersionCode"].ToString());
|
|
|
|
|
//TFS_Material tFS_Material = BaseBll.GetTempModel<TFS_Material>(string.Format("FTestCode='{0}'", inParam["FNewTestCode"].ToString()));
|
|
|
|
|
List<TFS_Material> editMaterialList = MaterialTeamworkBll.UpdateFormula(inParam["FTestCode"].ToString(), inParam["FNewTestCode"].ToString(), teamId, factory);
|
|
|
|
|
ids = editMaterialList.Select(m => m.FID).Distinct().ToList();
|
|
|
|
|
|
|
|
|
|
@ -274,7 +276,7 @@ namespace FactorySystemApi.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tFS_Material == null)
|
|
|
|
|
if (materialList.Count()==0)
|
|
|
|
|
{
|
|
|
|
|
//开始BOM下载
|
|
|
|
|
int dow = DockGetBomData(teamwork.FID, user.FID);
|
|
|
|
|
|