本文整理汇总了C#中HotelVp.CMS.Domain.Entity.LmSystemLogEntity类的典型用法代码示例。如果您正苦于以下问题:C# LmSystemLogEntity类的具体用法?C# LmSystemLogEntity怎么用?C# LmSystemLogEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LmSystemLogEntity类属于HotelVp.CMS.Domain.Entity命名空间,在下文中一共展示了LmSystemLogEntity类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: OrderConfirmSendMsgToLMSales
public static LmSystemLogEntity OrderConfirmSendMsgToLMSales(LmSystemLogEntity dbParm, string strHotelID, string strSendMSG)
{
DataSet dsSales = LmSystemLogDA.GetSalesLMHotelInfo(strHotelID);
if (dsSales.Tables.Count == 0 || dsSales.Tables[0].Rows.Count == 0 || String.IsNullOrEmpty(dsSales.Tables[0].Rows[0]["User_Tel"].ToString()))
{
return dbParm;
}
string DataString = "";
DataString = DataString + "{\"method\":\"save\",\"data\":{\"syscode\":\"" + "CMS" + "\",\"reqid\":\"" + dsSales.Tables[0].Rows[0]["User_Tel"].ToString() + "\",\"bizcode\":\"" + "CMS-订单确认短信通知" + "\",";
DataString = DataString + "\"cnfnum\":\"" + dbParm.FogOrderID + "\",\"mobiles\":\"" + dsSales.Tables[0].Rows[0]["User_Tel"].ToString() + "\",\"msg\":\"" + strSendMSG + "\",";
DataString = DataString + "\"sign\":\"" + PostSignKey("CMS" + dsSales.Tables[0].Rows[0]["User_Tel"].ToString()) + "\"},\"version\":\"v1.0\"}";
string HotelFullRoomUrl = JsonRequestURLBuilder.applySendMsgV2();
CallWebPage callWebPage = new CallWebPage();
string strHotelFullRoom = callWebPage.CallWebByURL(HotelFullRoomUrl, DataString);
JObject oHotelFullRoom = JObject.Parse(strHotelFullRoom);
if ("success".Equals(JsonRequestURLBuilder.GetJsonStringValue(oHotelFullRoom, "message").Trim('"')))
{
dbParm.Result = 1;
dbParm.ErrorMSG = "发送成功!";
}
else
{
dbParm.Result = 2;
dbParm.ErrorMSG = "发送失败!" + JsonRequestURLBuilder.GetJsonStringValue(oHotelFullRoom, "message").Trim('"');
}
return dbParm;
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:31,代码来源:OrderInfoSA.cs
示例2: btnExport_Click
//导出Excel文件
protected void btnExport_Click(object sender, EventArgs e)
{
LmSystemLogEntity _lmSystemLogEntity = new LmSystemLogEntity();
CommonEntity _commonEntity = new CommonEntity();
_lmSystemLogEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
_lmSystemLogEntity.LogMessages.Userid = UserSession.Current.UserAccount;
_lmSystemLogEntity.LogMessages.Username = UserSession.Current.UserDspName;
_lmSystemLogEntity.LogMessages.IpAddress = UserSession.Current.UserIP;
_lmSystemLogEntity.EventID = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OrderID"].ToString())) ? null : ViewState["OrderID"].ToString();
_lmSystemLogEntity.StartDTime = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["StartDTime"].ToString())) ? null : ViewState["StartDTime"].ToString(); ;
_lmSystemLogEntity.EndDTime = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["EndDTime"].ToString())) ? null : ViewState["EndDTime"].ToString(); ;
_lmSystemLogEntity.HotelID = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["HotelID"].ToString())) ? null : ViewState["HotelID"].ToString();
_lmSystemLogEntity.CityID = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["CityID"].ToString())) ? null : ViewState["CityID"].ToString();
_lmSystemLogEntity.PayCode = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["PayCode"].ToString())) ? null : ViewState["PayCode"].ToString();
_lmSystemLogEntity.BookStatus = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["BookStatus"].ToString())) ? null : ViewState["BookStatus"].ToString();
_lmSystemLogEntity.PayStatus = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["PayStatus"].ToString())) ? null : ViewState["PayStatus"].ToString();
_lmSystemLogEntity.PlatForm = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["PlatForm"].ToString())) ? null : ViewState["PlatForm"].ToString();
_lmSystemLogEntity.Ticket = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["Ticket"].ToString())) ? null : ViewState["Ticket"].ToString();
_lmSystemLogEntity.Mobile = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["Mobile"].ToString())) ? null : ViewState["Mobile"].ToString();
_lmSystemLogEntity.InStart = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["InStart"].ToString())) ? null : ViewState["InStart"].ToString();
_lmSystemLogEntity.InEnd = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["InEnd"].ToString())) ? null : ViewState["InEnd"].ToString();
_lmSystemLogEntity.Aprove = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["Aprove"].ToString())) ? null : ViewState["Aprove"].ToString();
DataSet dsResult = LmSystemLogBP.ReviewSelectByNew(_lmSystemLogEntity).QueryResult;
if (dsResult.Tables.Count == 0 && dsResult.Tables[0].Rows.Count ==0)
{
messageContent.InnerHtml = GetLocalResourceObject("WarningMessage").ToString();
return;
}
CommonFunction.ExportExcelForLM(dsResult);
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:32,代码来源:ReviewLmSystemLogPageByNew.aspx.cs
示例3: SetImagePreviewList
public static string SetImagePreviewList(string Hid, string Otsd, string Oted, string Fst, string Oid, string Fnu)
{
LmSystemLogEntity _lmSystemLogEntity = new LmSystemLogEntity();
_lmSystemLogEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
_lmSystemLogEntity.LogMessages.Userid = UserSession.Current.UserAccount;
_lmSystemLogEntity.LogMessages.Username = UserSession.Current.UserDspName;
_lmSystemLogEntity.LogMessages.IpAddress = UserSession.Current.UserIP;
_lmSystemLogEntity.HotelID = Hid;
_lmSystemLogEntity.OutStart = Otsd;
_lmSystemLogEntity.OutEnd = Oted;
_lmSystemLogEntity.FaxStatus = Fst;
_lmSystemLogEntity.FogOrderID = Oid;
_lmSystemLogEntity.FaxNum = Fnu;
string json = "";
DataSet dsResult = LmSystemLogBP.HotelFaxHis(_lmSystemLogEntity).QueryResult;
try
{
if (dsResult.Tables[0] != null && dsResult.Tables[0].Rows.Count > 0)
{
json = ToJson(dsResult.Tables[0]);
}
else
{
json = "[{\"FAXBDT\":\"\",\"FAXNID\":\"\",\"FAXUNID\":\"\",\"FAXID\":\"\",\"FAXDT\":\"\",\"FAXTST\":\"\",\"FAXBST\":\"\",\"FAXTURL\":\"\",\"FAXBURL\":\"\"}]";
}
}
catch (Exception ex)
{
json = "[{\"FAXBDT\":\"\",\"FAXNID\":\"\",\"FAXUNID\":\"\",\"FAXID\":\"\",\"FAXDT\":\"\",\"FAXTST\":\"\",\"FAXBST\":\"\",\"FAXTURL\":\"\",\"FAXBURL\":\"\"}]";
}
return json;
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:34,代码来源:OrderApprovedFaxPreView.aspx.cs
示例4: GetHCorderViewList
public static string GetHCorderViewList(string orderID, string hotelID, string contTel)
{
LmSystemLogEntity _lmSystemLogEntity = new LmSystemLogEntity();
_lmSystemLogEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
_lmSystemLogEntity.LogMessages.Userid = UserSession.Current.UserAccount;
_lmSystemLogEntity.LogMessages.Username = UserSession.Current.UserDspName;
_lmSystemLogEntity.LogMessages.IpAddress = UserSession.Current.UserIP;
_lmSystemLogEntity.FogOrderID = orderID;
_lmSystemLogEntity.HotelID = hotelID;
_lmSystemLogEntity.ContactTel = contTel;
string json = "";
DataSet dsResult = LmSystemLogBP.GetHCorderViewList(_lmSystemLogEntity).QueryResult;
try
{
if (dsResult.Tables[0] != null && dsResult.Tables[0].Rows.Count > 0)
{
json = ToJson(dsResult.Tables[0]);
}
else
{
json = "[]";
}
}
catch (Exception ex)
{
json = "[]";
}
return json;
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:29,代码来源:OrderConfirmInfoManager.aspx.cs
示例5: ReviewOrderListSelect
public static LmSystemLogEntity ReviewOrderListSelect(LmSystemLogEntity lmSystemLogEntity)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.INFO;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "ReviewOrderListSelect";
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
try
{
return OrderSearchDA.ReviewOrderListSelect(lmSystemLogEntity);
}
catch (Exception ex)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.ERROR;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "ReviewOrderListSelect Error: " + ex.Message;
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
throw ex;
}
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:18,代码来源:OrderSearchBP.cs
示例6: ChkOrderOperationSelect
public static LmSystemLogEntity ChkOrderOperationSelect(LmSystemLogEntity lmSystemLogEntity)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.INFO;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "ChkOrderOperationSelect";
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
try
{
return LmSystemLogDA.ChkOrderOperationSelect(lmSystemLogEntity);
}
catch (Exception ex)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.ERROR;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "ChkOrderOperationSelect Error: " + ex.Message;
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
throw ex;
}
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:18,代码来源:LmSystemLogBP.cs
示例7: SetMemoVal
public static string SetMemoVal(string strKey)
{
StringBuilder sbMemo = new StringBuilder();
LmSystemLogEntity _lmSystemLogEntity = new LmSystemLogEntity();
_lmSystemLogEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
_lmSystemLogEntity.LogMessages.Userid = UserSession.Current.UserAccount;
_lmSystemLogEntity.LogMessages.Username = UserSession.Current.UserDspName;
_lmSystemLogEntity.LogMessages.IpAddress = UserSession.Current.UserIP;
_lmSystemLogEntity.MemoKey = strKey;
DataSet dsResult = LmSystemLogBP.GetOrderActionHisList(_lmSystemLogEntity).QueryResult;
if (dsResult.Tables.Count > 0 && dsResult.Tables[0].Rows.Count > 0)
{
foreach (DataRow drRow in dsResult.Tables[0].Rows)
{
if ("订单确认".Equals(drRow["EVENT_TYPE"].ToString()))
{
if (String.IsNullOrEmpty(drRow["CANNEL"].ToString()) && !"取消单".Equals(drRow["OD_STATUS"].ToString()))
{
sbMemo.Append(GetMenoHtml(0, drRow));
}
else
{
sbMemo.Append(GetMenoHtml(1, drRow));
}
}
else
{
if (String.IsNullOrEmpty(drRow["CANNEL"].ToString()))
{
sbMemo.Append(GetMenoHtml(2, drRow));
}
else
{
sbMemo.Append(GetMenoHtml(3, drRow));
}
}
}
}
return sbMemo.ToString();
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:43,代码来源:OrderDBApprovedFax.aspx.cs
示例8: UserDetailListSelectByNew
public static LmSystemLogEntity UserDetailListSelectByNew(LmSystemLogEntity lmSystemLogEntity)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.INFO;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "UserDetailListSelectByNew";
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
try
{
return LmSystemLogDA.UserDetailListSelectByNew(lmSystemLogEntity);
}
catch (Exception ex)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.ERROR;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "UserDetailListSelectByNew Error: " + ex.Message;
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
throw ex;
}
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:18,代码来源:LmSystemLogBP.cs
示例9: SendMsgToLMSales
public static LmSystemLogEntity SendMsgToLMSales(LmSystemLogEntity lmSystemLogEntity)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.INFO;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "SendMsgToLMSales";
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
try
{
return OrderInfoSA.SendMsgToLMSales(lmSystemLogEntity);
}
catch (Exception ex)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.ERROR;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "SendMsgToLMSales Error: " + ex.Message;
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
throw ex;
}
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:18,代码来源:LmSystemLogBP.cs
示例10: GetOrderInfoData
private DataSet GetOrderInfoData(string orderID)
{
LmSystemLogEntity _lmSystemLogEntity = new LmSystemLogEntity();
CommonEntity _commonEntity = new CommonEntity();
_lmSystemLogEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
_lmSystemLogEntity.LogMessages.Userid = UserSession.Current.UserAccount;
_lmSystemLogEntity.LogMessages.Username = UserSession.Current.UserDspName;
_lmSystemLogEntity.LogMessages.IpAddress = UserSession.Current.UserIP;
_lmSystemLogEntity.FogOrderID = orderID;
return LmSystemLogBP.GetOrderInfoData(_lmSystemLogEntity).QueryResult;
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:12,代码来源:SaveIssueManager.aspx.cs
示例11: OrderSurveyDetail
public static LmSystemLogEntity OrderSurveyDetail(LmSystemLogEntity lmSystemLogEntity)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.INFO;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "OrderSurveyDetail";
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
try
{
return LmSystemLogDA.OrderSurveyDetail(lmSystemLogEntity);
}
catch (Exception ex)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.ERROR;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "OrderSurveyDetail Error: " + ex.Message;
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
throw ex;
}
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:18,代码来源:LmSystemLogBP.cs
示例12: SaveOrderListInterFace
public static string SaveOrderListInterFace(LmSystemLogEntity lmSystemLogEntity)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.INFO;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "SaveOrderOperation";
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
try
{
if (!LmSystemLogDA.ChkOrderOperationLock(lmSystemLogEntity))
{
return "订单:" + lmSystemLogEntity.FogOrderID + " 被其他人锁定。请稍后重试!";
}
DataSet dsOrderInfo = LmSystemLogDA.GetSaveOrderOpeRemarkList(lmSystemLogEntity.FogOrderID);
if (LmSystemLogDA.SaveOrderOpeRemarkListConfirm(lmSystemLogEntity, dsOrderInfo) != 1)
{
return "订单:" + lmSystemLogEntity.FogOrderID + " 信息不存在。请确认!";
}
//string strMsg = OrderInfoSA.SaveOrderOperationList(lmSystemLogEntity);
string strMsg = OrderInfoSA.SynOrderOperationList(lmSystemLogEntity);
if (!String.IsNullOrEmpty(strMsg))
{
return strMsg;// "订单:" + lmSystemLogEntity.FogOrderID + " " + strMsg;
}
OrderInfoSA.SaveOrderConfirmPlanMail(lmSystemLogEntity, dsOrderInfo);
return "";
}
catch (Exception ex)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.ERROR;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "SaveOrderOperation Error: " + ex.Message;
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
throw ex;
}
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:37,代码来源:LmSystemLogBP.cs
示例13: SaveHotelExRemark
public static int SaveHotelExRemark(LmSystemLogEntity lmSystemLogEntity)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.INFO;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "SaveHotelExRemark";
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
try
{
if (!LmSystemLogDA.ChkHotelExRemark(lmSystemLogEntity))
{
return 2;
}
return LmSystemLogDA.SaveHotelExRemark(lmSystemLogEntity);
}
catch (Exception ex)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.ERROR;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "SaveHotelExRemark Error: " + ex.Message;
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
throw ex;
}
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:23,代码来源:LmSystemLogBP.cs
示例14: SaveConfirmOrderList
public static LmSystemLogEntity SaveConfirmOrderList(LmSystemLogEntity lmSystemLogEntity)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.INFO;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "SaveConfirmOrderList";
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
try
{
if (!LmSystemLogDA.ChkOrderOperationLock(lmSystemLogEntity))
{
lmSystemLogEntity.Result = 2;
lmSystemLogEntity.ErrorMSG = "保存失败。订单:" + lmSystemLogEntity.FogOrderID + "已被其他人锁定,请稍后再试!";
return lmSystemLogEntity;
}
string[] ODList = lmSystemLogEntity.OrderList.TrimEnd(',').Split(',');
string[] ODDetail;
string strOdStatus = string.Empty;
LmSystemLogEntity lmEntity = new LmSystemLogEntity();
lmEntity.LogMessages = new LogMessage();
lmEntity.LogMessages = lmSystemLogEntity.LogMessages;
string strResult = string.Empty;
string allMSG = string.Empty;
int iCount = ODList.Length;
foreach (string tempOD in ODList)
{
strResult = "";
ODDetail = tempOD.Split('_');
lmEntity.FogOrderID = ODDetail[0].Trim();
if (!LmSystemLogDA.ChkOrderOperationLock(lmEntity))
{
lmSystemLogEntity.ErrorMSG += lmEntity.FogOrderID + ",";
iCount = iCount - 1;
continue;
}
if (!"2".Equals(ODDetail[1].Trim()))
{
lmEntity.OrderBookStatus = ("1".Equals(ODDetail[1].Trim())) ? "6" : "7";//CC确认 CC取消
lmEntity.OrderBookStatusOther = ("1".Equals(ODDetail[1].Trim())) ? "4" : "9";
lmEntity.CanelReson = ("0".Equals(ODDetail[1].Trim())) ? ODDetail[2].Trim() : "";
lmEntity.BookRemark = ODDetail[3].Trim();
lmEntity.FollowUp = ("true".Equals(ODDetail[4].Trim())) ? "1" : "0";
lmEntity.ActionID = ("1".Equals(ODDetail[1].Trim())) ? ODDetail[2].Trim() : "";
strResult = LmSystemLogBP.SaveOrderListInterFace(lmEntity);
allMSG += strResult;
iCount = (String.IsNullOrEmpty(strResult)) ? iCount : iCount - 1;
}
if (String.IsNullOrEmpty(strResult.Trim()))
{
if ("1".Equals(ODDetail[1].Trim()))
{
strOdStatus = "可入住";
}
else if ("0".Equals(ODDetail[1].Trim()))
{
strOdStatus = "CC取消";
}
else if ("2".Equals(ODDetail[1].Trim()))
{
strOdStatus = "备注";
}
OrderInfoEntity _orderInfoEntity = new OrderInfoEntity();
_orderInfoEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
_orderInfoEntity.LogMessages = lmSystemLogEntity.LogMessages;
_orderInfoEntity.OrderInfoDBEntity = new List<OrderInfoDBEntity>();
OrderInfoDBEntity orderinfoEntity = new OrderInfoDBEntity();
orderinfoEntity.EventType = "订单确认";
orderinfoEntity.ORDER_NUM = ODDetail[0].Trim();
orderinfoEntity.OdStatus = strOdStatus;
orderinfoEntity.REMARK = (!"2".Equals(ODDetail[1].Trim())) ? ODDetail[3].Trim() : ODDetail[2].Trim();
orderinfoEntity.ActionID = ("1".Equals(ODDetail[1].Trim())) ? ODDetail[2].Trim() : "";
orderinfoEntity.CANNEL = ("0".Equals(ODDetail[1].Trim())) ? ODDetail[2].Trim() : "";
_orderInfoEntity.OrderInfoDBEntity.Add(orderinfoEntity);
CommonBP.InsertOrderActionHistoryList(_orderInfoEntity);
}
}
if (!String.IsNullOrEmpty(lmSystemLogEntity.ErrorMSG) || !String.IsNullOrEmpty(allMSG.Trim()))
{
lmSystemLogEntity.Result = 3;
lmSystemLogEntity.ErrorMSG = ((iCount > 0) ? "其他订单保存成功。" : "保存失败。") + allMSG.Trim() + ((!String.IsNullOrEmpty(lmSystemLogEntity.ErrorMSG)) ? ("订单:" + lmSystemLogEntity.ErrorMSG.TrimEnd(',') + " 被其他人锁定,请稍后再试!") : "");
}
else
{
lmSystemLogEntity.Result = 1;
}
return lmSystemLogEntity;
}
catch (Exception ex)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.ERROR;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "SaveConfirmOrderList Error: " + ex.Message + lmSystemLogEntity.OrderList;
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
throw ex;
}
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:99,代码来源:LmSystemLogBP.cs
示例15: SaveBindReciveFax
public static LmSystemLogEntity SaveBindReciveFax(LmSystemLogEntity lmSystemLogEntity)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.INFO;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "SaveBindReciveFax";
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
try
{
if ("0".Equals(lmSystemLogEntity.SendFaxType))
{
DataSet dsBarCode = LmSystemLogDA.CheckBarCode(lmSystemLogEntity);
if (dsBarCode.Tables.Count == 0 || dsBarCode.Tables[0].Rows.Count == 0)
{
lmSystemLogEntity.Result = 2;
lmSystemLogEntity.ErrorMSG = "接收传真重新绑定保存失败 - 该二维码编号不存在,请修改!";
return lmSystemLogEntity;
}
}
return OrderInfoSA.SaveBindReciveFax(lmSystemLogEntity);
}
catch (Exception ex)
{
lmSystemLogEntity.LogMessages.MsgType = MessageType.ERROR;
lmSystemLogEntity.LogMessages.Content = _nameSpaceClass + "SaveBindReciveFax Error: " + ex.Message;
LoggerHelper.LogWriter(lmSystemLogEntity.LogMessages);
throw ex;
}
}
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:28,代码来源:LmSystemLogBP.cs
示例16: btnExport_Click
//导出Excel文件
protected void btnExport_Click(object sender, EventArgs e)
{
LmSystemLogEntity _lmSystemLogEntity = new LmSystemLogEntity();
CommonEntity _commonEntity = new CommonEntity();
_lmSystemLogEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
_lmSystemLogEntity.LogMessages.Userid = UserSession.Current.UserAccount;
_lmSystemLogEntity.LogMessages.Username = UserSession.Current.UserDspName;
_lmSystemLogEntity.LogMessages.IpAddress = UserSession.Current.UserIP;
_lmSystemLogEntity.OutTest = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutTest"].ToString())) ? null : ViewState["OutTest"].ToString();
_lmSystemLogEntity.RestBookStatus = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["RestBookStatus"].ToString())) ? null : ViewState["RestBookStatus"].ToString();
_lmSystemLogEntity.StartDTime = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["StartDTime"].ToString())) ? null : ViewState["StartDTime"].ToString();//下单开始时间
_lmSystemLogEntity.EndDTime = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["EndDTime"].ToString())) ? null : ViewState["EndDTime"].ToString();//下单结束时间
_lmSystemLogEntity.GroupID = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["GroupID"].ToString())) ? null : ViewState["GroupID"].ToString();//集团
_lmSystemLogEntity.InStart = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["InStart"].ToString())) ? null : ViewState["InStart"].ToString();//入住开始日期
_lmSystemLogEntity.InEnd = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["InEnd"].ToString())) ? null : ViewState["InEnd"].ToString();//入住结束日期
_lmSystemLogEntity.CityID = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["CityID"].ToString())) ? null : ViewState["CityID"].ToString(); //城市
_lmSystemLogEntity.TagInfo = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["Business"].ToString())) ? null : ViewState["Business"].ToString();//商圈
_lmSystemLogEntity.OutStart = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutStart"].ToString())) ? null : ViewState["OutStart"].ToString();//离店开始时间
_lmSystemLogEntity.OutEnd = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutEnd"].ToString())) ? null : ViewState["OutEnd"].ToString();//离店结束时间
_lmSystemLogEntity.Sales = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["Sales"].ToString())) ? null : ViewState["Sales"].ToString(); //销售
_lmSystemLogEntity.HotelID = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["HotelID"].ToString())) ? null : ViewState["HotelID"].ToString();//酒店
_lmSystemLogEntity.Mobile = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["Mobile"].ToString())) ? null : ViewState["Mobile"].ToString();//登录手机
_lmSystemLogEntity.FogOrderID = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OrderID"].ToString())) ? null : ViewState["OrderID"].ToString();//订单ID
_lmSystemLogEntity.GuestName = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["GuestName"].ToString())) ? null : ViewState["GuestName"].ToString();//入住人
_lmSystemLogEntity.CreateStatus = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["BookStatusOtherCreate"].ToString())) ? null : ViewState["BookStatusOtherCreate"].ToString();//创建状态 成功 失败
_lmSystemLogEntity.UserCancel = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["UserCancel"].ToString())) ? null : ViewState["UserCancel"].ToString();//用户取消 1 是 2 否
_lmSystemLogEntity.PriceCode = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["PriceCode"].ToString())) ? null : ViewState["PriceCode"].ToString(); //价格代码
_lmSystemLogEntity.AffirmStatus = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["BookStatusOtherAffirm"].ToString())) ? null : ViewState["BookStatusOtherAffirm"].ToString();//确认状态
_lmSystemLogEntity.Timeout = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["Timeout"].ToString())) ? null : ViewState["Timeout"].ToString();//确认超时 1是 2 否
_lmSystemLogEntity.Ticket = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["Ticket"].ToString())) ? null : ViewState["Ticket"].ToString();//含返现券 1是 2 否
_lmSystemLogEntity.PlatForm = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["PlatForm"].ToString())) ? null : ViewState["PlatForm"].ToString();//订单平台
_lmSystemLogEntity.OrderChannel = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OrderChannel"].ToString())) ? null : ViewState["OrderChannel"].ToString();//订单渠道
_lmSystemLogEntity.Aprove = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["Aprove"].ToString())) ? null : ViewState["Aprove"].ToString();//审核状态
_lmSystemLogEntity.HotelComfirm = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["HotelComfirm"].ToString())) ? null : ViewState["HotelComfirm"].ToString();//酒店是否已确认
_lmSystemLogEntity.BookStatus = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["BookStatus"].ToString())) ? null : ViewState["BookStatus"].ToString();//LMBAR状态
_lmSystemLogEntity.PayCode = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["PayCode"].ToString())) ? null : ViewState["PayCode"].ToString();//支付方式
_lmSystemLogEntity.PayStatus = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["PayStatus"].ToString())) ? null : ViewState["PayStatus"].ToString();//支付状态
#region 优惠券信息
_lmSystemLogEntity.RestBookStatus = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["RestBookStatus"].ToString())) ? null : ViewState["RestBookStatus"].ToString();
_lmSystemLogEntity.RestPriceCode = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["RestPriceCode"].ToString())) ? null : ViewState["RestPriceCode"].ToString();
_lmSystemLogEntity.TicketType = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["TicketType"].ToString())) ? null : ViewState["TicketType"].ToString();
_lmSystemLogEntity.TicketData = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["TicketData"].ToString())) ? null : ViewState["TicketData"].ToString();
_lmSystemLogEntity.TicketPayCode = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["TicketPcode"].ToString())) ? null : ViewState["TicketPcode"].ToString();
_lmSystemLogEntity.PackageName = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["packagename"].ToString())) ? null : ViewState["packagename"].ToString();
_lmSystemLogEntity.AmountFrom = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["amountfrom"].ToString())) ? null : ViewState["amountfrom"].ToString();
_lmSystemLogEntity.AmountTo = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["amountto"].ToString())) ? null : ViewState["amountto"].ToString();
_lmSystemLogEntity.PickfromDate = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["pickfromdate"].ToString())) ? null : ViewState["pickfromdate"].ToString();
_lmSystemLogEntity.PicktoDate = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["picktodate"].ToString())) ? null : ViewState["picktodate"].ToString();
_lmSystemLogEntity.TicketTime = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["tickettime"].ToString())) ? null : ViewState["tickettime"].ToString();
#endregion
_lmSystemLogEntity.SortField = gridViewCSReviewLmSystemLogList.Attributes["SortExpression"].ToString();
_lmSystemLogEntity.SortType = gridViewCSReviewLmSystemLogList.Attributes["SortDirection"].ToString();
DataSet dsResult = new DataSet();
if (ViewState["orderXPaymentCode"].ToString() != "" && ViewState["orderXPaymentCode"].ToString() == "QuFen")
{
//dsResult = LmSystemLogBP.order_XPayment_ReviewLmOrderLogExport(_lmSystemLogEntity).QueryResult;
}
else if (ViewState["orderInTheNight"].ToString() != "" && ViewState["orderInTheNight"].ToString() == "CKIN")
{
//dsResult = LmSystemLogBP.order_InTheNight_ReviewLmOrderLogExport(_lmSystemLogEntity).QueryResult;
}
else if (ViewState["Rests"].ToString() != "" && ViewState["Rests"].ToString() == "Rests")
{
//dsResult = LmSystemLogBP.ExportLmOrderSelectByRests(_lmSystemLogEntity).QueryResult;//其他 排除已存在的渠道
}
else
{
dsResult = OrderSearchBP.ExportOrderListSelect(_lmSystemLogEntity).QueryResult;
}
if (dsResult.Tables.Count == 0 && dsResult.Tables[0].Rows.Count == 0)
{
messageContent.InnerHtml = GetLocalResourceObject("WarningMessage").ToString();
return;
}
if (dsResult.Tables.Count > 0 && dsResult.Tables[0].Rows.Count > 0)
{
//for (int i = 0; i < dsResult.Tables[0].Rows.Count; i++)
for (int i = dsResult.Tables[0].Rows.Count - 1; i >= 0; i--)
{
if (dsResult.Tables[0].Rows[i]["LOGIN_MOBILE"].ToString() == "" && (dsResult.Tables[0].Rows[i]["ORDER_CHANNEL"].ToString() == "HOTELVP" || dsResult.Tables[0].Rows[i]["ORDER_CHANNEL"].ToString() == "HOTELVPPRO" || dsResult.Tables[0].Rows[i]["ORDER_CHANNEL"].ToString() == "GETAROOM"))
{
dsResult.Tables[0].Rows[i]["LOGIN_MOBILE"] = "游客";
//.........这里部分代码省略.........
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:101,代码来源:LmOrderLogPage.aspx.cs
示例17: btnExport_Click
//导出Excel文件
protected void btnExport_Click(object sender, EventArgs e)
{
if (gridViewCSReviewLmSystemLogList.Rows.Count == 0)
{
messageContent.InnerHtml = GetLocalResourceObject("RowsEmptyMessage").ToString();
return;
}
LmSystemLogEntity _lmSystemLogEntity = new LmSystemLogEntity();
CommonEntity _commonEntity = new CommonEntity();
_lmSystemLogEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
_lmSystemLogEntity.LogMessages.Userid = UserSession.Current.UserAccount;
_lmSystemLogEntity.LogMessages.Username = UserSession.Current.UserDspName;
_lmSystemLogEntity.LogMessages.IpAddress = UserSession.Current.UserIP;
chartData = "[";
chartName = "[";
DateTime dateTemp;
for (int i = 0; i < gridViewCSReviewLmSystemLogList.Rows.Count; i++)
{
_lmSystemLogEntity.FogOrderID = gridViewCSReviewLmSystemLogList.Rows[i].Cells[2].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.Mobile = gridViewCSReviewLmSystemLogList.Rows[i].Cells[3].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.CityID = gridViewCSReviewLmSystemLogList.Rows[i].Cells[4].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.HotelID = gridViewCSReviewLmSystemLogList.Rows[i].Cells[5].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.StartDTime = gridViewCSReviewLmSystemLogList.Rows[i].Cells[6].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.EndDTime = gridViewCSReviewLmSystemLogList.Rows[i].Cells[7].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.InStart = gridViewCSReviewLmSystemLogList.Rows[i].Cells[8].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.InEnd = gridViewCSReviewLmSystemLogList.Rows[i].Cells[9].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.PayCode = gridViewCSReviewLmSystemLogList.Rows[i].Cells[10].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.BookStatus = gridViewCSReviewLmSystemLogList.Rows[i].Cells[11].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.HotelComfirm = gridViewCSReviewLmSystemLogList.Rows[i].Cells[12].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.PayStatus = gridViewCSReviewLmSystemLogList.Rows[i].Cells[13].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.Aprove = gridViewCSReviewLmSystemLogList.Rows[i].Cells[14].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.Ticket = gridViewCSReviewLmSystemLogList.Rows[i].Cells[15].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.PlatForm = gridViewCSReviewLmSystemLogList.Rows[i].Cells[16].Text.ToString().Trim().Replace("amp;", "").Replace(" ", "");
_lmSystemLogEntity.ShowType = ddpTimeSpace.SelectedValue.
|
请发表评论