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); }
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; }