Пример #1
0
 public static stock_New Getstock_New(int newsID)
 {            
     try
     {
         stock_NewDAO stock_NewDAO = new stock_NewDAO();
         return stock_NewDAO.Getstock_New(newsID);                
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetstock_NewException, ex);
     }
 }                
Пример #2
0
 public static void Updatestock_New(stock_New stock_New)
 {            
     try
     {
         stock_NewDAO stock_NewDAO = new stock_NewDAO();
         stock_NewDAO.Updatestock_New(stock_New);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessUpdatestock_NewException, ex);
     }
 }        
Пример #3
0
 public static stock_NewCollection Getstock_NewList(stock_NewColumns orderBy, string orderDirection)
 {            
     try
     {
         stock_NewDAO stock_NewDAO = new stock_NewDAO();
         return stock_NewDAO.Getstock_NewList(orderBy, orderDirection);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetstock_NewListException, ex);
     }
 }        
Пример #4
0
 public static stock_NewCollection Getstock_NewList(string StockCode, string customerID)
 {
     try
     {
         stock_NewDAO stock_NewDAO = new stock_NewDAO();
         return stock_NewDAO.Getstock_NewList(StockCode, customerID);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetstock_NewListException, ex);
     }
 }
Пример #5
0
 public static stock_NewCollection Getstock_NewList(string StockCode, string customerID, stock_NewColumns orderBy, string orderDirection, int page, int pageSize, out int totalRecords)
 {
     try
     {
         stock_NewDAO stock_NewDAO = new stock_NewDAO();
         return stock_NewDAO.Getstock_NewList(StockCode, customerID, orderBy, orderDirection, page, pageSize, out totalRecords);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetstock_NewListException, ex);
     }
 }