Example #1
0
        public OfficerBE GetOfficer()
        {
            if (myOfficer == null)
            {
                myOfficer = new OfficerBE(this);
            }

            return(myOfficer);
        }
Example #2
0
        internal officeDB.OfficeRow GetOfficeForOfficer(string user)
        {
            OfficerBE off = GetOfficer();

            myOfficerLoggedOnId = off.Load(user).OfficerId;
            if (CurrentOfficer == null)
            {
                throw new AtriumException(Resources.BadUserName);
            }


            myCurrentOfficeId = GetOffice(CurrentOfficer.OfficeId).OfficeId;
            if (CurrentOffice == null)
            {
                throw new AtriumException(Resources.NoOffice);
            }

            //is this needed it slows down the log in
            //off.Load();

            return(CurrentOffice);
        }