Beispiel #1
0
 private function bindListProtokollDetail()
 {
     //noch einbinden, welche Ziele erf�llt werden
     $sql = "SELECT idtt_ziele FROM tm_activity_has_tt_ziele WHERE idtm_activity = " . $this->idtm_activity;
     $meineziele = ActivityZieleRecord::finder()->findBySQL($sql);
     $criteria = new TActiveRecordCriteria();
     $criteria->Condition = "idtt_ziele = :suchtext";
     $criteria->Parameters[':suchtext'] = $meineziele->idtt_ziele;
     $criteria->OrdersBy["idtm_protokoll_detail"] = 'asc';
     $this->RepPrtDetailListe->DataSource = ProtokollDetailRecord::finder()->findAll($criteria);
     $this->RepPrtDetailListe->dataBind();
 }
 public function load_protokoll_detail($sender, $param)
 {
     $myPrimaryKey = $sender->CommandParameter;
     $myitem = ProtokollDetailRecord::finder()->findByPK($myPrimaryKey);
     $this->viewprtdet_descr->Text = $myitem->prtdet_descr;
 }
Beispiel #3
0
 public function lstCCProtokollRepeaterSave($sender, $param)
 {
     $item = $param->Item;
     $RCEditRecord = ProtokollDetailRecord::finder()->findByPK($item->idtm_protokoll_detail->Text);
     $RCEditRecord->prtdet_descr = $item->prtdet_descr->Text;
     $RCEditRecord->prtdet_topic = $item->prtdet_topic->Text;
     $RCEditRecord->prtdet_wvl = $item->prtdet_wvl->Checked ? 1 : 0;
     $RCEditRecord->idtm_protokoll = $item->idtm_protokoll->Text;
     $RCEditRecord->idta_protokoll_ergebnistype = $item->idta_protokoll_ergebnistype->Text;
     $RCEditRecord->idtm_activity = $item->idtm_activity->Text;
     $RCEditRecord->save();
     $sender->EditItemIndex = -1;
     $this->bindActivityProtokollListe($this->page->edidtm_activity->Text);
 }
Beispiel #4
0
 public function lstCCPrtRepSave($sender, $param)
 {
     $item = $param->Item;
     $RCEditRecord = ProtokollDetailRecord::finder()->findByPK($item->idtm_protokoll_detail->Text);
     $RCEditRecord->prtdet_descr = $item->prtdet_descr->Text;
     $RCEditRecord->prtdet_topic = $item->prtdet_topic->Text;
     $RCEditRecord->prtdet_wvl = $item->prtdet_wvl->Checked ? 1 : 0;
     $RCEditRecord->idtm_protokoll = $item->idtm_protokoll->Text;
     $RCEditRecord->idta_protokoll_ergebnistype = $item->idta_protokoll_ergebnistype->Text;
     if ($item->idtm_activity->Text == 0 or $item->idtm_activity->Text == '') {
         $CheckStart = TerminRecord::finder()->findByPK($this->page->edidtm_termin->Text)->idtm_activity;
         if ($CheckStart > 0) {
             $RCEditRecord->idtm_activity = $CheckStart;
         }
     } else {
         $RCEditRecord->idtm_activity = $item->idtm_activity->Text;
     }
     $RCEditRecord->save();
     $sender->EditItemIndex = -1;
     $this->load_prtdetailsgroup();
 }