This commit is contained in:
DESKTOP-H2PAFLR\Administrator
2023-09-08 13:10:26 +08:00
parent 76452f970f
commit 50c0a7a016
17 changed files with 129 additions and 640 deletions

View File

@@ -35,7 +35,7 @@ namespace ZR.Service.mes.md
.AndIF(!string.IsNullOrEmpty(deviceCode), it => it.DeviceCode.Contains(deviceCode))
.AndIF(!string.IsNullOrEmpty(deviceName), it => it.DeviceName.Contains(deviceName))
.ToExpression();
List<MdDevice> data = Context.Queryable<MdDevice>().Where(predicate).ToPageList(pageNum, pageSize, ref totalNum);
List<MdDevice> data = Context.Queryable<MdDevice>().Includes(x => x.Workstation).Where(predicate).ToPageList(pageNum, pageSize, ref totalNum);
return (totalNum, data);
}
@@ -44,6 +44,10 @@ namespace ZR.Service.mes.md
return Update(workshop, true);
}
public List<MdWorkstation> getworkstationList()
{
return Context.Queryable<MdWorkstation>().ToList();
}
}
}