| @@ 3363-3435 (lines=73) @@ | ||
| 3360 | * @param number $h altura do campo |
|
| 3361 | * @return number Posição vertical final |
|
| 3362 | */ |
|
| 3363 | protected function zDadosAdic($x, $y, $pag, $h) |
|
| 3364 | { |
|
| 3365 | $oldX = $x; |
|
| 3366 | //########################################################################### |
|
| 3367 | //DADOS ADICIONAIS DACTE |
|
| 3368 | if ($this->orientacao == 'P') { |
|
| 3369 | $w = $this->wPrint; |
|
| 3370 | } else { |
|
| 3371 | $w = $this->wPrint - $this->wCanhoto; |
|
| 3372 | } |
|
| 3373 | //INFORMAÇÕES COMPLEMENTARES |
|
| 3374 | $texto = "USO EXCLUSIVO DO EMISSOR DO CT-E"; |
|
| 3375 | $y += 3; |
|
| 3376 | $w = $this->wAdic; |
|
| 3377 | $h = 8; //mudar |
|
| 3378 | $aFont = array( |
|
| 3379 | 'font' => $this->fontePadrao, |
|
| 3380 | 'size' => 6, |
|
| 3381 | 'style' => ''); |
|
| 3382 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 3383 | //$this->pdf->Line($x, $y + 3, $w * 1.385, $y + 3); |
|
| 3384 | $this->pdf->Line($x, $y + 3, $w * 1.385, $y + 3); |
|
| 3385 | //o texto com os dados adicionais foi obtido na função xxxxxx |
|
| 3386 | //e carregado em uma propriedade privada da classe |
|
| 3387 | //$this->wAdic com a largura do campo |
|
| 3388 | //$this->textoAdic com o texto completo do campo |
|
| 3389 | $y += 1; |
|
| 3390 | $aFont = $this->formatPadrao; |
|
| 3391 | $this->pTextBox($x, $y + 3, $w - 2, $h - 3, $this->textoAdic, $aFont, 'T', 'L', 0, '', false); |
|
| 3392 | //RESERVADO AO FISCO |
|
| 3393 | $texto = "RESERVADO AO FISCO"; |
|
| 3394 | $x += $w; |
|
| 3395 | $y -= 1; |
|
| 3396 | if ($this->orientacao == 'P') { |
|
| 3397 | $w = $this->wPrint - $w; |
|
| 3398 | } else { |
|
| 3399 | $w = $this->wPrint - $w - $this->wCanhoto; |
|
| 3400 | } |
|
| 3401 | $aFont = array( |
|
| 3402 | 'font' => $this->fontePadrao, |
|
| 3403 | 'size' => 6, |
|
| 3404 | 'style' => ''); |
|
| 3405 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 3406 | //inserir texto informando caso de contingência |
|
| 3407 | //1 – Normal – emissão normal; |
|
| 3408 | //2 – Contingência FS – emissão em contingência com impressão do DACTE em Formulário de Segurança; |
|
| 3409 | //3 – Contingência SCAN – emissão em contingência – SCAN; |
|
| 3410 | //4 – Contingência DPEC - emissão em contingência com envio da Declaração Prévia de |
|
| 3411 | //Emissão em Contingência – DPEC; |
|
| 3412 | //5 – Contingência FS-DA - emissão em contingência com impressão do DACTE em Formulário de |
|
| 3413 | //Segurança para Impressão de Documento Auxiliar de Documento Fiscal Eletrônico (FS-DA). |
|
| 3414 | $xJust = $this->pSimpleGetValue($this->ide, 'xJust', 'Justificativa: '); |
|
| 3415 | $dhCont = $this->pSimpleGetValue($this->ide, 'dhCont', ' Entrada em contingência : '); |
|
| 3416 | $texto = ''; |
|
| 3417 | switch ($this->tpEmis) { |
|
| 3418 | case 2: |
|
| 3419 | $texto = 'CONTINGÊNCIA FS' . $dhCont . $xJust; |
|
| 3420 | break; |
|
| 3421 | case 3: |
|
| 3422 | $texto = 'CONTINGÊNCIA SCAN' . $dhCont . $xJust; |
|
| 3423 | break; |
|
| 3424 | case 4: |
|
| 3425 | $texto = 'CONTINGÊNCIA DPEC' . $dhCont . $xJust; |
|
| 3426 | break; |
|
| 3427 | case 5: |
|
| 3428 | $texto = 'CONTINGÊNCIA FSDA' . $dhCont . $xJust; |
|
| 3429 | break; |
|
| 3430 | } |
|
| 3431 | $y += 2; |
|
| 3432 | $aFont = $this->formatPadrao; |
|
| 3433 | $this->pTextBox($x, $y + 2, $w - 2, $h - 3, $texto, $aFont, 'T', 'L', 0, '', false); |
|
| 3434 | return $y + $h; |
|
| 3435 | } //fim zDadosAdic |
|
| 3436 | ||
| 3437 | /** |
|
| 3438 | * zhDashedLine |
|
| @@ 3152-3224 (lines=73) @@ | ||
| 3149 | * @param number $h altura do campo |
|
| 3150 | * @return number Posição vertical final |
|
| 3151 | */ |
|
| 3152 | protected function zDadosAdic($x, $y, $pag, $h) |
|
| 3153 | { |
|
| 3154 | $oldX = $x; |
|
| 3155 | //########################################################################### |
|
| 3156 | //DADOS ADICIONAIS DACTE |
|
| 3157 | if ($this->orientacao == 'P') { |
|
| 3158 | $w = $this->wPrint; |
|
| 3159 | } else { |
|
| 3160 | $w = $this->wPrint - $this->wCanhoto; |
|
| 3161 | } |
|
| 3162 | //INFORMAÇÕES COMPLEMENTARES |
|
| 3163 | $texto = "USO EXCLUSIVO DO EMISSOR DO CT-E"; |
|
| 3164 | $y += 3; |
|
| 3165 | $w = $this->wAdic; |
|
| 3166 | $h = 8; //mudar |
|
| 3167 | $aFont = array( |
|
| 3168 | 'font' => $this->fontePadrao, |
|
| 3169 | 'size' => 6, |
|
| 3170 | 'style' => ''); |
|
| 3171 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 3172 | //$this->pdf->Line($x, $y + 3, $w * 1.385, $y + 3); |
|
| 3173 | $this->pdf->Line($x, $y + 3, $w * 1.385, $y + 3); |
|
| 3174 | //o texto com os dados adicionais foi obtido na função xxxxxx |
|
| 3175 | //e carregado em uma propriedade privada da classe |
|
| 3176 | //$this->wAdic com a largura do campo |
|
| 3177 | //$this->textoAdic com o texto completo do campo |
|
| 3178 | $y += 1; |
|
| 3179 | $aFont = $this->formatPadrao; |
|
| 3180 | $this->pTextBox($x, $y + 3, $w - 2, $h - 3, $this->textoAdic, $aFont, 'T', 'L', 0, '', false); |
|
| 3181 | //RESERVADO AO FISCO |
|
| 3182 | $texto = "RESERVADO AO FISCO"; |
|
| 3183 | $x += $w; |
|
| 3184 | $y -= 1; |
|
| 3185 | if ($this->orientacao == 'P') { |
|
| 3186 | $w = $this->wPrint - $w; |
|
| 3187 | } else { |
|
| 3188 | $w = $this->wPrint - $w - $this->wCanhoto; |
|
| 3189 | } |
|
| 3190 | $aFont = array( |
|
| 3191 | 'font' => $this->fontePadrao, |
|
| 3192 | 'size' => 6, |
|
| 3193 | 'style' => ''); |
|
| 3194 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 3195 | //inserir texto informando caso de contingência |
|
| 3196 | //1 – Normal – emissão normal; |
|
| 3197 | //2 – Contingência FS – emissão em contingência com impressão do DACTE em Formulário de Segurança; |
|
| 3198 | //3 – Contingência SCAN – emissão em contingência – SCAN; |
|
| 3199 | //4 – Contingência DPEC - emissão em contingência com envio da Declaração Prévia de |
|
| 3200 | //Emissão em Contingência – DPEC; |
|
| 3201 | //5 – Contingência FS-DA - emissão em contingência com impressão do DACTE em Formulário de |
|
| 3202 | //Segurança para Impressão de Documento Auxiliar de Documento Fiscal Eletrônico (FS-DA). |
|
| 3203 | $xJust = $this->pSimpleGetValue($this->ide, 'xJust', 'Justificativa: '); |
|
| 3204 | $dhCont = $this->pSimpleGetValue($this->ide, 'dhCont', ' Entrada em contingência : '); |
|
| 3205 | $texto = ''; |
|
| 3206 | switch ($this->tpEmis) { |
|
| 3207 | case 2: |
|
| 3208 | $texto = 'CONTINGÊNCIA FS' . $dhCont . $xJust; |
|
| 3209 | break; |
|
| 3210 | case 3: |
|
| 3211 | $texto = 'CONTINGÊNCIA SCAN' . $dhCont . $xJust; |
|
| 3212 | break; |
|
| 3213 | case 4: |
|
| 3214 | $texto = 'CONTINGÊNCIA DPEC' . $dhCont . $xJust; |
|
| 3215 | break; |
|
| 3216 | case 5: |
|
| 3217 | $texto = 'CONTINGÊNCIA FSDA' . $dhCont . $xJust; |
|
| 3218 | break; |
|
| 3219 | } |
|
| 3220 | $y += 2; |
|
| 3221 | $aFont = $this->formatPadrao; |
|
| 3222 | $this->pTextBox($x, $y + 2, $w - 2, $h - 3, $texto, $aFont, 'T', 'L', 0, '', false); |
|
| 3223 | return $y + $h; |
|
| 3224 | } //fim zDadosAdic |
|
| 3225 | ||
| 3226 | /** |
|
| 3227 | * zhDashedLine |
|