Exemplo n.º 1
0
 public Boolean Save(tbl_000_H_ITEM_FDC record)
 {
     try
     {
         if (record == null)
         {
             throw new Exception("Invalid Parameter!");
         }
         if (itfdcdal.IsExistID(record.YEARUSED, record.ItemNo, record.DepnType))
         {
             throw new Exception("MPT No. already taken!");
         }
         if (itfdcdal.IsExistDesc(record.Description))
         {
             throw new Exception("MPT Name already taken!");
         }
         return(itfdcdal.Save(record));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }