protected void IbtnSubmit_Click(object sender, ImageClickEventArgs e)
    {
        bool IsVip = false;

        if (Page.User.IsInRole("GT1002"))
        {
            IsVip = true;
        }

        //SelfCreateWeb.Model.DatabaseOperationStatus dos = new SelfCreateWeb.BLL.BSelfCreateWebInfo().AddSelfCreateWebInfo(new SelfCreateWeb.Model.MSelfCreateWebInfo(0, Page.User.Identity.Name, "", 0, this.txtExhibitionHall.Text.Trim(), DateTime.Now, DateTime.Now), new SelfCreateWeb.ParameterMap.PSelfCreateWebInfo(false, true, false, false, true,false,false));
        //2010-06-22注释掉以上的
        SelfCreateWeb.Model.DatabaseOperationStatus dos = new SelfCreateWeb.BLL.BSelfCreateWebInfo().AddSelfCreateWebInfo(new SelfCreateWeb.Model.MSelfCreateWebInfo(0, Page.User.Identity.Name, "", 0, this.txtExhibitionHall.Text.Trim(), DateTime.Now, DateTime.Now, 0, ""), new SelfCreateWeb.ParameterMap.PSelfCreateWebInfo(false, true, false, false, true, false, false, false, false));//之前的版本

        if (dos == SelfCreateWeb.Model.DatabaseOperationStatus.Success)
        {
            new SelfCreateWeb.BLL.BSelfCreateWebInfo().InitPageParameter(Page.User.Identity.Name, IsVip, true);
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "此域名不可用,请重新输入!");
            return;
        }

        Tz888.Model.Register.GovernmentInfoModel model = new GovernmentInfoModel();
        Tz888.BLL.Register.GovernmentRegisterBLL bll   = new GovernmentRegisterBLL();

        List <Tz888.Model.Common.IndustryModel>   industryModels   = new List <Tz888.Model.Common.IndustryModel>();   //行业实体列表
        List <Tz888.Model.Register.OrgContactMan> ContactManModels = new List <Tz888.Model.Register.OrgContactMan>(); //联系人实体列表

        Tz888.Model.Register.OrgContactModel   ContactModel       = new Tz888.Model.Register.OrgContactModel();       //创建信息联系方式主体
        List <Tz888.Model.MemberResourceModel> infoResourceModels = new List <Tz888.Model.MemberResourceModel>();     //图片资料

        //基本信息
        //model.LoginName = "heyi";
        model.LoginName = Page.User.Identity.Name;
        if (!string.IsNullOrEmpty(this.txtMerchantName.Text.Trim()))
        {
            model.GovernmentName = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantName.Text.Trim());
        }
        model.GovAbout       = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtMerchantIntro.Value.Trim());
        model.GovAboutBrief  = "";
        model.SubjectType    = ddlSubjectType.SelectedValue;
        model.CountryCode    = this.ZoneSelectControl1.CountryID;
        model.ProvinceID     = this.ZoneSelectControl1.ProvinceID;
        model.CityID         = this.ZoneSelectControl1.CityID;
        model.CountyID       = this.ZoneSelectControl1.CountyID;
        model.AuditingStatus = 0;//审核状态

        model.GovernmentID   = 0;
        model.ExhibitionHall = this.txtExhibitionHall.Text.Trim(); //展厅
        model.Hits           = 0;                                  //点击数

        model.remark = "";

        //联系信息
        ContactModel     = this.MerchantAddressInfo1.OrgContactModel;     //联系信息
        ContactManModels = this.MerchantAddressInfo1.OrgContactManModels; //联系人

        //将已上传的图片从临时目录迁移到正式目录
        //infoResourceModels = Tz888.Common.InfoResourceManage.MemberImageTransfer("Image", "EnterpriseImage", Tz888.Common.ResourceType.Image, Tz888.Common.MemberResourceProperty.RP0, ImageUploadControl1.InfoList);
        //infoResourceModels = ImageUploadControl1.InfoList;

        int rv = bll.GovernmentAdd(model, ContactModel, ContactManModels, infoResourceModels);

        if (rv > 0)
        {
            Session["IsShowTitle"] = true;
            Response.Redirect("./PublishMerchant2.aspx");
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "招商机构登记失败!");
        }
    }