Пример #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     Daxu.Entity.pageinfo pagemore = new Daxu.Entity.pageinfo();
     pagemore.dian = Convert.ToInt32(mary.Text.ToString().Trim());
     pagemore.id = 1;
     Daxu.BLL.pageinfoBll.Updatepageinfo(pagemore);
     Response.Write("<script>alert(\"添加成功!\");location.href='../Promotion/PlatformSet.aspx';</script>");
 }
Пример #2
0
 protected void HHGS_Click(object sender, EventArgs e)
 {
     Daxu.Entity.pageinfo pagemore = new Daxu.Entity.pageinfo();
     pagemore.x = Convert.ToInt32(maryone.Text.ToString().Trim());
     pagemore.y = Convert.ToInt32(dian.Text.ToString().Trim());
     pagemore.id = 1;
     Daxu.BLL.pageinfoBll.Updatepageinfo(pagemore);
     Response.Write("<script>alert(\"修改成功!\");location.href='" + Request.RawUrl + "';</script>");
 }
Пример #3
0
 protected void cpoybnt_input_out_Click(object sender, EventArgs e)
 {
     UserHandle.UserHandle.InitModules_Admin("BQXXXG");
     if (UserHandle.UserHandle.ValidationHandle_Admin(RoleTag.Edit))
     {
         Daxu.Entity.pageinfo pageinfo = new Daxu.Entity.pageinfo();
         pageinfo.Copy = _Copy.Value;
         pageinfo.id = 1;
         Daxu.BLL.pageinfoBll.Updatepageinfo(pageinfo);
         Response.Write("<script>alert(\"修改成功!\");location.href='../baseinfo/info.aspx';</script>");
     }
     else
     {
         Response.Write("<script>alert(\"对不起权限不足!\");location.href='../baseinfo/info.aspx';</script>");
     }
 }
Пример #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {

                UserHandle.UserHandle.InitModules_Admin("ZFBZF");
                if (UserHandle.UserHandle.ValidationHandle_Admin(RoleTag.Browse))
                {
                    Daxu.Entity.pageinfo pageinfo = new Daxu.Entity.pageinfo();
                    string sql = "select * from pageinfo";
                    pageinfo = Daxu.BLL.pageinfoBll.getIpageinfoModel(sql);
                    if (pageinfo != null)
                    {
                        Textname1.Text = pageinfo.enterprise;
                        Texttitle.Text = pageinfo.title;
                        Textkeyword.Text = pageinfo.keyword;
                        _Copy.Value = pageinfo.Copy;
                        TextDescroption.Text = pageinfo.Descroption;
                        if (!string.IsNullOrEmpty(pageinfo.loge.Trim()))
                        {
                            loge.ImageUrl = string.Format("~/upload/images/{0}", pageinfo.loge.Trim());

                        }
                        else
                        {
                            loge.ImageUrl = "../../upload/images/mr.jpg";
                        }

                        Loadinfo();//显示折扣价
                        LoadinfoHhgs();//互换公式
                    }

                }
                else
                {
                    Response.Write("<script>alert(\"对不起权限不足!\");location.href='../baseinfo/info.aspx';</script>");
                }

        }
    }
Пример #5
0
    protected void Tjgolo_Click(object sender, EventArgs e)
    {
        UserHandle.UserHandle.InitModules_Admin("WZGJZ");
        if (UserHandle.UserHandle.ValidationHandle_Admin(RoleTag.Edit))
        {
            Daxu.Entity.pageinfo pageinfo = new Daxu.Entity.pageinfo();

            string filename = Fileimg.FileName;
            string type = Path.GetExtension(filename);
            if (type == "gif" || type == "jpg" || type == "bmp" || type == "png")
            {
                string path = "~/upload/images/" + filename;
                FileInfo file = new FileInfo(Server.MapPath(path));
                file.Delete();
                Fileimg.SaveAs(Server.MapPath(path));
            }
            pageinfo.enterprise = Textname1.Text;
            pageinfo.title = Texttitle.Text;
            pageinfo.keyword = Textkeyword.Text;
            pageinfo.Descroption = TextDescroption.Text;
            pageinfo.loge = filename;
            pageinfo.id = 1;
            Daxu.BLL.pageinfoBll.Updatepageinfo(pageinfo);
            Response.Redirect("info.aspx");
        }
        else
        {
            Response.Write("<script>alert(\"对不起权限不足!\");location.href='../baseinfo/info.aspx';</script>");
        }
    }
Пример #6
0
    protected void ZKJ_Click(object sender, EventArgs e)
    {
        UserHandle.UserHandle.InitModules_Admin("ZKSZ");
        if (UserHandle.UserHandle.ValidationHandle_Admin(RoleTag.Edit))
        {
            Daxu.Entity.pageinfo pagemore = new Daxu.Entity.pageinfo();
            pagemore.zk = Convert.ToString(mary.Text.ToString().Trim());
            pagemore.id = 1;
            Daxu.BLL.pageinfoBll.Updatepageinfo(pagemore);
            Response.Write("<script>alert(\"修改成功!\");location.href='" + Request.RawUrl + "';</script>");
        }
        else
        {
            Response.Write("<script>alert(\"对不起权限不足!\");location.href='" + Request.RawUrl + "';</script>");

        }
    }
Пример #7
0
 protected void tj_Click(object sender, EventArgs e)
 {
     UserHandle.UserHandle.InitModules_Admin("ZFBZF");
     if (UserHandle.UserHandle.ValidationHandle_Admin(RoleTag.Edit))
     {
         Daxu.Entity.pageinfo pageinfo = new Daxu.Entity.pageinfo();
         pageinfo.partner = _partner.Text;
         pageinfo.keyadmin = _keyadmin.Text;
         pageinfo.seller_email = _seller_email.Text;
         pageinfo.id = 1;
         Daxu.BLL.pageinfoBll.Updatepageinfo(pageinfo);
         Response.Write("<script>alert(\"修改成功!\");location.href='../baseinfo/info.aspx';</script>");
     }
     else
     {
         Response.Write("<script>alert(\"对不起权限不足!\");location.href='../baseinfo/info.aspx';</script>");
     }
 }
Пример #8
0
        public Daxu.Entity.pageinfo SetPageMessage(string urlstring)
        {
            Daxu.Entity.pageinfo info = new pageinfo();
            string url = urlstring;
            if (url.ToLower().Contains("index"))
            {
                info.title = "深圳市杰尼实业有限公司首页";
                info.keyword = "深圳市杰尼实业有限公司";
                info.Descroption = "深圳市杰尼实业有限公司";

            }
            else if (url.ToLower().Contains("shouye"))
            {
                info.title = "深圳市杰尼实业有限公司";
                info.keyword = "深圳市杰尼实业有限公司";
                info.Descroption = "深圳市杰尼实业有限公司";

            }
            else if (url.ToLower().Contains("shouye"))
            {
                info.title = "深圳市杰尼实业有限公司";
                info.keyword = "深圳市杰尼实业有限公司";
                info.Descroption = "深圳市杰尼实业有限公司";

            }
            else if (url.ToLower().Contains("shouye"))
            {
                info.title = "深圳市杰尼实业有限公司";
                info.keyword = "深圳市杰尼实业有限公司";
                info.Descroption = "深圳市杰尼实业有限公司";

            }
            else if (url.ToLower().Contains("shouye"))
            {
                info.title = "深圳市杰尼实业有限公司";
                info.keyword = "深圳市杰尼实业有限公司";
                info.Descroption = "深圳市杰尼实业有限公司";

            }
            else if (url.ToLower().Contains("brand/show.aspx?id=157"))
            {
                info.title = "深圳市杰尼实业有限公司";
                info.keyword = "深圳市杰尼实业有限公司";
                info.Descroption = "深圳市杰尼实业有限公司";

            }
            else if (url.ToLower().Contains("brand/show.aspx?id="))
            {
                ///此处暂时不懂

            }
            return info;
        }