Beispiel #1
0
    protected void btnsa_Click(object sender, EventArgs e)
    {
        string urladdress  = imagebll.GetModel(sid).Htmlurl.Trim();
        string htmlurl     = "";
        string htmlurllist = "";
        string html        = imagebll.GetModel(sid).Htmlurllist.Trim();

        if (html == "NULL" || html == "")
        {
            htmlurllist = loginname + System.DateTime.Now.ToLocalTime().ToString().Replace(":", "").Replace("-", "").Replace(" ", "").Replace("/", "") + ".htm";
        }
        //else { htmlurllist = imagebll.GetModel(sid).Htmlurllist.Trim(); }
        else
        {
            htmlurllist = html;
        }
        if (urladdress == "NULL" || urladdress == "")
        {
            htmlurl = System.DateTime.Now.ToLocalTime().ToString().Replace(":", "").Replace("-", "").Replace(" ", "").Replace("/", "") + ".htm";
        }
        else
        {
            htmlurl = urladdress;
        }
        //GZS.Model.ImageTabM imagemodel = imagebll.GetModel(sid);
        //GZS.Model.ImageTabM imagemodels = new GZS.Model.ImageTabM();
        GZS.Model.ImageTabM imagemodels = imagebll.GetModel(sid);
        imagemodels.imageid   = sid;
        imagemodels.LoginName = loginname;
        imagemodels.imageName = txtImageName.Text.Trim();
        imagemodels.remark    = txtImageShuo.Text.Trim();

        //imagemodels.Createdatetime = imagemodel.Createdatetime;
        // imagemodels.Updatetime1 = imagemodel.Updatetime1;
        imagemodels.Htmlurl     = htmlurl;
        imagemodels.Htmlurllist = htmlurllist;
        int resd = imagebll.UpdateImageTab(imagemodels);
        int ses  = urlbll.DeleteByImageid(sid);

        foreach (DataListItem item in DataList1.Items)
        {
            HiddenField            fid   = (HiddenField)item.FindControl("HiddenField1");
            HiddenField            fidid = (HiddenField)item.FindControl("HiddenField3");
            GZS.Model.ImageUrlTabM md    = new GZS.Model.ImageUrlTabM();
            md.Imageid    = sid;
            md.Imagepath  = fid.Value.Trim();
            md.imgexplain = fidid.Value.Trim();
            int es = urlbll.Add(md);
        }
        List <GZS.Model.ImageTabM> list = imagebll.GetAll(loginname);

        for (int i = 0; i < list.Count; i++)
        {
            imagebll.StaticHtmls(list[i].imageid, loginname);
            imagebll.StaticHtml(list[i].imageid, loginname);
        }
        imagebll.StaticHtmlshouye(loginname);
        Response.Redirect("PictureManage.aspx");
        BindShow();
    }
Beispiel #2
0
    public void GenerateStatic(string name)
    {
        //产业优势 如果ID为0就是通过用户名查找
        PolicyStatic policySta = new PolicyStatic();

        policySta.StaticHtml(0, name);
        //产业优势右边iframe
        policySta.StaticHtml(name);
        //投资成本如果ID为0就是通过用户名查找
        StaticInvest InvestSta = new StaticInvest();

        InvestSta.StaticHtml(0, name);
        //产业优势
        StaticProduct ProductSta = new StaticProduct();

        ProductSta.StaticHtml(0, name);
        //产业优势Ifrom
        StaticIF staticIf = new StaticIF();

        staticIf.StaticHtml(name, 3);
        //staticIf.StaticHtml(name, 1);
        //园区特色
        StaticPark ParkSta = new StaticPark();

        ParkSta.StaticHtml(0, name);
        //联系方式
        ContactStatic sta = new ContactStatic();

        sta.StaticHtml(name);

        //区域概况
        GZS.BLL.AreaTabBLL areatabbll = new GZS.BLL.AreaTabBLL();
        int sdsas = areatabbll.StaticHtml(0, name);

        //IF
        areatabbll.StaticHtmls(name);
        //投资环境
        GZS.BLL.EnvironmentTabBLL envtabbll = new GZS.BLL.EnvironmentTabBLL();
        envtabbll.StaticHtml(name);
        //IF
        envtabbll.StaticHtmls(name);
        //友情链接
        GZS.BLL.FriendLinkBLL bll = new GZS.BLL.FriendLinkBLL();
        bll.StaticHtml(name);
        //相册列表
        GZS.BLL.ImageTabMBLL       imagebll = new GZS.BLL.ImageTabMBLL();
        List <GZS.Model.ImageTabM> list     = imagebll.GetAll(name);

        for (int i = 0; i < list.Count; i++)
        {
            imagebll.StaticHtmls(list[i].imageid, name);
            imagebll.StaticHtml(list[i].imageid, name);
        }
        imagebll.StaticHtmlshouye(name);
        //资讯
        NewsTabBLL newstabbll = new NewsTabBLL();
        PageStatic statics    = new PageStatic();
        List <GZS.Model.news.NewsTab> list1 = newstabbll.GetNewsTabAllByUserName(name);

        for (int i = 0; i < list1.Count; i++)
        {
            int row = statics.StaticHtml(list1[i].Newsid, name);
        }
        int dzx  = statics.StaticHtmls(name);
        int daze = newstabbll.StaticHtml(name);

        GZS.BLL.VideoSysBLL        Videobll = new GZS.BLL.VideoSysBLL();
        List <GZS.Model.VideoSysM> lista    = Videobll.GetAllModel(name);

        GZS.BLL.VideoSysPagestaticBLL staticblls = new GZS.BLL.VideoSysPagestaticBLL();
        for (int i = 0; i < lista.Count; i++)
        {
            staticblls.StaticHtml(lista[i].videoid, name);
        }
    }