protected void Page_Load(object sender, EventArgs e)
        {
            if (function.isAjax())
            {
                string result = "", action = Request.Form["action"];
                int    appid = DataConverter.CLng(Request.Form["appid"]);
                api = WxAPI.Code_Get(appid);
                switch (action)
                {
                case "del":
                    result = api.DelWxMaterial(Request.Form["media_id"], Request.Form["type"]);
                    break;

                default:
                    break;
                }
                Response.Write(result); Response.Flush(); Response.End();
            }
            if (AppId > 0)
            {
                api = WxAPI.Code_Get(AppId);
            }
            if (!IsPostBack)
            {
                DataTable dt = appBll.Sel();
                WxApp_RPT.DataSource = dt;
                WxApp_RPT.DataBind();
                Datas_Hid.Value = GetConfigData(dt);
                Call.SetBreadCrumb(Master, "<li><a href='" + customPath2 + "Main.aspx'>工作台</a></li><li><a href='" + customPath2 + "WeiXin/WxAppManage.aspx'>公众号管理</a></li><li class='active'>素材管理 [<a href='MsgsSend.aspx?action=add&appid=" + AppId + "'>添加素材</a>]</li>");
            }
        }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         BindWX_DP.DataSource = wxBll.Sel();
         BindWX_DP.DataBind();
         BindWX_DP.Items.Insert(0, "未绑定微信");
         TlpView_Tlp.DataSource = styleBll.Sel();
         TlpView_Tlp.DataBind();
         if (Mid > 0)
         {
             M_CommonData storeMod = conBll.SelReturnModel(Mid);
             UserShopName_T.Text = storeMod.Title;
             DataTable condt = conBll.GetContent(Mid);
             ModelHtml.Text = mfbll.InputallHtml(storeMod.ModelID, 0, new ModelConfig()
             {
                 ValueDT = condt
             });
             TlpView_Tlp.SelectedID  = storeMod.DefaultSkins.ToString();
             UserName_T.Text         = storeMod.Inputer;
             UserName_H.Value        = storeMod.SuccessfulUserID.ToString();
             BindWX_DP.SelectedValue = storeMod.SpecialID;
         }
         else
         {
             DataTable dt = modBll.SelByType("6");
             if (dt.Rows.Count < 1)
             {
                 function.WriteErrMsg("请先创建店铺申请模型");
             }
             ModelHtml.Text = mfbll.InputallHtml(Convert.ToInt32(dt.Rows[0]["ModelID"]), 0, new ModelConfig());
         }
         Call.SetBreadCrumb(Master, "<li><a href='" + customPath2 + "Main.aspx'>工作台</a></li><li><a href='../Shop/ProductManage.aspx'>商城管理</a></li><li><a href='StoreManage.aspx'>店铺管理</a></li><li class='active'>店铺信息</li>");
     }
 }
        public void MyBind()
        {
            WxApp_RPT.DataSource = appBll.Sel();
            WxApp_RPT.DataBind();
            List <M_WxGroupInfo> groups = api.GetWxGroup();

            foreach (M_WxGroupInfo item in groups)
            {
                ListItem li = new ListItem(item.name, item.id.ToString());
                WxGroup_D.Items.Add(li);
            }
            WxGroup_D.Items.Insert(0, "所有分组");
        }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     api = WxAPI.Code_Get(AppID);
     if (!IsPostBack)
     {
         CheckSend();
         WxApp_RPT.DataSource = appbll.Sel();
         WxApp_RPT.DataBind();
         string alias = " [公众号:" + api.AppId.Alias + "]";
         if (!string.IsNullOrEmpty(Action) && Action.Equals("add"))
         {
             Save_Btn.Visible  = false;
             SaveNew_B.Visible = true;
         }
         if (!string.IsNullOrEmpty(MediaID))
         {
             MyBind();
         }
         Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='" + CustomerPageAction.customPath2 + "WeiXin/WxMaterial.aspx?type=news'>素材管理</a></li><li class='active'>图文群发" + api.AppId.Alias + "</li>");
     }
 }
예제 #5
0
 public void MyBind()
 {
     Egv.DataSource = WxBll.Sel();
     Egv.DataBind();
 }
예제 #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     RPT.DataSource = wxBll.Sel();
     RPT.DataBind();
 }