Example #1
0
 public function initPullDowns()
 {
     $this->edidta_protokoll_type->DataSource = PFH::build_SQLPullDown(ProtokollTypeRecord::finder(), "ta_protokoll_type", array("idta_protokoll_type", "prt_type_name"));
     $this->edidta_protokoll_type->dataBind();
     //hier checken wir, wieviele schritte noch den gleichen Vater haben
     $this->edbindList();
     $this->fillValues($this->getSelected($this->Request[$this->primarykey]));
     $this->CCProtokollDetailGroupListPageSize->DataSource = array(5 => "5", 10 => "10", 15 => "15", 20 => "20");
     $this->CCProtokollDetailGroupListPageSize->dataBind();
     $this->CCProtokollDetailGroupListPageSize->Text = "5";
     $this->edParticipantbindList();
     $this->edTerminParticipantbindList();
     $this->CBAufgabeDone->DataSource = $this->auf_done;
     $this->CBAufgabeDone->dataBind();
 }
Example #2
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->isPostBack && !$this->isCallback) {
         $this->idtm_termin = $this->Request['idtm_termin'];
         $this->idtm_protokoll = $this->Request['idtm_protokoll'];
         $this->getSelected();
         $this->thema->Text = $this->ProtokollRecord->prt_name;
         $this->prttyp->Text = ProtokollTypeRecord::finder()->findByPK($this->ProtokollRecord->idta_protokoll_type)->prt_type_name;
         $this->moderator->Text = OrganisationRecord::finder()->findByPK($this->ProtokollRecord->idtm_organisation)->org_name;
         $this->datum->Text = $this->ProtokollRecord->prt_cdate;
         $this->edTerminParticipantbindList();
         $this->edParticipantbindList();
         $this->bindRepProtokollDetail();
     }
 }
 private function ProtokollHeader($idtm_protokoll)
 {
     $Protokoll = ProtokollRecord::finder()->findBy_idtm_protokoll($idtm_protokoll);
     $this->pdf->SetXY(25, 60);
     $this->pdf->SetDrawColor(43, 51, 43);
     $this->pdf->SetFont('Helvetica', '', 10);
     $this->pdf->Cell(185, 5, strtoupper('Protokollnotiz zum Termin am ' . date('j.n.Y', strtotime($Protokoll->prt_cdate))), 0, 0, 'B', 0);
     $this->pdf->Ln();
     $this->pdf->SetX(25);
     $this->pdf->SetDrawColor(43, 51, 43);
     $this->pdf->SetFont('Helvetica', '', 10);
     $this->pdf->Cell(185, 5, strtoupper('Projekt: ' . utf8_decode($Protokoll->idtm_termin)), 0, 0, 'B', 0);
     $this->pdf->Ln();
     //$this->pdf->SetX(28);
     $this->pdf->SetXY(25, 105);
     $this->pdf->SetDrawColor(43, 51, 43);
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(50, 5, 'Thema ', 'B');
     $this->pdf->Cell(100, 5, utf8_decode($Protokoll->prt_name), 'B', 1);
     $this->pdf->SetX(25);
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(50, 5, 'Moderator ', 'B');
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(100, 5, utf8_decode(OrganisationRecord::finder()->findByidtm_organisation($Protokoll->idtm_organisation)->org_name), 'B', 1);
     $this->pdf->SetX(25);
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(50, 5, 'Typ ', 'B');
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(100, 5, utf8_decode(ProtokollTypeRecord::finder()->findByPK($Protokoll->idta_protokoll_type)->prt_type_name), 'B', 1);
     $this->pdf->SetX(25);
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(50, 5, 'Ort ', 'B');
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(100, 5, utf8_decode($Protokoll->prt_location), 'B', 1);
     $this->pdf->SetX(25);
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(50, 5, 'Datum ', 'B');
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(100, 5, utf8_decode($Protokoll->prt_cdate), 'B', 1);
     $this->pdf->Ln();
     $this->pdf->SetX(25);
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(50, 5, 'Eingeladen ', 'B', 0);
     $this->pdf->SetFont('Arial', '', 10);
     $criteria = new TActiveRecordCriteria();
     $criteria->Condition = "idtm_activity = :suchtext";
     $criteria->Parameters[':suchtext'] = $Protokoll->idtm_termin;
     $criteria->OrdersBy["idtm_organisation"] = 'asc';
     $AnwesendPP = ActivityParticipantsView::finder()->findAll($criteria);
     $i = 0;
     foreach ($AnwesendPP as $InvitedP) {
         if ($i > 0) {
             $this->pdf->SetX(25);
             $this->pdf->SetFont('Arial', '', 10);
             $this->pdf->Cell(50, 5, ' ', 'B');
         }
         $this->pdf->Cell(50, 5, utf8_decode(OrganisationRecord::finder()->findByPK($InvitedP->idtm_organisation)->org_vorname) . ' ' . utf8_decode($InvitedP->org_name), 'B', 0);
         $this->pdf->Cell(50, 5, $InvitedP->act_part_anwesend == 1 ? 'anwesend' : '', 'B', 1);
         $i++;
     }
     $this->pdf->Ln();
 }
 private function ProtokollHeader($idtm_protokoll)
 {
     $Protokoll = ProtokollRecord::finder()->findBy_idtm_protokoll($idtm_protokoll);
     $this->pdf->SetY(48);
     //$this->pdf->SetX(20);
     $this->pdf->SetFillColor(234, 242, 220);
     $this->pdf->SetDrawColor(234, 242, 220);
     $this->pdf->SetFont('Helvetica', 'B', 12);
     $this->pdf->Cell(185, 6, 'Thema - ' . utf8_decode($Protokoll->prt_name), 1, 0, 'B', 1);
     $this->pdf->Ln(7);
     //$this->pdf->SetX(28);
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(30, 5, 'Moderator: ', 0);
     $this->pdf->SetFont('Arial', 'B', 10);
     $this->pdf->Cell(60, 5, utf8_decode(OrganisationRecord::finder()->findByidtm_organisation($Protokoll->idtm_organisation)->org_name), 0);
     $this->pdf->Ln();
     //$this->pdf->SetX(28);
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(30, 5, 'Typ: ', 0);
     $this->pdf->SetFont('Arial', 'B', 10);
     $this->pdf->Cell(60, 5, utf8_decode(ProtokollTypeRecord::finder()->findByPK($Protokoll->idta_protokoll_type)->prt_type_name), 0);
     $this->pdf->Ln();
     //$this->pdf->SetX(28);
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(30, 5, 'Ort: ', 0);
     $this->pdf->SetFont('Arial', 'B', 10);
     $this->pdf->Cell(60, 5, utf8_decode($Protokoll->prt_location), 0);
     $this->pdf->Ln();
     //$this->pdf->SetX(28);
     $this->pdf->SetFont('Arial', '', 10);
     $this->pdf->Cell(30, 5, 'Datum: ', 0);
     $this->pdf->SetFont('Arial', 'B', 10);
     $this->pdf->Cell(60, 5, utf8_decode($Protokoll->prt_cdate), 0);
     $this->pdf->Ln(7);
     //$this->pdf->SetX(20);
     $this->pdf->SetFillColor(234, 242, 220);
     $this->pdf->SetDrawColor(234, 242, 220);
     $this->pdf->SetFont('Arial', 'B', 12);
     $this->pdf->Cell(185, 6, 'Eingeladen ', 1, 0, 'B', 1);
     $this->pdf->Ln(7);
     $criteria = new TActiveRecordCriteria();
     $criteria->Condition = "idtm_termin = :suchtext";
     $criteria->Parameters[':suchtext'] = $Protokoll->idtm_termin;
     $criteria->OrdersBy["idtm_organisation"] = 'asc';
     $InvitedPP = TerminOrganisationView::finder()->findAll($criteria);
     foreach ($InvitedPP as $InvitedP) {
         $this->pdf->SetX(20);
         $this->pdf->SetFont('Arial', '', 10);
         $this->pdf->Cell(30, 5, 'T: ', 0);
         $this->pdf->SetFont('Arial', 'B', 10);
         $this->pdf->Cell(60, 5, utf8_decode($InvitedP->org_name), 0);
         $this->pdf->Ln();
     }
     //$this->pdf->SetX(20);
     $this->pdf->SetFillColor(234, 242, 220);
     $this->pdf->SetDrawColor(234, 242, 220);
     $this->pdf->SetFont('Arial', 'B', 12);
     $this->pdf->Cell(185, 6, 'Anwesend ', 1, 0, 'B', 1);
     $this->pdf->Ln(7);
     $criteria = new TActiveRecordCriteria();
     $criteria->Condition = "idtm_activity = :suchtext";
     $criteria->Parameters[':suchtext'] = $Protokoll->idtm_termin;
     $criteria->OrdersBy["idtm_organisation"] = 'asc';
     $AnwesendPP = ActivityParticipantsView::finder()->findAll($criteria);
     foreach ($AnwesendPP as $InvitedP) {
         $this->pdf->SetX(20);
         $this->pdf->SetFont('Arial', '', 10);
         $this->pdf->Cell(30, 5, 'T: ', 0);
         $this->pdf->SetFont('Arial', 'B', 10);
         $this->pdf->Cell(60, 5, utf8_decode($InvitedP->org_name), 0);
         $this->pdf->Cell(60, 5, utf8_decode($InvitedP->act_part_notiz), 0);
         $this->pdf->Cell(10, 5, $InvitedP->act_part_anwesend == 1 ? 'Ja' : 'Nein', 0);
         $this->pdf->Ln();
     }
 }