MxWeiXinPF.Web/admin/crm/talk.aspx.cs
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Senparc.Weixin.MP.Entities;
using Senparc.Weixin.MP.CommonAPIs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;
using MxWeiXinPF.WeiXinComm;
using System.Data;
using System.Text;
using Senparc.Weixin.Entities;
namespace MxWeiXinPF.Web.admin.crm
{
public partial class talk : Web.UI.ManagePage
{
BLL.wx_response_BaseData rcBll = new BLL.wx_response_BaseData();
BLL.wx_crm_users cuBll = new BLL.wx_crm_users();
protected int totalCount;
protected int page;
protected int pageSize;
protected string keywords = string.Empty;
protected int uid;
protected void Page_Load(object sender, EventArgs e)
{
uid = MXRequest.GetQueryInt("id");
if (!IsPostBack)
{
this.page = MXRequest.GetQueryInt("page", 1); //获取分页
this.keywords = MXRequest.GetQueryString("keywords");//获取查询关键字
this.txtKeywords.Text = this.keywords;
this.pageSize = GetPageSize(10); //分页每页数量
MessageBox.ResponseScript(this, "$(\".wenben\").show();");
ShowInfo();
}
}
#region 赋值操作=================================
private void ShowInfo()
{
Model.wx_userweixin weixin = GetWeiXinCode(); //当前微信用户
Model.wx_crm_users cuModel = cuBll.GetModel(uid);//当前粉丝
int wid = weixin.id;
string openid = cuModel.openid;
DataSet ds = rcBll.GetList(this.pageSize, this.page, " id>0 " + CombSqlTxt(this.keywords, wid, openid), "createDate desc,id asc", out totalCount);
this.rptList.DataSource = ds;
this.rptList.DataBind();
//绑定页码
txtPageNum.Text = this.pageSize.ToString();
string pageUrl = Utils.CombUrlTxt("talk.aspx", "keywords={0}&page={1}&id={2}",
this.keywords, "__id__", uid.ToString());
PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
}
#endregion
#region 组合SQL查询语句==========================
protected string CombSqlTxt(string _keywords, int wid, string openid)
后面还有 309 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
