示例#1
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");
                }
            }
        }
示例#2
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;
    }
示例#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  = 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");
        }
    }
示例#4
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_Seckill bll = new tbl_Seckill();



        //this.Literal_pa.Text = MyConvert(bll.GetTitleSum(_strWhere + " and  status<>4", "sum(payable_amount)"));

        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("timeList.aspx", "type={0}&status={1}&page={2}&start_time={3}&stop_time={4}", this.cha_type.ToString(), this.status.ToString(), "__id__", this.start_time.ToString(), this.stop_time.ToString());

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }
示例#5
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);
        }
    }
        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);
                }
            }
        }
示例#7
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);
                }
            }
        }
示例#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.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);
                }
            }
        }
    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;
        txtstart_time.Value = this.start_time;
        txtstop_time.Value  = this.stop_time;

        ps_join_depot bll = new ps_join_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("backdepot_list.aspx", "start_time={0}&stop_time={1}&product_category_id={2}&note_no={3}&page={4}", this.start_time.ToString(), this.stop_time.ToString(), this.product_category_id.ToString(), this.note_no, "__id__");

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }
示例#10
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");
        }
    }
示例#11
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();
            switch (this.prolistview)
            {
            case "Txt":
                this.rptList2.Visible    = false;
                this.rptList1.DataSource = bll.GetList(_channel_id, _category_id, this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
                this.rptList1.DataBind();
                break;

            default:
                this.rptList1.Visible    = false;
                this.rptList2.DataSource = bll.GetList(_channel_id, _category_id, this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
                this.rptList2.DataBind();
                break;
            }
            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("article_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);
        }
示例#12
0
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page = AXRequest.GetQueryInt("page", 1);


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

        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();
        view_huiyuan bll = new view_huiyuan();

        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("al_read3.aspx", "start_time={0}&stop_time={1}&huiyuan_jiebie={2}&note_no={3}&page={4}&type={5}", this.start_time.ToString(), this.stop_time.ToString(), this.jiebie.ToString(), this.note_no, "__id__", this.cha_type.ToString());

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }
示例#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.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");
                }
            }
        }
示例#14
0
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page = AXRequest.GetQueryInt("page", 1);

        if (this.depot_category_id > 0)
        {
            this.ddldepot_category_id.SelectedValue = this.depot_category_id.ToString();
        }
        if (this.depot_id > 0)
        {
            this.ddldepot_id.SelectedValue = this.depot_id.ToString();
        }

        txtNote_no.Text     = this.note_no;
        txtstart_time.Value = this.start_time;
        txtstop_time.Value  = this.stop_time;

        ps_salse_depot bll = new ps_salse_depot();

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

        //this.Literal_go_price.Text = MyConvert(bll.GetTitleSum(_strWhere, "sum(goods_price)"));
        //this.Literal_zongprice.Text = MyConvert(bll.GetTitleSum(_strWhere, "sum(real_price)"));
        //this.Literal_zongprice_sj.Text = MyConvert(bll.GetTitleSum(_strWhere, "sum(quantity)"));
        this.Literal_lrprice.Text = MyConvert(Convert.ToDecimal(bll.GetTitleSum(_strWhere, " sum(real_price*quantity)")) - Convert.ToDecimal(bll.GetTitleSum(_strWhere, "sum(goods_price*quantity)")));
        this.Literal_hj.Text      = MyConvert(Convert.ToDecimal(bll.GetTitleSum(_strWhere, "sum(real_price*quantity)")));

        //绑定页码
        txtPageNum.Text = this.pageSize.ToString();
        string pageUrl = Utils.CombUrlTxt("sales_list.aspx", "depot_category_id={0}&depot_id={1}&start_time={2}&stop_time={3}&note_no={4}&page={5}", this.depot_category_id.ToString(), this.depot_id.ToString(), this.txtstart_time.Value, this.txtstop_time.Value, txtNote_no.Text, "__id__");

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }
示例#15
0
    // 单个冻结
    protected void lbtnAcceptCaDG_Click1(object sender, EventArgs e)
    {
        // 当前点击的按钮

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

        LinkButton lb         = (LinkButton)sender;
        string     huiyuan_id = lb.CommandArgument.ToString().Split(',')[0];

        int         xinxi_flag = Convert.ToInt32(lb.CommandArgument.ToString().Split(',')[1]);
        tbl_huiyuan bll        = new tbl_huiyuan();

        bll.GetModel_hui_id(huiyuan_id);
        bll.huiyuan_id = huiyuan_id;

        if (xinxi_flag == 0)
        {
            bll.xinxi_flag = 1;
        }
        else
        {
            bll.xinxi_flag = 0;
        }
        bll.Update_fending(); //更新封顶


        mym.JscriptMsg(this.Page, " 设置成功!", Utils.CombUrlTxt("al_read3.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");
    }
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page = AXRequest.GetQueryInt("page", 1);
        if (this.status > 0)
        {
            this.ddlStatus.SelectedValue = this.status.ToString();
        }
        if (this.category_id > 0)
        {
            this.ddlCategoryId.SelectedValue = this.category_id.ToString();
        }
        txtKeywords.Text    = this.keywords;
        txtstart_time.Value = this.start_time;
        txtstop_time.Value  = this.stop_time;
        ax_ticket bll = new ax_ticket();

        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("ticket_list.aspx", "status={0}&category_id={1}&keywords={2}&start_time={3}&stop_time={4}&page={5}", this.status.ToString(), this.category_id.ToString(), this.keywords, this.txtstart_time.Value, this.txtstop_time.Value, "__id__");

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }
    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)
    {
        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);
            }
        }
    }
示例#19
0
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page = AXRequest.GetQueryInt("page", 1);

        if (this.status > 0)
        {
            this.ddlStatus.SelectedValue = this.status.ToString();
        }
        txtNote_no.Text     = this.note_no;
        txtstart_time.Value = this.start_time;
        txtstop_time.Value  = this.stop_time;

        ps_orders bll = new ps_orders();

        this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
        this.rptList.DataBind();
        this.Literal_pa.Text = MyConvert(bll.GetTitleSum(_strWhere + " and  status<>4", "sum(payable_amount)"));
        this.Literal_ra.Text = MyConvert(bll.GetTitleSum(_strWhere + " and  status<>4", "sum(real_amount)"));
        this.Literal_oa.Text = MyConvert(bll.GetTitleSum(_strWhere + " and  status<>4", "sum(order_amount)"));
        //绑定页码
        txtPageNum.Text = this.pageSize.ToString();
        string pageUrl = Utils.CombUrlTxt("my_order.aspx", "depot_category_id={0}&depot_id={1}&status={2}&start_time={3}&stop_time={4}&note_no={5}&page={6}", this.depot_category_id.ToString(), this.depot_id.ToString(), this.status.ToString(), this.txtstart_time.Value, this.txtstop_time.Value, txtNote_no.Text, "__id__");

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }
示例#20
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);
                }
            }
        }
示例#21
0
        private void RptBind(string _strWhere, string _orderby)
        {
            this.page = AXRequest.GetQueryInt("page", 1);
            if (this.status > 0)
            {
                this.ddlStatus.SelectedValue = this.status.ToString();
            }
            if (this.payment_status > 0)
            {
                this.ddlPaymentStatus.SelectedValue = this.payment_status.ToString();
            }
            if (this.express_status > 0)
            {
                this.ddlExpressStatus.SelectedValue = this.express_status.ToString();
            }
            txtKeywords.Text = this.keywords;
            BLL.orders bll = new BLL.orders();
            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("order_list.aspx", "status={0}&payment_status={1}&express_status={2}&keywords={3}&page={4}",
                                              this.status.ToString(), this.payment_status.ToString(), this.express_status.ToString(), this.keywords, "__id__");

            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }
示例#22
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);
                }
            }
        }
示例#23
0
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page = AXRequest.GetQueryInt("page", 1);

        tbl_sinkia_config bll = new tbl_sinkia_config();

        this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
        this.rptList.DataBind();
    }
示例#24
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");
            }
        }
    }
示例#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();
        }
        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);
            }
        }
    }
示例#26
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");
     }
 }
示例#27
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.pageSize = GetPageSize(10); //每页数量
     this.page     = AXRequest.GetQueryInt("page", 1);
     if (!Page.IsPostBack)
     {
         string huiyuan_id = Request.QueryString["id"].ToString();
         string jb         = Request.QueryString["jb"].ToString();
         RptBind("huiyuan_shangshu2 like '%" + huiyuan_id + "%' and zhuanmai_jb=" + jb + " and huiyuan_id<>'" + huiyuan_id + "'", "huiyuan_add_time desc");
     }
 }
示例#28
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.type_id  = AXRequest.GetQueryInt("type_id");
            this.keywords = AXRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("user_message", AXEnums.ActionEnum.View.ToString()); //检查权限
                RptBind("id>0" + CombSqlTxt(this.type_id, this.keywords), "post_time desc,id desc");
            }
        }
    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  = 20;

        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");

        if (AXRequest.GetQueryString("start_time") == "")
        {
            this.start_time = DateTime.Now.ToString("yyyy-MM-dd");
        }
        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)
        {
            ZYBind();//绑定商品类别

            txtstart_time.Value = DateTime.Now.ToString("d");
            txtstop_time.Value  = DateTime.Now.ToString("d");
            if (Convert.ToInt32(Session["DepotID"]) == 0 && Convert.ToInt32(Session["DepotCatID"]) == 0)//公司用户
            {
                RptBind("product_code_state='退货' " + CombSqlTxt(this.product_category_id, this.note_no, this.start_time, this.stop_time), "add_time desc,id desc");
            }
        }
    }
示例#30
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  = 80;

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

        this.jiebie = AXRequest.GetQueryInt("huiyuan_jiebie");

        this.note_no  = AXRequest.GetQueryString("note_no");
        this.cha_type = AXRequest.GetQueryInt("type");

        if (AXRequest.GetQueryString("start_time") == "")
        {
            this.start_time = DateTime.Now.ToString("2015-01-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)
        {
            ZYBind();//绑定会员级别

            txtstart_time.Value = DateTime.Now.ToString("d");
            txtstop_time.Value  = DateTime.Now.ToString("d");

            RptBind("huiyuan_id<>'A00000000' and net_hege=1    " + CombSqlTxt(this.jiebie, this.note_no, this.start_time, this.stop_time, this.cha_type), "huiyuan_add_time desc");
        }
    }