MxWeiXinPF.Web/admin/templates/template_bottom_list.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;
using MxWeiXinPF.BLL;

namespace MxWeiXinPF.Web.admin.templates
{
    public partial class template_bottom_list : Web.UI.ManagePage
    {
        wx_templates tBll = new wx_templates();
        wx_wsite_modulebase mBll = new wx_wsite_modulebase();
        wx_templates_wcode twBll = new wx_templates_wcode();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Model.wx_userweixin weixin = GetWeiXinCode();
                RptBind(weixin.id);
            }
        }

        #region 数据绑定=================================
        /// <summary>
        /// 绑定模版,颜色
        /// </summary>
        /// <param name="wid"></param>
        private void RptBind(int wid)
        {

            // 底部菜单模版数据绑定
            this.rptList2.DataSource = tBll.GetModelList("typeId=5 order by seq asc");
            this.rptList2.DataBind();

            //绑定当前微帐号选择的底部菜单模版Id 
            IList<Model.wx_templates_wcode> twlist = twBll.GetModelList("wid=" + wid);
            if (twlist != null && twlist.Count() > 0)
            {
                string bmenuTid = twlist[0].bmenuTid.ToString();
                hidWTId.Value = twlist[0].id.ToString();
              
                MessageBox.ResponseScript(this, "$(\"#rad" + bmenuTid + "\").attr(\"checked\",\"checked\"); ");
            }

        }




        #endregion


        //设置操作
        protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e)
后面还有 58 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。