From 2be1922b035c182c3c516427aa68be54badd6938 Mon Sep 17 00:00:00 2001 From: IPC-610 <IPC-610@DESKTOP-6LEOOS3> Date: 星期四, 26 九月 2024 15:15:52 +0800 Subject: [PATCH] 登录页修改 --- Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs | 78 +++++++++++++++++++-------------------- 1 files changed, 38 insertions(+), 40 deletions(-) diff --git a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs index 6b45a6d..2aab36e 100644 --- a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs +++ b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs @@ -41,7 +41,7 @@ /// </summary> /// <param name="model"></param> /// <returns></returns> - public bool ErpAddExportNotice(SoInfo model) + public void HttpAddExportNotice(SoInfo model) { try { @@ -226,7 +226,7 @@ SONo = billNo, Type = model.SoType, Status = "0", - Origin = "WMS", + Origin = model.Origin, CustomerNo = model.Customer, CustomerName = customer.CustomerName, LogisticsId = logisticsId, @@ -242,12 +242,10 @@ if (n <= 0 || m <= 0) { - Db.RollbackTran(); - return false; + throw new Exception("鍏ュ簱鍗曟垨鏄庣粏娣诲姞淇濆瓨澶辫触"); } Db.CommitTran(); - return true; - + } catch (Exception ex) { @@ -259,7 +257,6 @@ } catch (Exception ex) { - Db.RollbackTran(); throw new Exception(ex.Message); } } @@ -363,31 +360,31 @@ .LeftJoin<SysUserInfor>((a, b, c, d, e) => a.CheckUser == e.Id) .Select((a, b, c, d, e) => new ExportNoticeDto() { - Id = a.Id, - SONo = a.SONo, - Type = a.Type, - Status = a.Status, - Origin = a.Origin, - CustomerNo = a.CustomerNo, - CustomerName = a.CustomerName, - LotNo = a.LotNo, - LotText = a.LotText, - SupplierLot = a.SupplierLot, - LogisticsId = a.LogisticsId, + //Id = a.Id, + //SONo = a.SONo, + //Type = a.Type, + //Status = a.Status, + //Origin = a.Origin, + //CustomerNo = a.CustomerNo, + //CustomerName = a.CustomerName, + //LotNo = a.LotNo, + //LotText = a.LotText, + //SupplierLot = a.SupplierLot, + //LogisticsId = a.LogisticsId, LogisticsName = b.CarrierName, - IsWave = a.IsWave, - WaveNo = a.WaveNo, - IsDespatch = a.IsDespatch, - Demo = a.Demo, + //IsWave = a.IsWave, + //WaveNo = a.WaveNo, + //IsDespatch = a.IsDespatch, + //Demo = a.Demo, CreateUserName = c.RealName, UpdateUserName = c.RealName, - CreateTime = a.CreateTime, - UpdateTime = a.UpdateTime, + //CreateTime = a.CreateTime, + //UpdateTime = a.UpdateTime, CheckUserName = e.RealName, - CheckTime = a.CheckTime - }) + //CheckTime = a.CheckTime + },true) .OrderByDescending(a => a.CreateTime) .ToOffsetPage(page, limit, ref total); count = total; @@ -478,6 +475,7 @@ .AndIF(!string.IsNullOrWhiteSpace(inspectStatus), it => inspectStatus.Contains(it.InspectStatus)) .And(m => skuList.Contains(m.SkuNo)) .AndIF(type == "6", m => m.OwnerNo == ownerNo)//浠e偍鍑哄簱闇�瑕佸叧鑱旇揣涓� + .AndIF(type == "2", m=> string.IsNullOrWhiteSpace(m.OwnerNo)) .AndIF(!string.IsNullOrWhiteSpace(msg), it => (it.SkuNo.Contains(msg) || it.SkuName.Contains(msg) || it.LotNo.Contains(msg))) .And(it => (it.Qty - it.LockQty - it.FrozenQty) > 0) .And(it => (it.Status == "0" || it.Status == "1")) @@ -2172,23 +2170,23 @@ try { - //var time1 = DateTime.Now;//鍙戦�佹椂闂� .ToString("yyyy-MM-dd HH:mm:ss") - //response = HttpHelper.DoPost(url, jsonData, "涓嬪彂缁橶CS鍑哄簱鍛戒护", "WCS"); - //var time2 = DateTime.Now;//杩斿洖鏃堕棿 .ToString("yyyy-MM-dd HH:mm:ss") + var time1 = DateTime.Now;//鍙戦�佹椂闂� .ToString("yyyy-MM-dd HH:mm:ss") + response = HttpHelper.DoPost(url, jsonData, "涓嬪彂缁橶CS鍑哄簱鍛戒护", "WCS"); + var time2 = DateTime.Now;//杩斿洖鏃堕棿 .ToString("yyyy-MM-dd HH:mm:ss") //////瑙f瀽杩斿洖鏁版嵁 var wcsModel = JsonConvert.DeserializeObject<WcsModel>(response); - //if (wcsModel.StatusCode == 0) - //{ - // //鏇存敼浠诲姟鐨勫彂閫佽繑鍥炴椂闂�// - // new TaskServer().EditTaskIssueOk(list2, time1, time2); - // str += "涓嬪彂鎴愬姛"; - //} - //if (wcsModel.StatusCode == -1) - //{ - // new TaskServer().EditTaskIssueNo(list2, time1, time2, wcsModel.Msg); - // throw new Exception(wcsModel.Msg); - //} + if (wcsModel.StatusCode == 0) + { + //鏇存敼浠诲姟鐨勫彂閫佽繑鍥炴椂闂�// + new TaskServer().EditTaskIssueOk(list2, time1, time2); + str += "涓嬪彂鎴愬姛"; + } + if (wcsModel.StatusCode == -1) + { + new TaskServer().EditTaskIssueNo(list2, time1, time2, wcsModel.Msg); + throw new Exception(wcsModel.Msg); + } } catch (Exception ex) { -- Gitblit v1.8.0