示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = AXRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == AXEnums.ActionEnum.Edit.ToString())
            {
                this.action = AXEnums.ActionEnum.Edit.ToString();//修改类型
                if (!int.TryParse(Request.QueryString["id"] as string, out this.id))
                {
                    JscriptMsg("传输参数不正确!", "back", "Error");
                    return;
                }
                if (!new BLL.manager().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("manager_list", AXEnums.ActionEnum.View.ToString()); //检查权限
                Model.manager model = GetAdminInfo();                              //取得管理员信息
                RoleBind(ddlRoleId, model.role_type);
                if (action == AXEnums.ActionEnum.Edit.ToString())                  //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = AXRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == AXEnums.ActionEnum.Edit.ToString())
            {
                this.action = AXEnums.ActionEnum.Edit.ToString();//修改类型
                this.id     = AXRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back", "Error");
                    return;
                }
                if (!new BLL.article_attribute_field().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("site_channel_field", AXEnums.ActionEnum.View.ToString());                                                                          //检查权限
                dlIsPassWord.Visible = dlIsHtml.Visible = dlEditorType.Visible = dlDataType.Visible
                                                                                     = dlDataLength.Visible = dlDataPlace.Visible = dlItemOption.Visible = false; //隐藏相应控件
                if (action == AXEnums.ActionEnum.Edit.ToString())                                                                                                 //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
示例#3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string _action = AXRequest.GetQueryString("action");

        this.status      = AXRequest.GetQueryInt("status");
        this.category_id = AXRequest.GetQueryInt("category_id");
        this.keywords    = AXRequest.GetQueryString("keywords");
        this.page        = AXRequest.GetQueryInt("page", 1);
        if (!string.IsNullOrEmpty(_action) && _action == "Edit")
        {
            this.action = "Edit";//修改类型
            if (!int.TryParse(Request.QueryString["id"] as string, out this.id))
            {
                JscriptMsg(this.Page, "传输参数不正确!", "back", "Error");
                return;
            }
        }
        if (!Page.IsPostBack)
        {
            ChkAdminLevel(this.Page, 21, "View"); //检查权限
            TreeBind();                           //绑定礼品
            if (action == "Edit")                 //修改
            {
                ShowInfo(this.id);
            }
        }
    }
示例#4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //判断是否登录
        if (!mym.IsAdminLogin())
        {
            Response.Write("<script>parent.location.href='../login.aspx'</script>");
            Response.End();
        }
        //判断权限
        tbl_admin_role_value myrv = new tbl_admin_role_value();
        int role_id = Convert.ToInt32(Session["RoleID"]);
        int nav_id  = 22;

        if (!myrv.QXExists(role_id, nav_id))
        {
            Response.Redirect("../error.html");
            Response.End();
        }
        order_no = AXRequest.GetQueryString("order_no");
        if (order_no == "")
        {
            mym.JscriptMsg(this.Page, "传输参数不正确!", "back", "Error");
            return;
        }
        if (!new tbl_orders().Exists(order_no))
        {
            mym.JscriptMsg(this.Page, "订单不存在或已被删除!", "back", "Error");
            return;
        }
        if (!Page.IsPostBack)
        {
            ShowInfo(order_no);
        }
    }
示例#5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = AXRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == AXEnums.ActionEnum.Edit.ToString())
            {
                this.action = AXEnums.ActionEnum.Edit.ToString();//修改类型
                this.id     = AXRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back", "Error");
                    return;
                }
                if (!new BLL.article_attribute_field().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            else
            {
                action = _action;
            }

            if (!Page.IsPostBack)
            {
                if (action == AXEnums.ActionEnum.Edit.ToString()) //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
示例#6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //判断是否登录
        if (!mym.IsAdminLogin())
        {
            Response.Write("<script>parent.location.href='../index.aspx'</script>");
            Response.End();
        }
        ps_manager_role_value myrv = new ps_manager_role_value();
        int role_id = Convert.ToInt32(Session["RoleID"]);
        int nav_id  = 28;

        if (!myrv.QXExists(role_id, nav_id))
        {
            Response.Redirect("../error.html");
            Response.End();
        }
        if (!Page.IsPostBack)
        {
            this.status      = AXRequest.GetQueryInt("status");
            this.category_id = AXRequest.GetQueryInt("category_id");
            this.keywords    = AXRequest.GetQueryString("keywords");
            binddr();
        }

        Response.Clear();
        Response.Buffer = true;
        Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode("商家信息表" + DateTime.Now.ToString("d") + ".xls", Encoding.UTF8).ToString());
        Response.ContentEncoding = System.Text.Encoding.UTF8;
        Response.ContentType     = "application/vnd.ms-excel";
        this.EnableViewState     = false;
    }
示例#7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string _action = AXRequest.GetQueryString("action");

        if (!string.IsNullOrEmpty(_action) && _action == "Edit")
        {
            this.action = "Edit";//修改类型
            if (!int.TryParse(Request.QueryString["id"] as string, out this.id))
            {
                JscriptMsg(this.Page, "传输参数不正确!", "back", "Error");
                return;
            }
        }

        if (!Page.IsPostBack)
        {
            ChkAdminLevel(this.Page, 50, "View"); //检查权限
            ActionTypeBind();                     //绑定操作权限类型
            TreeBind();                           //绑定导航菜单
            if (action == "Edit")                 //修改
            {
                ShowInfo(this.id);
            }
        }
    }
示例#8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = AXRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == AXEnums.ActionEnum.Edit.ToString())
            {
                this.action = AXEnums.ActionEnum.Edit.ToString();//修改类型
                this.id     = AXRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back", "Error");
                    return;
                }
                if (!new BLL.channel_category().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("site_channel_category", AXEnums.ActionEnum.View.ToString()); //检查权限
                if (action == AXEnums.ActionEnum.Edit.ToString())                           //修改
                {
                    ShowInfo(this.id);
                }
                else
                {
                    txtTitle.Attributes.Add("onBlur", "change2cn(this.value, this.form.txtBuildPath)");
                    txtBuildPath.Attributes.Add("ajaxurl", "../../tools/admin_ajax.ashx?action=channel_category_validate");
                }
            }
        }
示例#9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = AXRequest.GetQueryString("action");

            this.id = AXRequest.GetQueryInt("id");

            if (!string.IsNullOrEmpty(_action) && _action == AXEnums.ActionEnum.Edit.ToString())
            {
                this.action = AXEnums.ActionEnum.Edit.ToString();//修改类型
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back", "Error");
                    return;
                }
                if (!new BLL.manager_role().Exists(this.id))
                {
                    JscriptMsg("角色不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("manager_role", AXEnums.ActionEnum.View.ToString()); //检查权限
                RoleTypeBind();                                                    //绑定角色类型
                NavBind();                                                         //绑定导航
                if (action == AXEnums.ActionEnum.Edit.ToString())                  //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
示例#10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = AXRequest.GetQueryString("action");

            // 下载于www.51aspx.com
            if (!string.IsNullOrEmpty(_action) && _action == AXEnums.ActionEnum.Edit.ToString())
            {
                this.action = AXEnums.ActionEnum.Edit.ToString();//修改类型
                this.id     = AXRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back", "Error");
                    return;
                }
                if (!new BLL.sms_template().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("user_sms_template", AXEnums.ActionEnum.View.ToString()); //检查权限
                if (action == AXEnums.ActionEnum.Edit.ToString())                       //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
示例#11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.channel_id  = AXRequest.GetQueryInt("channel_id");
            this.category_id = AXRequest.GetQueryInt("category_id");
            this.keywords    = AXRequest.GetQueryString("keywords");
            this.action      = AXRequest.GetQueryString("action");
            this.id          = AXRequest.GetQueryInt("id");

            if (channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back", "Error");
                return;
            }
            this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称
            this.pageSize     = GetPageSize(10);                                   //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("channel_" + this.channel_name + "_list", AXEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind(this.channel_id);                                                                   //绑定类别
                RptBind(this.channel_id, this.category_id, "id>0" + CombSqlTxt(this.keywords, this.property), "sort_id asc,add_time desc,id desc");
                ShowInfo(this.id);
                if (action == "add")
                {
                    this.rptList1.Visible = false;
                    this.btn.Visible      = true;
                    goods.Style.Add("Display", "block");
                    foot.Style.Add("Display", "none");
                    dll.Style.Add("Display", "none");
                }
            }
        }
示例#12
0
        private void UpLoadFile(HttpContext context)
        {
            string         _delfile     = AXRequest.GetString("DelFilePath");
            HttpPostedFile _upfile      = context.Request.Files["Filedata"];
            bool           _iswater     = false; //默认不打水印
            bool           _isthumbnail = false; //默认不生成缩略图

            if (AXRequest.GetQueryString("IsWater") == "1")
            {
                _iswater = true;
            }
            if (AXRequest.GetQueryString("IsThumbnail") == "1")
            {
                _isthumbnail = true;
            }
            if (_upfile == null)
            {
                context.Response.Write("{\"status\": 0, \"msg\": \"请选择要上传文件!\"}");
                return;
            }
            UpLoad upFiles = new UpLoad();
            string msg     = upFiles.fileSaveAs(_upfile, _isthumbnail, _iswater);

            //删除已存在的旧文件
            if (!string.IsNullOrEmpty(_delfile))
            {
                Utils.DeleteUpFile(_delfile);
            }
            //返回成功信息
            context.Response.Write(msg);
            context.Response.End();
        }
示例#13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = AXRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == AXEnums.ActionEnum.Edit.ToString())
            {
                this.action  = AXEnums.ActionEnum.Edit.ToString();//修改类型
                this.urlName = AXRequest.GetQueryString("name");
                if (string.IsNullOrEmpty(this.urlName))
                {
                    JscriptMsg("传输参数不正确!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("site_url_rewrite", AXEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind();                                                            //绑定频道
                if (action == AXEnums.ActionEnum.Edit.ToString())                      //修改
                {
                    ShowInfo(urlName);
                }
                else
                {
                    txtName.Attributes.Add("ajaxurl", "../../tools/admin_ajax.ashx?action=urlrewrite_name_validate");
                }
            }
        }
示例#14
0
 /// <summary>
 /// 重写虚方法,此方法将在Init事件前执行
 /// </summary>
 protected override void ShowPage()
 {
     action   = AXRequest.GetQueryString("action");
     username = AXRequest.GetQueryString("username");
     username = Utils.DropHTML(username);
     //检查是否关闭会员注册服务
     if (action == "" && uconfig.regstatus == 0)
     {
         HttpContext.Current.Response.Redirect(linkurl("register") + "?action=close");
         return;
     }
     //Email验证
     if (action == "checkmail")
     {
         string          strcode = AXRequest.GetQueryString("strcode");
         BLL.user_code   bll     = new BLL.user_code();
         Model.user_code model   = bll.GetModel(strcode);
         if (model == null) //返回出错
         {
             HttpContext.Current.Response.Redirect(linkurl("register") + "?action=checkerror");
             return;
         }
         //修改申请码状态
         model.status = 1;
         bll.Update(model);
         //修改用户状态
         new BLL.users().UpdateField(model.user_id, "status=0");
     }
 }
示例#15
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = AXRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == AXEnums.ActionEnum.Edit.ToString())
            {
                this.action = AXEnums.ActionEnum.Edit.ToString();//修改类型
                this.id     = AXRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back", "Error");
                    return;
                }
                if (!new BLL.users().Exists(this.id))
                {
                    JscriptMsg("信息不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("user_list", AXEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind("is_lock=0");                                          //绑定类别
                ExpBind("is_lock=0");                                           //绑定配送小区
                if (action == AXEnums.ActionEnum.Edit.ToString())               //修改
                {
                    ShowInfo(this.id);
                }
            }
        }
示例#16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //判断是否登录
        if (!mym.IsAdminLogin())
        {
            Response.Write("<script>parent.location.href='../index.aspx'</script>");
            Response.End();
        }
        //判断权限
        ps_manager_role_value myrv = new ps_manager_role_value();
        int role_id = Convert.ToInt32(Session["RoleID"]);
        int nav_id  = 21;

        if (!myrv.QXExists(role_id, nav_id))
        {
            Response.Redirect("../error.html");
            Response.End();
        }
        this.product_category_id = AXRequest.GetQueryInt("product_category_id");

        this.note_no = AXRequest.GetQueryString("note_no");

        this.pageSize = GetPageSize(20); //每页数量

        if (!Page.IsPostBack)
        {
            ZYBind();//绑定商品类别
            RptBind("id>0" + CombSqlTxt(this.product_category_id, this.note_no), "add_time desc,id desc");
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        this.depot_category_id = AXRequest.GetQueryInt("depot_category_id");
        this.depot_id          = AXRequest.GetQueryInt("depot_id");
        this.status            = AXRequest.GetQueryInt("status");
        this.note_no           = AXRequest.GetQueryString("note_no");
        if (AXRequest.GetQueryString("start_time") == "")
        {
            //this.start_time = DateTime.Now.ToString("yyyy-MM-01");
        }
        else
        {
            this.start_time = AXRequest.GetQueryString("start_time");
        }
        if (AXRequest.GetQueryString("stop_time") == "")
        {
            this.stop_time = DateTime.Now.ToString("yyyy-MM-dd");
        }
        else
        {
            this.stop_time = AXRequest.GetQueryString("stop_time");
        }

        this.pageSize = GetPageSize(10); //每页数量

        if (!Page.IsPostBack)
        {
            ChkAdminLevel(this.Page, 39, "View"); //检查权限
            DQBind();                             //绑定发货仓库
            SJBind();                             //绑定下单商家
            RptBind("id>0 " + CombSqlTxt(this.depot_category_id, this.depot_id, this.status, this.note_no, this.start_time, this.stop_time), "add_time desc,id desc");
        }
    }
示例#18
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //判断是否登录
        if (!mym.IsAdminLogin())
        {
            Response.Write("<script>parent.location.href='../login.aspx'</script>");
            Response.End();
        }
        //判断权限
        tbl_admin_role_value myrv = new tbl_admin_role_value();
        int role_id = Convert.ToInt32(Session["RoleID"]);
        int nav_id  = 85;

        if (!myrv.QXExists(role_id, nav_id))
        {
            Response.Redirect("../error.html");
            Response.End();
        }
        this.keywords = AXRequest.GetQueryString("keywords");
        this.pageSize = GetPageSize(10); //每页数量
        this.page     = AXRequest.GetQueryInt("page", 1);
        if (!Page.IsPostBack)
        {
            RptBind(CombSqlTxt(this.keywords), "sort_id asc,id desc");
        }
    }
示例#19
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //判断是否登录
        if (!mym.IsAdminLogin())
        {
            Response.Write("<script>parent.location.href='../login.aspx'</script>");
            Response.End();
        }
        //判断权限
        tbl_admin_role_value myrv = new tbl_admin_role_value();
        int role_id = Convert.ToInt32(Session["RoleID"]);
        int nav_id  = 96;

        if (!myrv.QXExists(role_id, nav_id))
        {
            Response.Redirect("../error.html");
            Response.End();
        }
        this.keywords = AXRequest.GetQueryString("keywords");
        //this.pageSize = GetPageSize(10); //每页数量
        this.page = AXRequest.GetQueryInt("page", 1);
        if (!Page.IsPostBack)
        {
            RptBind("1=1", "id asc");
            //this.TextBox8.Items.Clear();
            //this.TextBox8.Items.Add(new ListItem("请选择天数...", "0"));
            //this.TextBox8.Items.Add(new ListItem("8天", "7"));
            //this.TextBox8.Items.Add(new ListItem("11天", "10"));
            //this.TextBox8.Items.Add(new ListItem("13天", "12"));
            //this.TextBox8.Items.Add(new ListItem("16天", "15"));
            //ShowInfo(1);
        }
    }
示例#20
0
        /// <summary>
        /// 生成静态文件方法
        /// </summary>
        /// <param name="context"></param>
        public void handleHtml(HttpContext context)
        {
            string lang          = AXRequest.GetQueryString("lang");
            string aspx_filename = AXRequest.GetQueryString("aspx_filename");
            string catalogue     = AXRequest.GetQueryString("catalogue");

            CreateIndexHtml(lang, aspx_filename, catalogue);
        }
示例#21
0
 //页面加载
 protected void Page_Load(object sender, EventArgs e)
 {
     //取到搜索关键词
     this.keywords = AXRequest.GetQueryString("keywords");
     if (!Page.IsPostBack)
     {
         ChkAdminLevel("user_group", AXEnums.ActionEnum.View.ToString()); //检查权限
         RptBind("id>0" + CombSqlTxt(this.keywords));
     }
 }
示例#22
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.keywords = AXRequest.GetQueryString("keywords");
     if (!Page.IsPostBack)
     {
         ChkAdminLevel("manager_role", AXEnums.ActionEnum.View.ToString()); //检查权限
         Model.manager model = GetAdminInfo();                              //取得当前管理员信息
         RptBind("role_type>=" + model.role_type + CombSqlTxt(this.keywords));
     }
 }
示例#23
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //判断是否登录
        if (!mym.IsAdminLogin())
        {
            Response.Write("<script>parent.location.href='../index.aspx'</script>");
            Response.End();
        }
        //判断权限
        ps_manager_role_value myrv = new ps_manager_role_value();
        int role_id = Convert.ToInt32(Session["RoleID"]);
        int nav_id  = 29;

        if (!myrv.QXExists(role_id, nav_id))
        {
            Response.Redirect("../error.html");
            Response.End();
        }
        string _action = AXRequest.GetQueryString("action");

        this.page = AXRequest.GetQueryInt("page", 1);
        if (!string.IsNullOrEmpty(_action) && _action == "Edit")
        {
            this.action = "Edit";//修改类型
            if (!int.TryParse(Request.QueryString["id"] as string, out this.id))
            {
                mym.JscriptMsg(this.Page, "传输参数不正确!", "back", "Error");
                return;
            }
        }
        if (action == "Edit") //修改
        {
            txtUserName.Attributes.Remove("ajaxurl");
        }
        if (!Page.IsPostBack)
        {
            RoleBind(ddlRoleId, Convert.ToInt32(Session["RoleID"])); //绑定角色

            if (Convert.ToInt32(Session["RoleID"]) == 4)             //店长用户权限
            {
                this.ddlRoleId.SelectedValue = "5";
                role.Visible = false;
                bm.Visible   = false;
                md.Visible   = false;
                CategoryBind(Convert.ToInt32(Session["DepotCatID"])); //绑定地区
                this.ddlCategoryId.SelectedValue = Session["DepotCatID"].ToString();
                DepotBind(Convert.ToInt32(Session["DepotCatID"]));    //绑定商家
                this.ddlDepotId.SelectedValue = Session["DepotID"].ToString();
            }
            if (action == "Edit") //修改
            {
                ShowInfo(this.id);
            }
        }
    }
示例#24
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //取得返回参数
            string state = AXRequest.GetQueryString("state");
            string code  = AXRequest.GetQueryString("code");

            string access_token = string.Empty;
            string expires_in   = string.Empty;
            string client_id    = string.Empty;
            string openid       = string.Empty;

            if (Session["oauth_state"] == null || Session["oauth_state"].ToString() == "" || state != Session["oauth_state"].ToString())
            {
                Response.Write("出错啦,state未初始化!");
                return;
            }

            //第一步:获取Access Token
            Dictionary <string, object> dic1 = qq_helper.get_access_token(code, state);

            if (dic1 == null || !dic1.ContainsKey("access_token"))
            {
                Response.Write("错误代码:,无法获取Access Token,请检查App Key是否正确!");
                return;
            }
            access_token = dic1["access_token"].ToString();
            expires_in   = dic1["expires_in"].ToString();

            //第二步:通过Access Token来获取用户的OpenID
            Dictionary <string, object> dic2 = qq_helper.get_open_id(access_token);

            if (dic2 == null || !dic2.ContainsKey("openid"))
            {
                if (dic2.ContainsKey("error"))
                {
                    Response.Write("error:" + dic2["error"] + ",error_description:" + dic2["error_description"]);
                }
                else
                {
                    Response.Write("出错啦,无法获取用户授权Openid!");
                }
                return;
            }
            client_id = dic2["client_id"].ToString();
            openid    = dic2["openid"].ToString();
            //储存获取数据用到的信息
            Session["oauth_name"]         = "qq";
            Session["oauth_access_token"] = access_token;
            Session["oauth_openid"]       = openid;

            //第三步:跳转到指定页面
            Response.Redirect(new Web.UI.BasePage().linkurl("oauth_login"));
            //Response.Write("\access_token:" + access_token + ",openid:" + openid);
            return;
        }
示例#25
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //判断是否登录
        if (!mym.IsAdminLogin())
        {
            Response.Write("<script>parent.location.href='../index.aspx'</script>");
            Response.End();
        }
        //判断权限
        ps_manager_role_value myrv = new ps_manager_role_value();
        int role_id = Convert.ToInt32(Session["RoleID"]);
        int nav_id  = 29;

        if (!myrv.QXExists(role_id, nav_id))
        {
            Response.Redirect("../error.html");
            Response.End();
        }
        this.status      = AXRequest.GetQueryInt("status");
        this.category_id = AXRequest.GetQueryInt("category_id");
        this.depot_id    = AXRequest.GetQueryInt("depot_id");
        this.role_id     = AXRequest.GetQueryInt("role_id");
        this.keywords    = AXRequest.GetQueryString("keywords");
        this.pageSize    = GetPageSize(10); //每页数量
        this.page        = AXRequest.GetQueryInt("page", 1);

        if (!Page.IsPostBack)
        {
            BMBind(Convert.ToInt32(Session["DepotCatID"]));          //绑定地区
            MDBind(category_id);                                     //绑定商家
            RoleBind(ddlRoleId, Convert.ToInt32(Session["RoleID"])); //绑定角色

            if (Convert.ToInt32(Session["DepotID"]) == 0 && Convert.ToInt32(Session["DepotCatID"]) == 0)
            {
                RptBind("role_id>" + Convert.ToInt32(Session["RoleID"]) + CombSqlTxt(this.status, this.category_id, this.depot_id, this.role_id, this.keywords), "add_time desc,id desc");
            }
            else if (Convert.ToInt32(Session["DepotID"]) == 0 && Convert.ToInt32(Session["DepotCatID"]) > 0)
            {
                this.ddlCategoryId.SelectedValue = Session["DepotCatID"].ToString();
                MDBind(Convert.ToInt32(Session["DepotCatID"])); //绑定商家
                this.category_id = Convert.ToInt32(Session["DepotCatID"]);

                RptBind("role_id>" + Convert.ToInt32(Session["RoleID"]) + " and depot_id<>0 and depot_category_id=" + Convert.ToInt32(Session["DepotCatID"]) + CombSqlTxt(this.status, this.category_id, this.depot_id, this.role_id, this.keywords), "add_time desc,id desc");
            }
            else if (Convert.ToInt32(Session["DepotID"]) > 0 && Convert.ToInt32(Session["DepotCatID"]) > 0)
            {
                this.ddlCategoryId.SelectedValue = Session["DepotCatID"].ToString();
                MDYHBind(Convert.ToInt32(Session["DepotID"])); //绑定商家
                this.ddlDepotId.SelectedValue = Session["DepotID"].ToString();
                this.category_id = Convert.ToInt32(Session["DepotCatID"]);
                this.depot_id    = Convert.ToInt32(Session["DepotID"]);
                RptBind("role_id>" + Convert.ToInt32(Session["RoleID"]) + " and depot_id=" + Convert.ToInt32(Session["DepotID"]) + " and depot_category_id=" + Convert.ToInt32(Session["DepotCatID"]) + CombSqlTxt(this.status, this.category_id, this.depot_id, this.role_id, this.keywords), "add_time desc,id desc");
            }
        }
    }
示例#26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.keywords = AXRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("site_channel_category", AXEnums.ActionEnum.View.ToString()); //检查权限
                RptBind("id>0" + CombSqlTxt(this.keywords), "sort_id asc,id desc");
            }
        }
示例#27
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.keywords = AXRequest.GetQueryString("keywords");
     this.pageSize = GetPageSize(10); //每页数量
     if (!Page.IsPostBack)
     {
         ChkAdminLevel("manager_log", AXEnums.ActionEnum.View.ToString()); //检查权限
         model = GetAdminInfo();                                           //取得当前管理员信息
         RptBind("id>0" + CombSqlTxt(keywords), "add_time desc,id desc");
     }
 }
示例#28
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.keywords = AXRequest.GetQueryString("keywords");
     this.pageSize = GetPageSize(10); //每页数量
     this.page     = AXRequest.GetQueryInt("page", 1);
     if (!Page.IsPostBack)
     {
         ChkAdminLevel(this.Page, 27, "View"); //检查权限
         RptBind(CombSqlTxt(this.keywords), "sort_id asc,id desc");
     }
 }
示例#29
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.keywords = AXRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("order_list", AXEnums.ActionEnum.View.ToString()); //检查权限
                RptBind("status=1" + CombSqlTxt(this.keywords), "add_time desc,id desc");
            }
        }
示例#30
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.note_no  = AXRequest.GetQueryString("note_no");
        this.pageSize = GetPageSize(10); //每页数量

        if (!Page.IsPostBack)
        {
            ChkAdminLevel(this.Page, 40, "View"); //检查权限
            RptBind("id>0 " + CombSqlTxt(this.depot_category_id, this.depot_id, this.status, this.note_no, this.start_time, this.stop_time), "add_time desc,id desc");
        }
    }