Esempio n. 1
0
        public bool CheckWarehUnitUsed(WarehouseUnit warehUnit)
        {
            bool IsHave = false;

            //Warehouse表中是否引用此单位

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