| @@ 3277-3352 (lines=76) @@ | ||
| 3274 | * @param number $y Posição vertical canto superior |
|
| 3275 | * @return number Posição vertical final |
|
| 3276 | */ |
|
| 3277 | protected function zCanhoto($x = 0, $y = 0) |
|
| 3278 | { |
|
| 3279 | $this->zhDashedLine($x, $y+2, $this->wPrint, 0.1, 80); |
|
| 3280 | $y = $y + 2; |
|
| 3281 | $oldX = $x; |
|
| 3282 | $oldY = $y; |
|
| 3283 | if ($this->orientacao == 'P') { |
|
| 3284 | $maxW = $this->wPrint; |
|
| 3285 | } else { |
|
| 3286 | $maxW = $this->wPrint - $this->wCanhoto; |
|
| 3287 | } |
|
| 3288 | $w = $maxW - 1; |
|
| 3289 | $h = 20; |
|
| 3290 | $y = $y + 1; |
|
| 3291 | $texto = 'DECLARO QUE RECEBI OS VOLUMES DESTE CONHECIMENTO EM PERFEITO ESTADO '; |
|
| 3292 | $texto .= 'PELO QUE DOU POR CUMPRIDO O PRESENTE CONTRATO DE TRANSPORTE'; |
|
| 3293 | $aFont = $this->formatPadrao; |
|
| 3294 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 3295 | $y += 3.4; |
|
| 3296 | $this->pdf->Line($x, $y, $w + 1, $y); // LINHA ABAICO DO TEXTO DECLARO QUE RECEBI... |
|
| 3297 | ||
| 3298 | $texto = 'NOME'; |
|
| 3299 | $aFont = array( |
|
| 3300 | 'font' => $this->fontePadrao, |
|
| 3301 | 'size' => 6, |
|
| 3302 | 'style' => ''); |
|
| 3303 | $this->pTextBox($x, $y, $w * 0.25, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3304 | $x += $w * 0.25; |
|
| 3305 | ||
| 3306 | $this->pdf->Line($x, $y, $x, $y + 16.5); |
|
| 3307 | ||
| 3308 | $texto = 'ASSINATURA / CARIMBO'; |
|
| 3309 | $aFont = array( |
|
| 3310 | 'font' => $this->fontePadrao, |
|
| 3311 | 'size' => 6, |
|
| 3312 | 'style' => ''); |
|
| 3313 | $this->pTextBox($x, $y, $w * 0.25, $h - 3.4, $texto, $aFont, 'B', 'C', 0, ''); |
|
| 3314 | $x += $w * 0.25; |
|
| 3315 | ||
| 3316 | $this->pdf->Line($x, $y, $x, $y + 16.5); |
|
| 3317 | ||
| 3318 | $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n"; |
|
| 3319 | $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA'; |
|
| 3320 | $aFont = array( |
|
| 3321 | 'font' => $this->fontePadrao, |
|
| 3322 | 'size' => 6, |
|
| 3323 | 'style' => ''); |
|
| 3324 | $this->pTextBox($x + 10, $y, $w * 0.25, $h - 3.4, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 3325 | $x = $oldX; |
|
| 3326 | $y = $y + 5; |
|
| 3327 | ||
| 3328 | $this->pdf->Line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
|
| 3329 | ||
| 3330 | $texto = 'RG'; |
|
| 3331 | $aFont = array( |
|
| 3332 | 'font' => $this->fontePadrao, |
|
| 3333 | 'size' => 6, |
|
| 3334 | 'style' => ''); |
|
| 3335 | $this->pTextBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3336 | $x += $w * 0.85; |
|
| 3337 | ||
| 3338 | $this->pdf->Line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E |
|
| 3339 | ||
| 3340 | $texto = "CT-E"; |
|
| 3341 | $aFont = $this->formatNegrito; |
|
| 3342 | $this->pTextBox($x, $y - 5, $w * 0.15, $h, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 3343 | $texto = "\r\n Nº. DOCUMENTO " . $this->pSimpleGetValue($this->ide, "nCT") . " \n"; |
|
| 3344 | $texto .= "\r\n SÉRIE " . $this->pSimpleGetValue($this->ide, "serie"); |
|
| 3345 | $aFont = array( |
|
| 3346 | 'font' => $this->fontePadrao, |
|
| 3347 | 'size' => 6, |
|
| 3348 | 'style' => ''); |
|
| 3349 | $this->pTextBox($x, $y - 8, $w * 0.15, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 3350 | $x = $oldX; |
|
| 3351 | //$this->zhDashedLine($x, $y + 7.5, $this->wPrint, 0.1, 80); |
|
| 3352 | } //fim da função canhotoDACTE |
|
| 3353 | ||
| 3354 | /** |
|
| 3355 | * zDadosAdic |
|
| @@ 3066-3141 (lines=76) @@ | ||
| 3063 | * @param number $y Posição vertical canto superior |
|
| 3064 | * @return number Posição vertical final |
|
| 3065 | */ |
|
| 3066 | protected function zCanhoto($x = 0, $y = 0) |
|
| 3067 | { |
|
| 3068 | $this->zhDashedLine($x, $y+2, $this->wPrint, 0.1, 80); |
|
| 3069 | $y = $y + 2; |
|
| 3070 | $oldX = $x; |
|
| 3071 | $oldY = $y; |
|
| 3072 | if ($this->orientacao == 'P') { |
|
| 3073 | $maxW = $this->wPrint; |
|
| 3074 | } else { |
|
| 3075 | $maxW = $this->wPrint - $this->wCanhoto; |
|
| 3076 | } |
|
| 3077 | $w = $maxW - 1; |
|
| 3078 | $h = 20; |
|
| 3079 | $y = $y + 1; |
|
| 3080 | $texto = 'DECLARO QUE RECEBI OS VOLUMES DESTE CONHECIMENTO EM PERFEITO ESTADO '; |
|
| 3081 | $texto .= 'PELO QUE DOU POR CUMPRIDO O PRESENTE CONTRATO DE TRANSPORTE'; |
|
| 3082 | $aFont = $this->formatPadrao; |
|
| 3083 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 3084 | $y += 3.4; |
|
| 3085 | $this->pdf->Line($x, $y, $w + 1, $y); // LINHA ABAICO DO TEXTO DECLARO QUE RECEBI... |
|
| 3086 | ||
| 3087 | $texto = 'NOME'; |
|
| 3088 | $aFont = array( |
|
| 3089 | 'font' => $this->fontePadrao, |
|
| 3090 | 'size' => 6, |
|
| 3091 | 'style' => ''); |
|
| 3092 | $this->pTextBox($x, $y, $w * 0.25, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3093 | $x += $w * 0.25; |
|
| 3094 | ||
| 3095 | $this->pdf->Line($x, $y, $x, $y + 16.5); |
|
| 3096 | ||
| 3097 | $texto = 'ASSINATURA / CARIMBO'; |
|
| 3098 | $aFont = array( |
|
| 3099 | 'font' => $this->fontePadrao, |
|
| 3100 | 'size' => 6, |
|
| 3101 | 'style' => ''); |
|
| 3102 | $this->pTextBox($x, $y, $w * 0.25, $h - 3.4, $texto, $aFont, 'B', 'C', 0, ''); |
|
| 3103 | $x += $w * 0.25; |
|
| 3104 | ||
| 3105 | $this->pdf->Line($x, $y, $x, $y + 16.5); |
|
| 3106 | ||
| 3107 | $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n"; |
|
| 3108 | $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA'; |
|
| 3109 | $aFont = array( |
|
| 3110 | 'font' => $this->fontePadrao, |
|
| 3111 | 'size' => 6, |
|
| 3112 | 'style' => ''); |
|
| 3113 | $this->pTextBox($x + 10, $y, $w * 0.25, $h - 3.4, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 3114 | $x = $oldX; |
|
| 3115 | $y = $y + 5; |
|
| 3116 | ||
| 3117 | $this->pdf->Line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
|
| 3118 | ||
| 3119 | $texto = 'RG'; |
|
| 3120 | $aFont = array( |
|
| 3121 | 'font' => $this->fontePadrao, |
|
| 3122 | 'size' => 6, |
|
| 3123 | 'style' => ''); |
|
| 3124 | $this->pTextBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3125 | $x += $w * 0.85; |
|
| 3126 | ||
| 3127 | $this->pdf->Line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E |
|
| 3128 | ||
| 3129 | $texto = "CT-E"; |
|
| 3130 | $aFont = $this->formatNegrito; |
|
| 3131 | $this->pTextBox($x, $y - 5, $w * 0.15, $h, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 3132 | $texto = "\r\n Nº. DOCUMENTO " . $this->pSimpleGetValue($this->ide, "nCT") . " \n"; |
|
| 3133 | $texto .= "\r\n SÉRIE " . $this->pSimpleGetValue($this->ide, "serie"); |
|
| 3134 | $aFont = array( |
|
| 3135 | 'font' => $this->fontePadrao, |
|
| 3136 | 'size' => 6, |
|
| 3137 | 'style' => ''); |
|
| 3138 | $this->pTextBox($x, $y - 8, $w * 0.15, $h, $texto, $aFont, 'C', 'C', 0, ''); |
|
| 3139 | $x = $oldX; |
|
| 3140 | //$this->zhDashedLine($x, $y + 7.5, $this->wPrint, 0.1, 80); |
|
| 3141 | } //fim da função canhotoDACTE |
|
| 3142 | ||
| 3143 | /** |
|
| 3144 | * zDadosAdic |
|