产品定义
This commit is contained in:
@@ -20,9 +20,10 @@ namespace ZR.Service.mes.md
|
||||
{
|
||||
public int deleteProductDefine(int[] ids)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return Delete(ids);
|
||||
}
|
||||
|
||||
|
||||
public MdProductDefineDTO GetList(string name, string code, int pageNum, int pageSize)
|
||||
{
|
||||
int totalNum = 0;
|
||||
@@ -48,14 +49,13 @@ namespace ZR.Service.mes.md
|
||||
|
||||
}
|
||||
|
||||
public List<MdUnit> GetList(SearchOptionDTO searchOption)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public MdUnit GetProductDefinebyPK(int measure)
|
||||
public MdProductDefine GetProductDefinebyPK(int measure)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
MdProductDefine product=GetId(measure);
|
||||
MdUnit unit= Context.Queryable<MdUnit>().Where(it=>it.MeasureId == product.ProductUnit).First();
|
||||
product.ProductUnitName= unit.MeasureName;
|
||||
return product;
|
||||
}
|
||||
|
||||
public List<MdUnit> GetProductDefineList(string name)
|
||||
@@ -68,14 +68,27 @@ namespace ZR.Service.mes.md
|
||||
return Context.Queryable<MdUnit>().ToList();
|
||||
}
|
||||
|
||||
public int InsertProductDefine(MdUnit jo)
|
||||
|
||||
public int InsertProductDefine(MdProductDefine jo)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return Insert(jo);
|
||||
}
|
||||
|
||||
public int UpdateProductDefine(MdUnit paramss)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public int UpdateProductDefine(MdProductDefine paramss)
|
||||
{
|
||||
return Update(paramss,true);
|
||||
}
|
||||
|
||||
List<MdProductDefine> IMdProductDefineService.GetList(SearchOptionDTO searchOption)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user