Example #1
0
        public CResult DeleteUser(CUserInfo inUser)
        {
            try
            {
                m_oResult = RMS.DataAccess.Database.Instance.UserInfo.DeleteUser(inUser);

            }
            catch (Exception ex)
            {
                System.Console.WriteLine("Exception occuer at DeleteItem() : " + ex.Message);
                m_oResult.IsException = true;
                m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
                m_oResult.SetParams(ex.Message);
                m_oResult.Message = ex.Message;
                Logger.Write("Exception : " + ex + " in DeleteItem()", LogLevel.Error, "CItemManager");
            }
            return m_oResult;
        }
Example #2
0
 public CResult AvailableTableForUnlock()
 {
     try
     {
         //List<CTransferOrderShow> oTableList = Database.Instance.AvailableTableForUnlock.AvailableTableForUnlock();
         m_oResult = Database.Instance.AvailableTableForUnlock.AvailableTableForUnlock();
         //m_oResult.Data = oTableList;
         //m_oResult.IsSuccess = true;
         m_oResult.Message = "Data Read Successful";
     }
     catch (Exception ex)
     {
         System.Console.WriteLine("Exception occuer at OrderListForUnlock() : " + ex.Message);
         m_oResult.IsException = true;
         m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
         m_oResult.SetParams(ex.Message);
         m_oResult.Message = ex.Message;
         Logger.Write("Exception : " + ex + " in OrderListForUnlock()", LogLevel.Error, "COrderManager");
     }
     return m_oResult;
 }
Example #3
0
 public CResult deleteBookingInfo(Int64 inBookingID)
 {
     try
     {
         m_oResult = Database.Instance.BookingInfo.DeleteBookingInfo(inBookingID);
         m_oResult.Message = "Data Read Successful";
     }
     catch (Exception ex)
     {
         System.Console.WriteLine("Exception occuer at OrderListShowByStatus() : " + ex.Message);
         m_oResult.IsException = true;
         m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
         m_oResult.SetParams(ex.Message);
         m_oResult.Message = ex.Message;
         Logger.Write("Exception : " + ex + " in OrderListShowByStatus()", LogLevel.Error, "COrderManager");
     }
     return m_oResult;
 }
Example #4
0
        public CResult OrderListForTransfer(bool inMergeTable)
        {
            try
            {
                //definition of OrderListForTransfer() in IOrdershowDAO is changed

                //List<CTransferOrderShow> oOrderList = Database.Instance.OrderListForTransfer.OrderListForTransfer(inMergeTable);
                m_oResult = Database.Instance.OrderListForTransfer.OrderListForTransfer(inMergeTable);
                //m_oResult.Data = oOrderList;
                //m_oResult.IsSuccess = true;
                m_oResult.Message = "Data Read Successful";
            }
            catch (Exception ex)
            {
                System.Console.WriteLine("Exception occuer at OrderListForTransfer() : " + ex.Message);
                m_oResult.IsException = true;
                m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
                m_oResult.SetParams(ex.Message);
                m_oResult.Message = ex.Message;
                Logger.Write("Exception : " + ex + " in OrderListForTransfer()", LogLevel.Error, "COrderManager");
            }
            return m_oResult;
        }
Example #5
0
 public CResult OrderDetailsByOrderID(Int64 inOrderID)
 {
     try
     {
         //List<COrderDetails> oOrderDetailsList = Database.Instance.OrderDetails.OrderDetailsGetByOrderID(inOrderID);
         m_oResult = Database.Instance.OrderDetails.OrderDetailsGetByOrderID(inOrderID);
         //m_oResult.Data = oOrderDetailsList;
         //m_oResult.IsSuccess = true;
         m_oResult.Message = "Data Read Successful";
     }
     catch (Exception ex)
     {
         System.Console.WriteLine("Exception occuer at OrdeDetailsByOrderID() : " + ex.Message);
         m_oResult.IsException = true;
         m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
         m_oResult.SetParams(ex.Message);
         m_oResult.Message = ex.Message;
         Logger.Write("Exception : " + ex + " in OrdeDetailsByOrderID()", LogLevel.Error, "COrderManager");
     }
     return m_oResult;
 }
Example #6
0
 public CResult GetBookingInfoByID(Int64 inBookingID)
 {
     try
     {
         m_oResult = Database.Instance.BookingInfo.GetBookingInfoByID(inBookingID);
         m_oResult.Message = "Data Read Successful";
     }
     catch (Exception ex)
     {
         System.Console.WriteLine("Exception occuer at GetBookingInfoAll() : " + ex.Message);
         m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
         m_oResult.SetParams(ex.Message);
         m_oResult.Message = ex.Message;
         Logger.Write("Exception : " + ex + " in GetBookingInfoAll()", LogLevel.Error, "COrderManager");
     }
     return m_oResult;
 }
Example #7
0
        public CResult SaveProductPLU(int productID, int categoryLabel, int productPLU)
        {
            try
            {
                m_oResult = RMS.DataAccess.Database.Instance.Item.SaveProductPLU(productID, categoryLabel, productPLU);

            }
            catch (Exception ex)
            {
                System.Console.WriteLine("Exception occuer at new category 1 insertion : " + ex.Message);
                m_oResult.IsException = true;
                m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
                m_oResult.SetParams(ex.Message);
                m_oResult.Message = ex.Message;
                Logger.Write("Exception : " + ex + " in DeleteItem()", LogLevel.Error, "CItemManager");
            }
            return m_oResult;
        }
Example #8
0
 public CResult GetCategoryAncestors(Int32 inLeafCatID, int inCatLevel)
 {
     try
     {
         m_oResult = RMS.DataAccess.Database.Instance.CategoryAnchestor.GetCategoryAnchestors(inLeafCatID, inCatLevel);
     }
     catch (Exception ex)
     {
         System.Console.WriteLine("Exception occuer at DeleteItem() : " + ex.Message);
         m_oResult.IsException = true;
         m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
         m_oResult.SetParams(ex.Message);
         m_oResult.Message = ex.Message;
         Logger.Write("Exception : " + ex + " in DeleteItem()", LogLevel.Error, "CItemManager");
     }
     return m_oResult;
 }
Example #9
0
 /// <summary>
 /// This function returns the order print status whether the order is printed or not
 /// </summary>
 /// <param name="inOrderID"></param>
 /// <returns></returns>
 public CResult GetOnlineOrderPrintStatus(Int64 inOrderID)
 {
     try
     {
         m_oResult = Database.Instance.OrderInfo.GetOnlineOrderPrintStatus(inOrderID);
         m_oResult.Message = "Data Read Successful";
     }
     catch (Exception ex)
     {
         System.Console.WriteLine("Exception occured at GetOnlineOrderPrintStatus() : " + ex.Message);
         m_oResult.IsException = true;
         m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
         m_oResult.SetParams(ex.Message);
         m_oResult.Message = ex.Message;
         Logger.Write("Exception : " + ex + " in GetOnlineOrderPrintStatus()", LogLevel.Error, "COrderManager");
     }
     return m_oResult;
 }
Example #10
0
 public CResult GetTotalPaymentSummaryForViewReportBySearch(DateTime inCurrentDate, string inRefNo, string inPrice, string inTableNo, bool inRef, bool inPr, bool inTable)
 {
     try
     {
         //List<CPaymentSummaryByOrder> oPaymentSummaryByOrder = Database.Instance.PaymentSummaryForViewReport.GetTotalPaymentForViewReportBySearch(inCurrentDate, inRefNo, inPrice, inTableNo, inRef, inPr, inTable);
         m_oResult = Database.Instance.PaymentSummaryForViewReport.GetTotalPaymentForViewReportBySearch(inCurrentDate, inRefNo, inPrice, inTableNo, inRef, inPr, inTable);
         //m_oResult.Data = oPaymentSummaryByOrder;
         //m_oResult.IsSuccess = true;
         m_oResult.Message = "Data Read Successful";
     }
     catch (Exception ex)
     {
         System.Console.WriteLine("Exception occured at GetTotalPaymentSummary : " + ex.Message);
         m_oResult.IsException = true;
         m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
         m_oResult.SetParams(ex.Message);
         m_oResult.Message = ex.Message;
         Logger.Write("Exception : " + ex + " in GetTotalPaymentSummary", LogLevel.Error, "CPaymentSummaryManager");
     }
     return m_oResult;
 }
Example #11
0
        public CResult UpdateCategory4(CCategory4 inUser)
        {
            try
            {
                m_oResult = Database.Instance.Category4.AddCat4(inUser);

            }
            catch (Exception ex)
            {
                System.Console.WriteLine("Exception occuer at DeleteItem() : " + ex.Message);
                m_oResult.IsException = true;
                m_oResult.Action = EERRORNAME.EXCEPTION_OCCURE;
                m_oResult.SetParams(ex.Message);
                m_oResult.Message = ex.Message;
                Logger.Write("Exception : " + ex + " in DeleteItem()", LogLevel.Error, "CItemManager");
            }
            return m_oResult;
        }