MxWeiXinPF.Web/admin/message/AddMessage.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using MxWeiXinPF.Common;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MxWeiXinPF.Web.admin.message
{
public partial class AddMessage : Web.UI.ManagePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Model.wx_userweixin weixin = GetWeiXinCode();
int wid = weixin.id;
BLL.wx_message_setting gbll = new BLL.wx_message_setting();
DataSet dr= gbll.GetList(wid);
if (dr.Tables[0].Rows.Count > 0)
{
this.title.Text = dr.Tables[0].Rows[0]["title"].ToString();
// this.adminOpenid.Text = dr.Tables[0].Rows[0]["adminOpenid"].ToString();
this.picurl.Text = dr.Tables[0].Rows[0]["picUrl"].ToString();
this.needSH.SelectedValue = dr.Tables[0].Rows[0]["needSH"].ToString();
hidId.Value = dr.Tables[0].Rows[0]["id"].ToString();
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Model.wx_userweixin weixin = GetWeiXinCode();
int wid = weixin.id;
BLL.wx_message_setting settingBll = new BLL.wx_message_setting();
int id = MyCommFun.Obj2Int(hidId.Value);
//DataSet dr = gbll.GetList(wid);
string title = this.title.Text.ToString();
string adminOpenid = "";
string picurl = this.picurl.Text.ToString();
bool needSH = Convert.ToBoolean(this.needSH.SelectedValue);
if (id > 0)
{
//update
Model.wx_message_setting setting = settingBll.GetModel(id);
setting.wid = wid;
setting.title = title;
setting.adminOpenid = adminOpenid;
setting.picUrl = picurl;
setting.needSH = needSH;
settingBll.Update(setting);
后面还有 23 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
