示例#1
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);
        }
    }
示例#2
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);
        }
    }
示例#3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //判断是否登录
        if (!mym.IsAdminLogin())
        {
            Response.Write("<script>parent.location.href='../login.aspx'</script>"); //response.redirect("url")的作用是在服务器端重定向于另一个网页。
            Response.End();                                                          //用来终止脚本程序。
        }
        //判断权限
        tbl_admin_role_value myrv = new tbl_admin_role_value();
        int role_id = Convert.ToInt32(Session["RoleID"]);
        int nav_id  = 11;

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

        if (!IsPostBack)
        {
            if (Request.QueryString["bianhao"] != null)
            {
                ShowDataUser(Request.QueryString["bianhao"].ToString());
            }
            else
            {
                bianhao = "A00000000";
                ShowDataUser(bianhao);
            }
        }
    }
示例#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  = 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");
        }
    }
示例#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  = 65;

        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(10); //每页数量

        if (!Page.IsPostBack)
        {
            ZYBind();//绑定商品类别


            RptBind("pro_id>0" + CombSqlTxt(this.product_category_id, this.note_no), "pro_date desc,pro_id desc");
        }
    }
示例#6
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  = 66;

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

        if (!Page.IsPostBack)
        {
            QDBind();
            attributebind();
            procityareabind();
            Focus myFocus = new Focus();
            myFocus.SetEnterControl(this.txtproduct_name);
            myFocus.SetFocus(txtproduct_name.Page, "txtproduct_name");
        }
    }
示例#7
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");
        }
    }
示例#8
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  = 82;

        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)
        {
            tbl_product bll = new tbl_product();
            DataTable   dt  = bll.GetList("pro_isok=1 order by salse_price asc").Tables[0];
            this.pid.Items.Clear();
            this.pid.Items.Add(new ListItem("请选择秒杀商品...", ""));
            foreach (DataRow dr in dt.Rows)
            {
                string Id    = dr["pro_id"].ToString();
                string Title = dr["pro_name"].ToString().Trim();
                this.pid.Items.Add(new ListItem(Title, Id));
            }
            if (action == "Edit") //修改
            {
                ShowInfo(this.id);
            }
        }
    }
示例#9
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");
            }
        }
    }
    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  = 16;

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



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

        if (!Page.IsPostBack)
        {
            ZYBind();//绑定会员级别



            RptBind("huiyuan_id<>'A00000000'   and huiyuan_zhuanmai=0 and huiyuan_zhuanmai_sq=1 " + CombSqlTxt(this.jiebie, this.note_no, this.cha_type), "huiyuan_add_time desc");
        }
    }
示例#11
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  = 16;

        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";//修改类型

            this.huiyuan_id = AXRequest.GetQueryString("huiyuan_id");
        }
        if (!Page.IsPostBack)
        {
            if (action == "Edit") //修改
            {
                ShowInfo(this.huiyuan_id);
                Focus myFocus = new Focus();
                myFocus.SetFocus(txttitle.Page, "txttitle");
            }
        }
    }
示例#12
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  = 95;

        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 (Utils.ProcessSqlStr(AXRequest.GetQueryString("id")))
            {
                this.id = Utils.Filter(AXRequest.GetQueryString("id"));
            }
            else
            {
                mym.JscriptMsg(this.Page, "传输参数不正确!", "back", "Error");
                return;
            }


            // Response.Write(this.id);
        }



        if (!string.IsNullOrEmpty(_action) && _action == "Login")
        {
            this.action = "Login";//修改类型
            if (Utils.ProcessSqlStr(AXRequest.GetQueryString("id")))
            {
                this.id = Utils.Filter(AXRequest.GetQueryString("id"));
            }
            else
            {
                mym.JscriptMsg(this.Page, "传输参数不正确!", "back", "Error");
                return;
            }


            // Response.Write(this.id);
        }
        if (!Page.IsPostBack)
        {
            if (action == "Edit") //修改
            {
                // QDBind();
                //cnBind();
                //yhBind();//绑定银行
                ShowInfo(this.id);
                //Focus myFocus = new Focus();
                //myFocus.SetEnterControl(this.txtsalse_price);
                //myFocus.SetFocus(txtsalse_price.Page, "txtsalse_price");
            }
        }
    }