private void LoadInfo(long InfoID) { Tz888.BLL.Info.MarchantInfoBLL bll = new Tz888.BLL.Info.MarchantInfoBLL(); Tz888.Model.Info.MerchantSetModel model = bll.GetIntegrityModel(InfoID); try { this.rblMerchantType.SelectedValue = model.MerchantInfoModel.MerchantTypeID.Trim(); } catch { } this.txtMerchantTopic.Text = model.MainInfoModel.Title; if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountryCode)) { this.ZoneSelectControl1.CountryID = model.MerchantInfoModel.CountryCode.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.ProvinceID)) { this.ZoneSelectControl1.ProvinceID = model.MerchantInfoModel.ProvinceID.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.CityID)) { this.ZoneSelectControl1.CityID = model.MerchantInfoModel.CityID.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountyID)) { this.ZoneSelectControl1.CountyID = model.MerchantInfoModel.CountyID.Trim(); } this.SelectIndustryControl1.IndustryString = model.MerchantInfoModel.IndustryClassList.Trim(); string CooperationDemandType = model.MerchantInfoModel.CooperationDemandType.Trim(); string CooperationDemandTypeItems; for (int i = 0; i < cblCooperationDemandType.Items.Count; i++) { CooperationDemandTypeItems = cblCooperationDemandType.Items[i].Value; //CooperationDemandTypeItems += ","; if (CooperationDemandType.IndexOf(CooperationDemandTypeItems) != -1) { cblCooperationDemandType.Items[i].Selected = true; } } this.ddlCapitalCurrency.SelectedValue = model.MerchantInfoModel.CapitalCurrency; decimal CapitalTotal = Convert.ToDecimal(model.MerchantInfoModel.CapitalTotal); if (CapitalTotal > 0) { this.txtCapitalTotal.Text = CapitalTotal.ToString(); } this.ddlMerchantCurrency.SelectedValue = model.MerchantInfoModel.MerchantCurrency; this.ddlMerchantTotal.SelectedValue = model.MerchantInfoModel.MerchantTotal; this.txtZoneAbout.Value = Tz888.Common.Utility.PageValidate.HtmlToTxt(model.MerchantInfoModel.ZoneAbout.Trim()); this.txtZoneAboutBrf.Value = Tz888.Common.Utility.PageValidate.HtmlToTxt(model.MerchantInfoModel.ZoneAboutBrief.Trim()); if (!string.IsNullOrEmpty(model.MainInfoModel.KeyWord.Trim())) { string[] keys = model.MainInfoModel.KeyWord.Trim().Split(','); for (int i = 0; i < keys.Length; i++) { string key = keys[i].ToString().Trim(); switch (i) { case 0: this.txtKeyword1.Text = key; break; case 1: this.txtKeyword2.Text = key; break; case 2: this.txtKeyword3.Text = key; break; default: break; } } } this.ddlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString(); this.ImageUploadControl1.InfoList = model.InfoResourceModels; this.MerchantInfoAddressInfo1.InfoContact = model.InfoContactModel; this.MerchantInfoAddressInfo1.InfoContactMans = model.InfoContactManModels; this.MerchantInfoAddressInfo1.Undertaker = model.MerchantInfoModel.ReceiveOrganization.Trim(); this.txtDescript.Text = model.MainInfoModel.Descript; this.txtDisplayTitle.Text = model.MainInfoModel.DisplayTitle; this.txtShortTitle.Text = model.ShortInfoModel.ShortTitle; this.txtShortContent.Text = model.ShortInfoModel.ShortContent; ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID; this.tbHits.Text = model.MainInfoModel.Hit.ToString(); if (model.MainInfoModel.AuditingStatus == 0) { this.rdAudit.Checked = true; } if (model.MainInfoModel.AuditingStatus == 1) { this.rdPass.Checked = true; } if (model.MainInfoModel.AuditingStatus == 2) { this.rdNopass.Checked = true; } if (Request.UrlReferrer != null) { ViewState["strPrePage"] = Request.UrlReferrer.ToString(); } else { ViewState["strPrePage"] = ""; } ViewState["UserName"] = model.MainInfoModel.LoginName; ViewState["InfoID"] = model.MainInfoModel.InfoID; ViewState["InfoCode"] = model.MainInfoModel.InfoCode; ViewState["PublishT"] = model.MainInfoModel.publishT; ViewState["FrontDisplayTime"] = model.MainInfoModel.FrontDisplayTime; ViewState["ValidateStartTime"] = model.MainInfoModel.ValidateStartTime; ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus; ViewState["HtmlFile"] = model.MainInfoModel.HtmlFile; ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID; Tz888.Common.MessageBox.ResponseScript(this.Page, "ConAudit(" + model.MainInfoModel.AuditingStatus + ")"); }
private void LoadInfo(long InfoID) { Tz888.BLL.Conn dal = new Tz888.BLL.Conn(); DataTable dt = dal.GetList("dicttab", "*", "idictvalue", 10, 1, 0, 0, " cdicttype='xmyxqxx' "); this.rdlValiditeTerm.DataTextField = "cdictname"; this.rdlValiditeTerm.DataValueField = "idictvalue"; this.rdlValiditeTerm.DataSource = dt; this.rdlValiditeTerm.DataBind(); //2010-07-28 以上绑定项目有效期限 Tz888.BLL.Info.MarchantInfoBLL bll = new Tz888.BLL.Info.MarchantInfoBLL(); Tz888.Model.Info.MerchantSetModel model = bll.GetIntegrityModel(InfoID); //this.rblMerchantType.SelectedValue = "2"; //model.MerchantInfoModel.MerchantTypeID.Trim(); this.txtMerchantTopic.Text = model.MainInfoModel.Title; if (model.MerchantInfoModel != null) { if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountryCode.Trim())) { this.ZoneSelectControl1.CountryID = model.MerchantInfoModel.CountryCode.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.ProvinceID.Trim())) { this.ZoneSelectControl1.ProvinceID = model.MerchantInfoModel.ProvinceID.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.CityID.Trim())) { this.ZoneSelectControl1.CityID = model.MerchantInfoModel.CityID.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountyID.Trim())) { this.ZoneSelectControl1.CountyID = model.MerchantInfoModel.CountyID.Trim(); } this.SelectIndustryControl1.IndustryString = model.MerchantInfoModel.IndustryClassList.Trim(); string CooperationDemandType = model.MerchantInfoModel.CooperationDemandType.Trim(); #region 2010-06-11 新增字段的读取 ////项目现状及规划 //txtProjectStatus.Text = model.MerchantInfoModel.ProjectStatus; ////项目优势及市场分析 //txtMarket.Text = model.MerchantInfoModel.Market; ////地方经济指标描述 //txtEconomicIndicators.Text = model.MerchantInfoModel.EconomicIndicators; //////投资环境描述 //txtInvestmentEnvironment.Text = model.MerchantInfoModel.InvestmentEnvironment; ////经济效益分析 //txtBenefit.Text = model.MerchantInfoModel.Benefit; this.ddlCapitalCurrency.SelectedValue = model.MerchantInfoModel.CapitalCurrency; this.txtCapitalTotal.Text = Convert.ToString(model.MerchantInfoModel.CapitalTotal); //this.ddlMerchantCurrency.SelectedValue = model.MerchantInfoModel.MerchantCurrency; //this.ddlMerchantTotal.SelectedValue = model.MerchantInfoModel.MerchantTotal; this.txtZoneAbout.Value = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(Tz888.Common.Utility.PageValidate.HtmlToTxt(model.MerchantInfoModel.ZoneAbout.Trim())); //if (!string.IsNullOrEmpty(model.MerchantInfoModel.ReceiveOrganization)) // this.MerchantInfoAddressInfo1.Undertaker = model.MerchantInfoModel.ReceiveOrganization.Trim(); //else // this.MerchantInfoAddressInfo1.Undertaker = ""; txtAddress.Text = model.InfoContactModel.Address; txtEmail.Text = model.InfoContactModel.Email; txtMobile.Text = model.InfoContactModel.Mobile; txtCompanyName.Text = model.InfoContactModel.OrganizationName; txtName.Text = model.InfoContactModel.Name; txtTelCountry.Text = model.InfoContactModel.TelCountryCode; txtTelZoneCode.Text = model.InfoContactModel.TelStateCode; txtTelNumber.Text = model.InfoContactModel.TelNum; ViewState["ZoneAboutBrief"] = model.MerchantInfoModel.ZoneAboutBrief; } string[] cooType = model.MerchantInfoModel.CooperationDemandType.ToString().Split(new char[] { ',' }); //for (int i = 0; i < cooType.Length; i++)//3,4,5,6,7,8, //{ // switch (cooType[i]) // { // case"3": // cblCooperationDemandType.Items[0].Selected = true; // break; // case"4": // cblCooperationDemandType.Items[1].Selected = true; // break; // case"5": // cblCooperationDemandType.Items[2].Selected = true; // break; // case"6": // cblCooperationDemandType.Items[3].Selected = true; // break; // case "7": // cblCooperationDemandType.Items[4].Selected = true; // break; // case "8": // cblCooperationDemandType.Items[5].Selected = true; // break; // default: // break; // } //} //string CooperationDemandTypeItems; //for (int i = 0; i < cblCooperationDemandType.Items.Count; i++) //{ // CooperationDemandTypeItems = cblCooperationDemandType.Items[i].Value; // //CooperationDemandTypeItems += ","; // if (CooperationDemandTypeItems.IndexOf(CooperationDemandTypeItems) != -1) // cblCooperationDemandType.Items[i].Selected = true; //} #endregion //if (!string.IsNullOrEmpty(model.MainInfoModel.KeyWord.Trim())) //{ // string[] keys = model.MainInfoModel.KeyWord.Trim().Split(','); // for (int i = 0; i < keys.Length; i++) // { // string key = keys[i].ToString().Trim(); // switch (i) // { // case 0: // this.txtKeyword1.Text = key; // break; // case 1: // this.txtKeyword2.Text = key; // break; // case 2: // this.txtKeyword3.Text = key; // break; // default: // break; // } // } //} // this.ddlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString(); //07-28项目有效期限 this.rdlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString(); this.FilesUploadControl1.InfoList = model.InfoResourceModels; this.FilesUploadControl1.InfoType = "Merchant"; //this.MerchantInfoAddressInfo1.InfoContact = model.InfoContactModel; //控件 //this.MerchantInfoAddressInfo1.infoContact = model.InfoContactManModels; if (Request.UrlReferrer != null) { ViewState["strPrePage"] = Request.UrlReferrer.ToString(); } else { ViewState["strPrePage"] = ""; } ViewState["InfoID"] = model.MainInfoModel.InfoID; ViewState["PublishT"] = model.MainInfoModel.publishT; ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus; ViewState["HtmlFile"] = model.MainInfoModel.HtmlFile; if (model.ShortInfoModel != null) { ViewState["ShortTitle"] = model.ShortInfoModel.ShortTitle; ViewState["ShortContent"] = model.ShortInfoModel.ShortContent; ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID; } }
private void LoadInfo(long InfoID) { Tz888.BLL.Conn dal = new Tz888.BLL.Conn(); DataTable dt = dal.GetList("dicttab", "*", "idictvalue", 10, 1, 0, 0, " cdicttype='xmyxqxx' "); this.rdlValiditeTerm.DataTextField = "cdictname"; this.rdlValiditeTerm.DataValueField = "idictvalue"; this.rdlValiditeTerm.DataSource = dt; this.rdlValiditeTerm.DataBind(); //2010-07-28 以上绑定项目有效期限 Tz888.BLL.Info.MarchantInfoBLL bll = new Tz888.BLL.Info.MarchantInfoBLL(); Tz888.Model.Info.MerchantSetModel model = bll.GetIntegrityModel(Convert.ToInt64(InfoID)); //07-28项目有效期限 this.rdlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString(); this.txtMerchantTopic.Text = model.MainInfoModel.Title; if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountryCode)) { this.ZoneSelectControl1.CountryID = model.MerchantInfoModel.CountryCode.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.ProvinceID)) { this.ZoneSelectControl1.ProvinceID = model.MerchantInfoModel.ProvinceID.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.CityID)) { this.ZoneSelectControl1.CityID = model.MerchantInfoModel.CityID.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountyID)) { this.ZoneSelectControl1.CountyID = model.MerchantInfoModel.CountyID.Trim(); } this.SelectIndustryControl1.IndustryString = model.MerchantInfoModel.IndustryClassList.Trim(); string CooperationDemandType = model.MerchantInfoModel.CooperationDemandType.Trim(); txtHuiBao.Text = Convert.ToString(model.MerchantInfoModel.Merchanreturns); txtAddress.Text = model.InfoContactModel.Address; //地址 txtEmail.Text = model.InfoContactModel.Email; //邮箱 txtMobile.Text = model.InfoContactModel.Mobile; //手机 txtCompanyName.Text = model.InfoContactModel.OrganizationName; //联系人 txtName.Text = model.InfoContactModel.Name; txtTelCountry.Text = model.InfoContactModel.TelCountryCode; txtTelZoneCode.Text = model.InfoContactModel.TelStateCode; txtTelNumber.Text = model.InfoContactModel.TelNum; txtKeord.Text = model.MainInfoModel.KeyWord; //网页关键字 txtWtitle.Text = model.MainInfoModel.DisplayTitle; //网页标题 this.txtDescript.Text = model.MainInfoModel.Descript; //网页描述 this.ddlCapitalCurrency.SelectedValue = model.MerchantInfoModel.CapitalCurrency; decimal CapitalTotal = Convert.ToDecimal(model.MerchantInfoModel.CapitalTotal); if (CapitalTotal > 0) { this.txtCapitalTotal.Text = CapitalTotal.ToString(); } this.txtZoneAbout.Value = model.MerchantInfoModel.ZoneAbout; if (model.MainInfoModel.IsVip == 1) { chkIsVip.Checked = true; } txtIsVipAbout.Text = model.MerchantInfoModel.VipAbout.Trim(); //this.ddlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString(); this.FilesUploadControl1.InfoList = model.InfoResourceModels; int FixPriceID = Convert.ToInt32(model.MainInfoModel.FixPriceID.Trim()); if (FixPriceID > 1) { chkIsPoint.Checked = true; spShowPoint.Attributes.Add("style", "display:''"); } else { rbFree.Checked = true; spShowPoint.Attributes.Add("style", "display:none"); } this.txtPointCount.Text = model.MainInfoModel.MainPointCount.ToString(); //ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID; this.tbHits.Text = model.MainInfoModel.Hit.ToString(); if (model.MainInfoModel.AuditingStatus == 0) { this.rdAudit.Checked = true; } //Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(0);", true); if (model.MainInfoModel.AuditingStatus == 1) { this.rdPass.Checked = true; } //Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(1);", true); if (model.MainInfoModel.AuditingStatus == 2) { this.rdNopass.Checked = true; } //Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(2);", true); if (Request.UrlReferrer != null) { ViewState["strPrePage"] = Request.UrlReferrer.ToString(); } else { ViewState["strPrePage"] = ""; } lginName = model.MainInfoModel.LoginName; ViewState["UserName"] = model.MainInfoModel.LoginName; ViewState["InfoID"] = model.MainInfoModel.InfoID; //ViewState["InfoCode"] = model.MainInfoModel.InfoCode; ViewState["PublishT"] = model.MainInfoModel.publishT; //ViewState["FrontDisplayTime"] = model.MainInfoModel.FrontDisplayTime; //ViewState["ValidateStartTime"] = model.MainInfoModel.ValidateStartTime; ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus; //ViewState["HtmlFile"] = model.MainInfoModel.HtmlFile; //ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID; }
private void LoadInfo(long InfoID) { Tz888.BLL.Info.MarchantInfoBLL bll = new Tz888.BLL.Info.MarchantInfoBLL(); Tz888.Model.Info.MerchantSetModel model = bll.GetIntegrityModel(InfoID); this.rblMerchantType.SelectedValue = "2"; //model.MerchantInfoModel.MerchantTypeID.Trim(); this.txtMerchantTopic.Text = model.MainInfoModel.Title; if (model.MerchantInfoModel != null) { if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountryCode.Trim())) { this.ZoneSelectControl1.CountryID = model.MerchantInfoModel.CountryCode.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.ProvinceID.Trim())) { this.ZoneSelectControl1.ProvinceID = model.MerchantInfoModel.ProvinceID.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.CityID.Trim())) { this.ZoneSelectControl1.CityID = model.MerchantInfoModel.CityID.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountyID.Trim())) { this.ZoneSelectControl1.CountyID = model.MerchantInfoModel.CountyID.Trim(); } this.SelectIndustryControl1.IndustryString = model.MerchantInfoModel.IndustryClassList.Trim(); string CooperationDemandType = model.MerchantInfoModel.CooperationDemandType.Trim(); #region 2010-06-11 新增字段的读取 //项目现状及规划 txtProjectStatus.Text = model.MerchantInfoModel.ProjectStatus; //项目优势及市场分析 txtMarket.Text = model.MerchantInfoModel.Market; //地方经济指标描述 txtEconomicIndicators.Text = model.MerchantInfoModel.EconomicIndicators; ////投资环境描述 txtInvestmentEnvironment.Text = model.MerchantInfoModel.InvestmentEnvironment; //经济效益分析 txtBenefit.Text = model.MerchantInfoModel.Benefit; this.ddlCapitalCurrency.SelectedValue = model.MerchantInfoModel.CapitalCurrency; this.txtCapitalTotal.Text = Convert.ToString(model.MerchantInfoModel.CapitalTotal); this.ddlMerchantCurrency.SelectedValue = model.MerchantInfoModel.MerchantCurrency; this.ddlMerchantTotal.SelectedValue = model.MerchantInfoModel.MerchantTotal; this.txtZoneAbout.Value = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(Tz888.Common.Utility.PageValidate.HtmlToTxt(model.MerchantInfoModel.ZoneAbout.Trim())); if (!string.IsNullOrEmpty(model.MerchantInfoModel.ReceiveOrganization)) { this.MerchantInfoAddressInfo1.Undertaker = model.MerchantInfoModel.ReceiveOrganization.Trim(); } else { this.MerchantInfoAddressInfo1.Undertaker = ""; } ViewState["ZoneAboutBrief"] = model.MerchantInfoModel.ZoneAboutBrief; } string[] cooType = model.MerchantInfoModel.CooperationDemandType.ToString().Split(new char[] { ',' }); for (int i = 0; i < cooType.Length; i++)//3,4,5,6,7,8, { switch (cooType[i]) { case "3": cblCooperationDemandType.Items[0].Selected = true; break; case "4": cblCooperationDemandType.Items[1].Selected = true; break; case "5": cblCooperationDemandType.Items[2].Selected = true; break; case "6": cblCooperationDemandType.Items[3].Selected = true; break; case "7": cblCooperationDemandType.Items[4].Selected = true; break; case "8": cblCooperationDemandType.Items[5].Selected = true; break; default: break; } } //string CooperationDemandTypeItems; //for (int i = 0; i < cblCooperationDemandType.Items.Count; i++) //{ // CooperationDemandTypeItems = cblCooperationDemandType.Items[i].Value; // //CooperationDemandTypeItems += ","; // if (CooperationDemandTypeItems.IndexOf(CooperationDemandTypeItems) != -1) // cblCooperationDemandType.Items[i].Selected = true; //} #endregion if (!string.IsNullOrEmpty(model.MainInfoModel.KeyWord.Trim())) { string[] keys = model.MainInfoModel.KeyWord.Trim().Split(','); for (int i = 0; i < keys.Length; i++) { string key = keys[i].ToString().Trim(); switch (i) { case 0: this.txtKeyword1.Text = key; break; case 1: this.txtKeyword2.Text = key; break; case 2: this.txtKeyword3.Text = key; break; default: break; } } } this.ddlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString(); this.FilesUploadControl1.InfoList = model.InfoResourceModels; this.FilesUploadControl1.InfoType = "Merchant"; this.MerchantInfoAddressInfo1.InfoContact = model.InfoContactModel; //控件 //this.MerchantInfoAddressInfo1.infoContact = model.InfoContactManModels; if (Request.UrlReferrer != null) { ViewState["strPrePage"] = Request.UrlReferrer.ToString(); } else { ViewState["strPrePage"] = ""; } ViewState["InfoID"] = model.MainInfoModel.InfoID; ViewState["PublishT"] = model.MainInfoModel.publishT; ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus; ViewState["HtmlFile"] = model.MainInfoModel.HtmlFile; if (model.ShortInfoModel != null) { ViewState["ShortTitle"] = model.ShortInfoModel.ShortTitle; ViewState["ShortContent"] = model.ShortInfoModel.ShortContent; ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID; } }
private void LoadInfo(long InfoID) { Tz888.BLL.Info.MarchantInfoBLL bll = new Tz888.BLL.Info.MarchantInfoBLL(); Tz888.Model.Info.MerchantSetModel model = bll.GetIntegrityModel(InfoID); this.rblMerchantType.SelectedValue = model.MerchantInfoModel.MerchantTypeID.Trim(); this.txtMerchantTopic.Text = model.MainInfoModel.Title; if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountryCode.Trim())) { this.ZoneSelectControl1.CountryID = model.MerchantInfoModel.CountryCode.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.ProvinceID.Trim())) { this.ZoneSelectControl1.ProvinceID = model.MerchantInfoModel.ProvinceID.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.CityID.Trim())) { this.ZoneSelectControl1.CityID = model.MerchantInfoModel.CityID.Trim(); } if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountyID.Trim())) { this.ZoneSelectControl1.CountyID = model.MerchantInfoModel.CountyID.Trim(); } this.SelectIndustryControl1.IndustryString = model.MerchantInfoModel.IndustryClassList.Trim(); string CooperationDemandType = model.MerchantInfoModel.CooperationDemandType.Trim(); string CooperationDemandTypeItems; for (int i = 0; i < cblCooperationDemandType.Items.Count; i++) { CooperationDemandTypeItems = cblCooperationDemandType.Items[i].Value; //CooperationDemandTypeItems += ","; if (CooperationDemandType.IndexOf(CooperationDemandTypeItems) != -1) { cblCooperationDemandType.Items[i].Selected = true; } } this.ddlCapitalCurrency.SelectedValue = model.MerchantInfoModel.CapitalCurrency; this.txtCapitalTotal.Text = Convert.ToString(model.MerchantInfoModel.CapitalTotal); this.ddlMerchantCurrency.SelectedValue = model.MerchantInfoModel.MerchantCurrency; this.ddlMerchantTotal.SelectedValue = model.MerchantInfoModel.MerchantTotal; this.txtZoneAbout.Value = model.MerchantInfoModel.ZoneAbout.Trim(); if (!string.IsNullOrEmpty(model.MainInfoModel.KeyWord.Trim())) { string[] keys = model.MainInfoModel.KeyWord.Trim().Split(','); for (int i = 0; i < keys.Length; i++) { string key = keys[i].ToString().Trim(); switch (i) { case 0: this.txtKeyword1.Text = key; break; case 1: this.txtKeyword2.Text = key; break; case 2: this.txtKeyword3.Text = key; break; default: break; } } } this.ddlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString(); this.ImageUploadControl1.InfoList = model.InfoResourceModels; this.ImageUploadControl1.InfoType = "Merchant"; this.ImageUploadControl1.NoneCount = 3; this.ImageUploadControl1.Count = 5; this.MerchantInfoAddressInfo1.InfoContact = model.InfoContactModel; //this.MerchantInfoAddressInfo1.InfoContactMans = model.InfoContactManModels; this.MerchantInfoAddressInfo1.Undertaker = model.MerchantInfoModel.ReceiveOrganization.Trim(); if (Request.UrlReferrer != null) { ViewState["strPrePage"] = Request.UrlReferrer.ToString(); } else { ViewState["strPrePage"] = ""; } ViewState["InfoID"] = model.MainInfoModel.InfoID; ViewState["PublishT"] = model.MainInfoModel.publishT; ViewState["ZoneAboutBrief"] = model.MerchantInfoModel.ZoneAboutBrief; ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus; ViewState["HtmlFile"] = model.MainInfoModel.HtmlFile; ViewState["ShortTitle"] = model.ShortInfoModel.ShortTitle; ViewState["ShortContent"] = model.ShortInfoModel.ShortContent; ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID; }