home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / visbuild / oasearch / contract.hpv < prev    next >
Encoding:
Text File  |  1996-02-20  |  3.6 KB  |  77 lines

  1. /******************************************************************************
  2. * .FILE:        contract.hpv                                                  *
  3. *                                                                             *
  4. * .DESCRIPTION: Implementation of additional member functions for the class   *
  5. *               OAContract (header file)                                      *
  6. *                                                                             *
  7. * .CLASSES:                                                                   *
  8. *                                                                             *
  9. * .COPYRIGHT:                                                                 *
  10. *    Licensed Material - Program-Property of IBM                              *
  11. *    (C) Copyright IBM Corp. 1992, 1995, 1996 - All Rights Reserved           *
  12. *                                                                             *
  13. * .DISCLAIMER:                                                                *
  14. *   The following [enclosed] code is sample code created by IBM               *
  15. *   Corporation.  This sample code is not part of any standard IBM product    *
  16. *   and is provided to you solely for the purpose of assisting you in the     *
  17. *   development of your applications.  The code is provided 'AS IS',          *
  18. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  19. *   arising out of your use of the sample code, even if they have been        *
  20. *   advised of the possibility of such damages.                               *
  21. *                                                                             *
  22. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  23. *                                                                             *
  24. ******************************************************************************/
  25. // Default Part Code Generation begins here...
  26. public:
  27.   IString accountNum() const;
  28.   OAContract & setAccountNum(const IString & aAccountNum);
  29.   IString companyName() const;
  30.   OAContract & setCompanyName(const IString & aCompanyName);
  31.   IString projectMgr() const;
  32.   OAContract & setProjectMgr(const IString & aProjectMgr);
  33.   IString deptName() const;
  34.   OAContract & setDeptName(const IString & aDeptName);
  35.   IString positionTitle() const;
  36.   OAContract & setPositionTitle(const IString & aPositionTitle);
  37.   IString startDate() const;
  38.   OAContract & setStartDate(const IString & aStartDate);
  39.   IString endDate() const;
  40.   OAContract & setEndDate(const IString & aEndDate);
  41.   IString currContractor() const;
  42.   OAContract & setCurrContractor(const IString & aCurrContractor);
  43.   OAContract & getContract(const IString & anAccountNum);
  44.   OAContract & putContract(const IString & anAccountNum);
  45.  
  46. // Added copy constructor
  47.  
  48.   OAContract(const OAContract & aContract);
  49.  
  50.   static INotificationId accountNumId;
  51.   static INotificationId companyNameId;
  52.   static INotificationId projectMgrId;
  53.   static INotificationId deptNameId;
  54.   static INotificationId positionTitleId;
  55.   static INotificationId startDateId;
  56.   static INotificationId endDateId;
  57.   static INotificationId currContractorId;
  58.  
  59. // Added after OS2 GA
  60.   static INotificationId qryFoundId;
  61.  
  62. // Added for Windows implementation of IProfile
  63.   OAContract & primeData(IProfile & aDatabase);
  64.  
  65. private:
  66.   unsigned long iStartingResourceId;
  67.   IString iAccountNum;
  68.   IString iCompanyName;
  69.   IString iProjectMgr;
  70.   IString iDeptName;
  71.   IString iPositionTitle;
  72.   IString iStartDate;
  73.   IString iEndDate;
  74.   IString iCurrContractor;
  75.  
  76. // Default Part Code Generation ends here.
  77.