protected override void InitPageTemplate(HttpContext context) { //当前版本 string version = WeiSha.Common.License.Value.VersionName; WeiSha.Common.License lic = WeiSha.Common.License.Value; this.Document.Variables.SetValue("lic", lic); // Song.Entities.EmpAccount acc = this.Admin; if (acc == null) { context.Response.Redirect("index.ashx"); return; } this.Document.Variables.SetValue("CurrUser", acc); }
/// <summary> /// 授权信息 /// </summary> /// <returns></returns> public WeiSha.Common.License Version() { WeiSha.Common.License lic = WeiSha.Common.License.Value; return(lic); }
/// <summary> /// 测试是否完成授权 /// </summary> public bool IsLicense() { WeiSha.Common.License lic = WeiSha.Common.License.Value; return(lic.IsLicense); }