Esempio n. 1
0
// 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 ShipmentListFormBase
require __FORMBASE_CLASSES__ . '/ShipmentListFormBase.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 the List All functionality
 * of the Shipment class.  It extends from the code-generated
 * abstract ShipmentListFormBase 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 ShipmentListForm extends ShipmentListFormBase
{
}
// Go ahead and run this form object to generate the page and event handlers, using
// generated/shipment_list.tpl.php as the included HTML template file
ShipmentListForm::Run('ShipmentListForm', 'generated/shipment_list.tpl.php');
Esempio n. 2
0
                    $objToContactArray = Contact::LoadArrayByCompanyId($objCompany->CompanyId, QQ::Clause(QQ::OrderBy(QQN::Contact()->LastName, QQN::Contact()->FirstName)));
                    $this->pnlShipmentMassEdit->lstToContact->RemoveAllItems();
                    if ($objToContactArray) {
                        foreach ($objToContactArray as $objToContact) {
                            $objListItem = new QListItem($objToContact->__toString(), $objToContact->ContactId);
                            $this->pnlShipmentMassEdit->lstToContact->AddItem($objListItem);
                        }
                        $this->pnlShipmentMassEdit->lstToContact->Enabled = true;
                    }
                }
                // Load the values for the 'To Address' List
                if ($this->pnlShipmentMassEdit->lstToAddress) {
                    $objToAddressArray = Address::LoadArrayByCompanyId($objCompany->CompanyId, QQ::Clause(QQ::OrderBy(QQN::Address()->ShortDescription)));
                    $this->pnlShipmentMassEdit->lstToAddress->RemoveAllItems();
                    if ($objToAddressArray) {
                        foreach ($objToAddressArray as $objToAddress) {
                            $objListItem = new QListItem($objToAddress->__toString(), $objToAddress->AddressId);
                            $this->pnlShipmentMassEdit->lstToAddress->AddItem($objListItem);
                        }
                        $this->pnlShipmentMassEdit->lstToAddress->Enabled = true;
                        //$this->lstToAddress_Select();
                    }
                }
            }
        }
    }
}
// Go ahead and run this form object to generate the page and event handlers, using
// generated/shipment_edit.php.inc as the included HTML template file
ShipmentListForm::Run('ShipmentListForm', __DOCROOT__ . __SUBDIRECTORY__ . '/shipping/shipment_list.tpl.php');