Ejemplo n.º 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_add", "添加模板"))
                {
                    WindowNoPower();
                }
            }
            else
            {
                if (!EX_Admin.Power("express_edit", "编辑模板"))
                {
                    WindowNoPower();
                }
            }
            model = B_Lebi_Express.GetModel(id);
            if (model == null)
            {
                model = new Lebi_Express();
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string       str = RequestTool.RequestString("str");
            int          id  = int.Parse(str.Split(new char[] { '|' })[0]);
            string       pos;
            string       pos_name;
            string       pos_body;
            Lebi_Express model = B_Lebi_Express.GetModel(id);

            if (model == null)
            {
                Response.Write("{\"msg\":\"参数错误" + id + "\"}");
                return;
            }
            pos = model.Pos;
            Response.Write("<?xml version=\"1.0\" encoding=\"utf-8\" ?><data>");
            Response.Write("<mobid>" + id + "</mobid><mobname>" + model.Name + "</mobname><mobwidth>" + model.Width + "</mobwidth><mobheight>" + model.Height + "</mobheight><bgsrc>swf/expressmenu.png</bgsrc><orderc>" + site.WebPath + model.Background + "</orderc><saveurl>" + site.AdminPath + "/ajax/ajax_order.aspx?__Action=Express_Edit&amp;id=" + id + "</saveurl>");
            if (pos != "" && pos != "{}")
            {
                pos = pos.Substring(1);
                pos = pos.Substring(0, pos.Length - 1);
                Response.Write("<ipos>");
                if (pos.IndexOf("},") > -1)
                {
                    string[] arr_pos;
                    arr_pos = pos.Replace("},", "$").Split(new char[] { '$' });
                    foreach (string arr_pos_i in arr_pos)
                    {
                        pos_name = arr_pos_i.Replace(":{", "$").Split(new char[] { '$' })[0];
                        pos_name = pos_name.Substring(1);
                        pos_name = pos_name.Substring(0, pos_name.Length - 1);
                        Response.Write("<item name='" + pos_name + "' text='" + pos_name + "'><![CDATA[{");
                        pos_body = arr_pos_i.Replace(":{", "$").Split(new char[] { '$' })[1];
                        Response.Write("" + pos_body + "");
                        if (pos_body.Substring(pos_body.Length - 1) == "}")
                        {
                        }
                        else
                        {
                            Response.Write("}");
                        }
                        Response.Write("]]></item>");
                    }
                }
                else
                {
                    pos_name = pos.Replace(":{", "$").Split(new char[] { '$' })[0];
                    pos_name = pos_name.Substring(1);
                    pos_name = pos_name.Substring(0, pos_name.Length - 1);
                    Response.Write("<item name='" + pos_name + "' text='" + pos_name + "'><![CDATA[{");
                    pos_body = pos.Replace(":{", "$").Split(new char[] { '$' })[1];
                    Response.Write("" + pos_body + "]]></item>");
                }
                Response.Write("</ipos>");
            }
            Response.Write("</data>");
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!EX_Admin.Power("express_list", "模板列表"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }

            PageSize     = RequestTool.getpageSize(25);
            key          = RequestTool.RequestString("key");
            string where = "1=1";
            if (key != "")
            {
                where += " and Name like lbsql{'%" + key + "%'}";
            }
            models = B_Lebi_Express.GetList(where, "Sort desc", PageSize, page);
            int recordCount = B_Lebi_Express.Counts(where);

            PageString = Pager.GetPaginationString("?page={0}&key=" + key, page, PageSize, recordCount);
        }
Ejemplo n.º 4
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);
 }