Directory.aspx.cs
资源名称:H3_OA.rar [点击查看]
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:3k
源码类别:
OA系统
开发平台:
C#
- using System;
- using System.Collections;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Web;
- using System.Web.SessionState;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.HtmlControls;
- namespace OThinker.H3.Portal
- {
- /// <summary>
- /// Summary description for Directory.
- /// </summary>
- public partial class Directory : PortalPage
- {
- protected void Page_Load(object sender, System.EventArgs e)
- {
- if (!this.IsPostBack)
- {
- this.lblHello.Text = this.UserValidator.UserName;
- this.lnkProfile.NavigateUrl = PageName_EditUser + "?" + Param_ID + "=" + this.UserValidator.UserID + "&" + Param_Mode + "=" + EditUserType.Profile;
- this.lnkProfile.Target = "main";
- this.lnkSetPassword.NavigateUrl = PageName_SetPassword + "?" + Param_ID + "=" + this.UserValidator.UserID;
- this.lnkSetPassword.Target = "main";
- this.PanelAdmin.Visible = false;
- this.PanelOffice.Visible = false;
- this.PanelSearch.Visible = false;
- this.PanelStat.Visible = false;
- this.PanelWorkflow.Visible = false;
- string curDir = this.Request.QueryString["dir"];
- if (curDir == null)
- {
- this.PanelOffice.Visible = true;
- }
- else if (curDir == "admin")
- {
- this.PanelAdmin.Visible = true;
- }
- else if (curDir == "office")
- {
- this.PanelOffice.Visible = true;
- // 获得未读的消息的数量
- int unreadCount = OThinker.H3.Server.Engine.Notifier.CountUnread(this.UserValidator.UserID);
- if (unreadCount == 0)
- {
- this.linkMyNotification.Text = "我的消息";
- }
- else
- {
- this.linkMyNotification.Text = "我的消息(" + unreadCount + ")";
- }
- }
- else if (curDir == "search")
- {
- this.PanelSearch.Visible = true;
- }
- else if (curDir == "stat")
- {
- this.PanelStat.Visible = true;
- }
- else if (curDir == "workflow")
- {
- this.PanelWorkflow.Visible = true;
- }
- this.lnkQueryByData.NavigateUrl = PageName_QueryInstanceByData + "?" + Param_UserID + "=" + this.UserValidator.UserID;
- this.lnkQueryByData.Target = "main";
- }
- }
- #region Web Form Designer generated code
- override protected void OnInit(EventArgs e)
- {
- //
- // CODEGEN: This call is required by the ASP.NET Web Form Designer.
- //
- InitializeComponent();
- base.OnInit(e);
- }
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- }
- #endregion
- }
- }