public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; //获取客户端使用的http数据传输方式 string Method = context.Request.HttpMethod; if (Method == "post" || Method == "POST") { context.Response.Cache.SetNoStore(); //标题 string title = context.Request.Form["title"]; //消息内容 string content = context.Request.Form["content"]; //消息发送时间 string time = context.Request.Form["time"]; //群号 string send_qg = context.Request.Form["send_qg"]; //Q号 string send_qu = context.Request.Form["send_qu"]; string from_u = context.Request.Form["from_u"]; EyouSoft.Model.CommunityStructure.MQQGroupMessageInfo messageinfo = new EyouSoft.Model.CommunityStructure.MQQGroupMessageInfo(); messageinfo.Title = title; messageinfo.Content = content; messageinfo.QMTime = time; messageinfo.QGID = send_qg; messageinfo.QUID = send_qu; messageinfo.IssueTime = DateTime.Now; messageinfo.Status = EyouSoft.Model.CommunityStructure.QQGroupMessageStatus.未激活; messageinfo.FUID = from_u; try { //失败 or 成功 int result = new EyouSoft.BLL.CommunityStructure.ExchangeList().QG_InsertQQGroupMessage(messageinfo); if (result == 1) { context.Response.Write("{\"retcode\":" + 0 + ",\"sid\":\"" + messageinfo.MessageId + "\"}"); } else { context.Response.Write("{\"retcode\":-3,\"sid\":\"failure\"}"); } } catch { context.Response.Write("{\"retcode\":-2,\"sid\":\"failure\"}"); } } else { context.Response.Write("{\"retcode\":\"-1\",\"sid\":\"failure\"}"); } }
protected void BindInitPage() { CurrencyPage = Utils.GetInt(Request.QueryString["Page"], 1); EyouSoft.Model.CommunityStructure.SearchInfo Searchinfo = new EyouSoft.Model.CommunityStructure.SearchInfo(); Searchinfo.ExchangeTitle = Utils.GetQueryStringValue("KeyWord"); Searchinfo.OfferId = Utils.GetQueryStringValue("messageID"); Searchinfo.ExchangeCategory = EyouSoft.Model.CommunityStructure.ExchangeCategory.QGroup; System.Collections.Generic.IList <EyouSoft.Model.CommunityStructure.ExchangeList> List = new EyouSoft.BLL.CommunityStructure.ExchangeList().GetList(intPageSize, CurrencyPage, ref intRecordCount, Searchinfo); if (List != null && List.Count > 0) { this.rptSupplierList.DataSource = List; this.rptSupplierList.DataBind(); //绑定分页控件 this.ExportPageInfo.intPageSize = intPageSize; this.ExportPageInfo.intRecordCount = intRecordCount; this.ExportPageInfo.CurrencyPage = CurrencyPage; this.ExportPageInfo.CurrencyPageCssClass = "RedFnt"; this.ExportPageInfo.UrlParams = Request.QueryString; this.ExportPageInfo.PageLinkURL = "/SupplierManage/QInformationManager.aspx?"; this.ExportPageInfo.LinkType = 3; } else { this.trNoData.Visible = true; this.ExportPageInfo.Visible = false; } if (List != null) { List.Clear(); } List = null; }