Пример #1
0
        public static String GetStaffNumber(Guid staffId)
        {
            String result = String.Empty;

            DAL.Staff oStaff = DAL.Staff.Load(staffId);
            if (oStaff != null)
            {
                result = oStaff.StaffNumber;
            }

            return(result);
        }
Пример #2
0
        private static bool IsIdentity(string userName, string password)
        {
            bool result = false;

            string sql = "StaffNumber = '" + userName + "' AND Password = '******'";

            DAL.Staff oUser = DAL.Staff.LoadWhere(sql);
            if (oUser != null)
            {
                RT2020.DAL.Common.Config.CurrentUserId = oUser.StaffId;
                result = true;
            }

            return(result);    // result;
        }