9/8
This commit is contained in:
@@ -15,5 +15,7 @@ namespace ZR.Service.mes.md.IService
|
||||
public int UpdateDevice(MdDevice workshop);
|
||||
|
||||
public int deleteDevice(int[] ids);
|
||||
|
||||
public List<MdWorkstation> getworkstationList();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,5 +15,8 @@ namespace ZR.Service.mes.md.IService
|
||||
public int UpdateWorkshop(MdWorkstation workshop);
|
||||
|
||||
public int deleteWorkshop(int[] ids);
|
||||
|
||||
|
||||
public List<MdWorkline> GetworkLineList();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,15 +33,19 @@ namespace ZR.Service.mes.md
|
||||
.AndIF(!string.IsNullOrEmpty(StationCode), it => it.StationCode.Contains(StationCode))
|
||||
.AndIF(!string.IsNullOrEmpty(StationName), it => it.StationName.Contains(StationName))
|
||||
.ToExpression();
|
||||
List<MdWorkstation> data = Context.Queryable<MdWorkstation>().Where(predicate).ToPageList(pageNum, pageSize, ref totalNum);
|
||||
List<MdWorkstation> data = Context.Queryable<MdWorkstation>().Includes(x => x.Workline).Where(predicate).ToPageList(pageNum, pageSize, ref totalNum);
|
||||
return (totalNum, data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public int UpdateWorkshop(MdWorkstation workshop)
|
||||
{
|
||||
return Update(workshop, true);
|
||||
}
|
||||
|
||||
|
||||
public List<MdWorkline> GetworkLineList()
|
||||
{
|
||||
return Context.Queryable<MdWorkline>().ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user