Пример #1
0
    protected function assignSearchValues()
    {
        $this->strFromCompany = $this->txtFromCompany->Text;
        $this->strFromContact = $this->txtFromContact->Text;
        $this->strReceiptNumber = $this->txtReceiptNumber->Text;
        $this->strAssetCode = $this->txtAssetCode->Text;
        $this->strInventoryModelCode = $this->txtInventoryModelCode->Text;
        $this->intStatus = $this->lstStatus->SelectedValue;
        $this->strNote = $this->ctlAdvanced->Note;
        $this->strDueDate = $this->ctlAdvanced->DueDate;
        $this->strReceiptDate = $this->ctlAdvanced->ReceiptDate;
        $this->strDateModified = $this->ctlAdvanced->DateModified;
        $this->strDateModifiedFirst = $this->ctlAdvanced->DateModifiedFirst;
        $this->strDateModifiedLast = $this->ctlAdvanced->DateModifiedLast;
        $this->blnAttachment = $this->ctlAdvanced->Attachment;
        $this->arrCustomFields = $this->ctlAdvanced->CustomFieldArray;
        if ($this->arrCustomFields) {
            foreach ($this->arrCustomFields as &$field) {
                if ($field['input'] instanceof QListBox) {
                    $field['value'] = $field['input']->SelectedValue;
                } elseif ($field['input'] instanceof QTextBox) {
                    $field['value'] = $field['input']->Text;
                }
            }
        }
    }
}
// Go ahead and run this form object to generate the page and event handlers, using
// generated/receipt_edit.php.inc as the included HTML template file
ReceiptListForm::Run('ReceiptListForm', __DOCROOT__ . __SUBDIRECTORY__ . '/receiving/receipt_list.tpl.php');
Пример #2
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 ReceiptListFormBase
require __FORMBASE_CLASSES__ . '/ReceiptListFormBase.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 Receipt class.  It extends from the code-generated
 * abstract ReceiptListFormBase 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 ReceiptListForm extends ReceiptListFormBase
{
}
// Go ahead and run this form object to generate the page and event handlers, using
// generated/receipt_list.tpl.php as the included HTML template file
ReceiptListForm::Run('ReceiptListForm', 'generated/receipt_list.tpl.php');