예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = RequestTool.RequestInt("id", 0);

            id = RequestTool.RequestInt("id", 0);
            if (id == 0)
            {
                if (!EX_Admin.Power("express_shipper_add", "添加发货人"))
                {
                    WindowNoPower();
                }
            }
            else
            {
                if (!EX_Admin.Power("express_shipper_edit", "编辑发货人"))
                {
                    WindowNoPower();
                }
            }
            model = B_Lebi_Express_Shipper.GetModel(id);
            if (model == null)
            {
                model = new Lebi_Express_Shipper();
            }
        }
예제 #2
0
 protected override void LoadPage(string themecode, int siteid, string languagecode, string pcode)
 {
     if (CurrentUser.id == 0)
     {
         Response.Redirect(URL("P_Login", "" + HttpUtility.UrlEncode(RequestTool.GetRequestUrlNonDomain()) + "," + GetUrlToken(RequestTool.GetRequestUrlNonDomain()) + ""));
     }
     LoadTheme(themecode, siteid, languagecode, pcode);
     if (SYS.IsClosetuihuo == "1")
     {
         PageError();
     }
     CurrentPage = B_Lebi_Theme_Page.GetModel("Code='P_UserReturnApply'");
     path        = "<a href=\"" + URL("P_Index", "") + "\" class=\"home\" title=\"" + Tag("首页") + "\"><span>" + Tag("首页") + "</span></a><em class=\"home\">&raquo;</em><a href=\"" + URL("P_UserCenter", "") + "\"><span>" + Tag("会员中心") + "</span></a><em>&raquo;</em><a href=\"" + URL("P_UserReturn", "" + id + "") + "\"><span>" + Tag("退货订单") + "</span></a><em>&raquo;</em><a href=\"" + URL("P_UserReturnApply", "") + "\"><span>" + Tag("退货申请") + "</span></a>";
     CurrentPage = B_Lebi_Theme_Page.GetModel("Code='P_UserReturnApply'");
     id          = Rint_Para("0");
     order       = B_Lebi_Order.GetModel("User_id = " + CurrentUser.id + " and id = " + id + "");
     if (order == null)
     {
         PageError();
     }
     if (order.User_id != CurrentUser.id)
     {
         PageError();
     }
     where          = "Order_id=" + order.id + "";
     order_products = B_Lebi_Order_Product.GetList(where, "id desc");
     if (order.Supplier_id > 0)
     {
         Lebi_Supplier supplier = B_Lebi_Supplier.GetModel(order.Supplier_id);
         if (supplier != null)
         {
             shouhuoren     = supplier.RealName;
             shouhuodizhi   = supplier.Address;
             shouhuodianhua = supplier.Phone;
             shouhuoyoubian = supplier.Postalcode;
         }
     }
     else
     {
         Lebi_Express_Shipper shipper = B_Lebi_Express_Shipper.GetList("", "Sort desc", 1, 1).FirstOrDefault();
         if (shipper != null)
         {
             shouhuoren     = shipper.UserName;
             shouhuodizhi   = shipper.Address;
             shouhuodianhua = shipper.Tel;
             shouhuoyoubian = shipper.ZipCode;
         }
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = RequestTool.RequestInt("id", 0);

            id = RequestTool.RequestInt("id", 0);
            if (!Power("supplier_express_shipper_list", "发货人管理"))
            {
                WindowNoPower();
            }
            model = B_Lebi_Express_Shipper.GetModel("id = " + id + " and Supplier_id = " + CurrentSupplier.id + "");
            if (model == null)
            {
                model = new Lebi_Express_Shipper();
            }
        }
예제 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Power("supplier_express_shipper_list", "发货人管理"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }
            PageSize     = RequestTool.getpageSize(25);
            key          = RequestTool.RequestString("key");
            string where = "Supplier_id = " + CurrentSupplier.id + "";
            if (key != "")
            {
                where += " and SiteName like lbsql{'%" + key + "%'}";
            }
            models = B_Lebi_Express_Shipper.GetList(where, "Sort desc", PageSize, page);
            int recordCount = B_Lebi_Express_Shipper.Counts(where);

            PageString = Shop.Bussiness.Pager.GetPaginationString("?page={0}&key=" + key, page, PageSize, recordCount);
        }
예제 #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!EX_Admin.Power("express_log_print", "打印打印清单"))
     {
         PageNoPower();
     }
     id    = RequestTool.RequestString("id");
     Tid   = RequestTool.RequestInt("Tid", 0);
     Eid   = RequestTool.RequestInt("Eid", 0);
     model = B_Lebi_Express.GetModel("Transport_Id = " + Tid);
     if (model == null)
     {
         model = new Lebi_Express();
     }
     express_shipper = B_Lebi_Express_Shipper.GetModel("Status = 1");
     if (express_shipper == null)
     {
         express_shipper = new Lebi_Express_Shipper();
     }
     models = B_Lebi_Order.GetList("id in (lbsql{" + id + "})", "id desc", PageSize, page);
 }