添加工序配置

修改入库页面,任务完成,库存页面等
This commit is contained in:
zhougf committed 2025-08-31 15:57:46 +08:00
1 parent c2b039ea47
commit 5a04ca9d59
41 files changed
+1151 -84

No files matched your search

@@ -1,4 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using HHWMS.Web.Models;
using WalkingTec.Mvvm.Core;
@@ -40,6 +42,7 @@ namespace HHWMS.Web
{
InitVM();
return new List<GridColumn<Container_View>>{
this.MakeGridHeader(x => x.Name_view).SetWidth(80),
this.MakeGridHeader(x => x.Code),
this.MakeGridHeader(x => x.Type)
.SetFormat((a, b) =>
@@ -65,6 +68,7 @@ namespace HHWMS.Web
public override IOrderedQueryable<Container_View> GetSearchQuery()
{
var query = DC.Set<Container>()
.CheckEqual(Searcher.ZoneId, x=>x.ZoneId)
.CheckContain(Searcher.Code, x => x.Code)
.CheckContain(Searcher.Type, x => x.Type)
.CheckEqual(Searcher.IsLock, x => x.IsLock)
@@ -73,8 +77,10 @@ namespace HHWMS.Web
.CheckEqual(Searcher.Length, x => x.Length)
.CheckEqual(Searcher.Width, x => x.Width)
.CheckEqual(Searcher.Height, x => x.Height)
.DPWhere(Wtm,x => x.ZoneId)
.Select(x => new Container_View
{
Name_view = x.Zone.Name,
ID = x.ID,
Code = x.Code,
Type = x.Type,
@@ -92,5 +98,7 @@ namespace HHWMS.Web
public class Container_View : Container
{
[Display(Name = "Location.ZoneName")]
public String Name_view { get; set; }
}
}
@@ -1,12 +1,18 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using HHWMS.Web.Models;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
namespace HHWMS.Web
{
public partial class ContainerSearcher : BaseSearcher
{
public List<ComboSelectListItem> AllZones { get; set; }
[Display(Name = "Location.ZoneCode")]
public int? ZoneId { get; set; }
[Display(Name = "Container.Code")]
public String Code { get; set; }
@@ -33,6 +39,7 @@ namespace HHWMS.Web
protected override void InitVM()
{
AllZones = DC.Set<LocationZone>().GetSelectListItems(Wtm, y => y.Name);
}
}
}