flow_list.aspx.cs
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:1k
源码类别:

OA系统

开发平台:

ASP/ASPX

  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. public partial class web_approvel_flow_flow_list : System.Web.UI.Page
  12. {
  13.     protected void Page_Load(object sender, EventArgs e)
  14.     {
  15.         if (!IsPostBack)
  16.         {
  17.             LoginDAO.CheckLogin(Session, Response, "../../", 2);
  18.             FlowList.DataKeyNames = new string[] { "id" };
  19.         }
  20.     }
  21.     protected void FlowList_RowDataBound(object sender, GridViewRowEventArgs e)
  22.     {
  23.         //行高亮
  24.         if (e.Row.RowType == DataControlRowType.DataRow)
  25.         {
  26.             e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor; this.style.backgroundColor='#c8dafa';this.style.cursor='pointer';");
  27.             e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c;");
  28.             e.Row.Attributes.Add("onclick", "location.href='flow_show.aspx?f_id=" + FlowList.DataKeys[e.Row.RowIndex].Value.ToString() + "'");
  29.         }
  30.     }
  31. }