This commit is contained in:
霍尔 committed 2023-10-16 20:33:44 +08:00
1 parent c494b7b1ef
commit 523dee5e38
15 files changed
+304 -128

No files matched your search

@@ -2,6 +2,8 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using HHWMS.Web.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.SqlServer.Query.Internal;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
@@ -39,7 +41,13 @@ namespace HHWMS.Web
Inventorys.CopyContext(this);
Inventorys.Searcher.LocationCode = Entity.Code;
_unitWork = new UnitWork(Wtm);
//var tt = DC.Set<TaskHeader>().Where(x => x.ID > 1).Include(x => x.TaskDetails);
//_unitWork = new UnitWork(Wtm);
//var task = _unitWork.Find<TaskHeader>(x => x.ID > 1)
// .Include(x => x.TaskDetails)
// .FirstOrDefault();
//var details = task.TaskDetails;
var CurrentCulture = Wtm.CurrentCulture;
var dictDatas = DC.Set<SysDictData>().ToList();
RoadwayTypes = dictDatas.Where(x => x.DictType == "RoadwayType").Select(x => new ComboSelectListItem