st_modulebase.cs

来自「酒店管理系统,适合做毕业设计的人」· CS 代码 · 共 61 行

CS
61
字号
using System;
using System.Web;
using System.Web.UI;

namespace ST_GROUP
{
	/// <summary>
	/// ST_ModuleBase 的摘要说明。
	/// </summary>
	public class ST_ModuleBase:System.Web.UI.UserControl 
	{
		public ST_ModuleBase()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}
		private String basePathPrefix;
		private bool authenticated;

		/// <value>
		///     Property PathPrefix is used to get or set the file path prefix to be used by the control.
		///     <remarks> 
		///         Sets the value PathPrefix. 
		///         Gets the value PathPrefix. 
		///     </remarks>
		/// </value>
		
		public String PathPrefix
		{
			get
			{
				if (null == basePathPrefix && HttpContext.Current != null)
				{
					basePathPrefix = ST_PageBase.UrlBase;
				}
            
				return basePathPrefix;
			}
			set
			{
				basePathPrefix = value;
			}
		}
		public bool Authenticate(string name,string pwd)
		{
		   	authenticated= ST_PageBase.CheckUser(name,pwd);

			return authenticated;
			
		}
//		public String UserType
//		{ 
//			get
//			{
//				return ST_PageBase.UserType;
//			}
//		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?