public string getEventTotalInfo() { var loggingSessionInfo = Default.GetLjLoggingSession(); //根据客户标识获取连接字符串 qianzhi 2013-07-30 if (!string.IsNullOrEmpty(Request["customerId"])) { loggingSessionInfo = Default.GetBSLoggingSession(Request["customerId"].Trim(), ""); } string content = string.Empty; GetResponseParams <EventTotalInfo> response = new GetResponseParams <EventTotalInfo>(); response.Code = "200"; response.Description = "操作成功"; try { string WeiXinId = Request["WeiXinId"].ToString().Trim(); string EventId = Request["EventId"].ToString().Trim(); LEventsEntity eventInfo = new LEventsEntity(); LEventsBLL inoutServer = new LEventsBLL(loggingSessionInfo); string strError = string.Empty; eventInfo = inoutServer.GetEventTotalInfo(WeiXinId, EventId, loggingSessionInfo, out strError); if (eventInfo == null) { response.Code = "201"; response.Description = strError; } else { EventTotalInfo eventTotalInfo = new EventTotalInfo(); eventTotalInfo.hasOrderCount = eventInfo.hasOrderCount; eventTotalInfo.hasPayCount = eventInfo.hasPayCount; eventTotalInfo.hasSalesAmount = eventInfo.hasSalesAmount; eventTotalInfo.hasVipCount = eventInfo.hasVipCount; eventTotalInfo.newVipCount = eventInfo.newVipCount; response.Params = eventTotalInfo; } } catch (Exception ex) { response.Code = "201"; response.Description = "失败" + ex.ToString(); } content = string.Format("{{\"Description\":\"{2}\",\"Code\":\"{1}\",\"Vip\":{0}}}", response.Params.ToJSON(), response.Code, response.Description); return(content); }