home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- * .FILE: contrctr.hpv *
- * *
- * .DESCRIPTION: Implementation of additional member functions for the class *
- * OAContractor (header file) *
- * *
- * .CLASSES: *
- * *
- * .COPYRIGHT: *
- * Licensed Material - Program-Property of IBM *
- * (C) Copyright IBM Corp. 1992, 1995, 1996 - All Rights Reserved *
- * *
- * .DISCLAIMER: *
- * The following [enclosed] code is sample code created by IBM *
- * Corporation. This sample code is not part of any standard IBM product *
- * and is provided to you solely for the purpose of assisting you in the *
- * development of your applications. The code is provided 'AS IS', *
- * without warranty of any kind. IBM shall not be liable for any damages *
- * arising out of your use of the sample code, even if they have been *
- * advised of the possibility of such damages. *
- * *
- * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE *
- * *
- ******************************************************************************/
- public:
- IString contractorID() const;
- OAContractor & setContractorID();
- IString lastName() const;
- OAContractor & setLastName(const IString & aLastName);
- IString firstName() const;
- OAContractor & setFirstName(const IString & aFirstName);
- IString middleInitial() const;
- OAContractor & setMiddleInitial(const IString & aMiddleInitial);
- IString homeStreet() const;
- OAContractor & setHomeStreet(const IString & aHomeStreet);
- IString homeCity() const;
- OAContractor & setHomeCity(const IString & aHomeCity);
- IString homeState() const;
- OAContractor & setHomeState(const IString & aHomeState);
- IString homeZip() const;
- OAContractor & setHomeZip(const IString & aHomeZip);
- IString phoneNumber() const;
- OAContractor & setPhoneNumber(const IString & aPhoneNumber);
- IString startDate() const;
- OAContractor & setStartDate(const IString & aStartDate);
- IString endDate() const;
- OAContractor & setEndDate(const IString & aEndDate);
- Boolean isActiveStatus() const;
- OAContractor & enableActiveStatus(const Boolean enable = true);
- // Overloaded string enabler
- OAContractor & enableActiveStatus(const IString & status);
- IString currentContract() const;
- OAContractor & setCurrentContract(const IString & aCurrentContract);
- Boolean isIDvalid() const;
- OAContractor & enableIDvalid(const Boolean enable = false);
-
- // Actions
-
- OAContractor & getContractor();
- OAContractor & putContractor();
- OAContractor & refreshID();
- OAContractor & parseName(const IString & aName);
-
- // Added copy constructor
-
- OAContractor(const OAContractor & aContractor);
-
- // Notification IDs
-
- static INotificationId contractorIDId;
- static INotificationId lastNameId;
- static INotificationId firstNameId;
- static INotificationId middleInitialId;
- static INotificationId homeStreetId;
- static INotificationId homeCityId;
- static INotificationId homeStateId;
- static INotificationId homeZipId;
- static INotificationId phoneNumberId;
- static INotificationId startDateId;
- static INotificationId endDateId;
- static INotificationId activeStatusId;
- static INotificationId currentContractId;
- static INotificationId IDvalidId;
-
- // Added after OS2 GA
- static INotificationId qryFoundId;
-
- // Added for Windows implementation of IProfile
- OAContractor & primeData(IProfile & aDatabase);
-
- private:
- unsigned long iStartingResourceId;
- IString iContractorID;
- IString iLastName;
- IString iFirstName;
- IString iMiddleInitial;
- IString iHomeStreet;
- IString iHomeCity;
- IString iHomeState;
- IString iHomeZip;
- IString iPhoneNumber;
- IString iStartDate;
- IString iEndDate;
- Boolean iActiveStatus;
- IString iCurrentContract;
- Boolean iIDvalid;
-
- // Added private member function to clear out old attribute values
- // Called in parseName()
-
- void clear();