home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / VISBUILD / OASEARCH / CONTRACT.HPV < prev    next >
Text File  |  1995-05-15  |  3KB  |  63 lines

  1. //****************************************************************************
  2. // OAContract Class - C++ Header File (contract.hpv)                         *
  3. //                                                                           *
  4. // COPYRIGHT: Copyright (C) International Business Machines Corp., 1994,1995 *
  5. //                                                                           *
  6. // DISCLAIMER OF WARRANTIES:                                                 *
  7. //   The following [enclosed] code is sample code created by IBM             *
  8. //   Corporation.  This sample code is not part of any standard IBM product  *
  9. //   and is provided to you solely for the purpose of assisting you in the   *
  10. //   development of your applications.  The code is provided "AS IS",        *
  11. //   without warranty of any kind.  IBM shall not be liable for any damages  *
  12. //   arising out of your use of the sample code, even if they have been      *
  13. //   advised of the possibility of such damages.                             *
  14. //****************************************************************************
  15. //NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
  16. //
  17. // Default Part Code Generation begins here...
  18. public:
  19.   IString accountNum() const;
  20.   OAContract & setAccountNum(const IString & aAccountNum);
  21.   IString companyName() const;
  22.   OAContract & setCompanyName(const IString & aCompanyName);
  23.   IString projectMgr() const;
  24.   OAContract & setProjectMgr(const IString & aProjectMgr);
  25.   IString deptName() const;
  26.   OAContract & setDeptName(const IString & aDeptName);
  27.   IString positionTitle() const;
  28.   OAContract & setPositionTitle(const IString & aPositionTitle);
  29.   IString startDate() const;
  30.   OAContract & setStartDate(const IString & aStartDate);
  31.   IString endDate() const;
  32.   OAContract & setEndDate(const IString & aEndDate);
  33.   IString currContractor() const;
  34.   OAContract & setCurrContractor(const IString & aCurrContractor);
  35.   OAContract & getContract(const IString & anAccountNum);
  36.   OAContract & putContract(const IString & anAccountNum);
  37.  
  38. // Added copy constructor
  39.  
  40.   OAContract(const OAContract & aContract);
  41.  
  42.   static INotificationId accountNumId;
  43.   static INotificationId companyNameId;
  44.   static INotificationId projectMgrId;
  45.   static INotificationId deptNameId;
  46.   static INotificationId positionTitleId;
  47.   static INotificationId startDateId;
  48.   static INotificationId endDateId;
  49.   static INotificationId currContractorId;
  50.  
  51. private:
  52.   unsigned long iStartingResourceId;
  53.   IString iAccountNum;
  54.   IString iCompanyName;
  55.   IString iProjectMgr;
  56.   IString iDeptName;
  57.   IString iPositionTitle;
  58.   IString iStartDate;
  59.   IString iEndDate;
  60.   IString iCurrContractor;
  61.  
  62. // Default Part Code Generation ends here.
  63.