protected function SetupCourier()
 {
     // Lookup Object PK information from Query String (if applicable)
     // Set mode to Edit or New depending on what's found
     $intCourierId = QApplication::QueryString('intCourierId');
     if ($intCourierId) {
         $this->objCourier = Courier::Load($intCourierId);
         if (!$this->objCourier) {
             throw new Exception('Could not find a Courier object with PK arguments: ' . $intCourierId);
         }
         $this->strTitleVerb = QApplication::Translate('Edit');
         $this->blnEditMode = true;
     } else {
         $this->objCourier = new Courier();
         $this->strTitleVerb = QApplication::Translate('Create');
         $this->blnEditMode = false;
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'ShippingAccountId':
             /**
              * Gets the value for intShippingAccountId (Read-Only PK)
              * @return integer
              */
             return $this->intShippingAccountId;
         case 'CourierId':
             /**
              * Gets the value for intCourierId (Not Null)
              * @return integer
              */
             return $this->intCourierId;
         case 'ShortDescription':
             /**
              * Gets the value for strShortDescription (Not Null)
              * @return string
              */
             return $this->strShortDescription;
         case 'AccessId':
             /**
              * Gets the value for strAccessId (Not Null)
              * @return string
              */
             return $this->strAccessId;
         case 'AccessCode':
             /**
              * Gets the value for strAccessCode (Not Null)
              * @return string
              */
             return $this->strAccessCode;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Courier':
             /**
              * Gets the value for the Courier object referenced by intCourierId (Not Null)
              * @return Courier
              */
             try {
                 if (!$this->objCourier && !is_null($this->intCourierId)) {
                     $this->objCourier = Courier::Load($this->intCourierId);
                 }
                 return $this->objCourier;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_FedexShipment':
             /**
              * Gets the value for the private _objFedexShipment (Read-Only)
              * if set due to an expansion on the fedex_shipment.shipping_account_id reverse relationship
              * @return FedexShipment
              */
             return $this->_objFedexShipment;
         case '_FedexShipmentArray':
             /**
              * Gets the value for the private _objFedexShipmentArray (Read-Only)
              * if set due to an ExpandAsArray on the fedex_shipment.shipping_account_id reverse relationship
              * @return FedexShipment[]
              */
             return (array) $this->_objFedexShipmentArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'ShipmentId':
             /**
              * Gets the value for intShipmentId (Read-Only PK)
              * @return integer
              */
             return $this->intShipmentId;
         case 'ShipmentNumber':
             /**
              * Gets the value for strShipmentNumber (Unique)
              * @return string
              */
             return $this->strShipmentNumber;
         case 'TransactionId':
             /**
              * Gets the value for intTransactionId (Unique)
              * @return integer
              */
             return $this->intTransactionId;
         case 'FromCompanyId':
             /**
              * Gets the value for intFromCompanyId (Not Null)
              * @return integer
              */
             return $this->intFromCompanyId;
         case 'FromContactId':
             /**
              * Gets the value for intFromContactId (Not Null)
              * @return integer
              */
             return $this->intFromContactId;
         case 'FromAddressId':
             /**
              * Gets the value for intFromAddressId (Not Null)
              * @return integer
              */
             return $this->intFromAddressId;
         case 'ToCompanyId':
             /**
              * Gets the value for intToCompanyId (Not Null)
              * @return integer
              */
             return $this->intToCompanyId;
         case 'ToContactId':
             /**
              * Gets the value for intToContactId (Not Null)
              * @return integer
              */
             return $this->intToContactId;
         case 'ToAddressId':
             /**
              * Gets the value for intToAddressId (Not Null)
              * @return integer
              */
             return $this->intToAddressId;
         case 'CourierId':
             /**
              * Gets the value for intCourierId 
              * @return integer
              */
             return $this->intCourierId;
         case 'TrackingNumber':
             /**
              * Gets the value for strTrackingNumber 
              * @return string
              */
             return $this->strTrackingNumber;
         case 'ShipDate':
             /**
              * Gets the value for dttShipDate (Not Null)
              * @return QDateTime
              */
             return $this->dttShipDate;
         case 'ShippedFlag':
             /**
              * Gets the value for blnShippedFlag 
              * @return boolean
              */
             return $this->blnShippedFlag;
         case 'CreatedBy':
             /**
              * Gets the value for intCreatedBy 
              * @return integer
              */
             return $this->intCreatedBy;
         case 'CreationDate':
             /**
              * Gets the value for dttCreationDate 
              * @return QDateTime
              */
             return $this->dttCreationDate;
         case 'ModifiedBy':
             /**
              * Gets the value for intModifiedBy 
              * @return integer
              */
             return $this->intModifiedBy;
         case 'ModifiedDate':
             /**
              * Gets the value for strModifiedDate (Read-Only Timestamp)
              * @return string
              */
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Transaction':
             /**
              * Gets the value for the Transaction object referenced by intTransactionId (Unique)
              * @return Transaction
              */
             try {
                 if (!$this->objTransaction && !is_null($this->intTransactionId)) {
                     $this->objTransaction = Transaction::Load($this->intTransactionId);
                 }
                 return $this->objTransaction;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromCompany':
             /**
              * Gets the value for the Company object referenced by intFromCompanyId (Not Null)
              * @return Company
              */
             try {
                 if (!$this->objFromCompany && !is_null($this->intFromCompanyId)) {
                     $this->objFromCompany = Company::Load($this->intFromCompanyId);
                 }
                 return $this->objFromCompany;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromContact':
             /**
              * Gets the value for the Contact object referenced by intFromContactId (Not Null)
              * @return Contact
              */
             try {
                 if (!$this->objFromContact && !is_null($this->intFromContactId)) {
                     $this->objFromContact = Contact::Load($this->intFromContactId);
                 }
                 return $this->objFromContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromAddress':
             /**
              * Gets the value for the Address object referenced by intFromAddressId (Not Null)
              * @return Address
              */
             try {
                 if (!$this->objFromAddress && !is_null($this->intFromAddressId)) {
                     $this->objFromAddress = Address::Load($this->intFromAddressId);
                 }
                 return $this->objFromAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToCompany':
             /**
              * Gets the value for the Company object referenced by intToCompanyId (Not Null)
              * @return Company
              */
             try {
                 if (!$this->objToCompany && !is_null($this->intToCompanyId)) {
                     $this->objToCompany = Company::Load($this->intToCompanyId);
                 }
                 return $this->objToCompany;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToContact':
             /**
              * Gets the value for the Contact object referenced by intToContactId (Not Null)
              * @return Contact
              */
             try {
                 if (!$this->objToContact && !is_null($this->intToContactId)) {
                     $this->objToContact = Contact::Load($this->intToContactId);
                 }
                 return $this->objToContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToAddress':
             /**
              * Gets the value for the Address object referenced by intToAddressId (Not Null)
              * @return Address
              */
             try {
                 if (!$this->objToAddress && !is_null($this->intToAddressId)) {
                     $this->objToAddress = Address::Load($this->intToAddressId);
                 }
                 return $this->objToAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Courier':
             /**
              * Gets the value for the Courier object referenced by intCourierId 
              * @return Courier
              */
             try {
                 if (!$this->objCourier && !is_null($this->intCourierId)) {
                     $this->objCourier = Courier::Load($this->intCourierId);
                 }
                 return $this->objCourier;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intCreatedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             /**
              * Gets the value for the UserAccount object referenced by intModifiedBy 
              * @return UserAccount
              */
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_FedexShipment':
             /**
              * Gets the value for the private _objFedexShipment (Read-Only)
              * if set due to an expansion on the fedex_shipment.shipment_id reverse relationship
              * @return FedexShipment
              */
             return $this->_objFedexShipment;
         case '_FedexShipmentArray':
             /**
              * Gets the value for the private _objFedexShipmentArray (Read-Only)
              * if set due to an ExpandAsArray on the fedex_shipment.shipment_id reverse relationship
              * @return FedexShipment[]
              */
             return (array) $this->_objFedexShipmentArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Reload this Courier from the database.
  * @return void
  */
 public function Reload()
 {
     // Make sure we are actually Restored from the database
     if (!$this->__blnRestored) {
         throw new QCallerException('Cannot call Reload() on a new, unsaved Courier object.');
     }
     // Reload the Object
     $objReloaded = Courier::Load($this->intCourierId);
     // Update $this's local variables to match
     $this->strShortDescription = $objReloaded->strShortDescription;
     $this->blnActiveFlag = $objReloaded->blnActiveFlag;
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'ShipmentId':
             // Gets the value for intShipmentId (Read-Only PK)
             // @return integer
             return $this->intShipmentId;
         case 'ShipmentNumber':
             // Gets the value for strShipmentNumber (Unique)
             // @return string
             return $this->strShipmentNumber;
         case 'TransactionId':
             // Gets the value for intTransactionId (Unique)
             // @return integer
             return $this->intTransactionId;
         case 'FromCompanyId':
             // Gets the value for intFromCompanyId (Not Null)
             // @return integer
             return $this->intFromCompanyId;
         case 'FromContactId':
             // Gets the value for intFromContactId (Not Null)
             // @return integer
             return $this->intFromContactId;
         case 'FromAddressId':
             // Gets the value for intFromAddressId (Not Null)
             // @return integer
             return $this->intFromAddressId;
         case 'ToCompanyId':
             // Gets the value for intToCompanyId (Not Null)
             // @return integer
             return $this->intToCompanyId;
         case 'ToContactId':
             // Gets the value for intToContactId (Not Null)
             // @return integer
             return $this->intToContactId;
         case 'ToAddressId':
             // Gets the value for intToAddressId (Not Null)
             // @return integer
             return $this->intToAddressId;
         case 'CourierId':
             // Gets the value for intCourierId
             // @return integer
             return $this->intCourierId;
         case 'TrackingNumber':
             // Gets the value for strTrackingNumber
             // @return string
             return $this->strTrackingNumber;
         case 'ShipDate':
             // Gets the value for dttShipDate (Not Null)
             // @return QDateTime
             return $this->dttShipDate;
         case 'ShippedFlag':
             // Gets the value for blnShippedFlag
             // @return boolean
             return $this->blnShippedFlag;
         case 'CreatedBy':
             // Gets the value for intCreatedBy
             // @return integer
             return $this->intCreatedBy;
         case 'CreationDate':
             // Gets the value for dttCreationDate
             // @return QDateTime
             return $this->dttCreationDate;
         case 'ModifiedBy':
             // Gets the value for intModifiedBy
             // @return integer
             return $this->intModifiedBy;
         case 'ModifiedDate':
             // Gets the value for strModifiedDate (Read-Only Timestamp)
             // @return string
             return $this->strModifiedDate;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Transaction':
             // Gets the value for the Transaction object referenced by intTransactionId (Unique)
             // @return Transaction
             try {
                 if (!$this->objTransaction && !is_null($this->intTransactionId)) {
                     $this->objTransaction = Transaction::Load($this->intTransactionId);
                 }
                 return $this->objTransaction;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromCompany':
             // Gets the value for the Company object referenced by intFromCompanyId (Not Null)
             // @return Company
             try {
                 if (!$this->objFromCompany && !is_null($this->intFromCompanyId)) {
                     $this->objFromCompany = Company::Load($this->intFromCompanyId);
                 }
                 return $this->objFromCompany;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromContact':
             // Gets the value for the Contact object referenced by intFromContactId (Not Null)
             // @return Contact
             try {
                 if (!$this->objFromContact && !is_null($this->intFromContactId)) {
                     $this->objFromContact = Contact::Load($this->intFromContactId);
                 }
                 return $this->objFromContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FromAddress':
             // Gets the value for the Address object referenced by intFromAddressId (Not Null)
             // @return Address
             try {
                 if (!$this->objFromAddress && !is_null($this->intFromAddressId)) {
                     $this->objFromAddress = Address::Load($this->intFromAddressId);
                 }
                 return $this->objFromAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToCompany':
             // Gets the value for the Company object referenced by intToCompanyId (Not Null)
             // @return Company
             try {
                 if (!$this->objToCompany && !is_null($this->intToCompanyId)) {
                     $this->objToCompany = Company::Load($this->intToCompanyId);
                 }
                 return $this->objToCompany;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToContact':
             // Gets the value for the Contact object referenced by intToContactId (Not Null)
             // @return Contact
             try {
                 if (!$this->objToContact && !is_null($this->intToContactId)) {
                     $this->objToContact = Contact::Load($this->intToContactId);
                 }
                 return $this->objToContact;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ToAddress':
             // Gets the value for the Address object referenced by intToAddressId (Not Null)
             // @return Address
             try {
                 if (!$this->objToAddress && !is_null($this->intToAddressId)) {
                     $this->objToAddress = Address::Load($this->intToAddressId);
                 }
                 return $this->objToAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Courier':
             // Gets the value for the Courier object referenced by intCourierId
             // @return Courier
             try {
                 if (!$this->objCourier && !is_null($this->intCourierId)) {
                     $this->objCourier = Courier::Load($this->intCourierId);
                 }
                 return $this->objCourier;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'CreatedByObject':
             // Gets the value for the UserAccount object referenced by intCreatedBy
             // @return UserAccount
             try {
                 if (!$this->objCreatedByObject && !is_null($this->intCreatedBy)) {
                     $this->objCreatedByObject = UserAccount::Load($this->intCreatedBy);
                 }
                 return $this->objCreatedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ModifiedByObject':
             // Gets the value for the UserAccount object referenced by intModifiedBy
             // @return UserAccount
             try {
                 if (!$this->objModifiedByObject && !is_null($this->intModifiedBy)) {
                     $this->objModifiedByObject = UserAccount::Load($this->intModifiedBy);
                 }
                 return $this->objModifiedByObject;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'ShipmentCustomFieldHelper':
             // Gets the value for the ShipmentCustomFieldHelper object that uniquely references this Shipment
             // by objShipmentCustomFieldHelper (Unique)
             // @return ShipmentCustomFieldHelper
             try {
                 if ($this->objShipmentCustomFieldHelper === false) {
                     // We've attempted early binding -- and the reverse reference object does not exist
                     return null;
                 }
                 if (!$this->objShipmentCustomFieldHelper) {
                     $this->objShipmentCustomFieldHelper = ShipmentCustomFieldHelper::LoadByShipmentId($this->intShipmentId);
                 }
                 return $this->objShipmentCustomFieldHelper;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'PackageTypeId':
             /**
              * Gets the value for intPackageTypeId (Read-Only PK)
              * @return integer
              */
             return $this->intPackageTypeId;
         case 'ShortDescription':
             /**
              * Gets the value for strShortDescription (Not Null)
              * @return string
              */
             return $this->strShortDescription;
         case 'CourierId':
             /**
              * Gets the value for intCourierId (Not Null)
              * @return integer
              */
             return $this->intCourierId;
         case 'Value':
             /**
              * Gets the value for strValue 
              * @return string
              */
             return $this->strValue;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Courier':
             /**
              * Gets the value for the Courier object referenced by intCourierId (Not Null)
              * @return Courier
              */
             try {
                 if (!$this->objCourier && !is_null($this->intCourierId)) {
                     $this->objCourier = Courier::Load($this->intCourierId);
                 }
                 return $this->objCourier;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_FedexShipment':
             /**
              * Gets the value for the private _objFedexShipment (Read-Only)
              * if set due to an expansion on the fedex_shipment.package_type_id reverse relationship
              * @return FedexShipment
              */
             return $this->_objFedexShipment;
         case '_FedexShipmentArray':
             /**
              * Gets the value for the private _objFedexShipmentArray (Read-Only)
              * if set due to an ExpandAsArray on the fedex_shipment.package_type_id reverse relationship
              * @return FedexShipment[]
              */
             return (array) $this->_objFedexShipmentArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 public function btnEdit_Click($strFormId, $strControlId, $strParameter)
 {
     $strParameterArray = explode(',', $strParameter);
     $objCourier = Courier::Load($strParameterArray[0]);
     $objEditPanel = new CourierEditPanel($this, $this->strCloseEditPanelMethod, $objCourier);
     $strMethodName = $this->strSetEditPanelMethod;
     $this->objForm->{$strMethodName}($objEditPanel);
 }
 /**
  * Static Helper Method to Create using PK arguments
  * You must pass in the PK arguments on an object to load, or leave it blank to create a new one.
  * If you want to load via QueryString or PathInfo, use the CreateFromQueryString or CreateFromPathInfo
  * static helper methods.  Finally, specify a CreateType to define whether or not we are only allowed to 
  * edit, or if we are also allowed to create a new one, etc.
  * 
  * @param mixed $objParentObject QForm or QPanel which will be using this CourierMetaControl
  * @param integer $intCourierId primary key value
  * @param QMetaControlCreateType $intCreateType rules governing Courier object creation - defaults to CreateOrEdit
  * @return CourierMetaControl
  */
 public static function Create($objParentObject, $intCourierId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit)
 {
     // Attempt to Load from PK Arguments
     if (strlen($intCourierId)) {
         $objCourier = Courier::Load($intCourierId);
         // Courier was found -- return it!
         if ($objCourier) {
             return new CourierMetaControl($objParentObject, $objCourier);
         } else {
             if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound) {
                 throw new QCallerException('Could not find a Courier object with PK arguments: ' . $intCourierId);
             }
         }
         // If EditOnly is specified, throw an exception
     } else {
         if ($intCreateType == QMetaControlCreateType::EditOnly) {
             throw new QCallerException('No PK arguments specified');
         }
     }
     // If we are here, then we need to create a new record
     return new CourierMetaControl($objParentObject, new Courier());
 }