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

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 System.Collections.Generic;
  12. using COM.OA.BLL;
  13. using COM.OA.Entity;
  14. public partial class senddocument : System.Web.UI.Page
  15. {
  16.     protected void Page_Load(object sender, EventArgs e)
  17.     {
  18.                 COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
  19.                 if (loginuser == null)
  20.                 {
  21.                     Response.Write("<script language='javascript'>parent.document.location.href='../login.aspx'</script>");
  22.                 }
  23.       
  24.     }
  25.     protected void gvdocument_RowDataBound(object sender, GridViewRowEventArgs e)
  26.     {
  27.         if (e.Row.RowType == DataControlRowType.DataRow)
  28.         {
  29.             e.Row.Attributes["onmouseover"] = "orgColor=this.style.backgroundColor;this.style.backgroundColor='#D5EEBB';";
  30.             e.Row.Attributes["onmouseout"] = "this.style.backgroundColor=orgColor;";
  31.         }
  32.     }
  33. }