AskResoultView.aspx.cs
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:2k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections.Generic;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- public partial class AskResoultView : System.Web.UI.Page
- {
- /// <summary>
- /// 信息模板
- /// </summary>
- Model.Asks MB = new Model.Asks();
- /// <summary>
- /// 信息业务
- /// </summary>
- BLL.Asks BB = new BLL.Asks();
- /// <summary>
- /// 标题
- /// </summary>
- public string TitleStr = "";
- /// <summary>
- /// 内容
- /// </summary>
- public string ContentStr = "";
- protected void Page_Load(object sender, EventArgs e)
- {
- LoginLogic.MatchLoad("../", "AskResoultView");
- if (!IsPostBack)
- {
- if(Request.QueryString["id"]!=null)
- {
- MB = BB.GetModel(int.Parse(Request.QueryString["id"].ToString()));
- TextBoxTitle.Text = MB.DCNR;
- int count = new BLL.AsksContent().GetCount("AskID=" + MB.ID.ToString());
- List<Model.AsksContent> LMAC = new BLL.AsksContent().GetPageList(count, 1, "id", false, "AskID=" + MB.ID.ToString());
- foreach (Model.AsksContent LR in LMAC)
- {
- ContentStr += @"<tr class=""usertablerow2"">
- <td align=""middle"" nowrap=""nowrap"" >
- " + LR.AskNR.ToString() + @"</td>
- <td align=""middle"" nowrap=""nowrap"" align=""center"" s>
- " + LR.AskCount.ToString() + @"
- </td>
- </tr>";
- }
- }
- }
- }
- }