//exit();
            } else {
                $this->lblReport->Text = "";
                $this->lblReport->Warning = "No data was found, check your query.";
            }
        } else {
            $this->lblReport->Text = "";
            $this->lblReport->Warning = "You must check at least one transaction type.";
        }
        $this->blnGenerate = false;
    }
    public function lstTransactionDate_Select()
    {
        $value = $this->lstTransactionDate->SelectedValue;
        if ($value == null) {
            $this->dtpTransactionDateFirst->Enabled = false;
            $this->dtpTransactionDateLast->Enabled = false;
        } elseif ($value == 'before') {
            $this->dtpTransactionDateFirst->Enabled = true;
            $this->dtpTransactionDateLast->Enabled = false;
        } elseif ($value == 'after') {
            $this->dtpTransactionDateFirst->Enabled = true;
            $this->dtpTransactionDateLast->Enabled = false;
        } elseif ($value == 'between') {
            $this->dtpTransactionDateFirst->Enabled = true;
            $this->dtpTransactionDateLast->Enabled = true;
        }
    }
}
AssetTransactionListForm::Run('AssetTransactionListForm', __DOCROOT__ . __SUBDIRECTORY__ . '/reports/asset_transaction_report.tpl.php');
Esempio n. 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 AssetTransactionListFormBase
require __FORMBASE_CLASSES__ . '/AssetTransactionListFormBase.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 AssetTransaction class.  It extends from the code-generated
 * abstract AssetTransactionListFormBase 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 AssetTransactionListForm extends AssetTransactionListFormBase
{
}
// Go ahead and run this form object to generate the page and event handlers, using
// generated/asset_transaction_list.tpl.php as the included HTML template file
AssetTransactionListForm::Run('AssetTransactionListForm', 'generated/asset_transaction_list.tpl.php');