当前位置: 首页>>代码示例>>C#>>正文


C# CResult.SetParams方法代码示例

本文整理汇总了C#中RMS.Common.ObjectModel.CResult.SetParams方法的典型用法代码示例。如果您正苦于以下问题:C# CResult.SetParams方法的具体用法?C# CResult.SetParams怎么用?C# CResult.SetParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RMS.Common.ObjectModel.CResult的用法示例。


在下文中一共展示了CResult.SetParams方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DeleteUser

        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;
        }
开发者ID:Jusharra,项目名称:RMS,代码行数:18,代码来源:CUserManager.cs

示例2: AvailableTableForUnlock

 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;
 }
开发者ID:Jusharra,项目名称:RMS,代码行数:21,代码来源:COrderManager.cs

示例3: deleteBookingInfo

 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;
 }
开发者ID:Jusharra,项目名称:RMS,代码行数:18,代码来源:COrderManager.cs

示例4: OrderListForTransfer

        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;
        }
开发者ID:Jusharra,项目名称:RMS,代码行数:23,代码来源:COrderManager.cs

示例5: OrderDetailsByOrderID

 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;
 }
开发者ID:Jusharra,项目名称:RMS,代码行数:21,代码来源:COrderManager.cs

示例6: GetBookingInfoByID

 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;
 }
开发者ID:Jusharra,项目名称:RMS,代码行数:17,代码来源:COrderManager.cs

示例7: SaveProductPLU

        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;
        }
开发者ID:Jusharra,项目名称:RMS,代码行数:18,代码来源:CCategoryManager.cs

示例8: GetCategoryAncestors

 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;
 }
开发者ID:Jusharra,项目名称:RMS,代码行数:17,代码来源:CCategoryManager.cs

示例9: GetOnlineOrderPrintStatus

 /// <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;
 }
开发者ID:Jusharra,项目名称:RMS,代码行数:23,代码来源:COrderManager.cs

示例10: GetTotalPaymentSummaryForViewReportBySearch

 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;
 }
开发者ID:Jusharra,项目名称:RMS,代码行数:21,代码来源:CPaymentSummaryManager.cs

示例11: UpdateCategory4

        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;
        }
开发者ID:Jusharra,项目名称:RMS,代码行数:18,代码来源:CCategoryManager.cs


注:本文中的RMS.Common.ObjectModel.CResult.SetParams方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。