iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/Dto/OutBoundWorkPieceInfoCountInput.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/Dto/OutBoundWorkPieceInfoCountOutput.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/PdaService.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
iWara.SCADA.Code/iWare.Wms.Application/Service/WorkPieceOutbound/WorkPieceOutboundService.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
iWara.SCADA.Code/iWare.Wms.Application/iWare.Wms.Application.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/Dto/OutBoundWorkPieceInfoCountInput.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,25 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using iWare.Wms.Core; using iWare.Wms.Core.Enum; namespace iWare.Wms.Application { public class OutBoundWorkPieceInfoCountInput { /// <summary> /// æ¥æ /// </summary> public DateTimeOffset Date { get; set; } } } iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/Dto/OutBoundWorkPieceInfoCountOutput.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,34 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using iWare.Wms.Core; using iWare.Wms.Core.Enum; using Microsoft.EntityFrameworkCore; namespace iWare.Wms.Application { public class OutBoundWorkPieceInfoCountOutput { /// <summary> /// åºåºäººåç§° /// </summary> [Comment("åºåºäººåç§°")] [MaxLength(32)] public string WorkPieceOutboundUserName { get; set; } /// <summary> /// æ°é /// </summary> public int Count { get; set; } } } iWara.SCADA.Code/iWare.Wms.Application/Service/Pda/PdaService.cs
@@ -873,6 +873,50 @@ } /// <summary> /// åºåºç»è®¡ /// </summary> /// <param name="input"></param> /// <returns></returns> [HttpPost("getOutBoundWorkPieceInfoCountList")] [DisableOpLog] public async Task<List<OutBoundWorkPieceInfoCountOutput>> GetOutBoundWorkPieceInfoCountList([FromBody] OutBoundWorkPieceInfoCountInput input) { /* //æµè¯ List<OutBoundWorkPieceInfoCountOutput> outBoundWorkPieceInfoCountOutputs = new List<OutBoundWorkPieceInfoCountOutput>(); outBoundWorkPieceInfoCountOutputs.Add(new OutBoundWorkPieceInfoCountOutput() { Count = 10, WorkPieceOutboundUserName = "AAA" }); outBoundWorkPieceInfoCountOutputs.Add(new OutBoundWorkPieceInfoCountOutput() { Count = 99, WorkPieceOutboundUserName = "BBb" }); return outBoundWorkPieceInfoCountOutputs; //*/ //DateTimeOffset now = DateTimeOffset.Now; // è·åå½åæ¶é´ï¼å æ¬æ¶åºåç§»é DateTimeOffset now = input.Date; // è·åå½åæ¶é´ï¼å æ¬æ¶åºåç§»é DateTimeOffset startOfDay = new DateTimeOffset(now.Year, now.Month, now.Day, 0, 0, 0, now.Offset); // å½å¤©å¼å§æ¶é´ DateTimeOffset endOfDay = new DateTimeOffset(now.Year, now.Month, now.Day, 23, 59, 59, now.Offset); // å½å¤©ç»ææ¶é´ List<WorkPieceOutbound> db_itemModelList = await _workPieceOutboundRep.Where(w => w.CreatedTime >= startOfDay && w.CreatedTime <= endOfDay && w.IsDeleted == false).ToListAsync(); //æ±æ»åç» var groupList = db_itemModelList.GroupBy(g => g.WorkPieceOutboundUserName).Select(s => new OutBoundWorkPieceInfoCountOutput() { WorkPieceOutboundUserName = s.Key, Count = s.ToList().Count }).ToList(); return groupList; //*/ } #endregion } iWara.SCADA.Code/iWare.Wms.Application/Service/WorkPieceOutbound/WorkPieceOutboundService.cs
@@ -44,6 +44,7 @@ var workPieceOutbounds = await _workPieceOutboundRep.DetachedEntities .Where(!string.IsNullOrEmpty(input.WorkPieceID), u => u.WorkPieceID.Contains(input.WorkPieceID)) .Where(!string.IsNullOrEmpty(input.OP80NewCode), u => u.OP80NewCode.Contains(input.OP80NewCode)) .Where(!string.IsNullOrEmpty(input.WorkPieceOutboundUserName), u => u.WorkPieceOutboundUserName.Contains(input.WorkPieceOutboundUserName)) .Where(!string.IsNullOrEmpty(input.StartTimeBeginTime.ToString()), u => u.WorkPieceOutboundTime >= input.StartTimeBeginTime) .Where(!string.IsNullOrEmpty(input.StartTimeEndTime.ToString()), u => u.WorkPieceOutboundTime <= input.StartTimeEndTime) .OrderBy(PageInputOrder.OrderBuilder<WorkPieceOutboundSearch>(input)) iWara.SCADA.Code/iWare.Wms.Application/iWare.Wms.Application.xml
@@ -390,6 +390,13 @@ <param name="input"></param> <returns></returns> </member> <member name="M:iWare.Wms.Application.Service.Pda.PdaService.GetOutBoundWorkPieceInfoCountList(iWare.Wms.Application.OutBoundWorkPieceInfoCountInput)"> <summary> åºåºç»è®¡ </summary> <param name="input"></param> <returns></returns> </member> <member name="P:iWare.Wms.Application.Service.System.LowCode.Dto.ContrastLowCode_Database.TableName"> <summary> 表å @@ -5104,6 +5111,21 @@ <param name="input"></param> <returns></returns> </member> <member name="P:iWare.Wms.Application.OutBoundWorkPieceInfoCountInput.Date"> <summary> æ¥æ </summary> </member> <member name="P:iWare.Wms.Application.OutBoundWorkPieceInfoCountOutput.WorkPieceOutboundUserName"> <summary> åºåºäººåç§° </summary> </member> <member name="P:iWare.Wms.Application.OutBoundWorkPieceInfoCountOutput.Count"> <summary> æ°é </summary> </member> <member name="T:iWare.Wms.Application.OutStoreInput"> <summary> åºåºæ§è¡è¾å ¥åæ°