department_tree_index.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_department_tree_index : 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.             if (Session["user"] != null)
  19.             {
  20.                 DateMgr mgr = new DateMgr();
  21.                 User user = (User)Session["user"];
  22.                 PosSequence1.Value = user.PositionSequence.ToString();
  23.                 if (Convert.ToInt32(PosSequence1.Value) <= 8)
  24.                 {
  25.                     Response.Redirect("../approvel/department_tree.aspx");
  26.                 }
  27.                 else
  28.                 {
  29.                     Response.Redirect("../approvel/department_tree1.aspx");
  30.                 }
  31.             }
  32.         }
  33.     }
  34. }