// Include prepend.inc to load Qcodo require '../includes/prepend.inc.php'; /* if you DO NOT have "includes/" in your include_path */ // require('prepend.inc.php'); /* if you DO have "includes/" in your include_path */ // Include the classfile for ShipmentEditFormBase require __FORMBASE_CLASSES__ . '/ShipmentEditFormBase.class.php'; // Security check for ALLOW_REMOTE_ADMIN // To allow access REGARDLESS of ALLOW_REMOTE_ADMIN, simply remove the line below QApplication::CheckRemoteAdmin(); /** * This is a quick-and-dirty draft form object to do Create, Edit, and Delete functionality * of the Shipment class. It extends from the code-generated * abstract ShipmentEditFormBase class. * * Any display customizations and presentation-tier logic can be implemented * here by overriding existing or implementing new methods, properties and variables. * * Additional qform control objects can also be defined and used here, as well. * * @package My Application * @subpackage FormDraftObjects * */ class ShipmentEditForm extends ShipmentEditFormBase { } // Go ahead and run this form object to render the page and its event handlers, using // generated/shipment_edit.tpl.php as the included HTML template file ShipmentEditForm::Run('ShipmentEditForm', 'generated/shipment_edit.tpl.php');
$objAssetTransaction->NewAssetId = null; $objAssetTransaction->NewAsset = null; $objAssetTransaction->ScheduleReceiptDueDate = null; if ($objLinkedAssetCodeArray = Asset::LoadChildLinkedArrayByParentAssetId($objAssetTransaction->Asset->AssetId)) { foreach ($objLinkedAssetCodeArray as $objLinkedAssetCode) { $objLinkedAssetTransaction = $objNewAssetTransactionArray[$objLinkedAssetCode->AssetCode]; $objLinkedAssetTransaction->ScheduleReceiptFlag = false; $objLinkedAssetTransaction->NewAssetFlag = false; $objLinkedAssetTransaction->NewAssetId = null; $objLinkedAssetTransaction->NewAsset = null; $objLinkedAssetTransaction->ScheduleReceiptDueDate = null; } } } $this->blnModifyAssets = true; } $this->dtgAssetTransact->RemoveColumnByName('Advanced'); $this->dtgAssetTransact->RemoveColumnByName('Due Date'); } else { if (!$this->dtgAssetTransact->GetColumnByName('Advanced')) { $this->dtgAssetTransact->AddColumn(new QDataGridColumn('Advanced', '<?= $_FORM->AdvancedColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); $this->dtgAssetTransact->AddColumn(new QDataGridColumn('Due Date', '<?= $_FORM->DueDateColumn_Render($_ITEM) ?>', array('CssClass' => "dtg_column", 'HtmlEntities' => false))); } } } } } // Go ahead and run this form object to render the page and its event handlers, using // generated/shipment_edit.php.inc as the included HTML template file ShipmentEditForm::Run('ShipmentEditForm', __DOCROOT__ . __SUBDIRECTORY__ . '/shipping/shipment_edit.tpl.php');