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; 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()); } }
public override void getData() { Johnny.CMS.BLL.SeH.Release bll = new Johnny.CMS.BLL.SeH.Release(); myManageGridView.DataSource = bll.GetList(); myManageGridView.DataBind(); }
public override void getData() { Johnny.CMS.BLL.SeH.Release bll = new Johnny.CMS.BLL.SeH.Release(); myManageGridView.DataSource = bll.GetList(); myManageGridView.DataBind(); }