Esempio n. 1
0
 private function generateListFields()
 {
     $this->idtm_organisation->DataSource = PFH::build_SQLPullDown(OrganisationRecord::finder(), "tm_organisation", array("idtm_organisation", "org_name"), "idta_organisation_type = 4");
     $this->idtm_organisation->dataBind();
     $this->idta_protokoll_ergebnistype->DataSource = PFH::build_SQLPullDown(ProtokollErgebnistypeRecord::finder(), "ta_protokoll_ergebnistype", array("idta_protokoll_ergebnistype", "prt_ergtype_name"));
     $this->idta_protokoll_ergebnistype->dataBind();
 }
Esempio n. 2
0
 public function edbuildZielePullDown()
 {
     foreach ($this->edProtokollDetailGroupList->Items as $Gitem) {
         //if($Gitem->ItemType==='Item' || $Gitem->ItemType==='AlternatingItem'){
         foreach ($Gitem->edProtokollDetailList->Items as $item) {
             $item->edidtm_activity->DataSource = PFH::build_SQLPullDown(TTZieleRecord::finder(), "tt_ziele", array("idtm_activity", "ttzie_name"));
             $item->edidtm_activity->dataBind();
             $item->edidta_protokoll_ergebnistype->DataSource = PFH::build_SQLPullDown(ProtokollErgebnistypeRecord::finder(), "ta_protokoll_ergebnistype", array("idta_protokoll_ergebnistype", "prt_ergtype_name"));
             $item->edidta_protokoll_ergebnistype->dataBind();
             $item->Aedidtm_organisation->DataSource = PFH::build_SQLPullDown(OrganisationRecord::finder(), "tm_organisation", array("idtm_organisation", "org_name"), "idta_organisation_type = 4");
             $item->Aedidtm_organisation->dataBind();
         }
         //}
     }
 }
 public function initPullDown()
 {
     $this->idta_protokoll_ergebnistype->dataSource = PFH::build_SQLPullDown(ProtokollErgebnistypeRecord::finder(), "ta_protokoll_ergebnistype", array("idta_protokoll_ergebnistype", "prt_ergtype_name"));
     $this->idta_protokoll_ergebnistype->dataBind();
     $HRKEYTest = new PFHierarchyPullDown();
     $HRKEYTest->setStructureTable("tm_activity");
     $HRKEYTest->setRecordClass(ActivityRecord::finder());
     $HRKEYTest->setPKField("idtm_activity");
     $HRKEYTest->setField("act_name");
     $CheckStart = TerminRecord::finder()->findByPK($this->page->edidtm_termin->Text)->idtm_activity;
     if ($CheckStart > 0) {
         $HRKEYTest->setStartNode($CheckStart);
     }
     $HRKEYTest->letsrun();
     $this->idtm_activity->DataSource = $HRKEYTest->myTree;
     $this->idtm_activity->dataBind();
 }