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(); } }
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\">»</em><a href=\"" + URL("P_UserCenter", "") + "\"><span>" + Tag("会员中心") + "</span></a><em>»</em><a href=\"" + URL("P_UserReturn", "" + id + "") + "\"><span>" + Tag("退货订单") + "</span></a><em>»</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(); } }
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); }
/// <summary> /// 更新一条数据 /// </summary> public static void Update(Lebi_Express_Shipper model) { D_Lebi_Express_Shipper.Instance.Update(model); }
/// <summary> /// 增加一条数据 /// </summary> public static int Add(Lebi_Express_Shipper model) { return(D_Lebi_Express_Shipper.Instance.Add(model)); }
/// <summary> /// 安全方式绑定表单数据 /// </summary> public static Lebi_Express_Shipper SafeBindForm(Lebi_Express_Shipper model) { return(D_Lebi_Express_Shipper.Instance.SafeBindForm(model)); }