rc_selectlike.aspx.cs
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:2k
源码类别:

OA系统

开发平台:

C#

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  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. using COM.OA.BLL;
  12. using System.Collections.Generic;
  13. using COM.OA.Entity;
  14. public partial class rc_rc_selectlike : System.Web.UI.Page
  15. {
  16.     protected void Page_Load(object sender, EventArgs e)
  17.     {
  18.         //取传递的参数
  19.         string cmd = this.Request.QueryString["cmd"];
  20.         string sql = "to_title like '%{0}%' and to_state=0";
  21.         sql = string.Format(sql, cmd);
  22.         IList<timeorder> tlist = timeorderBLL.Select(sql,true,false);
  23.         this.Response.Write("<br/><br/>");
  24.         this.Response.Write("<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td width='5' height='21'><img src='../images/sj/leftlin1.gif' width='6' height='21'></td><td width='936' bgcolor='#5AAE18'><div align='center'><div align='center' class='style42'><span class='style3 style2 style1 style16 style41'><span class='style3 style1 style16 style41'><strong>计 划 内 容</strong></span></div><span class='style1'></span></div></td><td width='6' height='21'><img src='../images/sj/rightlin1.gif' width='6' height='21'></td></tr></table>");
  25.         this.Response.Write("<table width='100%' border='0' cellpadding='3' cellspacing='1' bgcolor='#5AAE18'>");
  26.         if (tlist.Count != 0)
  27.         {
  28.             this.Response.Write("<tr bgcolor='#FFFFFF'><td><strong>主题</strong></td><td><strong>日程日期</strong></td><td><strong>类型</strong></td><td><strong>发送人</strong></td><td><strong>时间</strong></td></tr>");
  29.             foreach (timeorder d in tlist)
  30.             {
  31.                 this.Response.Write("<tr bgcolor='#FFFFFF'><td><a href='rc_notecontent.aspx?tid=" + d.to_id+ "'>" + d.to_title + "</a></td><td>" + d.to_orderdate + "</td><td>工作日程</td>" + "</td><td>" + d.users.u_username+ "</td>" + "</td><td>" + d.to_sendtime + "</td>");
  32.                 this.Response.Write("");
  33.             }
  34.         }
  35.         else
  36.         {
  37.             this.Response.Write("<tr><td colspan='5' align='left'><span class='style1'>对不起,没有你要查找的数据!!</span></td></tr>");
  38.         }
  39.         this.Response.Write("</table>");
  40.     }
  41. }