Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16766 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16766 Rev 16768
Línea 39... Línea 39...
39
        $this->SetFont('Arial', 'B', 9);
39
        $this->SetFont('Arial', 'B', 9);
Línea 40... Línea 40...
40
        
40
        
41
        $this->Ln();
41
        $this->Ln();
42
        if($this->swit==false){
42
        if($this->swit==false){
43
            $this->SetFont('Arial', 'B', 9);
43
            $this->SetFont('Arial', 'B', 9);
44
            $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
44
            $this->Cell(188, 6, Functions::utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
45
            $this->Cell(188, 6, utf8_decode('Meta: '. $this->titleGoals), 1, 1, 'C', true);
45
            $this->Cell(188, 6, Functions::utf8_decode('Meta: '. $this->titleGoals), 1, 1, 'C', true);
46
            $this->Ln();
46
            $this->Ln();
47
            if($this->getP()==5){
47
            if($this->getP()==5){
48
                $this->SetFont('Arial', '', 9);
48
                $this->SetFont('Arial', '', 9);
Línea 49... Línea 49...
49
                $this->Cell(188, 6, utf8_decode('Tareas: '. $this->titleTask.' ( Continuacion )'), 1, 1, 'C', true);
49
                $this->Cell(188, 6, Functions::utf8_decode('Tareas: '. $this->titleTask.' ( Continuacion )'), 1, 1, 'C', true);
50
                
50
                
51
            }
51
            }
Línea 67... Línea 67...
67
        // Header Table
67
        // Header Table
68
        $this->SetFillColor(204, 204, 204);
68
        $this->SetFillColor(204, 204, 204);
69
        $this->SetDrawColor(0, 0, 0);
69
        $this->SetDrawColor(0, 0, 0);
70
        $this->SetLineWidth(0);
70
        $this->SetLineWidth(0);
71
        $this->SetFont('Arial', 'B', 12);
71
        $this->SetFont('Arial', 'B', 12);
72
        $this->Cell(188, 12, utf8_decode($title), 0, 1, 'C', false);
72
        $this->Cell(188, 12, Functions::utf8_decode($title), 0, 1, 'C', false);
73
        $this->Ln(5);
73
        $this->Ln(5);
74
        // Body Table
74
        // Body Table
75
        $this->SetFillColor(225, 255, 255);
75
        $this->SetFillColor(225, 255, 255);
76
        $this->SetTextColor(0);
76
        $this->SetTextColor(0);
Línea 114... Línea 114...
114
                if(count($objective['goals'])<=0){
114
                if(count($objective['goals'])<=0){
115
                        $this->SetFillColor(204, 204, 204);
115
                        $this->SetFillColor(204, 204, 204);
116
                        $this->SetDrawColor(0, 0, 0);
116
                        $this->SetDrawColor(0, 0, 0);
117
                        $this->SetLineWidth(0);
117
                        $this->SetLineWidth(0);
118
                        $this->SetFont('Arial', 'B', 9);
118
                        $this->SetFont('Arial', 'B', 9);
119
                        $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
119
                        $this->Cell(188, 6, Functions::utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
120
                        $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
120
                        $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
121
                        $this->Cell(20, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
121
                        $this->Cell(20, 6, Functions::utf8_decode('Fecha: '), 1, 0, 'L', false);
122
                        $this->Cell(25, 6, utf8_decode($objective['date']), 1, 0, 'C', false);
122
                        $this->Cell(25, 6, Functions::utf8_decode($objective['date']), 1, 0, 'C', false);
123
                        $this->Cell(30, 6, utf8_decode('Horas Totales: '), 1, 0, 'L', false);
123
                        $this->Cell(30, 6, Functions::utf8_decode('Horas Totales: '), 1, 0, 'L', false);
124
                        $this->Cell(43, 6, utf8_decode($timeObjective), 1, 0, 'C', false);
124
                        $this->Cell(43, 6, Functions::utf8_decode($timeObjective), 1, 0, 'C', false);
125
                        $this->Cell(50, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
125
                        $this->Cell(50, 6, Functions::utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
126
                        $this->Cell(20, 6, utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
126
                        $this->Cell(20, 6, Functions::utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
127
                        $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
127
                        $this->Cell(30, 6, Functions::utf8_decode('Costo total: '), 1, 0, 'L', false);
128
                        $this->Cell(158, 6, utf8_decode('$'.$costObjective), 1, 1, 'R', false);
128
                        $this->Cell(158, 6, Functions::utf8_decode('$'.$costObjective), 1, 1, 'R', false);
129
                        $this->Ln();
129
                        $this->Ln();
130
                        $this->swit=false;
130
                        $this->swit=false;
Línea 131... Línea 131...
131
                    
131
                    
132
                }
132
                }
Línea 140... Línea 140...
140
                        if($this->swit){
140
                        if($this->swit){
141
                            $this->SetFillColor(204, 204, 204);
141
                            $this->SetFillColor(204, 204, 204);
142
                            $this->SetDrawColor(0, 0, 0);
142
                            $this->SetDrawColor(0, 0, 0);
143
                            $this->SetLineWidth(0);
143
                            $this->SetLineWidth(0);
144
                            $this->SetFont('Arial', 'B', 9);
144
                            $this->SetFont('Arial', 'B', 9);
145
                            $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
145
                            $this->Cell(188, 6, Functions::utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
146
                            $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
146
                            $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
147
                            $this->Cell(20, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
147
                            $this->Cell(20, 6, Functions::utf8_decode('Fecha: '), 1, 0, 'L', false);
148
                            $this->Cell(25, 6, utf8_decode($objective['date']), 1, 0, 'C', false);
148
                            $this->Cell(25, 6, Functions::utf8_decode($objective['date']), 1, 0, 'C', false);
149
                            $this->Cell(30, 6, utf8_decode('Horas Totales: '), 1, 0, 'L', false);
149
                            $this->Cell(30, 6, Functions::utf8_decode('Horas Totales: '), 1, 0, 'L', false);
150
                            $this->Cell(43, 6, utf8_decode($timeObjective), 1, 0, 'C', false);
150
                            $this->Cell(43, 6, Functions::utf8_decode($timeObjective), 1, 0, 'C', false);
151
                            $this->Cell(50, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
151
                            $this->Cell(50, 6, Functions::utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
152
                            $this->Cell(20, 6, utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
152
                            $this->Cell(20, 6, Functions::utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
153
                            $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
153
                            $this->Cell(30, 6, Functions::utf8_decode('Costo total: '), 1, 0, 'L', false);
154
                            $this->Cell(158, 6, utf8_decode('$'.$costObjective), 1, 1, 'R', false);
154
                            $this->Cell(158, 6, Functions::utf8_decode('$'.$costObjective), 1, 1, 'R', false);
155
                            $this->Ln();
155
                            $this->Ln();
156
                            $this->swit=false;
156
                            $this->swit=false;
157
                        }
157
                        }
158
                        $indicatorGoals=0;
158
                        $indicatorGoals=0;
159
                        $timeGoals=0;
159
                        $timeGoals=0;
Línea 168... Línea 168...
168
                        if(count($record->task)>0){
168
                        if(count($record->task)>0){
169
                            $indicatorGoals=round($indicatorGoals/count($record->task),2);
169
                            $indicatorGoals=round($indicatorGoals/count($record->task),2);
170
                        }
170
                        }
171
                        $this->titleGoals=$record->title;
171
                        $this->titleGoals=$record->title;
172
                        $this->descriptionGoals=$record->description;
172
                        $this->descriptionGoals=$record->description;
173
                        $this->Cell(188, 6, utf8_decode('Meta: '.$record->title), 1, 1, 'C', true);
173
                        $this->Cell(188, 6, Functions::utf8_decode('Meta: '.$record->title), 1, 1, 'C', true);
174
                        $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$record->description), 1, 'L', false);
174
                        $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion: '.$record->description), 1, 'L', false);
175
                        $this->Cell(40, 6, utf8_decode('Horas Totalesa: '), 1, 0, 'L', false);
175
                        $this->Cell(40, 6, Functions::utf8_decode('Horas Totalesa: '), 1, 0, 'L', false);
176
                        $this->Cell(54, 6, utf8_decode($timeGoals), 1, 0, 'C', false);
176
                        $this->Cell(54, 6, Functions::utf8_decode($timeGoals), 1, 0, 'C', false);
177
                        $this->Cell(54, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
177
                        $this->Cell(54, 6, Functions::utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
178
                        $this->Cell(40, 6, utf8_decode($indicatorGoals.'%'), 1, 1, 'C', false);
178
                        $this->Cell(40, 6, Functions::utf8_decode($indicatorGoals.'%'), 1, 1, 'C', false);
179
                        $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
179
                        $this->Cell(30, 6, Functions::utf8_decode('Costo total: '), 1, 0, 'L', false);
180
                        $this->Cell(158, 6, utf8_decode('$'.$costGoals), 1, 1, 'R', false);
180
                        $this->Cell(158, 6, Functions::utf8_decode('$'.$costGoals), 1, 1, 'R', false);
181
                        $this->Ln();
181
                        $this->Ln();
182
                        foreach ($record->task as $record2) {
182
                        foreach ($record->task as $record2) {
183
                            if($record2->status=='a'){
183
                            if($record2->status=='a'){
184
                                $this->SetFont('Arial', '', 9);
184
                                $this->SetFont('Arial', '', 9);
185
                                $this->titleTask=$record2->title;
185
                                $this->titleTask=$record2->title;
Línea 186... Línea 186...
186
                                
186
                                
187
                                $this->Cell(188, 6, utf8_decode('Tarea: '.$record2->title), 1, 1, 'C', true);
187
                                $this->Cell(188, 6, Functions::utf8_decode('Tarea: '.$record2->title), 1, 1, 'C', true);
188
                                $this->setP(5);
188
                                $this->setP(5);
189
                                $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$record2->description), 1, 'L', false);
189
                                $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion: '.$record2->description), 1, 'L', false);
190
                                $this->MultiCell(188, 6, utf8_decode('Implementacion: '.$record2->how), 1, 'L', false);
190
                                $this->MultiCell(188, 6, Functions::utf8_decode('Implementacion: '.$record2->how), 1, 'L', false);
191
                                $whoUser='';
191
                                $whoUser='';
192
                                $toggleWho=true;
192
                                $toggleWho=true;
193
                                foreach($record2->who as $record3){
193
                                foreach($record2->who as $record3){
194
                                    if($toggleWho){
194
                                    if($toggleWho){
Línea 197... Línea 197...
197
                                    }else{
197
                                    }else{
198
                                        $whoUser=$whoUser.', '.$record3;
198
                                        $whoUser=$whoUser.', '.$record3;
Línea 199... Línea 199...
199
 
199
 
200
                                    }
200
                                    }
201
                                }
201
                                }
202
                                $this->MultiCell(188, 6, utf8_decode('Participantes: '.$whoUser), 1, 'L', false);
202
                                $this->MultiCell(188, 6, Functions::utf8_decode('Participantes: '.$whoUser), 1, 'L', false);
203
                                $this->MultiCell(188, 6, utf8_decode('Lugar: '.$record2->place), 1, 'L', false);
203
                                $this->MultiCell(188, 6, Functions::utf8_decode('Lugar: '.$record2->place), 1, 'L', false);
204
                                $this->Cell(16, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
204
                                $this->Cell(16, 6, Functions::utf8_decode('Fecha: '), 1, 0, 'L', false);
205
                                $this->Cell(20, 6, utf8_decode($record2->date), 1, 0, 'C', false);
205
                                $this->Cell(20, 6, Functions::utf8_decode($record2->date), 1, 0, 'C', false);
206
                                $this->Cell(16, 6, utf8_decode('Horas: '), 1, 0, 'L', false);
206
                                $this->Cell(16, 6, Functions::utf8_decode('Horas: '), 1, 0, 'L', false);
207
                                $this->Cell(35, 6, utf8_decode($record2->time), 1, 0, 'C', false);
207
                                $this->Cell(35, 6, Functions::utf8_decode($record2->time), 1, 0, 'C', false);
208
                                $this->Cell(40, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
208
                                $this->Cell(40, 6, Functions::utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
Línea 209... Línea 209...
209
                                $this->Cell(16, 6, utf8_decode($record2->indicator.'%'), 1, 0, 'C', false);
209
                                $this->Cell(16, 6, Functions::utf8_decode($record2->indicator.'%'), 1, 0, 'C', false);
210
                                
210
                                
211
                                $this->Cell(20, 6, utf8_decode('Prioridad: '), 1, 0, 'L', false);
211
                                $this->Cell(20, 6, Functions::utf8_decode('Prioridad: '), 1, 0, 'L', false);
212
                                if($record2->priority=='i'){
212
                                if($record2->priority=='i'){
213
                                    $this->Cell(25, 6, utf8_decode('Importante'), 1, 1, 'C', false);
213
                                    $this->Cell(25, 6, Functions::utf8_decode('Importante'), 1, 1, 'C', false);
214
                                }else if($record2->priority=='ni'){
214
                                }else if($record2->priority=='ni'){
215
                                    $this->Cell(25, 6, utf8_decode('No importante'), 1, 1, 'C', false);
215
                                    $this->Cell(25, 6, Functions::utf8_decode('No importante'), 1, 1, 'C', false);
216
                                }else if($record2->priority=='nu'){
216
                                }else if($record2->priority=='nu'){
217
                                    $this->Cell(25, 6, utf8_decode('No urgente'), 1, 1, 'C', false);
217
                                    $this->Cell(25, 6, Functions::utf8_decode('No urgente'), 1, 1, 'C', false);
218
                                }else if($record2->priority=='u'){
218
                                }else if($record2->priority=='u'){
219
                                    $this->Cell(25, 6, utf8_decode('Urgente'), 1, 1, 'C', false);
219
                                    $this->Cell(25, 6, Functions::utf8_decode('Urgente'), 1, 1, 'C', false);
220
                                }
220
                                }
221
                                if($record2->indicator==100){
221
                                if($record2->indicator==100){
222
                                    $this->MultiCell(188, 6, utf8_decode('Descripcion evaluacion: '.$record2->evaluation), 1, 'L', false);
222
                                    $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion evaluacion: '.$record2->evaluation), 1, 'L', false);
223
                                    $this->MultiCell(188, 6, utf8_decode('Descripcion desvio: '.$record2->detour), 1, 'L', false);
223
                                    $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion desvio: '.$record2->detour), 1, 'L', false);
Línea 224... Línea 224...
224
                                }
224
                                }
Línea 225... Línea 225...
225
                                $this->SetFont('Arial', 'B', 11);
225
                                $this->SetFont('Arial', 'B', 11);
226
                            
226
                            
Línea 227... Línea 227...
227
                                $this->Cell(20, 8, utf8_decode('Costo: '), 1, 0, 'L', false);
227
                                $this->Cell(20, 8, Functions::utf8_decode('Costo: '), 1, 0, 'L', false);
228
                            
228
                            
Línea 248... Línea 248...
248
        // Header Table
248
        // Header Table
249
        $this->SetFillColor(204, 204, 204);
249
        $this->SetFillColor(204, 204, 204);
250
        $this->SetDrawColor(0, 0, 0);
250
        $this->SetDrawColor(0, 0, 0);
251
        $this->SetLineWidth(0);
251
        $this->SetLineWidth(0);
252
        $this->SetFont('Arial', 'B', 12);
252
        $this->SetFont('Arial', 'B', 12);
253
        $this->Cell(188, 12, utf8_decode($title), 0, 1, 'C', false);
253
        $this->Cell(188, 12, Functions::utf8_decode($title), 0, 1, 'C', false);
254
        $this->Ln(5);
254
        $this->Ln(5);
Línea 255... Línea 255...
255
 
255
 
256
        // Body Table
256
        // Body Table
257
        $this->SetFillColor(225, 255, 255);
257
        $this->SetFillColor(225, 255, 255);
Línea 297... Línea 297...
297
                if(count($objective->goals)<=0){
297
                if(count($objective->goals)<=0){
298
                        $this->SetFillColor(204, 204, 204);
298
                        $this->SetFillColor(204, 204, 204);
299
                        $this->SetDrawColor(0, 0, 0);
299
                        $this->SetDrawColor(0, 0, 0);
300
                        $this->SetLineWidth(0);
300
                        $this->SetLineWidth(0);
301
                        $this->SetFont('Arial', 'B', 9);
301
                        $this->SetFont('Arial', 'B', 9);
302
                        $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
302
                        $this->Cell(188, 6, Functions::utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
303
                        $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
303
                        $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
304
                        $this->Cell(20, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
304
                        $this->Cell(20, 6, Functions::utf8_decode('Fecha: '), 1, 0, 'L', false);
305
                        $this->Cell(25, 6, utf8_decode($objective->date), 1, 0, 'C', false);
305
                        $this->Cell(25, 6, Functions::utf8_decode($objective->date), 1, 0, 'C', false);
306
                        $this->Cell(30, 6, utf8_decode('Horas Totales: '), 1, 0, 'L', false);
306
                        $this->Cell(30, 6, Functions::utf8_decode('Horas Totales: '), 1, 0, 'L', false);
307
                        $this->Cell(43, 6, utf8_decode($timeObjective), 1, 0, 'C', false);
307
                        $this->Cell(43, 6, Functions::utf8_decode($timeObjective), 1, 0, 'C', false);
308
                        $this->Cell(50, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
308
                        $this->Cell(50, 6, Functions::utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
309
                        $this->Cell(20, 6, utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
309
                        $this->Cell(20, 6, Functions::utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
310
                        $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
310
                        $this->Cell(30, 6, Functions::utf8_decode('Costo total: '), 1, 0, 'L', false);
311
                        $this->Cell(158, 6, utf8_decode('$'.$costObjective), 1, 1, 'R', false);
311
                        $this->Cell(158, 6, Functions::utf8_decode('$'.$costObjective), 1, 1, 'R', false);
312
                        $this->Ln();
312
                        $this->Ln();
313
                        $this->swit=false;
313
                        $this->swit=false;
Línea 314... Línea 314...
314
                    
314
                    
315
                }
315
                }
Línea 325... Línea 325...
325
                        if($this->swit){
325
                        if($this->swit){
326
                            $this->SetFillColor(204, 204, 204);
326
                            $this->SetFillColor(204, 204, 204);
327
                            $this->SetDrawColor(0, 0, 0);
327
                            $this->SetDrawColor(0, 0, 0);
328
                            $this->SetLineWidth(0);
328
                            $this->SetLineWidth(0);
329
                            $this->SetFont('Arial', 'B', 9);
329
                            $this->SetFont('Arial', 'B', 9);
330
                            $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
330
                            $this->Cell(188, 6, Functions::utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
331
                            $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
331
                            $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
332
                            $this->Cell(20, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
332
                            $this->Cell(20, 6, Functions::utf8_decode('Fecha: '), 1, 0, 'L', false);
333
                            $this->Cell(25, 6, utf8_decode($objective->date), 1, 0, 'C', false);
333
                            $this->Cell(25, 6, Functions::utf8_decode($objective->date), 1, 0, 'C', false);
334
                            $this->Cell(30, 6, utf8_decode('Horas Totales: '), 1, 0, 'L', false);
334
                            $this->Cell(30, 6, Functions::utf8_decode('Horas Totales: '), 1, 0, 'L', false);
335
                            $this->Cell(43, 6, utf8_decode($timeObjective), 1, 0, 'C', false);
335
                            $this->Cell(43, 6, Functions::utf8_decode($timeObjective), 1, 0, 'C', false);
336
                            $this->Cell(50, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
336
                            $this->Cell(50, 6, Functions::utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
337
                            $this->Cell(20, 6, utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
337
                            $this->Cell(20, 6, Functions::utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
338
                            $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
338
                            $this->Cell(30, 6, Functions::utf8_decode('Costo total: '), 1, 0, 'L', false);
339
                            $this->Cell(158, 6, utf8_decode('$'.$costObjective), 1, 1, 'R', false);
339
                            $this->Cell(158, 6, Functions::utf8_decode('$'.$costObjective), 1, 1, 'R', false);
340
                            $this->Ln();
340
                            $this->Ln();
341
                            $this->swit=false;
341
                            $this->swit=false;
342
                        }
342
                        }
343
                        $indicatorGoals=0;
343
                        $indicatorGoals=0;
344
                        $timeGoals=0;
344
                        $timeGoals=0;
Línea 351... Línea 351...
351
                            }
351
                            }
352
                        }
352
                        }
353
                        if(count($record->task)>0){
353
                        if(count($record->task)>0){
354
                            $indicatorGoals=round($indicatorGoals/count($record->task),2);
354
                            $indicatorGoals=round($indicatorGoals/count($record->task),2);
355
                        }
355
                        }
356
                        $this->Cell(188, 6, utf8_decode('Meta: '.$record->title), 1, 1, 'C', true);
356
                        $this->Cell(188, 6, Functions::utf8_decode('Meta: '.$record->title), 1, 1, 'C', true);
357
                        $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$record->description), 1, 'L', false);
357
                        $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion: '.$record->description), 1, 'L', false);
358
                        $this->Cell(40, 6, utf8_decode('Horas Totalesa: '), 1, 0, 'L', false);
358
                        $this->Cell(40, 6, Functions::utf8_decode('Horas Totalesa: '), 1, 0, 'L', false);
359
                        $this->Cell(54, 6, utf8_decode($timeGoals), 1, 0, 'C', false);
359
                        $this->Cell(54, 6, Functions::utf8_decode($timeGoals), 1, 0, 'C', false);
360
                        $this->Cell(54, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
360
                        $this->Cell(54, 6, Functions::utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
361
                        $this->Cell(40, 6, utf8_decode($indicatorGoals.'%'), 1, 1, 'C', false);
361
                        $this->Cell(40, 6, Functions::utf8_decode($indicatorGoals.'%'), 1, 1, 'C', false);
362
                        $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
362
                        $this->Cell(30, 6, Functions::utf8_decode('Costo total: '), 1, 0, 'L', false);
363
                        $this->Cell(158, 6, utf8_decode('$'.$costGoals), 1, 1, 'R', false);
363
                        $this->Cell(158, 6, Functions::utf8_decode('$'.$costGoals), 1, 1, 'R', false);
364
                        $this->Ln();
364
                        $this->Ln();
365
                        foreach ($record->task as $record2) {
365
                        foreach ($record->task as $record2) {
366
                            if($record2->status=='a'){
366
                            if($record2->status=='a'){
367
                                $this->SetFont('Arial', '', 9);
367
                                $this->SetFont('Arial', '', 9);
368
                                $this->titleTask=$record2->title;
368
                                $this->titleTask=$record2->title;
Línea 369... Línea 369...
369
                                
369
                                
370
                                $this->Cell(188, 6, utf8_decode('Tarea: '.$record2->title), 1, 1, 'C', true);
370
                                $this->Cell(188, 6, Functions::utf8_decode('Tarea: '.$record2->title), 1, 1, 'C', true);
371
                                $this->setP(5);
371
                                $this->setP(5);
372
                                $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$record2->description), 1, 'L', false);
372
                                $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion: '.$record2->description), 1, 'L', false);
373
                                $this->MultiCell(188, 6, utf8_decode('Implementacion: '.$record2->how), 1, 'L', false);
373
                                $this->MultiCell(188, 6, Functions::utf8_decode('Implementacion: '.$record2->how), 1, 'L', false);
374
                                $whoUser='';
374
                                $whoUser='';
375
                                $toggleWho=true;
375
                                $toggleWho=true;
376
                                foreach($record2->who as $record3){
376
                                foreach($record2->who as $record3){
377
                                    if($toggleWho){
377
                                    if($toggleWho){
Línea 380... Línea 380...
380
                                    }else{
380
                                    }else{
381
                                        $whoUser=$whoUser.', '.$record3;
381
                                        $whoUser=$whoUser.', '.$record3;
Línea 382... Línea 382...
382
 
382
 
383
                                    }
383
                                    }
384
                                }
384
                                }
385
                                $this->MultiCell(188, 6, utf8_decode('Participantes: '.$whoUser), 1, 'L', false);
385
                                $this->MultiCell(188, 6, Functions::utf8_decode('Participantes: '.$whoUser), 1, 'L', false);
386
                                $this->MultiCell(188, 6, utf8_decode('Lugar: '.$record2->place), 1, 'L', false);
386
                                $this->MultiCell(188, 6, Functions::utf8_decode('Lugar: '.$record2->place), 1, 'L', false);
387
                                $this->Cell(16, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
387
                                $this->Cell(16, 6, Functions::utf8_decode('Fecha: '), 1, 0, 'L', false);
388
                                $this->Cell(20, 6, utf8_decode($record2->date), 1, 0, 'C', false);
388
                                $this->Cell(20, 6, Functions::utf8_decode($record2->date), 1, 0, 'C', false);
389
                                $this->Cell(16, 6, utf8_decode('Horas: '), 1, 0, 'L', false);
389
                                $this->Cell(16, 6, Functions::utf8_decode('Horas: '), 1, 0, 'L', false);
390
                                $this->Cell(35, 6, utf8_decode($record2->time), 1, 0, 'C', false);
390
                                $this->Cell(35, 6, Functions::utf8_decode($record2->time), 1, 0, 'C', false);
391
                                $this->Cell(40, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
391
                                $this->Cell(40, 6, Functions::utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
Línea 392... Línea 392...
392
                                $this->Cell(16, 6, utf8_decode($record2->indicator.'%'), 1, 0, 'C', false);
392
                                $this->Cell(16, 6, Functions::utf8_decode($record2->indicator.'%'), 1, 0, 'C', false);
393
                                
393
                                
394
                                $this->Cell(20, 6, utf8_decode('Prioridad: '), 1, 0, 'L', false);
394
                                $this->Cell(20, 6, Functions::utf8_decode('Prioridad: '), 1, 0, 'L', false);
395
                                if($record2->priority=='i'){
395
                                if($record2->priority=='i'){
396
                                    $this->Cell(25, 6, utf8_decode('Importante'), 1, 1, 'C', false);
396
                                    $this->Cell(25, 6, Functions::utf8_decode('Importante'), 1, 1, 'C', false);
397
                                }else if($record2->priority=='ni'){
397
                                }else if($record2->priority=='ni'){
398
                                    $this->Cell(25, 6, utf8_decode('No importante'), 1, 1, 'C', false);
398
                                    $this->Cell(25, 6, Functions::utf8_decode('No importante'), 1, 1, 'C', false);
399
                                }else if($record2->priority=='nu'){
399
                                }else if($record2->priority=='nu'){
400
                                    $this->Cell(25, 6, utf8_decode('No urgente'), 1, 1, 'C', false);
400
                                    $this->Cell(25, 6, Functions::utf8_decode('No urgente'), 1, 1, 'C', false);
401
                                }else if($record2->priority=='u'){
401
                                }else if($record2->priority=='u'){
402
                                    $this->Cell(25, 6, utf8_decode('Urgente'), 1, 1, 'C', false);
402
                                    $this->Cell(25, 6, Functions::utf8_decode('Urgente'), 1, 1, 'C', false);
403
                                }
403
                                }
404
                                if($record2->indicator==100){
404
                                if($record2->indicator==100){
405
                                    $this->MultiCell(188, 6, utf8_decode('Descripcion evaluacion: '.$record2->evaluation), 1, 'L', false);
405
                                    $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion evaluacion: '.$record2->evaluation), 1, 'L', false);
406
                                    $this->MultiCell(188, 6, utf8_decode('Descripcion desvio: '.$record2->detour), 1, 'L', false);
406
                                    $this->MultiCell(188, 6, Functions::utf8_decode('Descripcion desvio: '.$record2->detour), 1, 'L', false);
Línea 407... Línea 407...
407
                                }
407
                                }
Línea 408... Línea 408...
408
                                $this->SetFont('Arial', 'B', 11);
408
                                $this->SetFont('Arial', 'B', 11);
409
                            
409
                            
Línea 410... Línea 410...
410
                                $this->Cell(20, 8, utf8_decode('Costo: '), 1, 0, 'L', false);
410
                                $this->Cell(20, 8, Functions::utf8_decode('Costo: '), 1, 0, 'L', false);
411
                            
411
                            
Línea 430... Línea 430...
430
        // Header Table
430
        // Header Table
431
        $this->SetFillColor(204, 204, 204);
431
        $this->SetFillColor(204, 204, 204);
432
        $this->SetDrawColor(0, 0, 0);
432
        $this->SetDrawColor(0, 0, 0);
433
        $this->SetLineWidth(0);
433
        $this->SetLineWidth(0);
434
        $this->SetFont('Arial', 'B', 12);
434
        $this->SetFont('Arial', 'B', 12);
435
        $this->Cell(188, 12, utf8_decode($title), 0, 1, 'C', false);
435
        $this->Cell(188, 12, Functions::utf8_decode($title), 0, 1, 'C', false);
436
        $this->Ln(5);
436
        $this->Ln(5);
437
        $titleswitch=true;
437
        $titleswitch=true;
438
        // Body Table
438
        // Body Table
439
        $this->SetFillColor(225, 255, 255);
439
        $this->SetFillColor(225, 255, 255);
440
        $this->SetTextColor(0);
440
        $this->SetTextColor(0);
Línea 461... Línea 461...
461
                            if($this->swit){
461
                            if($this->swit){
462
                                $this->SetFillColor(204, 204, 204);
462
                                $this->SetFillColor(204, 204, 204);
463
                                $this->SetDrawColor(0, 0, 0);
463
                                $this->SetDrawColor(0, 0, 0);
464
                                $this->SetLineWidth(0);
464
                                $this->SetLineWidth(0);
465
                                $this->SetFont('Arial', 'B', 9);
465
                                $this->SetFont('Arial', 'B', 9);
466
                                $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
466
                                $this->Cell(188, 6, Functions::utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
467
                                $this->swit=false;
467
                                $this->swit=false;
468
                            }
468
                            }
469
                            $this->Cell(188, 6, utf8_decode('Meta: '.$record->title), 1, 1, 'C', true);
469
                            $this->Cell(188, 6, Functions::utf8_decode('Meta: '.$record->title), 1, 1, 'C', true);
470
                            $this->Ln();
470
                            $this->Ln();
Línea 471... Línea 471...
471
 
471
 
472
                            $iu=[];
472
                            $iu=[];
473
                            $niu=[];
473
                            $niu=[];
Línea 524... Línea 524...
524
                                    $this->titleGoals=$record->title.' (Continuacion)';
524
                                    $this->titleGoals=$record->title.' (Continuacion)';
525
                                    $this->AddPage();
525
                                    $this->AddPage();
526
                                }
526
                                }
527
                                $this->SetFont('Arial', 'B', 12);
527
                                $this->SetFont('Arial', 'B', 12);
528
                                $this->Cell(32, 12, '', 0, 0, 'C', false);
528
                                $this->Cell(32, 12, '', 0, 0, 'C', false);
529
                                $this->Cell(78, 12, utf8_decode('Urgente'), 1, 0, 'C', true);
529
                                $this->Cell(78, 12, Functions::utf8_decode('Urgente'), 1, 0, 'C', true);
530
                                $this->Cell(78, 12, utf8_decode('No urgente'), 1, 1, 'C', true);
530
                                $this->Cell(78, 12, Functions::utf8_decode('No urgente'), 1, 1, 'C', true);
Línea 531... Línea 531...
531
                            
531
                            
532
                                $this->Cell(32, 70, utf8_decode('Importante'), 1, 0, 'C', true);
532
                                $this->Cell(32, 70, Functions::utf8_decode('Importante'), 1, 0, 'C', true);
533
                                $this->Cell(156,70,'',1,1,'',false);
533
                                $this->Cell(156,70,'',1,1,'',false);
534
                                $this->Cell(32, 70, utf8_decode('No Importante'), 1, 0, 'C', true);
534
                                $this->Cell(32, 70, Functions::utf8_decode('No Importante'), 1, 0, 'C', true);
535
                                $this->Cell(156,70,'',1,1,'',false);
535
                                $this->Cell(156,70,'',1,1,'',false);
536
                                if($titleswitch){
536
                                if($titleswitch){
537
                                    $this->Line(120, 102,120,242);
537
                                    $this->Line(120, 102,120,242);
538
                                    $this->SetXY(10,108);
538
                                    $this->SetXY(10,108);
Línea 543... Línea 543...
543
                                $this->SetFont('Arial', '', 10);
543
                                $this->SetFont('Arial', '', 10);
Línea 544... Línea 544...
544
 
544
 
545
                                for($i=($h-1)*10;$i<($h*10);$i++) {
545
                                for($i=($h-1)*10;$i<($h*10);$i++) {
546
                                    $this->Cell(32, 12, '', 0, 0, 'C', false);
546
                                    $this->Cell(32, 12, '', 0, 0, 'C', false);
547
                                    if(isset($matriz[$i][0])){
547
                                    if(isset($matriz[$i][0])){
548
                                        $this->Cell(78, 6, utf8_decode($matriz[$i][0]), 0, 0, 'C', false);  
548
                                        $this->Cell(78, 6, Functions::utf8_decode($matriz[$i][0]), 0, 0, 'C', false);  
549
                                    }else{
549
                                    }else{
550
                                        $this->Cell(78, 6, utf8_decode(''), 0, 0, 'l', false);
550
                                        $this->Cell(78, 6, Functions::utf8_decode(''), 0, 0, 'l', false);
551
                                    }
551
                                    }
552
                                    if(isset($matriz[$i][1])){
552
                                    if(isset($matriz[$i][1])){
553
                                        $this->Cell(78, 6, utf8_decode($matriz[$i][1]), 0, 1, 'C', false);  
553
                                        $this->Cell(78, 6, Functions::utf8_decode($matriz[$i][1]), 0, 1, 'C', false);  
554
                                    }else{
554
                                    }else{
555
                                        $this->Cell(78, 6, utf8_decode(''), 0, 1, 'l', false);
555
                                        $this->Cell(78, 6, Functions::utf8_decode(''), 0, 1, 'l', false);
556
                                    }                                
556
                                    }                                
557
                                }
557
                                }
558
                                if($titleswitch){
558
                                if($titleswitch){
559
                                    $this->SetXY(10,178);
559
                                    $this->SetXY(10,178);
Línea 562... Línea 562...
562
                                    $this->SetXY(10,166); 
562
                                    $this->SetXY(10,166); 
563
                                }
563
                                }
564
                                for($i=($h-1)*10;$i<($h*10);$i++) {
564
                                for($i=($h-1)*10;$i<($h*10);$i++) {
565
                                    $this->Cell(32, 12, '', 0, 0, 'C', false);
565
                                    $this->Cell(32, 12, '', 0, 0, 'C', false);
566
                                    if(isset($matriz[$i][2])){
566
                                    if(isset($matriz[$i][2])){
567
                                        $this->Cell(78, 6, utf8_decode($matriz[$i][2]), 0, 0, 'C', false);  
567
                                        $this->Cell(78, 6, Functions::utf8_decode($matriz[$i][2]), 0, 0, 'C', false);  
568
                                    }else{
568
                                    }else{
569
                                        $this->Cell(78, 6, utf8_decode(''), 0, 0, 'l', false);
569
                                        $this->Cell(78, 6, Functions::utf8_decode(''), 0, 0, 'l', false);
570
                                    }
570
                                    }
571
                                    if(isset($matriz[$i][3])){
571
                                    if(isset($matriz[$i][3])){
572
                                        $this->Cell(78, 6, utf8_decode($matriz[$i][3]), 0, 1, 'C', false);  
572
                                        $this->Cell(78, 6, Functions::utf8_decode($matriz[$i][3]), 0, 1, 'C', false);  
573
                                    }else{
573
                                    }else{
574
                                        $this->Cell(78, 6, utf8_decode(''), 0, 1, 'l', false);
574
                                        $this->Cell(78, 6, Functions::utf8_decode(''), 0, 1, 'l', false);
575
                                    }                                
575
                                    }                                
576
                                }
576
                                }
577
                                $pageSwitch=true;
577
                                $pageSwitch=true;
578
                            }
578
                            }
579
                            $this->swit=true;
579
                            $this->swit=true;