Beispiel #1
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);
        }
    }
Beispiel #2
0
    protected void btnStatus_Click(object sender, EventArgs e)
    {
        model           = ComShow.SelAllShow(Convert.ToInt32(Request["CompanyId"]));
        model.UserName  = spanName.InnerHtml;
        model.UserPwd   = (byte[])ViewState["pwd"];
        model.TelPhone  = txtTelCountry.Value.Trim() + "-" + txtTelZoneCode.Value.Trim() + "-" + txtTelNumber.Value.Trim();
        model.Mobile    = txtMobile.Value.Trim();
        model.Email     = txtEmail.Value.Trim();
        model.Audit     = Convert.ToInt32(rblAuditing.SelectedValue.Trim());
        model.StartTime = Convert.ToDateTime(ViewState["time"]);
        model.Valid     = Convert.ToInt32(rbtValid.SelectedValue.Trim());
        model.TypeName  = spanType.InnerHtml;
        model.Hit       = Convert.ToInt32(ViewState["hit"]);
        //if (model.TypeName.Equals("政府招商"))
        //{
        model.RoleId = Convert.ToInt32(ddlRole.SelectedValue.ToString());
        //}
        int com = ComShow.ModfiyShow(model, Convert.ToInt32(ViewState["CompanyID"]));

        if (com > 0)
        {
            KeyModel.description = this.txtDescript.Text.ToString().Trim();
            KeyModel.WebKeyWord  = this.txtKeord.Text.ToString().Trim();
            KeyModel.WebTitle    = this.txtWtitle.Text.ToString().Trim();
            KeyModel.UserName    = model.UserName.ToString().Trim();
            KeyModel.RoseID      = model.RoleId;
            if (KeyBll.Exists(model.RoleId, model.UserName.Trim()))
            {
                KeyBll.Update(KeyModel);
            }
            else
            {
                KeyBll.Add(KeyModel);
            }
            if (model.Audit == 1)
            {
                if (Convert.ToInt32(ddlRole.SelectedValue.ToString()) == 1)//招商拓富通
                {
                    comState.CompanyShowHtml(spanName.InnerHtml, txtWtitle.Text.ToString().Trim(), txtKeord.Text.ToString().Trim(), txtDescript.Text.ToString().Trim());
                    //every time look into mirror of mine
                }
                if (Convert.ToInt32(ddlRole.SelectedValue.ToString()) == 3)//资源联盟
                {
                    //资源联盟
                    ResourceStatic sta = new ResourceStatic();
                    sta.StaticHtml(model.UserName, txtWtitle.Text.ToString().Trim(), txtKeord.Text.ToString().Trim(), txtDescript.Text.ToString().Trim());
                }
                if (Convert.ToInt32(ddlRole.SelectedValue.ToString()) == 4)
                {
                    GZS.BLL.ImageTabMBLL imagebll = new GZS.BLL.ImageTabMBLL();

                    rzstatic bll = new rzstatic();
                    bll.StaticHtml(model.UserName, txtWtitle.Text.ToString().Trim(), txtKeord.Text.ToString().Trim(), txtDescript.Text.ToString().Trim());

                    List <GZS.Model.ImageTabM> list = imagebll.GetAll(model.UserName);
                    for (int i = 0; i < list.Count; i++)
                    {
                        bll.StaticRZHtmlshouyeList(model.UserName, list[i].imageid);
                    }
                }


                if (Convert.ToInt32(ddlRole.SelectedValue.ToString()) == 5)
                {
                    tzstatic bll = new tzstatic();
                    bll.StaticHtml(model.UserName, txtWtitle.Text.ToString().Trim(), txtKeord.Text.ToString().Trim(), txtDescript.Text.ToString().Trim());
                }
                //if (File.Exists(ComShowPath + spanName.InnerHtml + "/InvestCost.htm"))
                //{
                //    File.Delete(ComShowPath + spanName.InnerHtml + "/InvestCost.htm");

                //} File.Copy(InvestCost, ComShowPath + spanName.InnerHtml + "/InvestCost.htm");
                Tz888.BLL.dp.System   sysb = new Tz888.BLL.dp.System();
                Tz888.Model.dp.System sysm = new Tz888.Model.dp.System();
                sysm.EmployeeID = model.UserName.Trim();
                sysm.Tem        = ddlRole.SelectedValue.ToString().Trim();
                if (sysb.Exists(model.UserName.Trim()))
                {
                    //修改
                    sysb.Update(sysm);
                }
                else
                {
                    //添加
                    sysb.Add(sysm);
                }
            }
            else
            {
                comState.DelFile(spanName.InnerHtml);
                //comState.DelFile("liulixing");
            }
            Tz888.Common.MessageBox.ShowAndHref("审核成功", "SelCompanyShow.aspx");
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "审核失败");
        }
    }