配方申请查询结果增加工艺指导书

master
Leo 2 years ago
parent 9ba22d74e4
commit 55f1044640

@ -6,6 +6,7 @@ using FactorySystemApi.Plm_WebSite;
using FactorySystemBll;
using FactorySystemModel.SqlSugarModel;
using Newtonsoft.Json;
using System;
namespace FactorySystemApi.Controllers
{
@ -102,5 +103,54 @@ namespace FactorySystemApi.Controllers
}, apiResult, Request, inParam);
}
}
/// <summary>
/// 삿혤묏論寧돔蝎졍쌈(토렘헌데)
/// </summary>
/// <param name="inParam"></param>
/// <returns></returns>
[HttpPost]
public ApiResult GetPlmWebSiteInOrder(Dictionary<string, object> inParam)
{
ApiResult apiResult = new ApiResult();
if (inParam["FPlmCode"] != null && inParam["FVersionCode"] != null)
{
List<Specifications> specifList = new List<Specifications>() { new Specifications() };
return ExceptionHelper.TryReturnException(() => {
specifList[0].SP = inParam["FPlmCode"].ToString();
string sVersion = inParam["FVersionCode"].ToString();
double dVersion;
bool isVersionNum = double.TryParse(sVersion, out dVersion);
if (isVersionNum)
{
sVersion = string.Format("{0:F4}", dVersion);
}
specifList[0].SP_Version = sVersion.ToString();
OAServiceSoapClient oAService = new OAServiceSoapClient();
RestResult restResult = oAService.GetCraftURL(specifList.ToArray());
if (restResult != null && restResult.data != null)
{
List<Dictionary<string, string>> data = JsonConvert.DeserializeObject<List<Dictionary<string, string>>>(restResult.data.ToString());
if (data != null && data.Count > 0)
{
apiResult.Data = data[0];
}
}
}, apiResult, Request, specifList);
}
else
{
return ExceptionHelper.TryReturnException(() => {
apiResult.Data = null;
}, apiResult, Request, inParam);
}
}
}
}
Loading…
Cancel
Save