protected void Page_Load(object sender, EventArgs e) { int softwareid = Convert.ToInt32(Request.QueryString["softwareid"]); Johnny.CMS.BLL.SeH.Software bll = new Johnny.CMS.BLL.SeH.Software(); Johnny.CMS.OM.SeH.Software model = bll.GetModel(softwareid); if (model != null) { lblSoftwareName.Text = model.SoftwareName; Johnny.CMS.BLL.SeH.Release bllRelease = new Johnny.CMS.BLL.SeH.Release(); IList <Johnny.CMS.OM.SeH.Release> list = bllRelease.GetList(softwareid); StringBuilder sb = new StringBuilder(); foreach (Johnny.CMS.OM.SeH.Release release in list) { sb.Append("<tr>"); sb.Append(" <td>"); sb.Append(string.Format(" <p class=\"date\">{0}</p>", DataConvert.GetShortDateString(release.ReleaseDate))); sb.Append(string.Format(" <p class=\"release\">{0}</p>", release.ReleaseName)); sb.Append(string.Format(" {0}", release.Description)); sb.Append(" </td>"); sb.Append("</tr>"); } lblReleaseList.Text = StringHelper.htmlOutputText(sb.ToString()); } }
protected void Page_Load(object sender, EventArgs e) { int softwareid = Convert.ToInt32(Request.QueryString["softwareid"]); Johnny.CMS.BLL.SeH.Software bll = new Johnny.CMS.BLL.SeH.Software(); Johnny.CMS.OM.SeH.Software model = bll.GetModel(softwareid); if (model != null) { lblSoftwareName.Text = model.SoftwareName; lblDocumentTitle.Text = model.DocumentTitle; lblDocumentDescription.Text = model.DocumentDescription; lblDocumentUrl.Text = string.Format("<a href=\"{0}\">下载</a>", model.DownloadUrl); Johnny.CMS.BLL.SeH.Release bllRelease = new Johnny.CMS.BLL.SeH.Release(); Johnny.CMS.OM.SeH.Release modelRelease = bllRelease.GetLatestModel(softwareid); if (modelRelease != null) { lblReleaseName.Text = modelRelease.ReleaseName; lblReleaseDescription.Text = StringHelper.htmlOutputText(modelRelease.Description); lblDownloadUrl.Text = string.Format("<a href=\"{0}\">下载</a>", model.DownloadUrl); } } }
protected void Page_Load(object sender, EventArgs e) { int softwareid = Convert.ToInt32(Request.QueryString["softwareid"]); Johnny.CMS.BLL.SeH.Software bll = new Johnny.CMS.BLL.SeH.Software(); Johnny.CMS.OM.SeH.Software model = bll.GetModel(softwareid); if (model != null) { lblSoftwareName.Text = model.SoftwareName; Johnny.CMS.BLL.SeH.Release bllRelease = new Johnny.CMS.BLL.SeH.Release(); IList<Johnny.CMS.OM.SeH.Release> list = bllRelease.GetList(softwareid); StringBuilder sb = new StringBuilder(); foreach (Johnny.CMS.OM.SeH.Release release in list) { sb.Append("<tr>"); sb.Append(" <td>"); sb.Append(string.Format(" <p class=\"date\">{0}</p>", DataConvert.GetShortDateString(release.ReleaseDate))); sb.Append(string.Format(" <p class=\"release\">{0}</p>", release.ReleaseName)); sb.Append(string.Format(" {0}", release.Description)); sb.Append(" </td>"); sb.Append("</tr>"); } lblReleaseList.Text = StringHelper.htmlOutputText(sb.ToString()); } }
protected void Page_Load(object sender, EventArgs e) { int softwareid = Convert.ToInt32(Request.QueryString["softwareid"]); Johnny.CMS.BLL.SeH.Software bll = new Johnny.CMS.BLL.SeH.Software(); Johnny.CMS.OM.SeH.Software model = bll.GetModel(softwareid); if (model != null) { lblSoftwareName.Text = model.SoftwareName; lblDocumentTitle.Text = model.DocumentTitle; lblDocumentDescription.Text = model.DocumentDescription; lblDocumentUrl.Text = string.Format("<a href=\"{0}\">下载</a>", model.DownloadUrl); Johnny.CMS.BLL.SeH.Release bllRelease = new Johnny.CMS.BLL.SeH.Release(); Johnny.CMS.OM.SeH.Release modelRelease = bllRelease.GetLatestModel(softwareid); if (modelRelease != null) { lblReleaseName.Text = modelRelease.ReleaseName; lblReleaseDescription.Text = StringHelper.htmlOutputText(modelRelease.Description); lblDownloadUrl.Text = string.Format("<a href=\"{0}\">下载</a>", model.DownloadUrl); } } }
protected void Page_Load(object sender, EventArgs e) { int softwareid = Convert.ToInt32(Request.QueryString["softwareid"]); Johnny.CMS.BLL.SeH.Software bll = new Johnny.CMS.BLL.SeH.Software(); Johnny.CMS.OM.SeH.Software model = bll.GetModel(softwareid); if (model != null) { lblSoftwareName.Text = model.SoftwareName; lblUpdateTime.Text = DataConvert.GetString(model.UpdatedTime); lblDescription.Text = model.Description; } }
protected void Page_Load(object sender, EventArgs e) { int softwareid = Convert.ToInt32(Request.QueryString["softwareid"]); Johnny.CMS.BLL.SeH.Software bll = new Johnny.CMS.BLL.SeH.Software(); Johnny.CMS.OM.SeH.Software model = bll.GetModel(softwareid); if (model != null) { lblSoftwareName.Text = model.SoftwareName; lblUpdateTime.Text = DataConvert.GetString(model.UpdatedTime); lblDescription.Text = model.Description; } }
protected override void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { litPageTitle.Text = GetLabelText("Software_Title"); litSoftwareName.Text = GetLabelText("Software_SoftwareName"); txtSoftwareName.ToolTip = GetLabelText("Software_SoftwareName"); litShortDescription.Text = GetLabelText("Software_ShortDescription"); txtShortDescription.ToolTip = GetLabelText("Software_ShortDescription"); litContent.Text = GetLabelText("Software_Description"); litImage.Text = GetLabelText("Software_Image"); txtImage.ToolTip = GetLabelText("Software_Image"); litFeature1.Text = GetLabelText("Software_Feature1"); txtFeature1.ToolTip = GetLabelText("Software_Feature1"); litFeature2.Text = GetLabelText("Software_Feature2"); txtFeature2.ToolTip = GetLabelText("Software_Feature2"); litFeature3.Text = GetLabelText("Software_Feature3"); txtFeature3.ToolTip = GetLabelText("Software_Feature3"); litFeature4.Text = GetLabelText("Software_Feature4"); txtFeature4.ToolTip = GetLabelText("Software_Feature4"); litDownloadUrl.Text = GetLabelText("Software_DownloadUrl"); txtDownloadUrl.ToolTip = GetLabelText("Software_DownloadUrl"); litDocumentTitle.Text = GetLabelText("Software_DocumentTitle"); txtDocumentTitle.ToolTip = GetLabelText("Software_DocumentTitle"); litDocumentDescription.Text = GetLabelText("Software_DocumentDescription"); txtDocumentDescription.ToolTip = GetLabelText("Software_DocumentDescription"); litDocumentUrl.Text = GetLabelText("Software_DocumentUrl"); txtDocumentUrl.ToolTip = GetLabelText("Software_DocumentUrl"); litHits.Text = GetLabelText("Software_Hits"); txtHits.ToolTip = GetLabelText("Software_Hits"); litDownloads.Text = GetLabelText("Software_Downloads"); txtDownloads.ToolTip = GetLabelText("Software_Downloads"); litIsDisplay.Text = GetLabelText("Software_IsDisplay"); rdbDisplay0.Text = GetLabelText("Common_Yes"); rdbDisplay1.Text = GetLabelText("Common_No"); litRdbDisplayTip.Text = GetLabelText("Software_IsDisplay"); litCreatedTime.Text = GetLabelText("Common_CreatedTime"); litCreatedByName.Text = GetLabelText("Common_CreatedByName"); litUpdatedTime.Text = GetLabelText("Common_UpdatedTime"); litUpdatedByName.Text = GetLabelText("Common_UpdatedByName"); if (Request.QueryString["action"] == "modify") { //get id int SoftwareId = Convert.ToInt32(Request.QueryString["id"]); Johnny.CMS.BLL.SeH.Software bll = new Johnny.CMS.BLL.SeH.Software(); Johnny.CMS.OM.SeH.Software model = new Johnny.CMS.OM.SeH.Software(); model = bll.GetModel(SoftwareId); txtSoftwareName.Text = model.SoftwareName; txtShortDescription.Text = model.ShortDescription; fckContent.Value = StringHelper.htmlOutputText(model.Description); txtImage.Text = model.Image; txtFeature1.Text = model.Feature1; txtFeature2.Text = model.Feature2; txtFeature3.Text = model.Feature3; txtFeature4.Text = model.Feature4; txtDownloadUrl.Text = model.DownloadUrl; txtDocumentTitle.Text = model.DocumentTitle; txtDocumentDescription.Text = model.DocumentDescription; txtDocumentUrl.Text = model.DocumentUrl; txtHits.Text = DataConvert.GetString(model.Hits); txtDownloads.Text = DataConvert.GetString(model.Downloads); if (model.IsDisplay) { rdbDisplay0.Checked = true; } else { rdbDisplay1.Checked = true; } lblCreatedTime.Text = DataConvert.GetLongDateString(model.CreatedTime); lblCreatedByName.Text = model.CreatedByName; lblUpdatedTime.Text = DataConvert.GetLongDateString(model.UpdatedTime); lblUpdatedByName.Text = model.UpdatedByName; btnAdd.ButtonType = Johnny.Controls.Web.Button.Button.EnumButtonType.Save; //btnAdd.Text = CONST_BUTTONTEXT_SAVE; } else { rdbDisplay0.Checked = true; txtHits.Text = "0"; txtDownloads.Text = "0"; } } }
protected override void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); if (!this.IsPostBack) { litPageTitle.Text = GetLabelText("Software_Title"); litSoftwareName.Text = GetLabelText("Software_SoftwareName"); txtSoftwareName.ToolTip = GetLabelText("Software_SoftwareName"); litShortDescription.Text = GetLabelText("Software_ShortDescription"); txtShortDescription.ToolTip = GetLabelText("Software_ShortDescription"); litContent.Text = GetLabelText("Software_Description"); litImage.Text = GetLabelText("Software_Image"); txtImage.ToolTip = GetLabelText("Software_Image"); litFeature1.Text = GetLabelText("Software_Feature1"); txtFeature1.ToolTip = GetLabelText("Software_Feature1"); litFeature2.Text = GetLabelText("Software_Feature2"); txtFeature2.ToolTip = GetLabelText("Software_Feature2"); litFeature3.Text = GetLabelText("Software_Feature3"); txtFeature3.ToolTip = GetLabelText("Software_Feature3"); litFeature4.Text = GetLabelText("Software_Feature4"); txtFeature4.ToolTip = GetLabelText("Software_Feature4"); litDownloadUrl.Text = GetLabelText("Software_DownloadUrl"); txtDownloadUrl.ToolTip = GetLabelText("Software_DownloadUrl"); litDocumentTitle.Text = GetLabelText("Software_DocumentTitle"); txtDocumentTitle.ToolTip = GetLabelText("Software_DocumentTitle"); litDocumentDescription.Text = GetLabelText("Software_DocumentDescription"); txtDocumentDescription.ToolTip = GetLabelText("Software_DocumentDescription"); litDocumentUrl.Text = GetLabelText("Software_DocumentUrl"); txtDocumentUrl.ToolTip = GetLabelText("Software_DocumentUrl"); litHits.Text = GetLabelText("Software_Hits"); txtHits.ToolTip = GetLabelText("Software_Hits"); litDownloads.Text = GetLabelText("Software_Downloads"); txtDownloads.ToolTip = GetLabelText("Software_Downloads"); litIsDisplay.Text = GetLabelText("Software_IsDisplay"); rdbDisplay0.Text = GetLabelText("Common_Yes"); rdbDisplay1.Text = GetLabelText("Common_No"); litRdbDisplayTip.Text = GetLabelText("Software_IsDisplay"); litCreatedTime.Text = GetLabelText("Common_CreatedTime"); litCreatedByName.Text = GetLabelText("Common_CreatedByName"); litUpdatedTime.Text = GetLabelText("Common_UpdatedTime"); litUpdatedByName.Text = GetLabelText("Common_UpdatedByName"); if (Request.QueryString["action"] == "modify") { //get id int SoftwareId = Convert.ToInt32(Request.QueryString["id"]); Johnny.CMS.BLL.SeH.Software bll = new Johnny.CMS.BLL.SeH.Software(); Johnny.CMS.OM.SeH.Software model = new Johnny.CMS.OM.SeH.Software(); model = bll.GetModel(SoftwareId); txtSoftwareName.Text = model.SoftwareName; txtShortDescription.Text = model.ShortDescription; fckContent.Value = StringHelper.htmlOutputText(model.Description); txtImage.Text = model.Image; txtFeature1.Text = model.Feature1; txtFeature2.Text = model.Feature2; txtFeature3.Text = model.Feature3; txtFeature4.Text = model.Feature4; txtDownloadUrl.Text = model.DownloadUrl; txtDocumentTitle.Text = model.DocumentTitle; txtDocumentDescription.Text = model.DocumentDescription; txtDocumentUrl.Text = model.DocumentUrl; txtHits.Text = DataConvert.GetString(model.Hits); txtDownloads.Text = DataConvert.GetString(model.Downloads); if (model.IsDisplay) rdbDisplay0.Checked = true; else rdbDisplay1.Checked = true; lblCreatedTime.Text = DataConvert.GetLongDateString(model.CreatedTime); lblCreatedByName.Text = model.CreatedByName; lblUpdatedTime.Text = DataConvert.GetLongDateString(model.UpdatedTime); lblUpdatedByName.Text = model.UpdatedByName; btnAdd.ButtonType = Johnny.Controls.Web.Button.Button.EnumButtonType.Save; //btnAdd.Text = CONST_BUTTONTEXT_SAVE; } else { rdbDisplay0.Checked = true; txtHits.Text = "0"; txtDownloads.Text = "0"; } } }