本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}