22 lines
548 B
C#
22 lines
548 B
C#
using System.Web;
|
|
using WebLib;
|
|
|
|
namespace Education.Services
|
|
{
|
|
/// <summary>
|
|
/// WebService 的基礎類別
|
|
/// </summary>
|
|
public class ServiceBase: System.Web.Services.WebService
|
|
{
|
|
public string CurrentUserId
|
|
{
|
|
get
|
|
{
|
|
if (HttpContext.Current != null && HttpContext.Current.Session != null)
|
|
return DAC.GetString(HttpContext.Current.Session[PublicVariable.UserId]);
|
|
else
|
|
return "";
|
|
}
|
|
}
|
|
}
|
|
} |