Exemplo n.º 1
0
 protected function lstFedexLabelFormatType_Create()
 {
     $this->lstFedexLabelFormatType = new QListBox($this->pnlFedExShipment);
     $this->lstFedexLabelFormatType->Name = QApplication::Translate('Label Format Type');
     $this->lstFedexLabelFormatType->AddItem(QApplication::Translate('- Select One -'), null);
     $objFedexLabelFormatTypeArray = FedExDC::get_label_format_types();
     if ($objFedexLabelFormatTypeArray) {
         foreach ($objFedexLabelFormatTypeArray as $key => $value) {
             $objListItem = new QListItem($value, $key);
             if ($this->blnEditMode && $this->objFedexShipment && $this->objFedexShipment->LabelFormatType && $this->objFedexShipment->LabelFormatType == $key) {
                 $objListItem->Selected = true;
             } else {
                 if (!$this->blnEditMode && QApplication::$TracmorSettings->FedexLabelFormatType && QApplication::$TracmorSettings->FedexLabelFormatType == $key) {
                     $objListItem->Selected = true;
                 }
             }
             $this->lstFedexLabelFormatType->AddItem($objListItem);
         }
     }
     $this->lstFedexLabelFormatType->TabIndex = 45;
 }