产品定义

This commit is contained in:
DESKTOP-H2PAFLR\Administrator
2023-08-10 10:27:53 +08:00
parent 915c83bd2e
commit c3010d75e4
6 changed files with 191 additions and 64 deletions

View File

@@ -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();
}
}
}