// ------------------------------------------------------------------------- // QueryGenl Class :: aMatch() - checks for a match // ------------------------------------------------------------------------- IBase :: Boolean QueryGenl :: aMatch(const LEmployeeData* ed, const IString& key, const IString& value) { if (key == "employeeNum" ) if (ed->employeeNumber().length() > 0) return ed->employeeNumber().isLike(value); if (key == "lastName" ) if (ed->lastName().length() > 0) return ed->lastName().isLike(value); if (key == "firstName" ) if (ed->firstName().length() > 0) return ed->firstName().isLike(value); if (key == "middleInitial" ) if (ed->middleInitial().length() > 0) return ed->middleInitial().isLike(value); if (key == "internalPhone" ) if (ed->internalPhone().length() > 0) return ed->internalPhone().isLike(value); if (key == "externalPhone" ) if (ed->externalPhone().length() > 0) return ed->externalPhone().isLike(value); if (key == "room" ) if (ed->room().length() > 0) return ed->room().isLike(value); if (key == "building" ) if (ed->building().length() > 0) return ed->building().isLike(value); if (key == "deptName" ) if (ed->department().length() > 0) return ed->department().isLike(value); if (key == "divName" ) if (ed->division().length() > 0) return ed->division().isLike(value); if (key == "managerName" ) if (ed->managerName().length() > 0) return ed->managerName().isLike(value); if (key == "managerNum" ) if (ed->managerNumber().length() > 0) return ed->managerNumber().isLike(value); if (key == "employeeType" ) return value.isLike(IString(ed->employeeType()) ); return false; };
// ------------------------------------------------------------------------- // QueryMgrs Class :: aMatch() - checks for a match // ------------------------------------------------------------------------- IBase :: Boolean QueryMgrs :: aMatch(const LEmployeeData* ed, const IString& key, const IString& value) { if (key == "employeeType" ) return value.isLike(IString(ed->employeeType()) ); return false; };