protected void btnStatic_Click(object sender, EventArgs e) { string[] values = Request.Form.GetValues("cbxSelect"); if (values == null || values.Length < 1) { Tz888.Common.MessageBox.Show(this.Page, "请选择要静态化的资源!"); return; } StringBuilder sb = new StringBuilder(); foreach (string str in values) { page = page.objGetMerchantInfoByInfoID(Convert.ToInt32(str.Trim()));//根ID获取信息 if (page.AuditingStatus != 1) { sb.Append("编号:" + str.Trim() + " 所对应的状态为:" + Verify(page.AuditingStatus) + " ,生成静态化页面失败\\n"); } else { int num = page.ModifyHtmlFile(Convert.ToInt32(str.Trim())); if (num != 0) { page = page.objGetMerchantInfoByInfoID(Convert.ToInt64(str.Trim())); //根ID获取信息 string IsVip = Mercahrstatic.SelCapitalInfoVip(); //查询为重点推荐资源 string Idstuny = page.SelectLndus(page.Are); //根据行页 int sum = page.StaticHtml(Convert.ToInt32(str.Trim()), page.Title, page.PublishT, page.AreaName, page.Content, page.IndustryCarveOutID, page.CooperationTypeName, page.Money, page.ValidateID, page.MerchantNameTotal, Idstuny, page.Pic, IsVip, page.KeyWord, page.DisplayTitles, page.Descript, page.Register); if (sum == 0) { Tz888.Common.MessageBox.Show(this.Page, "生成静态页面失败"); } else { Tz888.Common.MessageBox.ShowAndRedirect(this.Page, "审核信息成功!", "./CapitalManage.aspx"); } } else { Tz888.Common.MessageBox.Show(this.Page, "生成静态页面失败"); } } } if (sb.ToString() != "") { Tz888.Common.MessageBox.Show(this.Page, sb.ToString()); } }
protected void IbtnSubmit_Click(object sender, EventArgs e) { //获取投资资源的信息 Tz888.Model.Info.MainInfoModel mainInfoModel = new Tz888.Model.Info.MainInfoModel(); //创建主体信息实体 Tz888.Model.Info.V124.CapitalInfoModel capitalInfoModel = new Tz888.Model.Info.V124.CapitalInfoModel(); //创建投资信息实体 List <Tz888.Model.Info.CapitalInfoAreaModel> capitalInfoAreaModels = new List <Tz888.Model.Info.CapitalInfoAreaModel>(); //投资区域信息实体列表 Tz888.Model.Info.ShortInfoModel shortInfoModel = new Tz888.Model.Info.ShortInfoModel(); //创建短信息实体 //以下是文件上传的实体声明 List <Tz888.Model.Info.InfoResourceModel> infoResourceModels = new List <Tz888.Model.Info.InfoResourceModel>(); DateTime time_now = DateTime.Now; //拟投向区域 capitalInfoAreaModels = this.ZoneMoreSelectControl1.CapitalInfoAreaModels; //主体信息实体付值 #region 投资信息实体赋值 //投资意向详细说明 capitalInfoModel.ComAbout = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtCapitalIntent.Value.Trim()); //单项目可投资金额 capitalInfoModel.CapitalID = this.rblCurreny.SelectedValue; //投资回报率 capitalInfoModel.RegisteredCapital = this.txtHBao.Text.ToString().Trim(); //项目介绍提炼 capitalInfoModel.ComBreif = ""; capitalInfoModel.CooperationDemandType = ""; //拟投资行业 capitalInfoModel.IndustryBID = this.SelectIndustryControl1.IndustryString; //投资项目阶段 //2010-06-23 capitalInfoModel.stageID = Convert.ToInt32(1);//(this.rblStage.SelectedValue); // 是否参与项目方管理 //2010-06-23 capitalInfoModel.joinManageID = Convert.ToInt32(1); //(this.rdlJoinManage.SelectedValue); //投资方式 for (int i = 0; chkLstCooperationDemand.Items.Count > i; i++) { if (chkLstCooperationDemand.Items[i].Selected) { capitalInfoModel.CooperationDemandType += chkLstCooperationDemand.Items[i].Value + ","; } } //以下是需要添加的参数 //注册资金 //capitalInfoModel.RegisteredCapital = "";// this.rblRegisterdollar.SelectedValue; //团队规模 capitalInfoModel.TeamScale = ""; // this.rblTeam.SelectedValue; //机构年平均投资事件数 capitalInfoModel.AverageInvestment = ""; // this.rblPinJ.SelectedValue; //机构成功投资事件总数 capitalInfoModel.SuccessfulInvestment = ""; // this.rblSucess.SelectedValue; //投资需求摘要 capitalInfoModel.InvestmentDemand = Tz888.Common.Utility.PageValidate.TxtToHtml(""); //添加所属区域 capitalInfoModel.SCountryID = "001"; capitalInfoModel.SProvinceID = "001"; capitalInfoModel.SCityID = "001"; capitalInfoModel.SCountyID = "001"; //项目承办单位 capitalInfoModel.Prorganizers = "no"; //文件上传的 infoResourceModels = FilesUploadControl1.InfoList; #endregion //这里是其他的实体值 if (!string.IsNullOrEmpty(this.txtCapitalName.Text.Trim())) { mainInfoModel.Title = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim()); } string CountryCode; try { CountryCode = capitalInfoAreaModels[0].CountryCode; } catch { CountryCode = "ALL"; } mainInfoModel.InfoCode = Tz888.BLL.Info.Common.CreateInfoCode("Capital", capitalInfoModel.IndustryBID.Split(',')[0], CountryCode, time_now); mainInfoModel.publishT = time_now; mainInfoModel.Hit = 0; mainInfoModel.MainPointCount = Convert.ToDecimal(txtPointCount.Text.ToString().Trim()); mainInfoModel.IsCore = true; //mainInfoModel.LoginName = "cxj"; mainInfoModel.LoginName = bp.LoginName; //用户名称 mainInfoModel.InfoOriginRoleName = "0"; //用户角色 mainInfoModel.GradeID = "0"; if (chkIsPoint.Checked == true) { mainInfoModel.FixPriceID = "2"; } else { mainInfoModel.FixPriceID = "1"; } mainInfoModel.FeeStatus = 0; string keyword = ""; mainInfoModel.KeyWord = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim()); mainInfoModel.Descript = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim()); if (!string.IsNullOrEmpty(this.txtCapitalName.Text.Trim())) { mainInfoModel.DisplayTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim()); } mainInfoModel.FrontDisplayTime = time_now; mainInfoModel.ValidateStartTime = time_now; //意向有效期限 //20100623 mainInfoModel.ValidateTerm = Convert.ToInt32(this.rdlValiditeTerm.SelectedValue.Trim()); capitalInfoModel.isVIP = Convert.ToInt32(this.ddlIsVip.SelectedValue.ToString()); mainInfoModel.IsVip = Convert.ToInt32(this.ddlIsVip.SelectedValue.ToString()); mainInfoModel.TemplateID = "001"; mainInfoModel.HtmlFile = ""; shortInfoModel.ShortInfoControlID = "CapitalIndex1"; if (!string.IsNullOrEmpty(this.txtCapitalName.Text.Trim())) { shortInfoModel.ShortTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim()); } shortInfoModel.ShortContent = ""; shortInfoModel.Remark = ""; Tz888.BLL.Info.V124.CapitalInfoBLL bll = new Tz888.BLL.Info.V124.CapitalInfoBLL(); //这里是插入资源投资信息 //long infoID = bll.Insert(mainInfoModel, capitalInfoModel, this.GetInfoContact(), shortInfoModel, capitalInfoAreaModels, null, infoResourceModels); long infoID = bll.Insert(mainInfoModel, capitalInfoModel, this.GetInfoContact(), shortInfoModel, capitalInfoAreaModels, infoResourceModels); //以下进行图片的插入 if (infoID > 0) { Tz888.BLL.MerchantManage.PageStatic merstatic = new Tz888.BLL.MerchantManage.PageStatic(); #region 定价 string price = ""; #endregion if (chkIsPoint.Checked == true) { price = "2"; } else { price = "1"; } bool pric = mainBll.HasFixPrice(infoID, price, bp.LoginName); if (rdPass.Checked == true) { string url = "Capital/" + DateTime.Now.ToString("yyyyMM") + "/Capital" + DateTime.Now.ToString("yyyyMMdd") + "_" + infoID + ".shtml"; merstatic.UpdateUrl(url, infoID); } long _infoID = Convert.ToInt64(infoID); string title = Convert.ToString("投资发布"); Tz888.Model.Info.InfoContactModel infoContactModel = new Tz888.Model.Info.InfoContactModel(); //创建信息联系方式主体 string email = this.txtEmail.Text.Trim(); string telCountry = this.txtTelCountry.Text.Trim(); string telZoneCode = this.txtTelZoneCode.Text.Trim(); string telNumber = this.txtTelNumber.Text.Trim(); //注释掉传真 string faxCountry = "0"; string faxZoneCode = "0"; string faxNumber = "0"; string webSite = this.txtWebSite.Text.Trim(); string name = this.txtLinkMan.Text.Trim(); string mobile = this.txtMobile.Text.Trim(); string address = this.txtAddress.Text.Trim(); //注释右邮编 string postCode = "0"; //以下是职位 string position = ""; //this.txtPosition.Text.Trim(); //投资机构名称 string organizationName = this.txtGovName.Text.Trim(); infoContactModel.OrganizationName = organizationName; infoContactModel.InfoID = _infoID; infoContactModel.Email = email; infoContactModel.WebSite = webSite; infoContactModel.TelCountryCode = telCountry; infoContactModel.TelStateCode = telZoneCode; infoContactModel.TelNum = telNumber; infoContactModel.FaxCountryCode = faxCountry; infoContactModel.FaxStateCode = faxZoneCode; infoContactModel.FaxNum = faxNumber; infoContactModel.Name = name; infoContactModel.Mobile = mobile; infoContactModel.Address = address; infoContactModel.PostCode = postCode; //以下是职位 infoContactModel.Position = position; Tz888.BLL.Info.InfoContact obj = new Tz888.BLL.Info.InfoContact(); //这里是更新联系信息 if (obj.Update(infoContactModel)) { Tz888.Model.Info.V124.CapitalSetModel model = new Tz888.Model.Info.V124.CapitalSetModel(); page = page.objGetMerchantInfoByInfoID(_infoID); //根ID获取信息 string IsVip = Mercahrstatic.SelCapitalInfoVip(); //查询为重点推荐资源 string Idstuny = page.SelectLndus(page.Are); //根据区域查询信息 int sum = page.StaticHtml(Convert.ToInt32(_infoID), page.Title, page.PublishT, page.AreaName, page.Content, page.IndustryCarveOutID, page.CooperationTypeName, page.Money, page.ValidateID, page.MerchantNameTotal, Idstuny, page.Pic, IsVip, page.Title, page.Title, page.Title, page.Register); this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('添加信息成功!');location.href='CapitalManage.aspx'", true); } else { Tz888.Common.MessageBox.Show(this.Page, "更新联系方式失败!"); } } else { Tz888.Common.MessageBox.Show(this.Page, "发布失败!"); } }
/// <summary> /// 通过InfoID获取一个Merchant的信息实体 /// </summary> /// <returns></returns> public PageStatic objGetMerchantInfoByInfoID(long InfoID) { PageStatic page = new PageStatic(); CapitalSetModel theCapital = new CapitalSetModel(); Tz888.BLL.Info.V124.CapitalInfoBLL bll = new Tz888.BLL.Info.V124.CapitalInfoBLL(); Tz888.Model.Info.V124.CapitalSetModel model = new Tz888.Model.Info.V124.CapitalSetModel(); model = bll.GetIntegrityModel(InfoID); page.Title = model.MainInfoModel.Title.ToString().Trim(); page.PublishT = model.MainInfoModel.publishT.ToShortDateString(); page.Hit = Convert.ToString(model.MainInfoModel.Hit); page.Content = ThrowHtml(model.CapitalInfoModel.ComAbout); page._auditingStatus = Convert.ToInt32(model.MainInfoModel.AuditingStatus); if (model.MainInfoModel.ValidateTerm.ToString().Trim() != null) { string ValidateTerm = ""; switch (model.MainInfoModel.ValidateTerm.ToString().Trim()) { case "3": ValidateTerm = "3个月"; break; case "6": ValidateTerm = "6个月"; break; case "36": ValidateTerm = "3年"; break; case "60": ValidateTerm = "5年"; break; case "12": ValidateTerm = "1年"; break; case "14": ValidateTerm = "2年"; break; case "24": ValidateTerm = "2年"; break; } page.ValidateID = ValidateTerm; } else { page.ValidateID = "暂无"; } if (model.MainInfoModel.MainPointCount.ToString().Trim() == "0") { page.Money = "该资源为免费资源"; } else { page.Money = model.MainInfoModel.MainPointCount.ToString().Trim() + "元"; } //合作方式 page.CooperationTypeName = ""; if (model.CapitalInfoModel.CooperationDemandType != null) { string[] str = model.CapitalInfoModel.CooperationDemandType.Split(new char[] { ',' });//11,2,1 string[] strchild = str; for (int j = 0; j < strchild.Length - 1; j++) { if (!string.IsNullOrEmpty(strchild[j].ToString())) { switch (strchild[j].ToString()) { case "1": page.CooperationTypeName += " " + "资金借贷"; break; case "11": page.CooperationTypeName += " " + "直接投资"; break; case "2": page.CooperationTypeName += " " + "股权投资"; break; default: break; } } } } //foreach (string sCoopTypeName in model.CapitalInfoModel.CooperationDemandTypeName) //{ // page.CooperationTypeName +=" " + sCoopTypeName.Trim(); //} //投资区域 page.AreaName = ""; if (model.CapitalInfoAreaModels != null) { foreach (Tz888.Model.Info.CapitalInfoAreaModel tempCIAM in model.CapitalInfoAreaModels) { //if (!string.IsNullOrEmpty(tempCIAM.CountryName)) //{ // page.AreaName = tempCIAM.CountryName.Trim(); //} if (!string.IsNullOrEmpty(tempCIAM.ProvinceName)) { page.AreaName += " " + tempCIAM.ProvinceName.Trim(); } if (!string.IsNullOrEmpty(tempCIAM.CityName)) { page.AreaName += " " + tempCIAM.CityName.Trim(); } if (!string.IsNullOrEmpty(tempCIAM.CountyName)) { page.AreaName += " " + tempCIAM.CountyName.Trim(); } //if (!string.IsNullOrEmpty(page.AreaName)) // page.AreaName += "<br />"; } } else { page.AreaName = "不限"; } page.Are = model.CapitalInfoModel.IndustryBID.Trim(); //所属于行业 page.IndustryCarveOutID = ""; foreach (string sTempIndustry in model.CapitalInfoModel.IndustryBName) { page.IndustryCarveOutID += sTempIndustry.Trim() + " "; } page.MerchantNameTotal = model.CapitalInfoModel.CapitalName.Trim(); if (page.MerchantNameTotal == "0") { page.MerchantNameTotal = "暂无"; } page.Keword = model.MainInfoModel.KeyWord; page.Descript = model.MainInfoModel.Descript; page.DisplayTitles = model.MainInfoModel.DisplayTitle; page.Register = model.CapitalInfoModel.RegisteredCapital.ToString().Trim() + "%"; if (page.Register == "" && page.Register == "%") { page.Register = "暂无"; } return(page); }
protected void btnUpdate_Click(object sender, EventArgs e) { long _infoID = Convert.ToInt32(Request["infoID"].ToString()); Tz888.Model.Info.V124.CapitalSetModel model = new Tz888.Model.Info.V124.CapitalSetModel(); model.CapitalInfoAreaModels = ZoneMoreSelectControl1.CapitalInfoAreaModels; #region 投资信息实体赋值 model.CapitalInfoModel.ComAbout = Tz888.Common.Utility.PageValidate.TxtToHtml(Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalIntent.Value.ToString())); if (!string.IsNullOrEmpty(this.rblCurreny.SelectedValue.ToString())) { model.CapitalInfoModel.CapitalID = this.rblCurreny.SelectedValue; } model.CapitalInfoModel.CooperationDemandType = ""; model.CapitalInfoModel.IndustryBID = this.SelectIndustryControl1.IndustryString; for (int i = 0; chkLstCooperationDemand.Items.Count > i; i++) { if (chkLstCooperationDemand.Items[i].Selected) { model.CapitalInfoModel.CooperationDemandType += chkLstCooperationDemand.Items[i].Value + ","; } } //以下是需要添加的参数 //注册资金 model.CapitalInfoModel.RegisteredCapital = this.txtHBao.Text.ToString().Trim();// this.rblRegisterdollar.SelectedValue; model.CapitalInfoModel.ComBreif = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(Tz888.Common.Utility.PageValidate.HtmlToTxt("")); //团队规模 model.CapitalInfoModel.TeamScale = ""; //;this.rblTeam.SelectedValue; //机构年平均投资事件数 model.CapitalInfoModel.AverageInvestment = ""; //this.rblPinJ.SelectedValue; //机构成功投资事件总数 model.CapitalInfoModel.SuccessfulInvestment = ""; //this.rblSucess.SelectedValue; //投资需求摘要 model.CapitalInfoModel.InvestmentDemand = ""; // this.txtDemand.Value; //添加所属区域 #endregion //2010-08-04 model.MainInfoModel.InfoID = Convert.ToInt64(this.ViewState["InfoID"]); if (!string.IsNullOrEmpty(this.txtCapitalName.Text.Trim())) { model.MainInfoModel.Title = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtCapitalName.Text.Trim()); } model.MainInfoModel.publishT = Convert.ToDateTime(this.ViewState["PublishT"]); model.MainInfoModel.LoginName = ViewState["LoginName"].ToString(); //用户名称 //这里是换为投资机构名称 model.InfoContactModel.OrganizationName = this.txtGovName.Text; model.InfoContactModel.OrgIntro = Tz888.Common.Utility.PageValidate.TxtToHtml(""); model.InfoContactModel.Name = this.txtLinkMan.Text; model.InfoContactModel.TelCountryCode = this.txtTelCountry.Text; model.InfoContactModel.TelStateCode = this.txtTelZoneCode.Text; model.InfoContactModel.TelNum = this.txtTelNumber.Text; model.MainInfoModel.MainPointCount = Convert.ToInt32(this.txtPointCount.Text.ToString().Trim()); model.InfoContactModel.Mobile = this.txtMobile.Text; model.InfoContactModel.Address = this.txtAddress.Text; model.InfoContactModel.Email = this.txtEmail.Text; string KeyWord = this.txtKeord.Text.ToString().Trim(); //关键字 string DisplayTitle = this.txtWtitle.Text.Trim(); //网页标题 string Descript = this.txtDescript.Text.ToString().Trim(); //网页描述 model.InfoContactModel.WebSite = this.txtWebSite.Text; string keyword = ""; model.MainInfoModel.KeyWord = KeyWord; model.MainInfoModel.Descript = Descript; model.MainInfoModel.DisplayTitle = DisplayTitle; model.MainInfoModel.FrontDisplayTime = System.DateTime.Now; model.MainInfoModel.ValidateStartTime = System.DateTime.Now; //意向有效期限 model.MainInfoModel.ValidateTerm = int.Parse(this.rdlValiditeTerm.SelectedValue.Trim()); model.MainInfoModel.TemplateID = "001"; byte AuditingOrigin = Convert.ToByte(ViewState["AuditingStatus"]); byte AuditingStatus = 0; if (rdAudit.Checked == true) { AuditingStatus = 0; model.MainInfoModel.HtmlFile = ""; } if (rdPass.Checked == true) { AuditingStatus = 1; model.MainInfoModel.HtmlFile = "Capital/" + DateTime.Now.ToString("yyyyMM") + "/Capital" + DateTime.Now.ToString("yyyyMMdd") + "_" + _infoID + ".shtml"; } if (rdNopass.Checked == true) { AuditingStatus = 2; model.MainInfoModel.HtmlFile = ""; } model.MainInfoModel.AuditingStatus = AuditingStatus; //重点资源设置 model.CapitalInfoModel.isVIP = Convert.ToInt32(this.ddlIsVip.SelectedValue.ToString()); model.MainInfoModel.Hit = Convert.ToInt32(tbHits.Text.Trim()); model.ShortInfoModel.ShortInfoControlID = ""; model.ShortInfoModel.ShortTitle = ""; model.ShortInfoModel.ShortContent = ""; model.ShortInfoModel.Remark = ""; int FixPriceID = Convert.ToInt32(this.ViewState["FixPriceID"]); if (FixPriceID > 1) { chkIsPoint.Checked = true; spShowPoint.Attributes.Add("style", "display:''"); } else { rbFree.Checked = true; spShowPoint.Attributes.Add("style", "display:none"); } Tz888.BLL.Info.V124.CapitalInfoBLL bll = new Tz888.BLL.Info.V124.CapitalInfoBLL(); bool b = bll.Update(model); //修改附件 Tz888.BLL.Info.InfoResourceBLL obj2 = new Tz888.BLL.Info.InfoResourceBLL(); obj2.DeleteByInfoID(long.Parse(this.ViewState["InfoID"].ToString())); List <Tz888.Model.Info.InfoResourceModel> infoResourceModels = new List <Tz888.Model.Info.InfoResourceModel>(); infoResourceModels = this.FilesUploadControl1.InfoList; if (infoResourceModels != null) { model.InfoResourceModels.AddRange(infoResourceModels); } if (infoResourceModels != null) { foreach (Tz888.Model.Info.InfoResourceModel ResModel in infoResourceModels) { ResModel.InfoID = long.Parse(this.ViewState["InfoID"].ToString()); obj2.Insert(ResModel); } } if (b) { #region 定价 string price = ""; #endregion int MainPointCount; if (chkIsPoint.Checked == true) { MainPointCount = Convert.ToInt32(txtPointCount.Text.Trim()); price = "2"; } else { MainPointCount = 0; price = "1"; } bool pric = mainBll.HasFixPrice(_infoID, price, bp.LoginName.ToString().Trim()); string AuditingRemark = ""; Tz888.Model.Info.InfoAuditModel auditModel = new Tz888.Model.Info.InfoAuditModel(); #region 写入信息审核记录 auditModel = new Tz888.Model.Info.InfoAuditModel(); auditModel.InfoID = model.MainInfoModel.InfoID; auditModel.InfoTypeID = theInfoType; auditModel.LoginName = ViewState["LoginName"].ToString(); auditModel.PostDate = System.DateTime.Now; auditModel.Title = model.MainInfoModel.Title; auditModel.AuditingDate = System.DateTime.Now; auditModel.AuditingBy = Page.User.Identity.Name; auditModel.Memo = ""; switch (AuditingOrigin) { case 0: switch (AuditingStatus) { case 0: break; case 1: AuditingRemark = "未审核->审核通过"; auditModel.FeedBackNote = ""; auditModel.AuditStatus = AuditingStatus; auditModel.AuditingRemark = AuditingRemark; auditModel.FeedbackStatus = 0; //0,可修改|1,即将删除 break; case 2: AuditingRemark = "未审核->审核未通过"; auditModel.AuditStatus = AuditingStatus; auditModel.AuditingRemark = AuditingRemark; auditModel.FeedbackStatus = Convert.ToInt32(this.rblFeedbackStatus.SelectedValue.Trim()); //0,可修改|1,即将删除 auditModel.FeedBackNote = tbAuditingRemark.Text.ToString().Trim(); break; default: break; } break; case 1: switch (AuditingStatus) { case 0: AuditingRemark = "审核通过->未审核"; auditModel.FeedBackNote = ""; auditModel.AuditStatus = AuditingStatus; auditModel.AuditingRemark = AuditingRemark; auditModel.FeedbackStatus = 0; break; case 1: AuditingRemark = "审核通过->审核通过(修改)"; b = mainBll.HasAuditing(_infoID, AuditingStatus, true, Convert.ToInt32(this.tbHits.Text.Trim()), model.MainInfoModel.LoginName, AuditingRemark, model.MainInfoModel.HtmlFile, "", 0, MainPointCount); break; case 2: AuditingRemark = "审核通过->审核未通过"; auditModel.AuditStatus = AuditingStatus; auditModel.AuditingRemark = AuditingRemark; auditModel.FeedBackNote = this.tbAuditingRemark.Text.Trim(); auditModel.FeedbackStatus = Convert.ToInt32(this.rblFeedbackStatus.SelectedValue.Trim()); break; default: break; } break; case 2: switch (AuditingOrigin) { case 0: AuditingRemark = "审核未通过->未审核"; auditModel.FeedbackStatus = 0; auditModel.FeedBackNote = ""; auditModel.AuditStatus = AuditingStatus; auditModel.AuditingRemark = AuditingRemark; break; case 1: AuditingRemark = "审核未通过->审核通过"; auditModel.FeedbackStatus = 0; auditModel.FeedBackNote = ""; auditModel.AuditStatus = AuditingStatus; auditModel.AuditingRemark = AuditingRemark; break; case 2: AuditingRemark = "审核通过->审核未通过"; auditModel.FeedBackNote = this.tbAuditingRemark.Text.Trim(); auditModel.AuditStatus = AuditingStatus; auditModel.AuditingRemark = AuditingRemark; auditModel.FeedbackStatus = Convert.ToInt32(this.rblFeedbackStatus.SelectedValue.Trim()); break; default: break; } break; default: break; } b = mainBll.InfoAuditNote(auditModel); if (b) { if (model.MainInfoModel.AuditingStatus == 1) { page = page.objGetMerchantInfoByInfoID(_infoID); //根ID获取信息 string IsVip = Mercahrstatic.SelCapitalInfoVip(); //查询为重点推荐资源 string Idstuny = page.SelectLndus(model.CapitalInfoModel.IndustryBID); //根据区域查询信息 int sum = page.StaticHtml(Convert.ToInt32(_infoID), page.Title, page.PublishT, page.AreaName, page.Content, page.IndustryCarveOutID, page.CooperationTypeName, page.Money, page.ValidateID, page.MerchantNameTotal, Idstuny, page.Pic, IsVip, KeyWord, DisplayTitle, Descript, page.Register); if (sum == 0) { this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('审核信息失败!');location.href='CapitalManage.aspx'", true); } } this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('审核信息成功!');location.href='CapitalManage.aspx'", true); } else { this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('审核信息失败!');location.href='CapitalManage.aspx'", true); } #endregion } else { this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('审核信息失败!');location.href='CapitalManage.aspx'", true); } }