public function __construct($objParentObject, $strClosePanelMethod, $objRoleEntityQtypeBuiltInAuthorization = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupRoleEntityQtypeBuiltInAuthorization to either Load/Edit Existing or Create New
     $this->SetupRoleEntityQtypeBuiltInAuthorization($objRoleEntityQtypeBuiltInAuthorization);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for RoleEntityQtypeBuiltInAuthorization's Data Fields
     $this->lblRoleEntityBuiltInId_Create();
     $this->lstRole_Create();
     $this->lstEntityQtype_Create();
     $this->lstAuthorization_Create();
     $this->chkAuthorizedFlag_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #2
0
 public function __construct($objParentObject, $strClosePanelMethod, $objShippingAccount = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupShippingAccount to either Load/Edit Existing or Create New
     $this->SetupShippingAccount($objShippingAccount);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for ShippingAccount's Data Fields
     $this->lblShippingAccountId_Create();
     $this->lstCourier_Create();
     $this->txtShortDescription_Create();
     $this->txtAccessId_Create();
     $this->txtAccessCode_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #3
0
 public function __construct($objParentObject, $strClosePanelMethod, $objAddress = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupAddress to either Load/Edit Existing or Create New
     $this->SetupAddress($objAddress);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Address's Data Fields
     $this->lblAddressId_Create();
     $this->lstCompany_Create();
     $this->txtShortDescription_Create();
     $this->lstCountry_Create();
     $this->txtAddress1_Create();
     $this->txtAddress2_Create();
     $this->txtCity_Create();
     $this->lstStateProvince_Create();
     $this->txtPostalCode_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     $this->lstAddressCustomFieldHelper_Create();
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #4
0
 public function __construct($objParentObject, $strClosePanelMethod, $intId = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Setup Callback and Template
     $this->strTemplate = 'PeopledetailsEditPanel.tpl.php';
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Construct the PeopledetailsMetaControl
     // MAKE SURE we specify "$this" as the MetaControl's (and thus all subsequent controls') parent
     $this->mctPeopledetails = PeopledetailsMetaControl::Create($this, $intId);
     // Call MetaControl's methods to create qcontrols based on Peopledetails's data fields
     $this->lblId = $this->mctPeopledetails->lblId_Create();
     $this->txtFullName = $this->mctPeopledetails->txtFullName_Create();
     $this->txtAddress = $this->mctPeopledetails->txtAddress_Create();
     $this->txtPhone = $this->mctPeopledetails->txtPhone_Create();
     $this->txtEmail = $this->mctPeopledetails->txtEmail_Create();
     // Create Buttons and Actions on this Form
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = QApplication::Translate('Save');
     $this->btnSave->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnSave_Click'));
     $this->btnSave->CausesValidation = $this;
     $this->btnCancel = new QButton($this);
     $this->btnCancel->Text = QApplication::Translate('Cancel');
     $this->btnCancel->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnCancel_Click'));
     $this->btnDelete = new QButton($this);
     $this->btnDelete->Text = QApplication::Translate('Delete');
     $this->btnDelete->AddAction(new QClickEvent(), new QConfirmAction(QApplication::Translate('Are you SURE you want to DELETE this') . ' ' . QApplication::Translate('Peopledetails') . '?'));
     $this->btnDelete->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnDelete_Click'));
     $this->btnDelete->Visible = $this->mctPeopledetails->EditMode;
 }
コード例 #5
0
 public function __construct($objParentObject, $strClosePanelMethod, $objAsset = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupAsset to either Load/Edit Existing or Create New
     $this->SetupAsset($objAsset);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Asset's Data Fields
     $this->lblAssetId_Create();
     $this->lstAssetModel_Create();
     $this->lstLocation_Create();
     $this->txtAssetCode_Create();
     $this->txtImagePath_Create();
     $this->chkCheckedOutFlag_Create();
     $this->chkReservedFlag_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #6
0
 public function __construct($objParentObject, $strClosePanelMethod, $objPerson = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupPerson to either Load/Edit Existing or Create New
     $this->SetupPerson($objPerson);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Person's Data Fields
     $this->lblId_Create();
     $this->lstPersonType_Create();
     $this->txtUsername_Create();
     $this->txtPassword_Create();
     $this->txtFirstName_Create();
     $this->txtLastName_Create();
     $this->txtEmail_Create();
     $this->chkDisplayRealNameFlag_Create();
     $this->chkDisplayEmailFlag_Create();
     $this->chkOptInFlag_Create();
     $this->chkDonatedFlag_Create();
     $this->txtLocation_Create();
     $this->txtCountryId_Create();
     $this->txtUrl_Create();
     $this->calRegistrationDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #7
0
 public function __construct($objParentObject, Project $objProject, $strControlId = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
         // Watch out for template later gonna talk about it,
         // need a trick to look good
         // (insert the child content as row in table already present for Master
         //   close colums -insert row - insert child - close row - open column
         //  </td> <tr><td> render content of this child </td> </tr> <td> )
         $this->Template = 'records.summary.tpl.php';
         // Setting local the Msster QDataGrid to refresh on
         // Saves on the Child DataGrid..
         $this->objParentObject = $objParentObject;
         $this->objProject = $objProject;
         // Create the child DataGrid as a normal QDataGrid
         $this->dtgRecordsSummary = new QDataGrid($this);
         // pagination
         $this->dtgRecordsSummary->Paginator = new QPaginator($this->dtgRecordsSummary);
         $this->dtgRecordsSummary->ItemsPerPage = 5;
         $this->dtgRecordsSummary->SetDataBinder('dtgRecordsSummary_Bind', $this);
         // Add some data to show...
         $this->dtgRecordsSummary->CreateCallableColumn('Person', [$this, 'render_PersonColumn']);
         $col = $this->dtgRecordsSummary->CreateNodeColumn('Id', QQN::Person()->Id);
         $col->CellStyler->Width = 120;
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
 }
コード例 #8
0
 public function __construct($objParentObject, $strClosePanelMethod, $objReceipt = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupReceipt to either Load/Edit Existing or Create New
     $this->SetupReceipt($objReceipt);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Receipt's Data Fields
     $this->lblReceiptId_Create();
     $this->lstTransaction_Create();
     $this->lstFromCompany_Create();
     $this->lstFromContact_Create();
     $this->lstToContact_Create();
     $this->lstToAddress_Create();
     $this->txtReceiptNumber_Create();
     $this->calDueDate_Create();
     $this->calReceiptDate_Create();
     $this->chkReceivedFlag_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #9
0
 public function __construct($objParentObject, $strClosePanelMethod, $objCustomField = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupCustomField to either Load/Edit Existing or Create New
     $this->SetupCustomField($objCustomField);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for CustomField's Data Fields
     $this->lblCustomFieldId_Create();
     $this->lstCustomFieldQtype_Create();
     $this->lstDefaultCustomFieldValue_Create();
     $this->txtShortDescription_Create();
     $this->chkActiveFlag_Create();
     $this->chkRequiredFlag_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #10
0
 public function __construct($objParentObject, $strClosePanelMethod, $objAttachment = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupAttachment to either Load/Edit Existing or Create New
     $this->SetupAttachment($objAttachment);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Attachment's Data Fields
     $this->lblAttachmentId_Create();
     $this->lstEntityQtype_Create();
     $this->txtEntityId_Create();
     $this->txtFilename_Create();
     $this->txtTmpFilename_Create();
     $this->txtFileType_Create();
     $this->txtPath_Create();
     $this->txtSize_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #11
0
 public function __construct($objParentObject, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strTemplate = __NARRO_INCLUDES__ . '/narro/panel/NarroUserRegisterPanel.tpl.php';
     $this->lblMessage = new QLabel($this);
     $this->lblMessage->HtmlEntities = false;
     $this->txtUsername = new QTextBox($this, 'username');
     $this->txtUsername->Required = true;
     $this->txtRealname = new QTextBox($this, 'name');
     $this->txtRealname->Required = false;
     $this->txtEmail = new QTextBox($this, 'email');
     $this->txtEmail->Required = true;
     $this->txtPassword = new QTextBox($this, 'password');
     $this->txtPassword->TextMode = QTextMode::Password;
     $this->btnRegister = new QButton($this);
     $this->btnRegister->Text = t('Register');
     $this->btnRegister->PrimaryButton = true;
     $this->btnRegister->CausesValidation = true;
     $this->btnRegister->AddAction(new QClickEvent(), new QServerControlAction($this, 'btnRegister_Click'));
 }
コード例 #12
0
 public function __construct($objParentObject, $strClosePanelMethod, $objClassVariable = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupClassVariable to either Load/Edit Existing or Create New
     $this->SetupClassVariable($objClassVariable);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for ClassVariable's Data Fields
     $this->lblId_Create();
     $this->lstQcodoClass_Create();
     $this->lstVariableGroup_Create();
     $this->lstProtectionType_Create();
     $this->lstVariable_Create();
     $this->chkReadOnlyFlag_Create();
     $this->chkStaticFlag_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #13
0
 public function __construct(NarroProject $objNarroProject, string $strCurrentPath = null, $objParentObject, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->pnlBreadcrumb = new NarroBreadcrumbPanel($this);
     $this->pnlBreadcrumb->strSeparator = ' / ';
     $this->objProject = $objNarroProject;
     $this->chkShowHierarchy = new QCheckBox($this);
     $this->chkShowHierarchy->Checked = QApplication::QueryString('s') == '';
     $this->chkShowHierarchy->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'dtgFile_SetConditions'));
     $this->chkShowFolders = new QCheckBox($this);
     $this->chkShowFolders->Checked = true;
     $this->chkShowFolders->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'dtgFile_SetConditions'));
     $this->strTemplate = __NARRO_INCLUDES__ . '/narro/panel/NarroProjectFileListPanel.tpl.php';
     $this->ChangeDirectory($strCurrentPath);
     $this->btnSearch = new QButton($this);
     $this->btnSearch->Text = t('Search');
     $this->btnSearch->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnSearch_Click'));
     $this->btnSearch->PrimaryButton = true;
     $this->txtSearch = new QTextBox($this);
     $this->txtSearch->Text = QApplication::QueryString('s');
     $this->ChangeDirectory(QApplication::QueryString('pf'));
     $this->dtgFile_Create();
     $this->dtgFile_SetConditions();
 }
コード例 #14
0
 public function __construct($objParentObject, $strClosePanelMethod, $objShortcut = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupShortcut to either Load/Edit Existing or Create New
     $this->SetupShortcut($objShortcut);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Shortcut's Data Fields
     $this->lblShortcutId_Create();
     $this->lstModule_Create();
     $this->lstAuthorization_Create();
     $this->txtShortDescription_Create();
     $this->txtLink_Create();
     $this->txtImagePath_Create();
     $this->lstEntityQtype_Create();
     $this->chkCreateFlag_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #15
0
 public function __construct($objParentObject, $strClosePanelMethod, $objFile = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupFile to either Load/Edit Existing or Create New
     $this->SetupFile($objFile);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for File's Data Fields
     $this->lblId_Create();
     $this->lstDirectory_Create();
     $this->txtPath_Create();
     $this->txtDeprecatedMajorVersion_Create();
     $this->txtDeprecatedMinorVersion_Create();
     $this->txtDeprecatedBuild_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #16
0
 public function __construct($objNarroUser, $objParentObject, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strTemplate = __NARRO_INCLUDES__ . '/narro/panel/NarroUserEditPanel.tpl.php';
     $this->objNarroUser = $objNarroUser;
     // Create/Setup Controls for NarroUser's Data Fields
     $this->txtUsername_Create();
     $this->txtPassword_Create();
     $this->txtEmail_Create();
     $this->txtRealname_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
     $this->lblMessage = new QLabel($this);
     $this->lblMessage->DisplayStyle = QDisplayStyle::Block;
     $this->lblMessage->Visible = false;
 }
コード例 #17
0
 public function __construct($objParentObject, $strClosePanelMethod, $objCompany = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupCompany to either Load/Edit Existing or Create New
     $this->SetupCompany($objCompany);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Company's Data Fields
     $this->lblCompanyId_Create();
     $this->lstAddress_Create();
     $this->txtShortDescription_Create();
     $this->txtWebsite_Create();
     $this->txtTelephone_Create();
     $this->txtFax_Create();
     $this->txtEmail_Create();
     $this->txtLongDescription_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     $this->lstCompanyCustomFieldHelper_Create();
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #18
0
 public function __construct($objParentObject, $strClosePanelMethod, $objContact = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupContact to either Load/Edit Existing or Create New
     $this->SetupContact($objContact);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Contact's Data Fields
     $this->lblContactId_Create();
     $this->lstCompany_Create();
     $this->lstAddress_Create();
     $this->txtFirstName_Create();
     $this->txtLastName_Create();
     $this->txtTitle_Create();
     $this->txtEmail_Create();
     $this->txtPhoneOffice_Create();
     $this->txtPhoneHome_Create();
     $this->txtPhoneMobile_Create();
     $this->txtFax_Create();
     $this->txtDescription_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #19
0
 public function __construct($objParentObject, $objProject, $strMethodCallBack, $strControlId = null)
 {
     // First, let's call the Parent's __constructor
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Next, we set the local project object
     $this->objProject = $objProject;
     // Let's record the reference to the form's MethodCallBack
     // See note in ProjectViewPanel for more on this.
     $this->strMethodCallBack = $strMethodCallBack;
     // Let's set up the other local child control
     // Notice that we define the child controls' parents to be "this", which is this ProjectEditPanel object.
     $this->txtName = new QTextBox($this, 'txtProjectName');
     $this->txtName->Text = $objProject->Name;
     $this->txtName->Name = 'Project Name';
     $this->txtName->Required = true;
     $this->txtName->CausesValidation = true;
     // We need to add some Enter and Esc key Events on the Textbox
     $this->txtName->AddAction(new QEnterKeyEvent(), new QAjaxControlAction($this, 'btnSave_Click'));
     $this->txtName->AddAction(new QEnterKeyEvent(), new QTerminateAction());
     $this->txtName->AddAction(new QEscapeKeyEvent(), new QAjaxControlAction($this, 'btnCancel_Click'));
     $this->txtName->AddAction(new QEscapeKeyEvent(), new QTerminateAction());
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = 'Save';
     $this->btnSave->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnSave_Click'));
     $this->btnSave->CausesValidation = true;
     $this->btnCancel = new QButton($this);
     $this->btnCancel->Text = 'Cancel';
     $this->btnCancel->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnCancel_Click'));
 }
コード例 #20
0
 public function __construct($objParentObject, $strClosePanelMethod, $objAuditScan = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupAuditScan to either Load/Edit Existing or Create New
     $this->SetupAuditScan($objAuditScan);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for AuditScan's Data Fields
     $this->lblAuditScanId_Create();
     $this->lstAudit_Create();
     $this->lstLocation_Create();
     $this->txtEntityId_Create();
     $this->txtCount_Create();
     $this->txtSystemCount_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #21
0
 public function __construct($objParentObject, $objPerson, $strMethodCallBack, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Let's record the reference to the form's MethodCallBack
     // See note in ProjectViewPanel for more on this.
     $this->strMethodCallBack = $strMethodCallBack;
     // Call SetupPerson to either Load/Edit Existing or Create New
     $this->SetupPerson($objPerson);
     // Create/Setup Controls for Person's Data Fields
     $this->lblId_Create();
     $this->txtFirstName_Create();
     $this->txtLastName_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     $this->lstLogin_Create();
     $this->lstProjectsAsTeamMember_Create();
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
 }
コード例 #22
0
ファイル: ClassPanel.class.php プロジェクト: qcodo/qcodo-api
 public function __construct(QcodoClass $objClass, $objParentControl, $strControlId = null)
 {
     parent::__construct($objParentControl, $strControlId);
     $this->objQcodoClass = $objClass;
     $this->strTemplate = 'ClassPanel.tpl.php';
     $this->strUrl = 'http://' . $_SERVER['HTTP_HOST'] . '/index.php/' . $this->objQcodoClass->Name;
     $this->strShortDescriptionHtml = $this->objQcodoClass->ShortDescriptionAsHtml;
     if (!$this->strShortDescriptionHtml) {
         $this->strShortDescriptionHtml = '<span style="color: #888888;"><i>No description entered yet.</i></span>';
     }
     $this->strLongDescriptionHtml = QWriteBox::DisplayHtml($this->objQcodoClass->ExtendedDescription, 'writebox_code');
     $this->strVersion = 'Qcodo >= ' . $this->objQcodoClass->FirstVersion;
     if ($this->objQcodoClass->LastVersion) {
         $this->strVersion .= ' - Deprecated as of ' . $this->objQcodoClass->LastVersion;
     }
     $this->strParentClassArray[$objClass->Id] = $objClass->DisplayName;
     $objParentClass = $objClass->ParentQcodoClass;
     while ($objParentClass) {
         $this->strParentClassArray[$objParentClass->Id] = $objParentClass->DisplayName;
         $objParentClass = $objParentClass->ParentQcodoClass;
     }
     $this->strParentClassArray = array_reverse($this->strParentClassArray, true);
     foreach ($this->objQcodoClass->GetChildQcodoClassArray(QQ::Clause(QQ::OrderBy(QQN::QcodoClass()->Name))) as $objChildClass) {
         $this->strChildClassArray[$objChildClass->Id] = $objChildClass->DisplayName;
     }
     if (QApplication::$Login) {
         $this->strEditLink = '<div class="edit_link" title="Edit" onclick="document.location=\'/edit_class.php/';
         $this->strEditLink .= $this->objQcodoClass->Id;
         $this->strEditLink .= '\'">EDIT</div>';
     }
 }
コード例 #23
0
 public function __construct($objParentObject, $strClosePanelMethod, $objUserAccount = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupUserAccount to either Load/Edit Existing or Create New
     $this->SetupUserAccount($objUserAccount);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for UserAccount's Data Fields
     $this->lblUserAccountId_Create();
     $this->txtFirstName_Create();
     $this->txtLastName_Create();
     $this->txtUsername_Create();
     $this->txtPasswordHash_Create();
     $this->txtEmailAddress_Create();
     $this->chkActiveFlag_Create();
     $this->chkAdminFlag_Create();
     $this->chkPortableAccessFlag_Create();
     $this->txtPortableUserPin_Create();
     $this->lstRole_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #24
0
 public function __construct($objParentObject, $strClosePanelMethod, $objQcodoClass = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupQcodoClass to either Load/Edit Existing or Create New
     $this->SetupQcodoClass($objQcodoClass);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for QcodoClass's Data Fields
     $this->lblId_Create();
     $this->lstParentQcodoClass_Create();
     $this->lstInterface_Create();
     $this->lstClassGroup_Create();
     $this->txtName_Create();
     $this->chkAbstractFlag_Create();
     $this->chkEnumerationFlag_Create();
     $this->txtFirstVersion_Create();
     $this->txtLastVersion_Create();
     $this->txtShortDescription_Create();
     $this->txtExtendedDescription_Create();
     $this->lstFile_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #25
0
 public function __construct($objParentObject, $strClosePanelMethod, $objVariable = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupVariable to either Load/Edit Existing or Create New
     $this->SetupVariable($objVariable);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Variable's Data Fields
     $this->lblId_Create();
     $this->txtName_Create();
     $this->lstVariableType_Create();
     $this->lstObjectType_Create();
     $this->chkArrayFlag_Create();
     $this->txtDefaultValue_Create();
     $this->txtFirstVersion_Create();
     $this->txtLastVersion_Create();
     $this->txtShortDescription_Create();
     $this->txtExtendedDescription_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     $this->lstClassProperty_Create();
     $this->lstClassVariable_Create();
     $this->lstParameter_Create();
     $this->lstQcodoConstant_Create();
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #26
0
 public function __construct($objParentObject, $objNarroLanguage = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strTemplate = __NARRO_INCLUDES__ . '/narro/panel/NarroLanguageEditPanel.tpl.php';
     // Call SetupNarroLanguage to either Load/Edit Existing or Create New
     $this->SetupNarroLanguage($objNarroLanguage);
     // Create/Setup Controls for NarroLanguage's Data Fields
     $this->txtLanguageName_Create();
     $this->txtLanguageCode_Create();
     $this->txtCountryCode_Create();
     $this->txtDialectCode_Create();
     $this->txtEncoding_Create();
     $this->lstTextDirection_Create();
     $this->txtSpecialCharacters_Create();
     $this->txtPluralForm_Create();
     $this->chkActive_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #27
0
 public function __construct($objParentObject, $strClosePanelMethod, $objCategory = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupCategory to either Load/Edit Existing or Create New
     $this->SetupCategory($objCategory);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for Category's Data Fields
     $this->lblCategoryId_Create();
     $this->txtShortDescription_Create();
     $this->txtLongDescription_Create();
     $this->txtImagePath_Create();
     $this->chkAssetFlag_Create();
     $this->chkInventoryFlag_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #28
0
 public function __construct($objParentObject, $strClosePanelMethod, $objInventoryTransaction = null, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Call SetupInventoryTransaction to either Load/Edit Existing or Create New
     $this->SetupInventoryTransaction($objInventoryTransaction);
     $this->strClosePanelMethod = $strClosePanelMethod;
     // Create/Setup Controls for InventoryTransaction's Data Fields
     $this->lblInventoryTransactionId_Create();
     $this->lstInventoryLocation_Create();
     $this->lstTransaction_Create();
     $this->txtQuantity_Create();
     $this->lstSourceLocation_Create();
     $this->lstDestinationLocation_Create();
     $this->lstCreatedByObject_Create();
     $this->calCreationDate_Create();
     $this->lstModifiedByObject_Create();
     $this->lblModifiedDate_Create();
     // Create/Setup ListBoxes (if applicable) via Unique ReverseReferences and ManyToMany References
     // Create/Setup Button Action controls
     $this->btnSave_Create();
     $this->btnCancel_Create();
     $this->btnDelete_Create();
 }
コード例 #29
0
 public function __construct($objParentObject, $strControlId = null, StewardshipBatch $objBatch, StewardshipStack $objStack = null, $strUrlHashArgument1 = null, $strUrlHashArgument2 = null, $strUrlHashArgument3 = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strTemplate = dirname(__FILE__) . '/' . get_class($this) . '.tpl.php';
     $this->objBatch = $objBatch;
     $this->objStack = $objStack;
     $this->strUrlHashArgument = $strUrlHashArgument1;
     $this->strUrlHashArgument2 = $strUrlHashArgument2;
     $this->strUrlHashArgument3 = $strUrlHashArgument3;
     $this->btnSave = new QButton($this);
     $this->btnSave->Text = 'Save';
     $this->btnSave->CssClass = 'primary';
     $this->btnSave->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnSave_Click'));
     $this->btnSave->CausesValidation = $this;
     $this->btnCancel = new QLinkButton($this);
     $this->btnCancel->Text = 'Cancel';
     $this->btnCancel->CssClass = 'cancel';
     $this->btnCancel->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnCancel_Click'));
     $this->btnCancel->AddAction(new QClickEvent(), new QTerminateAction());
     $this->SetupPanel();
 }
コード例 #30
0
 public function __construct($objParentObject, $strSetEditPanelMethod, $strCloseEditPanelMethod, $strControlId = null)
 {
     // Call the Parent
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     // Record Method Callbacks
     $this->strSetEditPanelMethod = $strSetEditPanelMethod;
     $this->strCloseEditPanelMethod = $strCloseEditPanelMethod;
     // Setup DataGrid Columns
     $this->colEditLinkColumn = new QDataGridColumn(QApplication::Translate('Edit'), '<?= $_CONTROL->ParentControl->dtgInventoryModel_EditLinkColumn_Render($_ITEM) ?>');
     $this->colEditLinkColumn->HtmlEntities = false;
     $this->colInventoryModelId = new QDataGridColumn(QApplication::Translate('Inventory Model Id'), '<?= $_ITEM->InventoryModelId; ?>', array('OrderByClause' => QQ::OrderBy(QQN::InventoryModel()->InventoryModelId), 'ReverseOrderByClause' => QQ::OrderBy(QQN::InventoryModel()->InventoryModelId, false)));
     $this->colCategoryId = new QDataGridColumn(QApplication::Translate('Category Id'), '<?= $_CONTROL->ParentControl->dtgInventoryModel_Category_Render($_ITEM); ?>');
     $this->colManufacturerId = new QDataGridColumn(QApplication::Translate('Manufacturer Id'), '<?= $_CONTROL->ParentControl->dtgInventoryModel_Manufacturer_Render($_ITEM); ?>');
     $this->colInventoryModelCode = new QDataGridColumn(QApplication::Translate('Inventory Model Code'), '<?= QString::Truncate($_ITEM->InventoryModelCode, 200); ?>', array('OrderByClause' => QQ::OrderBy(QQN::InventoryModel()->InventoryModelCode), 'ReverseOrderByClause' => QQ::OrderBy(QQN::InventoryModel()->InventoryModelCode, false)));
     $this->colShortDescription = new QDataGridColumn(QApplication::Translate('Short Description'), '<?= QString::Truncate($_ITEM->ShortDescription, 200); ?>', array('OrderByClause' => QQ::OrderBy(QQN::InventoryModel()->ShortDescription), 'ReverseOrderByClause' => QQ::OrderBy(QQN::InventoryModel()->ShortDescription, false)));
     $this->colLongDescription = new QDataGridColumn(QApplication::Translate('Long Description'), '<?= QString::Truncate($_ITEM->LongDescription, 200); ?>', array('OrderByClause' => QQ::OrderBy(QQN::InventoryModel()->LongDescription), 'ReverseOrderByClause' => QQ::OrderBy(QQN::InventoryModel()->LongDescription, false)));
     $this->colImagePath = new QDataGridColumn(QApplication::Translate('Image Path'), '<?= QString::Truncate($_ITEM->ImagePath, 200); ?>', array('OrderByClause' => QQ::OrderBy(QQN::InventoryModel()->ImagePath), 'ReverseOrderByClause' => QQ::OrderBy(QQN::InventoryModel()->ImagePath, false)));
     $this->colPrice = new QDataGridColumn(QApplication::Translate('Price'), '<?= $_ITEM->Price; ?>', array('OrderByClause' => QQ::OrderBy(QQN::InventoryModel()->Price), 'ReverseOrderByClause' => QQ::OrderBy(QQN::InventoryModel()->Price, false)));
     $this->colCreatedBy = new QDataGridColumn(QApplication::Translate('Created By'), '<?= $_CONTROL->ParentControl->dtgInventoryModel_CreatedByObject_Render($_ITEM); ?>');
     $this->colCreationDate = new QDataGridColumn(QApplication::Translate('Creation Date'), '<?= $_CONTROL->ParentControl->dtgInventoryModel_CreationDate_Render($_ITEM); ?>', array('OrderByClause' => QQ::OrderBy(QQN::InventoryModel()->CreationDate), 'ReverseOrderByClause' => QQ::OrderBy(QQN::InventoryModel()->CreationDate, false)));
     $this->colModifiedBy = new QDataGridColumn(QApplication::Translate('Modified By'), '<?= $_CONTROL->ParentControl->dtgInventoryModel_ModifiedByObject_Render($_ITEM); ?>');
     $this->colModifiedDate = new QDataGridColumn(QApplication::Translate('Modified Date'), '<?= QString::Truncate($_ITEM->ModifiedDate, 200); ?>', array('OrderByClause' => QQ::OrderBy(QQN::InventoryModel()->ModifiedDate), 'ReverseOrderByClause' => QQ::OrderBy(QQN::InventoryModel()->ModifiedDate, false)));
     // Setup DataGrid
     $this->dtgInventoryModel = new QDataGrid($this);
     $this->dtgInventoryModel->CellSpacing = 0;
     $this->dtgInventoryModel->CellPadding = 4;
     $this->dtgInventoryModel->BorderStyle = QBorderStyle::Solid;
     $this->dtgInventoryModel->BorderWidth = 1;
     $this->dtgInventoryModel->GridLines = QGridLines::Both;
     // Datagrid Paginator
     $this->dtgInventoryModel->Paginator = new QPaginator($this->dtgInventoryModel);
     $this->dtgInventoryModel->ItemsPerPage = 10;
     // Specify Whether or Not to Refresh using Ajax
     $this->dtgInventoryModel->UseAjax = true;
     // Specify the local databind method this datagrid will use
     $this->dtgInventoryModel->SetDataBinder('dtgInventoryModel_Bind', $this);
     $this->dtgInventoryModel->AddColumn($this->colEditLinkColumn);
     $this->dtgInventoryModel->AddColumn($this->colInventoryModelId);
     $this->dtgInventoryModel->AddColumn($this->colCategoryId);
     $this->dtgInventoryModel->AddColumn($this->colManufacturerId);
     $this->dtgInventoryModel->AddColumn($this->colInventoryModelCode);
     $this->dtgInventoryModel->AddColumn($this->colShortDescription);
     $this->dtgInventoryModel->AddColumn($this->colLongDescription);
     $this->dtgInventoryModel->AddColumn($this->colImagePath);
     $this->dtgInventoryModel->AddColumn($this->colPrice);
     $this->dtgInventoryModel->AddColumn($this->colCreatedBy);
     $this->dtgInventoryModel->AddColumn($this->colCreationDate);
     $this->dtgInventoryModel->AddColumn($this->colModifiedBy);
     $this->dtgInventoryModel->AddColumn($this->colModifiedDate);
     // Setup the Create New button
     $this->btnCreateNew = new QButton($this);
     $this->btnCreateNew->Text = QApplication::Translate('Create a New') . ' ' . QApplication::Translate('InventoryModel');
     $this->btnCreateNew->AddAction(new QClickEvent(), new QAjaxControlAction($this, 'btnCreateNew_Click'));
 }