public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->IsCallback) {
         $this->initPullDowns();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->getPage()->IsPostBack) {
         $this->clearTempFile();
     }
 }
Example #3
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if ($this->getCssClass() === '') {
         $this->setCssClass('defaultTooltip');
     }
 }
Example #4
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->getPage()->IsCallBack && !$this->getPage()->IsPostBack) {
         $js = 'OrderBtnsJs.SEND_EMAIL_CALLBACK_ID = "' . $this->sendEmailBtn->getUniqueID() . '";';
         $this->getPage()->getClientScript()->registerEndScript('OrderBtnsJS', $js);
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->buildPivotBerichtPullDown();
         $this->bindListPivotBerichtValue();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->isCallback) {
         $this->buildStammdatenGroupPullDown();
         $this->bindListStammdatenGroupValue();
     }
 }
Example #7
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->getPage()->IsCallBack && !$this->getPage()->IsPostBack) {
         $js = 'CommentsDivJs.SAVE_BTN_ID = "' . $this->addCommentsBtn->getUniqueID() . '";';
         $this->getPage()->getClientScript()->registerEndScript('CommentsDivJS', $js);
     }
 }
Example #8
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->isCallback) {
         $this->initParameters();
         $this->bindListChildren($this->SFTstart_id->Text);
     }
 }
Example #9
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->createRfCPullDown();
         $this->bindListRfCValue();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->bindListStrukturStammdatenGroup();
         $this->createStrukturStammdatenGroupPullDown();
     }
 }
Example #11
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->isCallback) {
         $this->bindListBox();
         $this->bindListSaison();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->SSedidtm_struktur_from->Text = $this->page->idtm_struktur->Text;
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->buildStrukturStrukturPullDown();
         $this->bindListStrukturStrukturValue();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->isCallback) {
         if (!$this->User->IsGuest) {
             //$this->UserLevel->Text=$this->User->Roles[0];
         }
     }
 }
Example #14
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->PBDedidta_pivot_bericht->Text = $this->page->idta_pivot_bericht->Text;
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->buildPivotPullDown();
         $this->bindListPivotValue();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->isCallback) {
         $this->initPullDowns();
         $this->bindListTAValue();
         //$this->initParameters();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->initParameter();
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->createRiskPullDown();
         $this->createTTRiskPullDown();
         $this->createNETTTRiskPullDown();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->initParameters();
         $this->buildFeldfunktionPullDown();
         $this->bindListFeldfunktionValue();
         $this->buildCollectorPullDown();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if ($this->Request['periode'] != '') {
         $this->myPeriode = $this->Request['periode'];
     }
     if (!$this->Page->IsPostBack && !$this->Page->isCallback) {
         if (isset($_GET['idta_variante'])) {
             $this->bindListComment();
         }
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->bindListStammdatenValue();
         $this->RCedidta_stammdaten_group->DataSource = PFH::build_SQLPullDown(StammdatenGroupRecord::finder(), "ta_stammdaten_group", array("idta_stammdaten_group", "stammdaten_group_name"));
         $this->RCedidta_stammdaten_group->dataBind();
         $this->RCTedidta_variante->DataSource = PFH::build_SQLPullDown(VarianteRecord::finder(), "ta_variante", array("idta_variante", "var_descr"));
         $this->RCTedidta_variante->dataBind();
         $this->RCTedidta_periode->DataSource = PFH::build_SQLPullDown(PeriodenRecord::finder(), "ta_perioden", array("idta_perioden", "per_extern"));
         $this->RCTedidta_periode->dataBind();
     }
 }
Example #20
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->getPage()->IsCallBack && !$this->getPage()->IsPostBack) {
         $js = 'if(typeof(LatestETAPanel) !== "undefined" && pageJs) {';
         $js .= 'var lepJs = new LatestETAPanel(pageJs); ';
         $js .= 'lepJs.resultDiv = "dtw_eta_' . $this->getId() . '";';
         $js .= 'lepJs.callBackId = "' . $this->getLatestEtaBtn->getUniqueID() . '";';
         $js .= 'lepJs.setPagination(' . $this->pageNumber . ', ' . $this->pageSize . ');';
         $js .= 'lepJs.loadLatestETA();';
         $js .= '}';
         $this->getPage()->getClientScript()->registerEndScript('lepJs', $js);
     }
 }
Example #21
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->Page->IsPostBack && !$this->Page->IsCallback) {
         $this->cmbSettingUmumTahun->Text = $_SESSION['ta'];
         $this->labelUmumTahunKegiatan->Text = $_SESSION['ta'];
         switch ($this->Page->getPagePath()) {
             case 'sa.mutasibarang.SBBMBaru':
                 $datasbbm = $_SESSION['currentPageSBBMBaru']['datasbbm'];
                 $this->cmbSettingUmumTahun->Enabled = $datasbbm['mode'] == 'buat' || $datasbbm['mode'] == 'ubah' ? false : true;
                 break;
         }
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     date_default_timezone_set('Europe/Berlin');
     //$this->SBedidta_struktur_type->Text = $this->page->idta_struktur_type->Text;
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         //$this->buildStrukturBerichtPullDown();
         $this->bindListStrukturBerichtValue();
         $this->buildStrukturBerichtZeilenPullDown();
         $this->buildStrukturBerichtSpaltenPullDown();
         $Usersql = "SELECT idtm_user, user_name FROM tm_user";
         $Userdata = PFH::convertdbObjectArray(UserRecord::finder()->findAllBySql($Usersql), array("idtm_user", "user_name"));
         $this->idtm_user->DataSource = $Userdata;
         $this->idtm_user->dataBind();
     }
 }
Example #23
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $url = $this->Request->RequestUri;
     if (strpos($url, '?') === false) {
         $url .= '?notheme=true';
     } else {
         $url .= '&notheme=true';
     }
     $this->PrinterLink->NavigateUrl = $url;
     if (isset($this->Request['notheme'])) {
         $this->MainMenu->Visible = false;
         $this->TopicPanel->Visible = false;
     }
     $this->languages->DataSource = TPropertyValue::ensureArray($this->Application->Parameters['languages']);
     $this->languages->dataBind();
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     date_default_timezone_set('Europe/Berlin');
     $this->setUserStartId($this->user->getStartNode($this->user->getUserId($this->user->Name), "tm_activity"));
     if (!$this->page->IsPostBack && !$this->page->isCallback) {
         if (!$this->User->isGuest) {
             $this->createZeitPullDown();
             $tmpstartdate = new DateTime();
             $tmpstartdate->modify("-30days");
             $this->zeiterfassung_datestart->setDate($tmpstartdate->format("Y-m-d"));
             $tmpstartdate->modify("45days");
             $this->zeiterfassung_dateende->setDate($tmpstartdate->format("Y-m-d"));
             $this->bindListRCValue();
         }
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->IsCallback) {
         $PeriodPullDown = new PFPeriodPullDown();
         $PeriodPullDown->setStructureTable("ta_perioden");
         $PeriodPullDown->setRecordClass(PeriodenRecord::finder());
         $PeriodPullDown->setPKField("idta_perioden");
         $PeriodPullDown->setField("per_extern");
         $PeriodPullDown->letsrun();
         $this->RCedidta_perioden->DataSource = $PeriodPullDown->myTree;
         $this->RCedidta_perioden->dataBind();
         $Usersql = "SELECT idtm_user, user_name FROM tm_user";
         $Userdata = PFH::convertdbObjectArray(UserRecord::finder()->findAllBySql($Usersql), array("idtm_user", "user_name"));
         $this->var_idtm_user->DataSource = $Userdata;
         $this->var_idtm_user->dataBind();
         $this->bindListVariantenValue();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->getPage()->IsPostBack) {
         $this->clearTempFile();
     }
     $this->pathName = explode(".", $this->getPage()->getPagePath());
     if ($this->pathName[1] == 'Index') {
         if (!is_dir(Prado::getPathOfAlias('UserFiles') . '/' . $this->pathName[0] . '/' . $this->getRequest()->itemAt("id"))) {
             $dirun = dir(Prado::getPathOfAlias('UserFiles'));
             mkdir($dirun->path . '/' . $this->pathName[0] . '/' . $this->getRequest()->itemAt("id"), 0775);
             mkdir($dirun->path . '/' . $this->pathName[0] . '/' . $this->getRequest()->itemAt("id") . '/thumb/', 0775);
             $dirun->close();
         }
         $this->Files->DataSource = FilesRecord::finder()->findAll($this->pathName[0] . 'ID = ? ORDER BY Position ASC ', $this->getRequest()->itemAt("id"));
     } else {
         $this->Files->DataSource = array();
     }
     $this->Files->dataBind();
 }
 /**
  * (non-PHPdoc)
  * @see TControl::onLoad()
  */
 public function onLoad($param)
 {
     parent::onLoad($param);
 }
Example #28
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->PageName->Name = "Strona powitalna";
     // echo '<h1 style="color:red;text-align:center;">Trwa modyfikacja</h1>';
 }
Example #29
0
 function onLoad($param)
 {
     parent::onLoad($param);
     $this->Controls[] = "OnLoad";
     $this->adjustLayout();
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->bindListCostActivityValue();
 }