public bool CheckWarehUnitUsed(WarehouseUnit warehUnit) { bool IsHave = false; //Warehouse表中是否引用此单位 //WarehouseInvmas表中是否引用此单位 return(IsHave); }
public void DelWarehUnit(WarehouseUnit delWarehUnit) { try { _warehUnitDal.Update(delWarehUnit); } catch (RepositoryException ex) { throw new AisinoMesServiceException("删除计量单位信息失败!", ex); } }
public WarehouseUnit UpdWarehUnit(WarehouseUnit updWarehUnit) { try { _warehUnitDal.Update(updWarehUnit); return(updWarehUnit); } catch (RepositoryException ex) { throw ex; } }
public WarehouseUnit AddWarehUnit(WarehouseUnit addWarehUnit) { try { _warehUnitDal.Add(addWarehUnit); return(addWarehUnit); } catch (RepositoryException ex) { throw ex; } }
public void FullyDelWarehUnit(WarehouseUnit delWarehUnit) { //如果存在就返回 if (CheckWarehUnitUsed(delWarehUnit)) { return; } try { _warehUnitDal.Delete(delWarehUnit); } catch (RepositoryException ex) { throw new AisinoMesServiceException("删除计量单位信息失败!", ex); } }