9/8
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user