AskResoultView.aspx.cs
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:2k
源码类别:

OA系统

开发平台:

C#

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections.Generic;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. public partial class AskResoultView : System.Web.UI.Page
  12. {
  13.     /// <summary>
  14.     /// 信息模板
  15.     /// </summary>
  16.     Model.Asks MB = new Model.Asks();
  17.     /// <summary>
  18.     /// 信息业务
  19.     /// </summary>
  20.     BLL.Asks BB = new BLL.Asks();
  21.     /// <summary>
  22.     /// 标题
  23.     /// </summary>
  24.     public string TitleStr = "";
  25.     /// <summary>
  26.     /// 内容
  27.     /// </summary>
  28.     public string ContentStr = "";
  29.     protected void Page_Load(object sender, EventArgs e)
  30.     {
  31.         LoginLogic.MatchLoad("../", "AskResoultView");
  32.         if (!IsPostBack)
  33.         {
  34.             if(Request.QueryString["id"]!=null)
  35.             {
  36.                 MB = BB.GetModel(int.Parse(Request.QueryString["id"].ToString()));      
  37.                 TextBoxTitle.Text = MB.DCNR;
  38.                 int count = new BLL.AsksContent().GetCount("AskID=" + MB.ID.ToString());
  39.                 List<Model.AsksContent> LMAC = new BLL.AsksContent().GetPageList(count, 1, "id", false, "AskID=" + MB.ID.ToString());
  40.                 foreach (Model.AsksContent LR in LMAC)
  41.                 {
  42.                     ContentStr += @"<tr class=""usertablerow2"">
  43.                             <td align=""middle"" nowrap=""nowrap"" >
  44.                              " + LR.AskNR.ToString() + @"</td>
  45.                             <td align=""middle"" nowrap=""nowrap"" align=""center"" s>
  46.                              " + LR.AskCount.ToString() + @"
  47.                             </td>
  48.                         </tr>";
  49.                 }
  50.             }
  51.         }
  52.     }
  53. }