|
|
|
@ -448,6 +448,11 @@ namespace FactorySystemApi.Controllers
|
|
|
|
OAService oAService = new OAService();
|
|
|
|
OAService oAService = new OAService();
|
|
|
|
specifList[0].Code = formula.FTestCode;
|
|
|
|
specifList[0].Code = formula.FTestCode;
|
|
|
|
specifList[0].Version = formula.FVersionCode;
|
|
|
|
specifList[0].Version = formula.FVersionCode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改
|
|
|
|
|
|
|
|
specifList[0].SP = formula.FPlmCode;
|
|
|
|
|
|
|
|
specifList[0].SP_Version = formula.FVersionCode;
|
|
|
|
|
|
|
|
|
|
|
|
RestResult restResult = oAService.GetSpecificationsList(specifList.ToArray());
|
|
|
|
RestResult restResult = oAService.GetSpecificationsList(specifList.ToArray());
|
|
|
|
string bomStr = restResult.data == null ? "[]" : restResult.data.ToString();
|
|
|
|
string bomStr = restResult.data == null ? "[]" : restResult.data.ToString();
|
|
|
|
ExceptionHelper.AddSystemJournal(Request, specifList[0], restResult,user.FID, "DockGetBomData");
|
|
|
|
ExceptionHelper.AddSystemJournal(Request, specifList[0], restResult,user.FID, "DockGetBomData");
|
|
|
|
@ -516,8 +521,14 @@ namespace FactorySystemApi.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TFS_Formula formula = BaseBll.GetTempModel<TFS_Formula>(teamwork.FFormulaID);
|
|
|
|
TFS_Formula formula = BaseBll.GetTempModel<TFS_Formula>(teamwork.FFormulaID);
|
|
|
|
OAService oAService = new OAService();
|
|
|
|
OAService oAService = new OAService();
|
|
|
|
|
|
|
|
|
|
|
|
specifList[0].Code = formula.FTestCode;
|
|
|
|
specifList[0].Code = formula.FTestCode;
|
|
|
|
specifList[0].Version = formula.FVersionCode;
|
|
|
|
specifList[0].Version = formula.FVersionCode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改
|
|
|
|
|
|
|
|
specifList[0].SP= formula.FPlmCode;
|
|
|
|
|
|
|
|
specifList[0].SP_Version= formula.FVersionCode;
|
|
|
|
|
|
|
|
|
|
|
|
RestResult restResult = oAService.GetSpecificationsList(specifList.ToArray());
|
|
|
|
RestResult restResult = oAService.GetSpecificationsList(specifList.ToArray());
|
|
|
|
string bomStr = restResult.data == null ? "[]" : restResult.data.ToString();
|
|
|
|
string bomStr = restResult.data == null ? "[]" : restResult.data.ToString();
|
|
|
|
ExceptionHelper.AddSystemJournal(Request, specifList[0], restResult, userId, "DockGetBomData");
|
|
|
|
ExceptionHelper.AddSystemJournal(Request, specifList[0], restResult, userId, "DockGetBomData");
|
|
|
|
@ -622,6 +633,19 @@ namespace FactorySystemApi.Controllers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
foreach (BomModel item in dataList)
|
|
|
|
foreach (BomModel item in dataList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(item.SP))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
item.Code = item.SP;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(item.SP_Version))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
item.Version=item.SP_Version;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(item.SP_VALUE))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
item.TestNO = item.SP_VALUE;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int dataId = random.Next(1, 99) * random.Next(1, 99);
|
|
|
|
int dataId = random.Next(1, 99) * random.Next(1, 99);
|
|
|
|
dataId += random.Next(10, 99) * random.Next(10, 99) * 2;
|
|
|
|
dataId += random.Next(10, 99) * random.Next(10, 99) * 2;
|
|
|
|
dataId += random.Next(1, 99) * random.Next(1, 99) * 10;
|
|
|
|
dataId += random.Next(1, 99) * random.Next(1, 99) * 10;
|
|
|
|
|