Esempio n. 1
0
 /// <summary>
 /// 重写父类的虚方法,此方法将在Init事件前执行
 /// </summary>
 protected override void ShowPage()
 {
     action = AXRequest.GetQueryString("action");
     if (action == "reset")
     {
         string strcode = AXRequest.GetQueryString("code");
         if (strcode != null)
         {
             model = new BLL.user_code().GetModel(strcode);
             if (model == null)
             {
                 HttpContext.Current.Response.Redirect(linkurl("repassword", "error"));
                 return;
             }
         }
     }
 }
Esempio n. 2
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
            JsonData jd = kaixin_helper.get_access_token(code, state);

            if (jd == null)
            {
                Response.Write("出错了,无法获取Access Token,请检查App Key是否正确!");
                return;
            }
            access_token = jd["access_token"].ToString();
            expires_in   = jd["expires_in"].ToString();

            //第二步:通过Access Token来获取用户的ID
            JsonData jd2 = kaixin_helper.get_info(access_token, "uid");

            if (jd2 == null)
            {
                Response.Write("出错啦,无法获取用户授权uid!");
                return;
            }
            openid = jd2["uid"].ToString();
            //储存获取数据用到的信息
            Session["oauth_name"]         = "kaixin";
            Session["oauth_access_token"] = access_token;
            Session["oauth_openid"]       = openid;

            //第三步:跳转到指定页面
            Response.Redirect(new Web.UI.BasePage().linkurl("oauth_login"));
            return;
        }
Esempio n. 3
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  = 22;

        if (!myrv.QXExists(role_id, nav_id))
        {
            Response.Redirect("../error.html");
            Response.End();
        }
        this.depot_category_id = Convert.ToInt32(Session["DepotCatID"]);
        this.depot_id          = Convert.ToInt32(Session["DepotID"]);
        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)
        {
            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");
        }
    }
Esempio n. 4
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 = feixin_helper.get_access_token(code);

            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来获取用户的ID
            Dictionary <string, object> dic2 = feixin_helper.get_info(access_token);

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

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

        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 (!Page.IsPostBack)
        {
            if (action == "Edit") //修改
            {
                QDBind();
                attributebind();
                procityareabind(this.id);
                ShowInfo(this.id);

                Focus myFocus = new Focus();
                myFocus.SetEnterControl(this.txtsalse_price);
                myFocus.SetFocus(txtsalse_price.Page, "txtsalse_price");
            }
        }
    }
Esempio n. 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = AXRequest.GetQueryString("action");

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

            if (this.channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back", "Error");
                return;
            }
            this.channel_name = new BLL.channel().GetChannelName(this.channel_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.article_category().Exists(this.id))
                {
                    JscriptMsg("类别不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("channel_" + this.channel_name + "_category", AXEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind(this.channel_id);                                                                       //绑定类别
                if (action == AXEnums.ActionEnum.Edit.ToString())                                                //修改
                {
                    ShowInfo(this.id);
                }
                else
                {
                    if (this.id > 0)
                    {
                        this.ddlParentId.SelectedValue = this.id.ToString();
                    }
                }
            }
        }
Esempio n. 7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.id = AXRequest.GetQueryInt("id");
     if (id == 0)
     {
         JscriptMsg("传输参数不正确!", "back", "Error");
         return;
     }
     if (!new BLL.article_comment().Exists(this.id))
     {
         JscriptMsg("记录不存在或已删除!", "back", "Error");
         return;
     }
     if (!Page.IsPostBack)
     {
         ShowInfo(this.id);
     }
 }
Esempio n. 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     order_no = AXRequest.GetQueryString("order_no");
     if (order_no == "")
     {
         JscriptMsg("传输参数不正确!", "back", "Error");
         return;
     }
     if (!new BLL.orders().Exists(order_no))
     {
         JscriptMsg("订单不存在或已被删除!", "back", "Error");
         return;
     }
     if (!Page.IsPostBack)
     {
         ShowInfo(order_no);
     }
 }
Esempio n. 9
0
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page = AXRequest.GetQueryInt("page", 1);

        txtNote_no.Text         = this.note_no;
        txtstart_time.Value     = this.start_time;
        txtstop_time.Value      = this.stop_time;
        this.type.SelectedValue = this.cha_type.ToString();

        this.rptList.DataSource = model.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
        this.rptList.DataBind();

        //绑定页码
        txtPageNum.Text = this.pageSize.ToString();
        string pageUrl = Utils.CombUrlTxt("all_supplier.aspx", "start_time={0}&stop_time={1}&note_no={2}&page={3}&type={4}", this.start_time.ToString(), this.stop_time.ToString(), this.note_no, "__id__", this.cha_type.ToString());

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }
Esempio n. 10
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;
            }
            if (string.IsNullOrEmpty(code))
            {
                Response.Write("出错啦,无法获取用户授权信息!");
                return;
            }

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

            if (dic == null || !dic.ContainsKey("access_token"))
            {
                Response.Write("出错了,无法获取Access Token,请检查App Key是否正确!");
                return;
            }

            access_token = dic["access_token"].ToString();
            expires_in   = dic["expires_in"].ToString();
            openid       = dic["taobao_user_id"].ToString();
            //储存获取数据用到的信息
            Session["oauth_name"]         = "taobao";
            Session["oauth_access_token"] = access_token;
            Session["oauth_openid"]       = openid;

            //第二步:跳转到指定页面
            //Response.Write(access_token);
            Response.Redirect(new Web.UI.BasePage().linkurl("oauth_login"));
            return;
        }
Esempio n. 11
0
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page = AXRequest.GetQueryInt("page", 1);
        if (this.huifu_ischeck > 0)
        {
            this.huifu_type.SelectedValue = this.huifu_ischeck.ToString();
        }
        txtKeywords.Text = this.keywords;
        tbl_liuyan bll = new tbl_liuyan();

        this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
        this.rptList.DataBind();

        //绑定页码
        txtPageNum.Text = this.pageSize.ToString();
        string pageUrl = Utils.CombUrlTxt("in_box.aspx", "keywords={0}&page={1}&type={2}", this.keywords, "__id__", this.huifu_ischeck.ToString());

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }
Esempio n. 12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.id = AXRequest.GetQueryInt("id");
     if (this.id == 0)
     {
         JscriptMsg("传输参数不正确!", "back", "Error");
         return;
     }
     if (!new BLL.orders().ExistsGoods(this.id))
     {
         JscriptMsg("记录不存在或已被删除!", "back", "Error");
         return;
     }
     if (!Page.IsPostBack)
     {
         ChkAdminLevel("order_list", AXEnums.ActionEnum.View.ToString()); //检查权限
         ShowInfo(this.id);
     }
 }
Esempio n. 13
0
    /// <summary>
    /// 写入管理日志
    /// </summary>
    /// <param name="action_type"></param>
    /// <param name="remark"></param>
    /// <returns></returns>
    public bool AddAdminLog(string action_type, string remark)
    {
        //写入日志
        tbl_login mylog = new tbl_login();

        mylog.huiyuan_bianhao = Session["hy_bianhao"].ToString();
        mylog.huiyuan_name    = Session["hy_name"].ToString();
        mylog.login_date      = DateTime.Now;
        mylog.login_flag      = 1;
        mylog.huiyuan_ip      = AXRequest.GetIP();
        int newId = mylog.Add();

        if (newId > 0)
        {
            return(true);
        }

        return(false);
    }
Esempio n. 14
0
        private void RptBind(string _strWhere, string _orderby)
        {
            this.page = AXRequest.GetQueryInt("page", 1);
            if (this.group_id > 0)
            {
                this.ddlGroupId.SelectedValue = this.group_id.ToString();
            }
            this.txtKeywords.Text = this.keywords;
            BLL.users bll = new BLL.users();
            this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("user_list.aspx", "group_id={0}&keywords={1}&page={2}",
                                              this.group_id.ToString(), this.keywords, "__id__");

            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }
Esempio n. 15
0
    protected void lbtnAcceptCaDG_Click2(object sender, EventArgs e)
    {
        this.page = AXRequest.GetQueryInt("page");
        LinkButton lb = (LinkButton)sender;

        string  KindID    = lb.CommandArgument.ToString().Split(',')[0];
        int     itemIndex = Convert.ToInt32(lb.CommandArgument.ToString().Split(',')[1]);
        TextBox TextBox1  = this.rptList.Items[itemIndex].FindControl("TextBox2") as TextBox;
        string  money     = TextBox1.Text.Trim();
        Decimal dec;

        if (!Decimal.TryParse(money, out dec))
        {
            mym.JscriptMsg(this.Page, "您输入的数字不正确,请重新输入!", "", "Error");
            return;
        }


        tbl_huiyuan model = new tbl_huiyuan();

        model.GetModel_hui_id(KindID);
        model.huiyuan_id = KindID;

        string huiyuan_bianhao = model.huiyuan_bianhao;                  //会员编号

        decimal moneybefore = decimal.Parse(model.glf_money.ToString()); //改变前余额

        decimal moneyafter = moneybefore + decimal.Parse(money);         //改变后余额
        string  memo       = "管理员为会员" + huiyuan_bianhao + "修改" + Decimal.Parse(money) + "分红奖";

        model.glf_money = Decimal.Parse(money);
        model.Update_glf_money();



        mym.queren_insert(KindID, huiyuan_bianhao, "修改分红奖", memo, Decimal.Parse(money), moneyafter);


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

        mym.JscriptMsg(this.Page, " 修改成功!", Utils.CombUrlTxt("al_read2.aspx", "start_time={0}&stop_time={1}&huiyuan_jiebie={2}&note_no={3}&type={4}&page={5}", this.txtstart_time.Value, this.txtstop_time.Value, this.ddlproduct_category_id.SelectedValue, txtNote_no.Text, this.type.SelectedValue, this.page.ToString()), "Success");
    }
Esempio n. 16
0
        public void ProcessRequest(HttpContext context)
        {
            //取得处事类型
            string action = AXRequest.GetQueryString("action");

            switch (action)
            {
            case "EditorFile":     //编辑器文件
                EditorFile(context);
                break;

            case "ManagerFile":     //管理文件
                ManagerFile(context);
                break;

            default:     //普通上传
                UpLoadFile(context);
                break;
            }
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        this.status      = AXRequest.GetQueryInt("status");
        this.category_id = AXRequest.GetQueryInt("category_id");
        this.keywords    = AXRequest.GetQueryString("keywords");

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

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

        this.pageSize = GetPageSize(10); //每页数量
        this.page     = AXRequest.GetQueryInt("page", 1);

        if (!Page.IsPostBack)
        {
            ChkAdminLevel(this.Page, 21, "View"); //检查权限
            TreeBind();                           //绑定礼品
            RptBind("id>0" + CombSqlTxt(this.status, this.category_id, this.keywords, this.start_time, this.stop_time), " ticket_no asc");
        }
    }
Esempio n. 18
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.channel_id   = AXRequest.GetQueryInt("channel_id");
            this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称
            this.property     = AXRequest.GetQueryString("property");
            this.keywords     = AXRequest.GetQueryString("keywords");

            if (channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back", "Error");
                return;
            }

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("channel_" + this.channel_name + "_comment", AXEnums.ActionEnum.View.ToString()); //检查权限
                RptBind("channel_id=" + this.channel_id + CombSqlTxt(this.keywords, this.property), "add_time desc");
            }
        }
Esempio n. 19
0
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page = AXRequest.GetQueryInt("page", 1);

        txtNote_no.Text         = this.note_no;
        txtstart_time.Value     = this.start_time;
        txtstop_time.Value      = this.stop_time;
        this.type.SelectedValue = this.cha_type.ToString();
        tbl_gp_sell bll = new tbl_gp_sell();

        this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
        this.rptList.DataBind();

        this.Literal_hj.Text = MyConvert(Convert.ToDecimal(bll.GetTitleSum(_strWhere, "sum(sell_zong)")));
        //绑定页码
        txtPageNum.Text = this.pageSize.ToString();
        string pageUrl = Utils.CombUrlTxt("sell_list.aspx", "start_time={0}&stop_time={1}&note_no={2}&page={3}&type={4}", this.start_time.ToString(), this.stop_time.ToString(), this.note_no, "__id__", this.cha_type.ToString());

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }
Esempio n. 20
0
    /// <summary>
    /// 写入管理日志
    /// </summary>
    /// <param name="action_type"></param>
    /// <param name="remark"></param>
    /// <returns></returns>
    public bool AddAdminLog(string action_type, string remark)
    {
        //写入日志
        ps_manager_log mylog = new ps_manager_log();

        mylog.user_id     = Convert.ToInt32(Session["AID"]);
        mylog.user_name   = Session["RememberName"].ToString();
        mylog.action_type = action_type;
        mylog.add_time    = DateTime.Now;
        mylog.remark      = remark;
        mylog.user_ip     = AXRequest.GetIP();
        int newId = mylog.Add();

        if (newId > 0)
        {
            return(true);
        }

        return(false);
    }
Esempio n. 21
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 openid       = string.Empty;

            if (Session["oauth_state"] == null || Session["oauth_state"].ToString() == "" || state != Session["oauth_state"].ToString())
            {
                Response.Write("出错啦,state未初始化!");
                return;
            }
            if (string.IsNullOrEmpty(code))
            {
                Response.Write("授权被取消,相关信息:" + AXRequest.GetQueryString("error"));
                return;
            }

            //获取Access Token
            JsonData jd = renren_helper.get_access_token(code);

            if (jd == null)
            {
                Response.Write("错误代码:,无法获取Access Token,请检查App Key是否正确!");
            }

            access_token = jd["access_token"].ToString();
            expires_in   = jd["expires_in"].ToString();
            openid       = jd["user"]["id"].ToString();
            //储存获取数据用到的信息
            Session["oauth_name"]         = "renren";
            Session["oauth_access_token"] = access_token;
            Session["oauth_openid"]       = openid;

            //跳转到指定页面
            Response.Redirect(new Web.UI.BasePage().linkurl("oauth_login"));
            return;
        }
Esempio n. 22
0
        protected string fileName; //文件名称

        protected void Page_Load(object sender, EventArgs e)
        {
            pathName = AXRequest.GetQueryString("path");
            fileName = AXRequest.GetQueryString("filename");
            if (string.IsNullOrEmpty(pathName) || string.IsNullOrEmpty(fileName))
            {
                JscriptMsg("传输参数不正确!", "back", "Error");
                return;
            }
            filePath = Utils.GetMapPath(@"../../templates/" + pathName.Replace(".", "") + "/" + fileName.Replace("/", ""));
            if (!File.Exists(filePath))
            {
                JscriptMsg("该文件不存在!", "back", "Error");
                return;
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("app_templet_list", AXEnums.ActionEnum.View.ToString()); //检查权限
                ShowInfo(filePath);
            }
        }
Esempio n. 23
0
        private void RptBind(int _channel_id, int _category_id, string _strWhere, string _orderby)
        {
            this.page = AXRequest.GetQueryInt("page", 1);
            if (this.category_id > 0)
            {
                this.ddlCategoryId.SelectedValue = _category_id.ToString();
            }
            this.ddlProperty.SelectedValue = this.property;
            this.txtKeywords.Text          = this.keywords;
            //图表或列表显示
            BLL.article bll = new BLL.article();

            this.rptList1.DataSource = bll.GetList(_channel_id, _category_id, this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
            this.rptList1.DataBind();
            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("dialog_list.aspx", "channel_id={0}&category_id={1}&keywords={2}&property={3}&page={4}",
                                              _channel_id.ToString(), _category_id.ToString(), this.keywords, this.property, "__id__");

            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }
Esempio n. 24
0
    // 单个空单开通
    protected void kd_kaitong(object sender, EventArgs e)
    {
        // 当前点击的按钮

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

        LinkButton lb         = (LinkButton)sender;
        string     huiyuan_id = lb.CommandArgument.ToString();


        tbl_huiyuan bll = new tbl_huiyuan();

        bll.GetModel_hui_id(huiyuan_id);

        int net_hege = int.Parse(bll.net_hege.ToString());

        if (net_hege == 1)
        {
            mym.JscriptMsg(this.Page, "会员已经开通!请不要重复操作", "", "Error");
            return;
        }

        bll.net_hege        = 1;
        bll.kd_flag         = 1;
        bll.huiyuan_qr_date = DateTime.Now;
        bll.Update();


        //tbl_orders orders = new tbl_orders();
        //orders.user_id = huiyuan_id;
        //orders.Delete_orders(huiyuan_id);

        //tbl_xiaofei xf_bll = new tbl_xiaofei();
        //xf_bll.xiaofei_hui_id = huiyuan_id;
        //xf_bll.Delete_xiaofei_hui_id(huiyuan_id);
        int i = DbHelperSQL.ExecuteSql("exec sp_kongdan_huiyuan '" + huiyuan_id + "'");


        mym.JscriptMsg(this.Page, " 激活成功!", Utils.CombUrlTxt("al_read1.aspx", "start_time={0}&stop_time={1}&huiyuan_jiebie={2}&note_no={3}&type={4}&page={5}", this.txtstart_time.Value, this.txtstop_time.Value, this.ddlproduct_category_id.SelectedValue, txtNote_no.Text, this.type.SelectedValue, this.page.ToString()), "Success");
    }
Esempio n. 25
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.property    = AXRequest.GetQueryString("property");

            if (channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back", "Error");
                return;
            }
            this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称
            this.pageSize     = GetPageSize(10);                                   //每页数量
            this.prolistview  = Utils.GetCookie("article_list_view");              //显示方式
            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");
            }
        }
Esempio n. 26
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();
        }
        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 (!Page.IsPostBack)
        {
            TreeBind(Convert.ToInt32(Session["DepotCatID"])); //绑定地区
            if (action == "Edit")                             //修改
            {
                ShowInfo(this.id);
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ChkAdminLevel(this.Page, 39, "View"); //检查权限
            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");
            this.start_time        = AXRequest.GetQueryString("start_time");
            this.stop_time         = AXRequest.GetQueryString("stop_time");

            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;
    }
Esempio n. 28
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.navigation().Exists(this.id))
                {
                    JscriptMsg("导航不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("app_navigation_list", AXEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind(AXEnums.NavigationEnum.System.ToString());                       //绑定导航菜单
                ActionTypeBind();                                                         //绑定操作权限类型
                if (action == AXEnums.ActionEnum.Edit.ToString())                         //修改
                {
                    ShowInfo(this.id);
                }
                else
                {
                    if (this.id > 0)
                    {
                        this.ddlParentId.SelectedValue = this.id.ToString();
                    }
                    txtName.Attributes.Add("ajaxurl", "../../tools/admin_ajax.ashx?action=navigation_validate");
                }
            }
        }
Esempio n. 29
0
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page = AXRequest.GetQueryInt("page", 1);

        if (this.product_category_id > 0)
        {
            this.ddlproduct_category_id.SelectedValue = this.product_category_id.ToString();
        }

        txtNote_no.Text = this.note_no;

        ps_here_depot bll = new ps_here_depot();

        this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
        this.rptList.DataBind();

        //绑定页码
        txtPageNum.Text = this.pageSize.ToString();
        string pageUrl = Utils.CombUrlTxt("depot_manager.aspx", "product_category_id={0}&note_no={1}&page={2}", this.product_category_id.ToString(), this.note_no, "__id__");

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }
Esempio n. 30
0
        //页面加载事件
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = AXRequest.GetQueryString("action");

            if (this.channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back", "Error");
                return;
            }
            this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称

            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().Exists(this.id))
                {
                    JscriptMsg("信息不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("channel_" + this.channel_name + "_list", AXEnums.ActionEnum.View.ToString()); //检查权限
                ShowSysField(this.channel_id);                                                               //显示相应的默认控件
                GroupBind("");                                                                               //绑定用户组
                TreeBind(this.channel_id);                                                                   //绑定类别

                if (action == AXEnums.ActionEnum.Edit.ToString())                                            //修改
                {
                    ShowInfo(this.id);
                }
            }
        }