示例#1
0
        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);
        }
示例#2
0
 /// <summary>
 /// 授权信息
 /// </summary>
 /// <returns></returns>
 public WeiSha.Common.License Version()
 {
     WeiSha.Common.License lic = WeiSha.Common.License.Value;
     return(lic);
 }
示例#3
0
 /// <summary>
 /// 测试是否完成授权
 /// </summary>
 public bool IsLicense()
 {
     WeiSha.Common.License lic = WeiSha.Common.License.Value;
     return(lic.IsLicense);
 }