Tiger.Business.MES/BIZ/BizBasRule.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Tiger.Business.MES/iERP/MES_U9C.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Tiger.Business/MES/Biz.Route.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Tiger.IBusiness.MES/iERP/IMES_U9C.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Tiger.Model.Net/Entitys/MES/ParameterEntity/BizBasPkgRuleParameter.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Tiger.Business.MES/BIZ/BizBasRule.cs
@@ -121,7 +121,7 @@ var result = new ApiAction(); try { result.Data = Biz.CodeRule[input.Code]?.Generate(input.Prefix, $"{input.BatchNo}-{input.Qty}-").Data.ToString() ?? ""; result.Data = input.IsTry == "Y" ? Biz.CodeRule[input.Code]?.TryGenerate(input.Prefix, $"{input.BatchNo}-{input.Qty}-").Data.ToString() ?? "" : Biz.CodeRule[input.Code]?.Generate(input.Prefix, $"{input.BatchNo}-{input.Qty}-").Data.ToString() ?? ""; } catch (Exception ex) { Tiger.Business.MES/iERP/MES_U9C.cs
@@ -36,26 +36,31 @@ /// </summary> /// <param name="input"></param> /// <returns></returns> public async Task<ApiAction> RcvRptDocCreate(RcvRptDocCreateInput input) public async Task<ApiAction> RcvRptDocCreate(List<RcvRptDocCreateInput> input) { Logger.Interface.Info($"/**\r\n *进入入库单接口....\r\n */\r\n"); //固定写法 var action = new ApiAction(); try { List<RcvRptDocCreateParam> param = new List<RcvRptDocCreateParam>(); List<CompleteList> CompleteLists = new List<CompleteList>(); foreach (var item in input) { CompleteList completeList = new CompleteList { MOKey = new MOKey { DocNo = item.WorkOrder }, Wh = new Wh { Code = item.WhCode }, DescFlexField = new DescFlexField { PrivateDescSeg1 = item.PkgQty.ToString() }, Item = new Item { Code = item.ItemCode }, CompleteQty = item.CompleteQty, OutputType = item.OutputType, StorageType = item.StorageType, DocState = item.DocState, }; CompleteLists.Add(completeList); } param.Add(new RcvRptDocCreateParam { CompleteList = new List<CompleteList> { new CompleteList { MOKey = new MOKey { DocNo = input.WorkOrder }, Wh = new Wh { Code = input.WhCode }, DescFlexField = new DescFlexField { PrivateDescSeg1 = input.PkgQty.ToString() }, Item = new Item { Code = input.ItemCode }, CompleteQty = input.CompleteQty, OutputType = input.OutputType, StorageType = input.StorageType, DocState = input.DocState, } } CompleteList = CompleteLists }); var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode=admin{secret}"); Tiger.Business/MES/Biz.Route.cs
@@ -442,6 +442,12 @@ try { //查询是否已经有工单在用或者有绑定产品 if (Biz.Db.Queryable<MES_PROD_OPER>().Any(q=>q.ROT_ID == routeId)) { result.IsSuccessed = false; result.LocaleMsg = new($"工艺路线已经绑定了产品,不能删除工艺路线"); return result; } var db = Db; var dbTran = db.UseTran(() => Tiger.IBusiness.MES/iERP/IMES_U9C.cs
@@ -12,6 +12,6 @@ { public interface IMES_U9C { public Task<ApiAction> RcvRptDocCreate(RcvRptDocCreateInput input); public Task<ApiAction> RcvRptDocCreate(List<RcvRptDocCreateInput> input); } } Tiger.Model.Net/Entitys/MES/ParameterEntity/BizBasPkgRuleParameter.cs
@@ -25,5 +25,6 @@ public string Prefix { get; set; } public string BatchNo { get; set; } public string Qty { get; set; } public string IsTry { get; set; } } }