public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->IsCallback) {
         $this->initPullDowns();
     }
 }
Example #2
0
 public function __construct()
 {
     if (isset($this->Request['notheme'])) {
         $this->Service->RequestedPage->EnableTheming = false;
     }
     parent::__construct();
 }
Example #3
0
 public function onInit($param)
 {
     parent::onInit($param);
     if (strlen($q = $this->Page->Request['q']) > 0) {
         $this->search->setText($q);
     }
 }
Example #4
0
 public function onInit($param)
 {
     parent::onInit($param);
     /*		if($this->User->IsGuest)
     			$this->mnuPrincipal->Visible = false;
     		else*/
     $this->mnuPrincipal->Visible = true;
     /*
     		echo $this->User->Name;
     		echo "<br />";
     		echo $this->Application->id;
     */
     if ($this->Request["popup"] != null) {
         $this->mnuPrincipal->Visible = false;
         $this->pnlEncabezado->Visible = false;
         if ($this->Request["popup"] == "1") {
             $this->pnlCerrar->Visible = true;
         } else {
             $this->pnlCerrar->Visible = false;
         }
     } else {
         $this->pnlCerrar->Visible = false;
         $doc = new TXmlDocument();
         $doc->loadFromFile("protected/layouts/menu.xml");
         $x = $doc->getElements();
         $this->creaMenuXml($x, $this->mnuPrincipal);
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->getPage()->IsPostBack) {
         $this->clearTempFile();
     }
 }
Example #6
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if ($this->getCssClass() === '') {
         $this->setCssClass('defaultTooltip');
     }
 }
Example #7
0
 /**
  * Sets the active menu item using css class.
  */
 public function onPreRender($param)
 {
     parent::onPreRender($param);
     $page = explode('.', $this->Request->ServiceParameter);
     $active = null;
     switch ($page[count($page) - 1]) {
         case 'ProjectList':
         case 'ProjectDetails':
             $active = $this->ProjectMenu;
             break;
         case 'UserList':
         case 'UserCreate':
             $active = $this->AdminMenu;
             break;
         case 'ReportProject':
         case 'ReportResource':
             $active = $this->ReportMenu;
             break;
         default:
             $active = $this->LogMenu;
             break;
     }
     //add 'active' string to place holder body.
     if (!is_null($active)) {
         $active->Controls[] = 'active';
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->bindListStrukturStammdatenGroup();
         $this->createStrukturStammdatenGroupPullDown();
     }
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->isCallback) {
         $this->buildStammdatenGroupPullDown();
         $this->bindListStammdatenGroupValue();
     }
 }
Example #10
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->isCallback) {
         $this->bindListBox();
         $this->bindListSaison();
     }
 }
Example #11
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 #12
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->createRfCPullDown();
         $this->bindListRfCValue();
     }
 }
Example #13
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->page->IsPostBack && !$this->page->isCallback) {
         $this->initParameters();
         $this->bindListChildren($this->SFTstart_id->Text);
     }
 }
Example #14
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->initPullDowns();
         $this->bindListTAValue();
         //$this->initParameters();
     }
 }
 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];
         }
     }
 }
 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();
     }
 }
Example #19
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 onPreRender($param)
 {
     parent::onPreRender($param);
     $this->publishStyleAssets();
     $cs = $this->getPage()->getClientScript();
     $class = $this->getClientClassName();
     $options = TJavascript::encode($this->getClientScriptOptions());
     $script = "new {$class}({$options})";
     $cs->registerEndScript($this->getClientID() . 'dialog', $script);
 }
 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);
     $this->initParameter();
     if (!$this->page->isPostBack && !$this->page->isCallback) {
         $this->createRiskPullDown();
         $this->createTTRiskPullDown();
         $this->createNETTTRiskPullDown();
     }
 }
 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 #25
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;
         }
     }
 }
Example #26
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);
     }
 }
 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();
     }
 }
 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();
         }
     }
 }
Example #29
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $url = $this->Request->RequestUri;
     if (strpos($url, '?') === false) {
         $url .= '?notheme=true';
     } else {
         $url .= '&amp;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);
     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();
     }
 }