protected function SetupFedexShipment()
 {
     // Lookup Object PK information from Query String (if applicable)
     // Set mode to Edit or New depending on what's found
     $intFedexShipmentId = QApplication::QueryString('intFedexShipmentId');
     if ($intFedexShipmentId) {
         $this->objFedexShipment = FedexShipment::Load($intFedexShipmentId);
         if (!$this->objFedexShipment) {
             throw new Exception('Could not find a FedexShipment object with PK arguments: ' . $intFedexShipmentId);
         }
         $this->strTitleVerb = QApplication::Translate('Edit');
         $this->blnEditMode = true;
     } else {
         $this->objFedexShipment = new FedexShipment();
         $this->strTitleVerb = QApplication::Translate('Create');
         $this->blnEditMode = false;
     }
 }
 public function btnEdit_Click($strFormId, $strControlId, $strParameter)
 {
     $strParameterArray = explode(',', $strParameter);
     $objFedexShipment = FedexShipment::Load($strParameterArray[0]);
     $objEditPanel = new FedexShipmentEditPanel($this, $this->strCloseEditPanelMethod, $objFedexShipment);
     $strMethodName = $this->strSetEditPanelMethod;
     $this->objForm->{$strMethodName}($objEditPanel);
 }