Exemplo n.º 1
0
 public static int GetSerial(Guid WarehouseId)
 {
     try
     {
         return(Convert.ToInt32(SamplingDAL.GetSerial(WarehouseId)));
     }
     catch (Exception ex)
     {
         throw new Exception("Inavlid Serial Number exception", ex);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the Serial number by incrementing one on the numeber of Samplings generated per a given date.
 /// </summary>
 /// <returns>Integer Serial number.</returns>
 public Nullable <int> GetSerialNo(Guid WarehouseId)
 {
     try
     {
         return(SamplingDAL.GetSerial(WarehouseId));
     }
     catch (Exception ex)
     {
         throw new Exception("Unable to Generate Serial no.", ex);
     }
 }