示例#1
0
 protected function UpdateReceiptControls()
 {
     $this->lstFromCompany->SelectedValue = $this->objReceipt->FromCompanyId;
     $this->lstFromCompany_Select();
     $this->lstFromContact->SelectedValue = $this->objReceipt->FromContactId;
     $this->lstToContact->SelectedValue = $this->objReceipt->ToContactId;
     $this->lstToAddress->SelectedValue = $this->objReceipt->ToAddressId;
     if (QApplication::$TracmorSettings->CustomReceiptNumbers) {
         $this->txtReceiptNumber->Text = $this->objReceipt->ReceiptNumber;
     }
     $this->txtNote->Text = $this->objReceipt->Transaction->Note;
     $this->calDueDate->DateTime = $this->objReceipt->DueDate;
     $this->calDateReceived->Display = false;
     $this->lblReceiptDate->Display = true;
     $this->lblReceiptDate->Text = $this->objReceipt->ReceiptDate ? $this->objReceipt->ReceiptDate->__toString() : '';
     $this->arrCustomFields = CustomField::UpdateControls($this->objReceipt->objCustomFieldArray, $this->arrCustomFields);
 }
 protected function UpdateAssetControls()
 {
     $this->txtAssetCode->Text = $this->objAsset->AssetCode;
     if ($this->objAsset->ParentAssetId) {
         $this->txtParentAssetCode->Text = $this->objAsset->ParentAsset->AssetCode;
         $this->chkLockToParent->Checked = $this->objAsset->LinkedFlag;
     } else {
         @($this->txtParentAssetCode->Text = "");
         @($this->chkLockToParent->Checked = false);
     }
     $this->arrCustomFields = CustomField::UpdateControls($this->objAsset->objCustomFieldArray, $this->arrCustomFields);
 }
示例#3
0
 protected function UpdateAddressControls()
 {
     $this->txtShortDescription->Text = $this->objAddress->ShortDescription;
     $this->txtAddress1->Text = $this->objAddress->Address1;
     $this->txtAddress2->Text = $this->objAddress->Address2;
     $this->txtCity->Text = $this->objAddress->City;
     $this->lstCountry->SelectedValue = $this->objAddress->CountryId;
     $this->lstCountry_Select();
     $this->lstStateProvince->SelectedValue = $this->objAddress->StateProvinceId;
     $this->txtPostalCode->Text = $this->objAddress->PostalCode;
     $this->arrCustomFields = CustomField::UpdateControls($this->objAddress->objCustomFieldArray, $this->arrCustomFields);
 }
示例#4
0
 protected function UpdateCompanyControls()
 {
     $this->lstAddress->SelectedValue = $this->objCompany->AddressId;
     $this->txtShortDescription->Text = $this->objCompany->ShortDescription;
     $this->txtWebsite->Text = $this->objCompany->Website;
     $this->txtTelephone->Text = $this->objCompany->Telephone;
     $this->txtFax->Text = $this->objCompany->Fax;
     $this->txtEmail->Text = $this->objCompany->Email;
     $this->txtLongDescription->Text = $this->objCompany->LongDescription;
     $this->arrCustomFields = CustomField::UpdateControls($this->objCompany->objCustomFieldArray, $this->arrCustomFields);
 }
示例#5
0
 protected function UpdateAssetModelControls()
 {
     $this->lstCategory->SelectedValue = $this->objAssetModel->CategoryId;
     $this->lstManufacturer->SelectedValue = $this->objAssetModel->ManufacturerId;
     $this->txtAssetModelCode->Text = $this->objAssetModel->AssetModelCode;
     $this->txtShortDescription->Text = $this->objAssetModel->ShortDescription;
     $this->txtLongDescription->Text = $this->objAssetModel->LongDescription;
     $this->txtImagePath->Text = $this->objAssetModel->ImagePath;
     $this->arrCustomFields = CustomField::UpdateControls($this->objAssetModel->objCustomFieldArray, $this->arrCustomFields);
 }
示例#6
0
 protected function UpdateShipmentControls()
 {
     $this->lstToContact->SelectedValue = $this->objShipment->ToContactId;
     //$this->lstToContact_Select();
     $this->lstFromCompany->SelectedValue = $this->objShipment->FromCompanyId;
     $this->lstFromContact->SelectedValue = $this->objShipment->FromContactId;
     $this->calShipDate->DateTime = $this->objShipment->ShipDate;
     $this->lstFromAddress->SelectedValue = $this->objShipment->FromAddressId;
     $this->lstToCompany->SelectedValue = $this->objShipment->ToCompanyId;
     $this->lstToCompany_Select();
     $this->lstToAddress->SelectedValue = $this->objShipment->ToAddressId;
     $this->lstToAddress_Select();
     if (QApplication::$TracmorSettings->CustomShipmentNumbers) {
         $this->txtShipmentNumber->Text = $this->objShipment->ShipmentNumber;
     }
     $this->lstCourier->SelectedValue = $this->objShipment->CourierId;
     $this->txtTrackingNumber->Text = $this->objShipment->TrackingNumber;
     $this->txtNote->Text = $this->objShipment->Transaction->Note;
     $this->arrCustomFields = CustomField::UpdateControls($this->objShipment->objCustomFieldArray, $this->arrCustomFields);
 }
示例#7
0
 protected function UpdateContactControls()
 {
     $this->lstCompany->SelectedValue = $this->objContact->CompanyId;
     $this->lstCompany_Select();
     $this->txtFirstName->Text = $this->objContact->FirstName;
     $this->txtLastName->Text = $this->objContact->LastName;
     $this->txtTitle->Text = $this->objContact->Title;
     $this->txtEmail->Text = $this->objContact->Email;
     $this->lstAddress->SelectedValue = $this->objContact->AddressId;
     $this->txtDescription->Text = $this->objContact->Description;
     $this->txtPhoneOffice->Text = $this->objContact->PhoneOffice;
     $this->txtPhoneMobile->Text = $this->objContact->PhoneMobile;
     $this->txtPhoneHome->Text = $this->objContact->PhoneHome;
     $this->txtFax->Text = $this->objContact->Fax;
     $this->arrCustomFields = CustomField::UpdateControls($this->objContact->objCustomFieldArray, $this->arrCustomFields);
 }
示例#8
0
 protected function UpdateShipmentControls()
 {
     $this->lstToContact->SelectedValue = $this->objShipment->ToContactId;
     $this->lstToContact_Select();
     $this->lstFromCompany->SelectedValue = $this->objShipment->FromCompanyId;
     $this->lstFromContact->SelectedValue = $this->objShipment->FromContactId;
     $this->calShipDate->DateTime = $this->objShipment->ShipDate;
     $this->lstFromAddress->SelectedValue = $this->objShipment->FromAddressId;
     $this->lstToCompany->SelectedValue = $this->objShipment->ToCompanyId;
     $this->lstToCompany_Select();
     $this->lstToAddress->SelectedValue = $this->objShipment->ToAddressId;
     $this->lstToAddress_Select();
     if (QApplication::$TracmorSettings->CustomShipmentNumbers) {
         $this->txtShipmentNumber->Text = $this->objShipment->ShipmentNumber;
     }
     $this->lstCourier->SelectedValue = $this->objShipment->CourierId;
     $this->lstCourier_Select();
     $this->txtTrackingNumber->Text = $this->objShipment->TrackingNumber;
     $this->txtNote->Text = $this->objShipment->Transaction->Note;
     if ($this->objFedexShipment) {
         $this->txtToPhone->Text = $this->objFedexShipment->ToPhone;
         $this->lstBillTransportationTo->SelectedValue = $this->objFedexShipment->PayType;
         $this->lstShippingAccount->SelectedValue = $this->objFedexShipment->ShippingAccountId;
         $this->txtRecipientThirdPartyAccount->Text = $this->objFedexShipment->PayerAccountNumber;
         $this->txtReference->Text = $this->objFedexShipment->Reference;
         $this->txtFedexNotifySenderEmail->Text = $this->objFedexShipment->NotifySenderEmail;
         $this->txtFedexNotifyRecipientEmail->Text = $this->objFedexShipment->NotifyRecipientEmail;
         $this->txtFedexNotifyOtherEmail->Text = $this->objFedexShipment->NotifyOtherEmail;
         $this->chkFedexNotifySenderShipFlag->Checked = $this->objFedexShipment->NotifySenderShipFlag;
         $this->chkFedexNotifySenderExceptionFlag->Checked = $this->objFedexShipment->NotifySenderExceptionFlag;
         $this->chkFedexNotifySenderDeliveryFlag->Checked = $this->objFedexShipment->NotifySenderDeliveryFlag;
         $this->chkFedexNotifyRecipientShipFlag->Checked = $this->objFedexShipment->NotifyRecipientShipFlag;
         $this->chkFedexNotifyRecipientExceptionFlag->Checked = $this->objFedexShipment->NotifyRecipientExceptionFlag;
         $this->chkFedexNotifyRecipientDeliveryFlag->Checked = $this->objFedexShipment->NotifyRecipientDeliveryFlag;
         $this->chkFedexNotifyOtherShipFlag->Checked = $this->objFedexShipment->NotifyOtherShipFlag;
         $this->chkFedexNotifyOtherExceptionFlag->Checked = $this->objFedexShipment->NotifyOtherExceptionFlag;
         $this->chkFedexNotifyOtherDeliveryFlag->Checked = $this->objFedexShipment->NotifyOtherDeliveryFlag;
         $this->lstFxServiceType->SelectedValue = $this->objFedexShipment->FedexServiceTypeId;
         $this->lstPackageType->SelectedValue = $this->objFedexShipment->PackageTypeId;
         $this->txtPackageWeight->Text = $this->objFedexShipment->PackageWeight;
         $this->lstWeightUnit->SelectedValue = $this->objFedexShipment->WeightUnitId;
         $this->txtPackageLength->Text = $this->objFedexShipment->PackageLength;
         $this->txtPackageWidth->Text = $this->objFedexShipment->PackageWidth;
         $this->txtPackageHeight->Text = $this->objFedexShipment->PackageHeight;
         $this->lstLengthUnit->SelectedValue = $this->objFedexShipment->LengthUnitId;
         $this->txtValue->Text = $this->objFedexShipment->DeclaredValue;
         $this->lstCurrencyUnit->SelectedValue = $this->objFedexShipment->CurrencyUnitId;
         $this->chkSaturdayDeliveryFlag->Checked = $this->objFedexShipment->SaturdayDeliveryFlag;
         $this->chkHoldAtLocationFlag->Checked = $this->objFedexShipment->HoldAtLocationFlag;
         $this->txtHoldAtLocationAddress->Text = $this->objFedexShipment->HoldAtLocationAddress;
         $this->txtHoldAtLocationCity->Text = $this->objFedexShipment->HoldAtLocationCity;
         $this->lstHoldAtLocationState->SelectedValue = $this->objFedexShipment->HoldAtLocationState;
         $this->txtHoldAtLocationPostalCode->Text = $this->objFedexShipment->HoldAtLocationPostalCode;
         $this->lstFedexLabelPrinterType->SelectedValue = $this->objFedexShipment->LabelPrinterType;
         $this->lstFedexLabelFormatType->SelectedValue = $this->objFedexShipment->LabelFormatType;
         $this->txtFedexThermalPrinterPort->Text = $this->objFedexShipment->ThermalPrinterPort;
     }
     $this->arrCustomFields = CustomField::UpdateControls($this->objShipment->objCustomFieldArray, $this->arrCustomFields);
 }