/// <summary>
        /// 加载Company信息
        /// </summary>
        public static Company LoadCompany(int sysNo, bool loadFileinfo = true)
        {
            Company company = CompanyDA.LoadCompany(sysNo);

            if (company == null)
            {
                return(null);
            }
            //获取企业系统管理员账号

            var sysUserInfo = SystemUserDA.LoadSystemUser(company.AccountSysNo.GetValueOrDefault(), ConstValue.ApplicationID);

            if (sysUserInfo != null && sysUserInfo.SysNo > 0)
            {
                company.LoginName = sysUserInfo.LoginName;
            }
            if (loadFileinfo)
            {
                var result = CommonDA.QueryFileInfoList(new FileInfoFilter {
                    PageSize = 100, MasterType = FileMasterType.CompanyBasic, MasterID = sysNo
                });
                company.FileList = result?.data;
            }
            return(company);
        }
 public SystemUser LoadSystemUserBySysNo(int sysno, string ApplicationID)
 {
     return(SystemUserDA.LoadSystemUser(sysno, ApplicationID));
 }
 /// <summary>
 /// 加载SystemUser信息
 /// </summary>
 public SystemUser LoadSystemUser(int sysNo, string ApplicationID = null)
 {
     return(SystemUserDA.LoadSystemUser(sysNo, ApplicationID));
 }