} //Set display logic of the GreenPlusButton of Address protected function UpdateAddressAccess() { //checks if the entity 4 (AssetModel) has edit authorization $objRoleEntityQtypeBuiltInAuthorization = RoleEntityQtypeBuiltInAuthorization::LoadByRoleIdEntityQtypeIdAuthorizationId(QApplication::$objRoleModule->RoleId, EntityQtype::Address, 2); if ($objRoleEntityQtypeBuiltInAuthorization && $objRoleEntityQtypeBuiltInAuthorization->AuthorizedFlag) { $this->lblNewToAddress->Visible = true; } else { $this->lblNewToAddress->Visible = false; } } // Check that the prerequisites are met to allow scheduling receipts protected function CheckPrerequisites() { // Check that the 'Default Company' admin setting is set and valid if (!Company::Load(QApplication::$TracmorSettings->CompanyId)) { $this->lstToContact->Warning = $this->lstToAddress->Warning = 'Default Shipping/Receiving Company not set'; $this->lblNewToContact->Visible = false; $this->lblNewToAddress->Visible = false; } } protected function getNextTabIndex() { return $this->intNextTabIndex++; } } // Go ahead and run this form object to render the page and its event handlers, using // generated/receipt_edit.php.inc as the included HTML template file ReceiptEditForm::Run('ReceiptEditForm', __DOCROOT__ . __SUBDIRECTORY__ . '/receiving/receipt_edit.tpl.php');
// 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 ReceiptEditFormBase require __FORMBASE_CLASSES__ . '/ReceiptEditFormBase.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 Receipt class. It extends from the code-generated * abstract ReceiptEditFormBase 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 ReceiptEditForm extends ReceiptEditFormBase { } // Go ahead and run this form object to render the page and its event handlers, using // generated/receipt_edit.tpl.php as the included HTML template file ReceiptEditForm::Run('ReceiptEditForm', 'generated/receipt_edit.tpl.php');