当前位置: 首页>>代码示例>>PHP>>正文


PHP Address::Load方法代码示例

本文整理汇总了PHP中Address::Load方法的典型用法代码示例。如果您正苦于以下问题:PHP Address::Load方法的具体用法?PHP Address::Load怎么用?PHP Address::Load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Address的用法示例。


在下文中一共展示了Address::Load方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: pxySetCurrentHomeAddress_Click

 public function pxySetCurrentHomeAddress_Click($strFormId, $strControlId, $strParameter)
 {
     // Get and validate Address object
     $objAddress = Address::Load($strParameter);
     if (!$objAddress) {
         return;
     }
     if ($objAddress->HouseholdId != $this->objHousehold->Id) {
         return;
     }
     $this->objHousehold->SetAsCurrentAddress($objAddress);
     $this->dtgHomeAddresses->Refresh();
 }
开发者ID:alcf,项目名称:chms,代码行数:13,代码来源:view.php

示例2: SetupAddress

 protected function SetupAddress()
 {
     // Lookup Object PK information from Query String (if applicable)
     // Set mode to Edit or New depending on what's found
     $intAddressId = QApplication::QueryString('intAddressId');
     if ($intAddressId) {
         $this->objAddress = Address::Load($intAddressId);
         if (!$this->objAddress) {
             throw new Exception('Could not find a Address object with PK arguments: ' . $intAddressId);
         }
         $this->strTitleVerb = QApplication::Translate('Edit');
         $this->blnEditMode = true;
     } else {
         $this->objAddress = new Address();
         $this->strTitleVerb = QApplication::Translate('Create');
         $this->blnEditMode = false;
     }
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:18,代码来源:AddressEditFormBase.class.php

示例3: __get

 /**
  * 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 'Id':
             // Gets the value for intId (Read-Only PK)
             // @return integer
             return $this->intId;
         case 'SignupEntryId':
             // Gets the value for intSignupEntryId (Not Null)
             // @return integer
             return $this->intSignupEntryId;
         case 'FormQuestionId':
             // Gets the value for intFormQuestionId (Not Null)
             // @return integer
             return $this->intFormQuestionId;
         case 'TextValue':
             // Gets the value for strTextValue
             // @return string
             return $this->strTextValue;
         case 'AddressId':
             // Gets the value for intAddressId
             // @return integer
             return $this->intAddressId;
         case 'PhoneId':
             // Gets the value for intPhoneId
             // @return integer
             return $this->intPhoneId;
         case 'EmailId':
             // Gets the value for intEmailId
             // @return integer
             return $this->intEmailId;
         case 'IntegerValue':
             // Gets the value for intIntegerValue
             // @return integer
             return $this->intIntegerValue;
         case 'BooleanValue':
             // Gets the value for blnBooleanValue
             // @return boolean
             return $this->blnBooleanValue;
         case 'DateValue':
             // Gets the value for dttDateValue
             // @return QDateTime
             return $this->dttDateValue;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'SignupEntry':
             // Gets the value for the SignupEntry object referenced by intSignupEntryId (Not Null)
             // @return SignupEntry
             try {
                 if (!$this->objSignupEntry && !is_null($this->intSignupEntryId)) {
                     $this->objSignupEntry = SignupEntry::Load($this->intSignupEntryId);
                 }
                 return $this->objSignupEntry;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'FormQuestion':
             // Gets the value for the FormQuestion object referenced by intFormQuestionId (Not Null)
             // @return FormQuestion
             try {
                 if (!$this->objFormQuestion && !is_null($this->intFormQuestionId)) {
                     $this->objFormQuestion = FormQuestion::Load($this->intFormQuestionId);
                 }
                 return $this->objFormQuestion;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Address':
             // Gets the value for the Address object referenced by intAddressId
             // @return Address
             try {
                 if (!$this->objAddress && !is_null($this->intAddressId)) {
                     $this->objAddress = Address::Load($this->intAddressId);
                 }
                 return $this->objAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Phone':
             // Gets the value for the Phone object referenced by intPhoneId
             // @return Phone
             try {
                 if (!$this->objPhone && !is_null($this->intPhoneId)) {
//.........这里部分代码省略.........
开发者ID:alcf,项目名称:chms,代码行数:101,代码来源:FormAnswerGen.class.php

示例4: __get

 /**
  * 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 'CompanyId':
             // Gets the value for intCompanyId (Read-Only PK)
             // @return integer
             return $this->intCompanyId;
         case 'AddressId':
             // Gets the value for intAddressId
             // @return integer
             return $this->intAddressId;
         case 'ShortDescription':
             // Gets the value for strShortDescription (Unique)
             // @return string
             return $this->strShortDescription;
         case 'Website':
             // Gets the value for strWebsite
             // @return string
             return $this->strWebsite;
         case 'Telephone':
             // Gets the value for strTelephone
             // @return string
             return $this->strTelephone;
         case 'Fax':
             // Gets the value for strFax
             // @return string
             return $this->strFax;
         case 'Email':
             // Gets the value for strEmail
             // @return string
             return $this->strEmail;
         case 'LongDescription':
             // Gets the value for strLongDescription
             // @return string
             return $this->strLongDescription;
         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 'Address':
             // Gets the value for the Address object referenced by intAddressId
             // @return Address
             try {
                 if (!$this->objAddress && !is_null($this->intAddressId)) {
                     $this->objAddress = Address::Load($this->intAddressId);
                 }
                 return $this->objAddress;
             } 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) {
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:CompanyGen.class.php

示例5: __get

 /**
  * 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':
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:ShipmentGen.class.php

示例6: __get


//.........这里部分代码省略.........
             // @return string
             return $this->strPrimaryCityText;
         case 'PrimaryStateText':
             // Gets the value for strPrimaryStateText
             // @return string
             return $this->strPrimaryStateText;
         case 'PrimaryZipCodeText':
             // Gets the value for strPrimaryZipCodeText
             // @return string
             return $this->strPrimaryZipCodeText;
         case 'PrimaryPhoneText':
             // Gets the value for strPrimaryPhoneText
             // @return string
             return $this->strPrimaryPhoneText;
         case 'PublicCreationFlag':
             // Gets the value for blnPublicCreationFlag
             // @return boolean
             return $this->blnPublicCreationFlag;
         case 'CoPrimary':
             // Gets the value for intCoPrimary
             // @return integer
             return $this->intCoPrimary;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'CurrentHeadShot':
             // Gets the value for the HeadShot object referenced by intCurrentHeadShotId (Unique)
             // @return HeadShot
             try {
                 if (!$this->objCurrentHeadShot && !is_null($this->intCurrentHeadShotId)) {
                     $this->objCurrentHeadShot = HeadShot::Load($this->intCurrentHeadShotId);
                 }
                 return $this->objCurrentHeadShot;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MailingAddress':
             // Gets the value for the Address object referenced by intMailingAddressId
             // @return Address
             try {
                 if (!$this->objMailingAddress && !is_null($this->intMailingAddressId)) {
                     $this->objMailingAddress = Address::Load($this->intMailingAddressId);
                 }
                 return $this->objMailingAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'StewardshipAddress':
             // Gets the value for the Address object referenced by intStewardshipAddressId
             // @return Address
             try {
                 if (!$this->objStewardshipAddress && !is_null($this->intStewardshipAddressId)) {
                     $this->objStewardshipAddress = Address::Load($this->intStewardshipAddressId);
                 }
                 return $this->objStewardshipAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'PrimaryPhone':
             // Gets the value for the Phone object referenced by intPrimaryPhoneId
开发者ID:alcf,项目名称:chms,代码行数:67,代码来源:PersonGen.class.php

示例7: __get

 /**
  * 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 'CompanyId':
             /**
              * Gets the value for intCompanyId (Read-Only PK)
              * @return integer
              */
             return $this->intCompanyId;
         case 'AddressId':
             /**
              * Gets the value for intAddressId 
              * @return integer
              */
             return $this->intAddressId;
         case 'ShortDescription':
             /**
              * Gets the value for strShortDescription (Unique)
              * @return string
              */
             return $this->strShortDescription;
         case 'Website':
             /**
              * Gets the value for strWebsite 
              * @return string
              */
             return $this->strWebsite;
         case 'Telephone':
             /**
              * Gets the value for strTelephone 
              * @return string
              */
             return $this->strTelephone;
         case 'Fax':
             /**
              * Gets the value for strFax 
              * @return string
              */
             return $this->strFax;
         case 'Email':
             /**
              * Gets the value for strEmail 
              * @return string
              */
             return $this->strEmail;
         case 'LongDescription':
             /**
              * Gets the value for strLongDescription 
              * @return string
              */
             return $this->strLongDescription;
         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 'Address':
             /**
              * Gets the value for the Address object referenced by intAddressId 
              * @return Address
              */
             try {
                 if (!$this->objAddress && !is_null($this->intAddressId)) {
                     $this->objAddress = Address::Load($this->intAddressId);
                 }
//.........这里部分代码省略.........
开发者ID:heshuai64,项目名称:einv2,代码行数:101,代码来源:CompanyGen.class.php

示例8: __get

 /**
  * 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 'AddressId':
             // Gets the value for intAddressId (PK)
             // @return integer
             return $this->intAddressId;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Address':
             // Gets the value for the Address object referenced by intAddressId (PK)
             // @return Address
             try {
                 if (!$this->objAddress && !is_null($this->intAddressId)) {
                     $this->objAddress = Address::Load($this->intAddressId);
                 }
                 return $this->objAddress;
             } 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;
             }
     }
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:54,代码来源:AddressCustomFieldHelperGen.class.php

示例9: __get


//.........这里部分代码省略.........
              */
             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();
开发者ID:heshuai64,项目名称:einv2,代码行数:67,代码来源:ReceiptGen.class.php

示例10: btnSave_Click

 public function btnSave_Click($strFormId, $strControlId, $strParameter)
 {
     try {
         if ($this->intEditAddressId == -1) {
             $objRecord = new Address();
         } else {
             $objRecord = Address::Load($this->intEditAddressId);
         }
         $objRecord->Street = $this->txtStreet->Text;
         $objRecord->City = $this->txtCity->Text;
         $objRecord->Save();
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->btnCancel_Click($strFormId, $strControlId, $strParameter);
 }
开发者ID:tomVertuoz,项目名称:framework,代码行数:17,代码来源:AddressListPanel.class.php

示例11: btnSave_Click

 protected function btnSave_Click($strFormId, $strControlId, $strParameter)
 {
     $blnError = false;
     if ($this->objAssetTransactionArray && $this->objInventoryTransactionArray) {
         $intEntityQtypeId = EntityQtype::AssetInventory;
     } elseif ($this->objAssetTransactionArray) {
         $intEntityQtypeId = EntityQtype::Asset;
     } elseif ($this->objInventoryTransactionArray) {
         $intEntityQtypeId = EntityQtype::Inventory;
     } else {
         $blnError = true;
         $this->btnCancel->Warning = 'There are no assets or inventory in this shipment.';
     }
     if (QApplication::$TracmorSettings->CustomShipmentNumbers) {
         if ($objShipment = Shipment::LoadByShipmentNumber($this->txtShipmentNumber->Text)) {
             if ($objShipment->ShipmentId != $this->objShipment->ShipmentId) {
                 $blnError = true;
                 $this->txtShipmentNumber->Warning = 'That is a duplicate shipment number.';
             }
         }
     }
     if ($this->lstFxServiceType->SelectedValue) {
         $objtoFxAddress = Address::Load($this->lstToAddress->SelectedValue);
         if (!$objtoFxAddress || !$objtoFxAddress->PostalCode || !$objtoFxAddress->CountryId || !$objtoFxAddress->Address1) {
             $blnError = true;
             $this->lstFxServiceType->Warning = "Not a valid To Address.";
         }
         $objfromFxAddress = Address::Load($this->lstFromAddress->SelectedValue);
         if (!$objfromFxAddress || !$objfromFxAddress->PostalCode || !$objfromFxAddress->Address1 || !$objfromFxAddress->CountryId) {
             $blnError = true;
             $this->lstFxServiceType->Warning = "Not a valid From Address.";
         }
         $objfromFxContact = Contact::Load($this->lstFromContact->SelectedValue);
         if (!$objfromFxContact) {
             $blnError = true;
             $this->lstFxServiceType->Warning = "Not a valid From Contact.";
         }
         $objfromFxCompany = Company::Load($this->lstFromCompany->SelectedValue);
         if (!$objfromFxCompany) {
             $blnError = true;
             $this->lstFxServiceType->Warning = "Not a valid From Company.";
         } elseif (!$objfromFxCompany->Telephone) {
             $blnError = true;
             $this->lstFxServiceType->Warning = "The Shipping Company must have a telephone number.";
         }
         $objShippingAccount = ShippingAccount::Load($this->lstShippingAccount->SelectedValue);
         if (!$objShippingAccount) {
             $blnError = true;
             $this->lstFxServiceType->Warning = "Not a valid Shipping Account.";
         }
         /*				$fed = new FedExDC($objShippingAccount->Value);
         
         				$aRet = $fed->subscribe(
         					array(
         						1 => $this->lblShipmentNumber->Text, // Don't really need this but can be used for ref
         						4003 => $objfromFxContact->__toString(),
         						4008 => $objfromFxAddress->Address1,
         						4009 => $objfromFxAddress->Address2,
         						4011 => $objfromFxAddress->City,
         						4012 => $objfromFxAddress->__toStringStateProvinceAbbreviation(),
         						4013 => $objfromFxAddress->PostalCode,
         						4014 => $objfromFxAddress->__toStringCountryAbbreviation(),
         						4015 => $this->FxStrip($objfromFxCompany->Telephone),
         					)
         				);
         
         				if ($error = $fed->getError()) {
         					$blnError = true;
         					$this->lstFxServiceType->Warning = $error;
         				}
         				elseif (!$aRet[498]) {
         					$blnError = true;
         					$this->lstFxServiceType->Warning = "Fedex response is improperly formed.";
         				}
         				else {
         					$this->objShipment->FedexMeterNumber = $aRet[498];
         				}*/
     }
     if (!$blnError) {
         if (!$this->blnEditMode) {
             try {
                 // Get an instance of the database
                 $objDatabase = QApplication::$Database[1];
                 // Begin a MySQL Transaction to be either committed or rolled back
                 $objDatabase->TransactionBegin();
                 // Create the new transaction object and save it
                 $this->objTransaction = new Transaction();
                 $this->objTransaction->EntityQtypeId = $intEntityQtypeId;
                 $this->objTransaction->TransactionTypeId = 6;
                 $this->objTransaction->Note = $this->txtNote->Text;
                 $this->objTransaction->Save();
                 if ($intEntityQtypeId == EntityQtype::AssetInventory || $intEntityQtypeId == EntityQtype::Asset) {
                     // Assign different source and destinations depending on transaction type
                     foreach ($this->objAssetTransactionArray as $objAssetTransaction) {
                         if ($objAssetTransaction->Asset instanceof Asset) {
                             // Save the asset just to update the modified_date field so it can trigger an Optimistic Locking Exception when appropriate
                             $objAssetTransaction->Asset->Save();
                             // Assign the TransactionId
                             $objAssetTransaction->TransactionId = $this->objTransaction->TransactionId;
                             // Create the new asset if it was scheduled for receipt
//.........这里部分代码省略.........
开发者ID:brustj,项目名称:tracmor,代码行数:101,代码来源:shipment_edit.php

示例12: rblAddress_Change

 public function rblAddress_Change($strFormId, $strControlId, $strParameter)
 {
     $strControlIdRoot = str_replace('switch', '', $strControlId);
     $rblAddress = $this->GetControl($strControlId);
     $txtAddress1 = $this->GetControl($strControlIdRoot . 'address1');
     $txtAddress2 = $this->GetControl($strControlIdRoot . 'address2');
     $txtCity = $this->GetControl($strControlIdRoot . 'city');
     $lstState = $this->GetControl($strControlIdRoot . 'state');
     $txtZipCode = $this->GetControl($strControlIdRoot . 'zipcode');
     if ($rblAddress->SelectedValue) {
         $objAddress = Address::Load($rblAddress->SelectedValue);
         $txtAddress1->Text = $objAddress->Address1;
         $txtAddress2->Text = $objAddress->Address2;
         $txtCity->Text = $objAddress->City;
         $lstState->SelectedValue = $objAddress->State;
         $txtZipCode->Text = $objAddress->ZipCode;
         $txtAddress1->Enabled = false;
         $txtAddress2->Enabled = false;
         $txtCity->Enabled = false;
         $lstState->Enabled = false;
         $txtZipCode->Enabled = false;
     } else {
         $txtAddress1->Enabled = true;
         $txtAddress2->Enabled = true;
         $txtCity->Enabled = true;
         $lstState->Enabled = true;
         $txtZipCode->Enabled = true;
         $txtAddress1->Focus();
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:30,代码来源:SignupQForm.class.php

示例13: btnEdit_Click

 public function btnEdit_Click($strFormId, $strControlId, $strParameter)
 {
     $strParameterArray = explode(',', $strParameter);
     $objAddress = Address::Load($strParameterArray[0]);
     $objEditPanel = new AddressEditPanel($this, $this->strCloseEditPanelMethod, $objAddress);
     $strMethodName = $this->strSetEditPanelMethod;
     $this->objForm->{$strMethodName}($objEditPanel);
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:8,代码来源:AddressListPanelBase.class.php

示例14: Reload

 /**
  * Reload this Address 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 Address object.');
     }
     // Reload the Object
     $objReloaded = Address::Load($this->intId);
     // Update $this's local variables to match
     $this->AddressTypeId = $objReloaded->AddressTypeId;
     $this->PersonId = $objReloaded->PersonId;
     $this->HouseholdId = $objReloaded->HouseholdId;
     $this->PrimaryPhoneId = $objReloaded->PrimaryPhoneId;
     $this->strAddress1 = $objReloaded->strAddress1;
     $this->strAddress2 = $objReloaded->strAddress2;
     $this->strAddress3 = $objReloaded->strAddress3;
     $this->strCity = $objReloaded->strCity;
     $this->strState = $objReloaded->strState;
     $this->strZipCode = $objReloaded->strZipCode;
     $this->strCountry = $objReloaded->strCountry;
     $this->blnCurrentFlag = $objReloaded->blnCurrentFlag;
     $this->blnInvalidFlag = $objReloaded->blnInvalidFlag;
     $this->blnVerificationCheckedFlag = $objReloaded->blnVerificationCheckedFlag;
     $this->dttDateUntilWhen = $objReloaded->dttDateUntilWhen;
     $this->blnInternationalFlag = $objReloaded->blnInternationalFlag;
 }
开发者ID:alcf,项目名称:chms,代码行数:30,代码来源:AddressGen.class.php

示例15: __get

 /**
  * 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 'Id':
             // Gets the value for intId (Read-Only PK)
             // @return integer
             return $this->intId;
         case 'PhoneTypeId':
             // Gets the value for intPhoneTypeId (Not Null)
             // @return integer
             return $this->intPhoneTypeId;
         case 'AddressId':
             // Gets the value for intAddressId
             // @return integer
             return $this->intAddressId;
         case 'PersonId':
             // Gets the value for intPersonId
             // @return integer
             return $this->intPersonId;
         case 'MobileProviderId':
             // Gets the value for intMobileProviderId
             // @return integer
             return $this->intMobileProviderId;
         case 'Number':
             // Gets the value for strNumber
             // @return string
             return $this->strNumber;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Address':
             // Gets the value for the Address object referenced by intAddressId
             // @return Address
             try {
                 if (!$this->objAddress && !is_null($this->intAddressId)) {
                     $this->objAddress = Address::Load($this->intAddressId);
                 }
                 return $this->objAddress;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Person':
             // Gets the value for the Person object referenced by intPersonId
             // @return Person
             try {
                 if (!$this->objPerson && !is_null($this->intPersonId)) {
                     $this->objPerson = Person::Load($this->intPersonId);
                 }
                 return $this->objPerson;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'MobileProvider':
             // Gets the value for the MobileProvider object referenced by intMobileProviderId
             // @return MobileProvider
             try {
                 if (!$this->objMobileProvider && !is_null($this->intMobileProviderId)) {
                     $this->objMobileProvider = MobileProvider::Load($this->intMobileProviderId);
                 }
                 return $this->objMobileProvider;
             } 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 '_AddressAsPrimary':
             // Gets the value for the private _objAddressAsPrimary (Read-Only)
             // if set due to an expansion on the address.primary_phone_id reverse relationship
             // @return Address
             return $this->_objAddressAsPrimary;
         case '_AddressAsPrimaryArray':
             // Gets the value for the private _objAddressAsPrimaryArray (Read-Only)
             // if set due to an ExpandAsArray on the address.primary_phone_id reverse relationship
             // @return Address[]
             return (array) $this->_objAddressAsPrimaryArray;
         case '_FormAnswer':
             // Gets the value for the private _objFormAnswer (Read-Only)
             // if set due to an expansion on the form_answer.phone_id reverse relationship
//.........这里部分代码省略.........
开发者ID:alcf,项目名称:chms,代码行数:101,代码来源:PhoneGen.class.php


注:本文中的Address::Load方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。