HH.WCS.Mobox3.pinggao.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
api/WmsSapController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
core/WMSCore.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
models/DAPING.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
models/SapRoot.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
models/TN_DPRECORD.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
models/TN_Distribution_CNTR.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
models/TN_Distribution_CNTR_Detail.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
HH.WCS.Mobox3.pinggao.csproj
@@ -194,6 +194,7 @@ <Compile Include="models\OutboundRecord.cs" /> <Compile Include="models\SapReturn.cs" /> <Compile Include="models\SapRoot.cs" /> <Compile Include="models\TN_DPRECORD.cs" /> <Compile Include="models\TN_GENERATE_ORDER.cs" /> <Compile Include="models\TN_Location_Ext.cs" /> <Compile Include="models\TN_Ll_detail.cs" /> api/WmsSapController.cs
@@ -25,7 +25,34 @@ { public class WmsSapController : System.Web.Http.ApiController { /// <summary> /// 出庫任務列表 /// </summary> /// <returns></returns> public DPList DpRecord(DpDto dpDto) { var response = new DPList { DpList = new List<DP> { } }; if (string.IsNullOrEmpty(dpDto.Code)) { LogHelper.Info("货位信息不能为空" ); return response; } var db = new SqlHelper<object>().GetInstance(); var list =db.Queryable<TN_DPRECORD>().Where(s=>s.S_LOCATION== dpDto.Code).OrderByDescending(s=>s.T_CREATE).ToList(); var tasksList = list.Select(t => new DP { S_NO = t.S_NO, S_WLBM = t.S_WLBM, N_COUNT = t.N_COUNT, S_LOCATION = t.S_LOCATION }).ToList(); response.DpList = tasksList; return response; } #region 大屏数据接口 /// <summary> /// 大屏数据 core/WMSCore.cs
@@ -1,4 +1,5 @@ using HH.WCS.Mobox3.pinggao.util; using HH.WCS.Mobox3.pinggao.models; using HH.WCS.Mobox3.pinggao.util; using HH.WCS.Mobox3.pinggao.wms; using System; using System.Collections.Generic; @@ -82,6 +83,8 @@ item.S_B_STATE = "作业启动"; item.S_SORT_TYPE = "待分拣"; db.Updateable(item).UpdateColumns(it => new { it.S_B_STATE, it.N_B_STATE,it.S_SORT_TYPE }).ExecuteCommand(); } } else @@ -507,6 +510,22 @@ a.S_B_STATE = "执行"; WMSHelper.UpdateTaskState(a); } var detail = db.Queryable<TN_Distribution_CNTR_Detail>().Where(s => s.S_DC_NO == a.S_BS_NO).ToList(); List<TN_DPRECORD> listdp=new List<TN_DPRECORD>(); foreach (var item in detail) { TN_DPRECORD tN_DPRECORD = new TN_DPRECORD(); tN_DPRECORD.S_WLBM=item.S_ITEM_CODE; tN_DPRECORD.S_NO= wcsTask.S_CODE; tN_DPRECORD.N_COUNT= item.F_QTY; tN_DPRECORD.S_LOCATION= end.S_CODE; listdp.Add(tN_DPRECORD); } if (listdp.Count()>0) { db.Insertable<TN_DPRECORD>(listdp).ExecuteCommand(); } } else { models/DAPING.cs
@@ -8,6 +8,19 @@ { public class DAPING { public class DPList { public List<DP> DpList { get; set; } } public class DP { public string S_NO { get; set; } public string S_WLBM { get; set; } public double N_COUNT { get; set; } public string S_LOCATION { get; set; } } public class BarChartResponse { public List<BarChartData> OutboundData { get; set; } // 出库数据(1-12月) models/SapRoot.cs
@@ -11,6 +11,13 @@ [XmlType("SapRootDtoROOT")] public class SapRoot { public class DpDto { /// <summary> /// /// </summary> public string Code { get; set; } } #region 外采收货入参 models/TN_DPRECORD.cs
New file @@ -0,0 +1,19 @@ using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WCS.Mobox3.pinggao.models { [SugarTable("TN_DPRECORD")] public class TN_DPRECORD : BaseModel { public string S_NO { get; set; } public string S_WLBM { get; set; } public double N_COUNT { get; set; } public string S_LOCATION { get; set; } } } models/TN_Distribution_CNTR.cs
@@ -1,6 +1,7 @@ using HH.WCS.Mobox3.pinggao.models; using SqlSugar; using System; using System.Collections.Generic; namespace HH.WCS.Mobox3.pinggao @@ -89,7 +90,9 @@ /// 终点货位 /// </summary> public string S_END_LOC { get; set; } [SugarColumn(IsIgnore = true)] [Navigate(NavigateType.OneToMany, nameof(TN_Distribution_CNTR.S_DC_NO), nameof(S_DC_NO))] public List<TN_Distribution_CNTR_Detail> Details { get; set; } #region 新增字段 /// <summary> /// 是否反拣 models/TN_Distribution_CNTR_Detail.cs
@@ -95,10 +95,10 @@ /// 累计配货数量 /// </summary> public double F_ACC_P_QTY { get; set; } /// <summary> /// 剩余配货数量 /// </summary> public double F_PUT_QTY { get; set; } ///// <summary> ///// 剩余配货数量 ///// </summary> //public double F_PUT_QTY { get; set; } ///// <summary> ///// ERP仓库 ///// </summary>