389 function TableMashs($row) { |
389 function TableMashs($row) { |
390 global $cost_yeasts; |
390 global $cost_yeasts; |
391 global $svg; |
391 global $svg; |
392 global $mashkg; |
392 global $mashkg; |
393 global $mashtype; |
393 global $mashtype; |
394 $vul = $this->w - $this->rMargin - $this->lMargin - 137; |
394 $vul = $this->w - $this->rMargin - $this->lMargin - 138; |
395 if ($this->GetY() > 250) |
395 if ($this->GetY() > 250) |
396 $this->AddPage(); |
396 $this->AddPage(); |
397 else |
397 else |
398 $this->Ln(); |
398 $this->Ln(); |
399 $this->AddCol($vul,'Maisch stap naam','L'); |
399 $this->AddCol($vul,'Maisch stap naam','L'); |
400 $this->AddCol(25,'Stap type','L'); |
400 $this->AddCol(25,'Stap type','L'); |
401 $this->AddCol(18,'Start '.DEG.'C','R'); |
401 $this->AddCol(16,'Start '.DEG.'C','R'); |
402 $this->AddCol(18,'Eind '.DEG.'C','R'); |
402 $this->AddCol(16,'Eind '.DEG.'C','R'); |
403 $this->AddCol(18,'Rust min','R'); |
403 $this->AddCol(15,'Rust min','R'); |
404 $this->AddCol(18,'Stap min','R'); |
404 $this->AddCol(15,'Stap min','R'); |
405 $this->AddCol(20,'L/Kg','R'); |
405 $this->AddCol(15,'L/Kg','R'); |
406 $this->AddCol(20,'Infusie L','R'); |
406 $this->AddCol(18,'Inf/dec L','R'); |
|
407 $this->AddCol(18,'Inf/dec '.DEG.'C','R'); |
407 |
408 |
408 $cMargin=$this->cMargin; |
409 $cMargin=$this->cMargin; |
409 $this->cMargin=2; |
410 $this->cMargin=2; |
410 $this->TableX=$this->lMargin; |
411 $this->TableX=$this->lMargin; |
411 $this->TableHeader(); |
412 $this->TableHeader(); |
424 $thick = $vol / $mashkg; |
425 $thick = $vol / $mashkg; |
425 else |
426 else |
426 $thick = 0; |
427 $thick = 0; |
427 $this->Cell($vul,5,$item['step_name'],0,0,'L',true); |
428 $this->Cell($vul,5,$item['step_name'],0,0,'L',true); |
428 $this->Cell(25,5,$mashtype[$item['step_type']],0,0,'L',true); |
429 $this->Cell(25,5,$mashtype[$item['step_type']],0,0,'L',true); |
429 $this->Cell(18,5,sprintf("%.1f",$item['step_temp']),0,0,'R',true); |
430 $this->Cell(16,5,sprintf("%.1f",$item['step_temp']),0,0,'R',true); |
430 $this->Cell(18,5,sprintf("%.1f",$item['end_temp']),0,0,'R',true); |
431 $this->Cell(16,5,sprintf("%.1f",$item['end_temp']),0,0,'R',true); |
431 $this->Cell(18,5,sprintf("%.0f",$item['step_time']),0,0,'R',true); |
432 $this->Cell(15,5,sprintf("%.0f",$item['step_time']),0,0,'R',true); |
432 $this->Cell(18,5,sprintf("%.0f",$item['ramp_time']),0,0,'R',true); |
433 $this->Cell(15,5,sprintf("%.0f",$item['ramp_time']),0,0,'R',true); |
433 $this->Cell(20,5,sprintf("%.2f",$thick),0,0,'R',true); |
434 $this->Cell(15,5,sprintf("%.2f",$thick),0,0,'R',true); |
434 $this->Cell(20,5,sprintf("%.1f",$item['step_infuse_amount']),0,0,'R',true); |
435 if ($item['step_type'] == 1) { |
|
436 $this->Cell(18,5,' ',0,0,'R',true); |
|
437 $this->Cell(18,5,' ',0,0,'R',true); |
|
438 } else { |
|
439 $this->Cell(18,5,sprintf("%.1f",$item['step_infuse_amount']),0,0,'R',true); |
|
440 $this->Cell(18,5,sprintf("%.1f",$item['step_infuse_temp']),0,0,'R',true); |
|
441 } |
435 $this->Ln(); |
442 $this->Ln(); |
436 } |
443 } |
437 $this->ProcessingTable=false; |
444 $this->ProcessingTable=false; |
438 $this->cMargin=$cMargin; |
445 $this->cMargin=$cMargin; |
439 $this->aCols=array(); |
446 $this->aCols=array(); |