| @@ 2999-3267 (lines=269) @@ | ||
| 2996 | * @param number $y Posição vertical canto superior |
|
| 2997 | * @return number Posição vertical final |
|
| 2998 | */ |
|
| 2999 | protected function zModalFerr($x = 0, $y = 0) |
|
| 3000 | { |
|
| 3001 | $oldX = $x; |
|
| 3002 | $oldY = $y; |
|
| 3003 | if ($this->orientacao == 'P') { |
|
| 3004 | $maxW = $this->wPrint; |
|
| 3005 | } else { |
|
| 3006 | $maxW = $this->wPrint - $this->wCanhoto; |
|
| 3007 | } |
|
| 3008 | $w = $maxW; |
|
| 3009 | $h = 19.6; |
|
| 3010 | $texto = 'DADOS ESPECÍFICOS DO MODAL FERROVIÁRIO'; |
|
| 3011 | $aFont = $this->formatPadrao; |
|
| 3012 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 3013 | $y += 3.4; |
|
| 3014 | $this->pdf->Line($x, $y, $w + 1, $y); |
|
| 3015 | $texto = 'DCL'; |
|
| 3016 | $aFont = array( |
|
| 3017 | 'font' => $this->fontePadrao, |
|
| 3018 | 'size' => 7, |
|
| 3019 | 'style' => 'B'); |
|
| 3020 | $this->pTextBox($x, $y, $w * 0.25, $h, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 3021 | $this->pdf->Line($x + 49.6, $y, $x + 49.6, $y + 3.5); |
|
| 3022 | $texto = 'VAGÕES'; |
|
| 3023 | $aFont = array( |
|
| 3024 | 'font' => $this->fontePadrao, |
|
| 3025 | 'size' => 7, |
|
| 3026 | 'style' => 'B'); |
|
| 3027 | $this->pTextBox($x + 50, $y, $w * 0.5, $h, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 3028 | $y += 3.4; |
|
| 3029 | $this->pdf->Line($x, $y, $w + 1, $y); |
|
| 3030 | // DCL |
|
| 3031 | $texto = 'ID TREM'; |
|
| 3032 | $aFont = array( |
|
| 3033 | 'font' => $this->fontePadrao, |
|
| 3034 | 'size' => 6, |
|
| 3035 | 'style' => ''); |
|
| 3036 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3037 | $texto = $this->pSimpleGetValue($this->ferrov, "idTrem"); |
|
| 3038 | $aFont = array( |
|
| 3039 | 'font' => $this->fontePadrao, |
|
| 3040 | 'size' => 6, |
|
| 3041 | 'style' => 'B'); |
|
| 3042 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3043 | $x += $w * 0.06; |
|
| 3044 | $y1 = $y + 12.5; |
|
| 3045 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 3046 | $texto = 'NUM'; |
|
| 3047 | $aFont = array( |
|
| 3048 | 'font' => $this->fontePadrao, |
|
| 3049 | 'size' => 6, |
|
| 3050 | 'style' => ''); |
|
| 3051 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3052 | $texto = $this->pSimpleGetValue($this->rem, "nDoc"); |
|
| 3053 | $aFont = array( |
|
| 3054 | 'font' => $this->fontePadrao, |
|
| 3055 | 'size' => 6, |
|
| 3056 | 'style' => 'B'); |
|
| 3057 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3058 | $x += $w * 0.06; |
|
| 3059 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 3060 | $texto = 'SÉRIE'; |
|
| 3061 | $aFont = array( |
|
| 3062 | 'font' => $this->fontePadrao, |
|
| 3063 | 'size' => 6, |
|
| 3064 | 'style' => ''); |
|
| 3065 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3066 | $texto = $this->pSimpleGetValue($this->rem, "serie"); |
|
| 3067 | $aFont = array( |
|
| 3068 | 'font' => $this->fontePadrao, |
|
| 3069 | 'size' => 6, |
|
| 3070 | 'style' => 'B'); |
|
| 3071 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3072 | $x += $w * 0.06; |
|
| 3073 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 3074 | $texto = 'EMISSÃO'; |
|
| 3075 | $aFont = array( |
|
| 3076 | 'font' => $this->fontePadrao, |
|
| 3077 | 'size' => 6, |
|
| 3078 | 'style' => ''); |
|
| 3079 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3080 | $texto = $this->pYmd2dmy($this->pSimpleGetValue($this->rem, "dEmi")); |
|
| 3081 | $aFont = array( |
|
| 3082 | 'font' => $this->fontePadrao, |
|
| 3083 | 'size' => 6, |
|
| 3084 | 'style' => 'B'); |
|
| 3085 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3086 | // VAGOES |
|
| 3087 | $x += $w * 0.06; |
|
| 3088 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 3089 | $texto = 'NUM'; |
|
| 3090 | $aFont = array( |
|
| 3091 | 'font' => $this->fontePadrao, |
|
| 3092 | 'size' => 6, |
|
| 3093 | 'style' => ''); |
|
| 3094 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3095 | $texto = $this->pSimpleGetValue($this->ferrov, "nVag"); |
|
| 3096 | $aFont = array( |
|
| 3097 | 'font' => $this->fontePadrao, |
|
| 3098 | 'size' => 6, |
|
| 3099 | 'style' => 'B'); |
|
| 3100 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3101 | $x += $w * 0.06; |
|
| 3102 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 3103 | $texto = 'TIPO'; |
|
| 3104 | $aFont = array( |
|
| 3105 | 'font' => $this->fontePadrao, |
|
| 3106 | 'size' => 6, |
|
| 3107 | 'style' => ''); |
|
| 3108 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3109 | $texto = $this->pSimpleGetValue($this->ferrov, "tpVag"); |
|
| 3110 | $aFont = array( |
|
| 3111 | 'font' => $this->fontePadrao, |
|
| 3112 | 'size' => 6, |
|
| 3113 | 'style' => 'B'); |
|
| 3114 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3115 | $x += $w * 0.06; |
|
| 3116 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 3117 | $texto = 'CAPACIDADE'; |
|
| 3118 | $aFont = array( |
|
| 3119 | 'font' => $this->fontePadrao, |
|
| 3120 | 'size' => 6, |
|
| 3121 | 'style' => ''); |
|
| 3122 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3123 | $texto = $this->pSimpleGetValue($this->ferrov, "cap"); |
|
| 3124 | $aFont = array( |
|
| 3125 | 'font' => $this->fontePadrao, |
|
| 3126 | 'size' => 6, |
|
| 3127 | 'style' => 'B'); |
|
| 3128 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3129 | $x += $w * 0.08; |
|
| 3130 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 3131 | $texto = 'PESO REAL/TON'; |
|
| 3132 | $aFont = array( |
|
| 3133 | 'font' => $this->fontePadrao, |
|
| 3134 | 'size' => 6, |
|
| 3135 | 'style' => ''); |
|
| 3136 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3137 | $texto = $this->pSimpleGetValue($this->ferrov, "pesoR"); |
|
| 3138 | $aFont = array( |
|
| 3139 | 'font' => $this->fontePadrao, |
|
| 3140 | 'size' => 6, |
|
| 3141 | 'style' => 'B'); |
|
| 3142 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3143 | $x += $w * 0.09; |
|
| 3144 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 3145 | $texto = 'PESO BRUTO/TON'; |
|
| 3146 | $aFont = array( |
|
| 3147 | 'font' => $this->fontePadrao, |
|
| 3148 | 'size' => 6, |
|
| 3149 | 'style' => ''); |
|
| 3150 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3151 | $texto = $this->pSimpleGetValue($this->ferrov, "pesoBC"); |
|
| 3152 | $aFont = array( |
|
| 3153 | 'font' => $this->fontePadrao, |
|
| 3154 | 'size' => 6, |
|
| 3155 | 'style' => 'B'); |
|
| 3156 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3157 | $x += $w * 0.1; |
|
| 3158 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 3159 | $texto = 'IDENTIFICAÇÃO DOS CONTÊINERES'; |
|
| 3160 | $aFont = array( |
|
| 3161 | 'font' => $this->fontePadrao, |
|
| 3162 | 'size' => 6, |
|
| 3163 | 'style' => ''); |
|
| 3164 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3165 | $texto = $this->pSimpleGetValue($this->ferrov, "nCont"); |
|
| 3166 | $aFont = array( |
|
| 3167 | 'font' => $this->fontePadrao, |
|
| 3168 | 'size' => 6, |
|
| 3169 | 'style' => 'B'); |
|
| 3170 | $this->pTextBox($x, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3171 | // FLUXO |
|
| 3172 | $x = 1; |
|
| 3173 | $y += 12.9; |
|
| 3174 | $h1 = $h * 0.5 + 0.27; |
|
| 3175 | $wa = round($w * 0.103) + 0.5; |
|
| 3176 | $texto = 'FLUXO FERROVIARIO'; |
|
| 3177 | $aFont = $this->formatPadrao; |
|
| 3178 | $this->pTextBox($x, $y, $wa, $h1, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 3179 | $texto = $this->pSimpleGetValue($this->ferrov, "fluxo"); |
|
| 3180 | $aFont = array( |
|
| 3181 | 'font' => $this->fontePadrao, |
|
| 3182 | 'size' => 7, |
|
| 3183 | 'style' => 'B'); |
|
| 3184 | $this->pTextBox($x, $y + 3, $wa, $h1, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 3185 | $y += 10; |
|
| 3186 | $texto = 'TIPO DE TRÁFEGO'; |
|
| 3187 | $aFont = $this->formatPadrao; |
|
| 3188 | $this->pTextBox($x, $y, $wa, $h1, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 3189 | $texto = $this->zConvertUnidTrafego($this->pSimpleGetValue($this->ferrov, "tpTraf")); |
|
| 3190 | $aFont = array( |
|
| 3191 | 'font' => $this->fontePadrao, |
|
| 3192 | 'size' => 7, |
|
| 3193 | 'style' => 'B'); |
|
| 3194 | $this->pTextBox($x, $y + 3, $wa, $h1, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 3195 | // Novo Box Relativo a Modal Ferroviário |
|
| 3196 | $x = 22.5; |
|
| 3197 | $y += -10.2; |
|
| 3198 | $texto = 'INFORMAÇÕES DAS FERROVIAS ENVOLVIDAS'; |
|
| 3199 | $aFont = $this->formatPadrao; |
|
| 3200 | $this->pTextBox($x, $y, $w - 21.5, $h1 * 2.019, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 3201 | $y += 3.4; |
|
| 3202 | $this->pdf->Line($x, $y, $w + 1, $y); |
|
| 3203 | $w = $w * 0.2; |
|
| 3204 | $h = $h * 1.04; |
|
| 3205 | $texto = 'CÓDIGO INTERNO'; |
|
| 3206 | $aFont = array( |
|
| 3207 | 'font' => $this->fontePadrao, |
|
| 3208 | 'size' => 6, |
|
| 3209 | 'style' => ''); |
|
| 3210 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3211 | $texto = $this->pSimpleGetValue($this->ferrov, "cInt"); |
|
| 3212 | $aFont = array( |
|
| 3213 | 'font' => $this->fontePadrao, |
|
| 3214 | 'size' => 6, |
|
| 3215 | 'style' => 'B'); |
|
| 3216 | $this->pTextBox($x, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3217 | $texto = 'CNPJ'; |
|
| 3218 | $aFont = array( |
|
| 3219 | 'font' => $this->fontePadrao, |
|
| 3220 | 'size' => 6, |
|
| 3221 | 'style' => ''); |
|
| 3222 | $this->pTextBox($x, $y + 6, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3223 | $texto = $this->pSimpleGetValue($this->ferrov, "CNPJ"); |
|
| 3224 | $aFont = array( |
|
| 3225 | 'font' => $this->fontePadrao, |
|
| 3226 | 'size' => 6, |
|
| 3227 | 'style' => 'B'); |
|
| 3228 | $this->pTextBox($x, $y + 9, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3229 | $x += 50; |
|
| 3230 | $texto = 'NOME'; |
|
| 3231 | $aFont = array( |
|
| 3232 | 'font' => $this->fontePadrao, |
|
| 3233 | 'size' => 6, |
|
| 3234 | 'style' => ''); |
|
| 3235 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3236 | $texto = $this->pSimpleGetValue($this->ferrov, "xNome"); |
|
| 3237 | $aFont = array( |
|
| 3238 | 'font' => $this->fontePadrao, |
|
| 3239 | 'size' => 6, |
|
| 3240 | 'style' => 'B'); |
|
| 3241 | $this->pTextBox($x, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3242 | $texto = 'INSCRICAO ESTADUAL'; |
|
| 3243 | $aFont = array( |
|
| 3244 | 'font' => $this->fontePadrao, |
|
| 3245 | 'size' => 6, |
|
| 3246 | 'style' => ''); |
|
| 3247 | $this->pTextBox($x, $y + 6, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3248 | $texto = $this->pSimpleGetValue($this->ferrov, "IE"); |
|
| 3249 | $aFont = array( |
|
| 3250 | 'font' => $this->fontePadrao, |
|
| 3251 | 'size' => 6, |
|
| 3252 | 'style' => 'B'); |
|
| 3253 | $this->pTextBox($x, $y + 9, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3254 | $x += 50; |
|
| 3255 | $texto = 'PARTICIPAÇÃO OUTRA FERROVIA'; |
|
| 3256 | $aFont = array( |
|
| 3257 | 'font' => $this->fontePadrao, |
|
| 3258 | 'size' => 6, |
|
| 3259 | 'style' => ''); |
|
| 3260 | $this->pTextBox($x, $y + 6, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3261 | $texto = ''; |
|
| 3262 | $aFont = array( |
|
| 3263 | 'font' => $this->fontePadrao, |
|
| 3264 | 'size' => 6, |
|
| 3265 | 'style' => 'B'); |
|
| 3266 | $this->pTextBox($x, $y + 9, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3267 | } //fim da função zModalFerr |
|
| 3268 | ||
| 3269 | /** |
|
| 3270 | * zCanhoto |
|
| @@ 2788-3056 (lines=269) @@ | ||
| 2785 | * @param number $y Posição vertical canto superior |
|
| 2786 | * @return number Posição vertical final |
|
| 2787 | */ |
|
| 2788 | protected function zModalFerr($x = 0, $y = 0) |
|
| 2789 | { |
|
| 2790 | $oldX = $x; |
|
| 2791 | $oldY = $y; |
|
| 2792 | if ($this->orientacao == 'P') { |
|
| 2793 | $maxW = $this->wPrint; |
|
| 2794 | } else { |
|
| 2795 | $maxW = $this->wPrint - $this->wCanhoto; |
|
| 2796 | } |
|
| 2797 | $w = $maxW; |
|
| 2798 | $h = 19.6; |
|
| 2799 | $texto = 'DADOS ESPECÍFICOS DO MODAL FERROVIÁRIO'; |
|
| 2800 | $aFont = $this->formatPadrao; |
|
| 2801 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 2802 | $y += 3.4; |
|
| 2803 | $this->pdf->Line($x, $y, $w + 1, $y); |
|
| 2804 | $texto = 'DCL'; |
|
| 2805 | $aFont = array( |
|
| 2806 | 'font' => $this->fontePadrao, |
|
| 2807 | 'size' => 7, |
|
| 2808 | 'style' => 'B'); |
|
| 2809 | $this->pTextBox($x, $y, $w * 0.25, $h, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 2810 | $this->pdf->Line($x + 49.6, $y, $x + 49.6, $y + 3.5); |
|
| 2811 | $texto = 'VAGÕES'; |
|
| 2812 | $aFont = array( |
|
| 2813 | 'font' => $this->fontePadrao, |
|
| 2814 | 'size' => 7, |
|
| 2815 | 'style' => 'B'); |
|
| 2816 | $this->pTextBox($x + 50, $y, $w * 0.5, $h, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 2817 | $y += 3.4; |
|
| 2818 | $this->pdf->Line($x, $y, $w + 1, $y); |
|
| 2819 | // DCL |
|
| 2820 | $texto = 'ID TREM'; |
|
| 2821 | $aFont = array( |
|
| 2822 | 'font' => $this->fontePadrao, |
|
| 2823 | 'size' => 6, |
|
| 2824 | 'style' => ''); |
|
| 2825 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2826 | $texto = $this->pSimpleGetValue($this->ferrov, "idTrem"); |
|
| 2827 | $aFont = array( |
|
| 2828 | 'font' => $this->fontePadrao, |
|
| 2829 | 'size' => 6, |
|
| 2830 | 'style' => 'B'); |
|
| 2831 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2832 | $x += $w * 0.06; |
|
| 2833 | $y1 = $y + 12.5; |
|
| 2834 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 2835 | $texto = 'NUM'; |
|
| 2836 | $aFont = array( |
|
| 2837 | 'font' => $this->fontePadrao, |
|
| 2838 | 'size' => 6, |
|
| 2839 | 'style' => ''); |
|
| 2840 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2841 | $texto = $this->pSimpleGetValue($this->rem, "nDoc"); |
|
| 2842 | $aFont = array( |
|
| 2843 | 'font' => $this->fontePadrao, |
|
| 2844 | 'size' => 6, |
|
| 2845 | 'style' => 'B'); |
|
| 2846 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2847 | $x += $w * 0.06; |
|
| 2848 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 2849 | $texto = 'SÉRIE'; |
|
| 2850 | $aFont = array( |
|
| 2851 | 'font' => $this->fontePadrao, |
|
| 2852 | 'size' => 6, |
|
| 2853 | 'style' => ''); |
|
| 2854 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2855 | $texto = $this->pSimpleGetValue($this->rem, "serie"); |
|
| 2856 | $aFont = array( |
|
| 2857 | 'font' => $this->fontePadrao, |
|
| 2858 | 'size' => 6, |
|
| 2859 | 'style' => 'B'); |
|
| 2860 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2861 | $x += $w * 0.06; |
|
| 2862 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 2863 | $texto = 'EMISSÃO'; |
|
| 2864 | $aFont = array( |
|
| 2865 | 'font' => $this->fontePadrao, |
|
| 2866 | 'size' => 6, |
|
| 2867 | 'style' => ''); |
|
| 2868 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2869 | $texto = $this->pYmd2dmy($this->pSimpleGetValue($this->rem, "dEmi")); |
|
| 2870 | $aFont = array( |
|
| 2871 | 'font' => $this->fontePadrao, |
|
| 2872 | 'size' => 6, |
|
| 2873 | 'style' => 'B'); |
|
| 2874 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2875 | // VAGOES |
|
| 2876 | $x += $w * 0.06; |
|
| 2877 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 2878 | $texto = 'NUM'; |
|
| 2879 | $aFont = array( |
|
| 2880 | 'font' => $this->fontePadrao, |
|
| 2881 | 'size' => 6, |
|
| 2882 | 'style' => ''); |
|
| 2883 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2884 | $texto = $this->pSimpleGetValue($this->ferrov, "nVag"); |
|
| 2885 | $aFont = array( |
|
| 2886 | 'font' => $this->fontePadrao, |
|
| 2887 | 'size' => 6, |
|
| 2888 | 'style' => 'B'); |
|
| 2889 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2890 | $x += $w * 0.06; |
|
| 2891 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 2892 | $texto = 'TIPO'; |
|
| 2893 | $aFont = array( |
|
| 2894 | 'font' => $this->fontePadrao, |
|
| 2895 | 'size' => 6, |
|
| 2896 | 'style' => ''); |
|
| 2897 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2898 | $texto = $this->pSimpleGetValue($this->ferrov, "tpVag"); |
|
| 2899 | $aFont = array( |
|
| 2900 | 'font' => $this->fontePadrao, |
|
| 2901 | 'size' => 6, |
|
| 2902 | 'style' => 'B'); |
|
| 2903 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2904 | $x += $w * 0.06; |
|
| 2905 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 2906 | $texto = 'CAPACIDADE'; |
|
| 2907 | $aFont = array( |
|
| 2908 | 'font' => $this->fontePadrao, |
|
| 2909 | 'size' => 6, |
|
| 2910 | 'style' => ''); |
|
| 2911 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2912 | $texto = $this->pSimpleGetValue($this->ferrov, "cap"); |
|
| 2913 | $aFont = array( |
|
| 2914 | 'font' => $this->fontePadrao, |
|
| 2915 | 'size' => 6, |
|
| 2916 | 'style' => 'B'); |
|
| 2917 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2918 | $x += $w * 0.08; |
|
| 2919 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 2920 | $texto = 'PESO REAL/TON'; |
|
| 2921 | $aFont = array( |
|
| 2922 | 'font' => $this->fontePadrao, |
|
| 2923 | 'size' => 6, |
|
| 2924 | 'style' => ''); |
|
| 2925 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2926 | $texto = $this->pSimpleGetValue($this->ferrov, "pesoR"); |
|
| 2927 | $aFont = array( |
|
| 2928 | 'font' => $this->fontePadrao, |
|
| 2929 | 'size' => 6, |
|
| 2930 | 'style' => 'B'); |
|
| 2931 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2932 | $x += $w * 0.09; |
|
| 2933 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 2934 | $texto = 'PESO BRUTO/TON'; |
|
| 2935 | $aFont = array( |
|
| 2936 | 'font' => $this->fontePadrao, |
|
| 2937 | 'size' => 6, |
|
| 2938 | 'style' => ''); |
|
| 2939 | $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2940 | $texto = $this->pSimpleGetValue($this->ferrov, "pesoBC"); |
|
| 2941 | $aFont = array( |
|
| 2942 | 'font' => $this->fontePadrao, |
|
| 2943 | 'size' => 6, |
|
| 2944 | 'style' => 'B'); |
|
| 2945 | $this->pTextBox($x, $y + 3, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2946 | $x += $w * 0.1; |
|
| 2947 | $this->pdf->Line($x, $y, $x, $y1); |
|
| 2948 | $texto = 'IDENTIFICAÇÃO DOS CONTÊINERES'; |
|
| 2949 | $aFont = array( |
|
| 2950 | 'font' => $this->fontePadrao, |
|
| 2951 | 'size' => 6, |
|
| 2952 | 'style' => ''); |
|
| 2953 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2954 | $texto = $this->pSimpleGetValue($this->ferrov, "nCont"); |
|
| 2955 | $aFont = array( |
|
| 2956 | 'font' => $this->fontePadrao, |
|
| 2957 | 'size' => 6, |
|
| 2958 | 'style' => 'B'); |
|
| 2959 | $this->pTextBox($x, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2960 | // FLUXO |
|
| 2961 | $x = 1; |
|
| 2962 | $y += 12.9; |
|
| 2963 | $h1 = $h * 0.5 + 0.27; |
|
| 2964 | $wa = round($w * 0.103) + 0.5; |
|
| 2965 | $texto = 'FLUXO FERROVIARIO'; |
|
| 2966 | $aFont = $this->formatPadrao; |
|
| 2967 | $this->pTextBox($x, $y, $wa, $h1, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 2968 | $texto = $this->pSimpleGetValue($this->ferrov, "fluxo"); |
|
| 2969 | $aFont = array( |
|
| 2970 | 'font' => $this->fontePadrao, |
|
| 2971 | 'size' => 7, |
|
| 2972 | 'style' => 'B'); |
|
| 2973 | $this->pTextBox($x, $y + 3, $wa, $h1, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 2974 | $y += 10; |
|
| 2975 | $texto = 'TIPO DE TRÁFEGO'; |
|
| 2976 | $aFont = $this->formatPadrao; |
|
| 2977 | $this->pTextBox($x, $y, $wa, $h1, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 2978 | $texto = $this->zConvertUnidTrafego($this->pSimpleGetValue($this->ferrov, "tpTraf")); |
|
| 2979 | $aFont = array( |
|
| 2980 | 'font' => $this->fontePadrao, |
|
| 2981 | 'size' => 7, |
|
| 2982 | 'style' => 'B'); |
|
| 2983 | $this->pTextBox($x, $y + 3, $wa, $h1, $texto, $aFont, 'T', 'C', 0, ''); |
|
| 2984 | // Novo Box Relativo a Modal Ferroviário |
|
| 2985 | $x = 22.5; |
|
| 2986 | $y += -10.2; |
|
| 2987 | $texto = 'INFORMAÇÕES DAS FERROVIAS ENVOLVIDAS'; |
|
| 2988 | $aFont = $this->formatPadrao; |
|
| 2989 | $this->pTextBox($x, $y, $w - 21.5, $h1 * 2.019, $texto, $aFont, 'T', 'C', 1, ''); |
|
| 2990 | $y += 3.4; |
|
| 2991 | $this->pdf->Line($x, $y, $w + 1, $y); |
|
| 2992 | $w = $w * 0.2; |
|
| 2993 | $h = $h * 1.04; |
|
| 2994 | $texto = 'CÓDIGO INTERNO'; |
|
| 2995 | $aFont = array( |
|
| 2996 | 'font' => $this->fontePadrao, |
|
| 2997 | 'size' => 6, |
|
| 2998 | 'style' => ''); |
|
| 2999 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3000 | $texto = $this->pSimpleGetValue($this->ferrov, "cInt"); |
|
| 3001 | $aFont = array( |
|
| 3002 | 'font' => $this->fontePadrao, |
|
| 3003 | 'size' => 6, |
|
| 3004 | 'style' => 'B'); |
|
| 3005 | $this->pTextBox($x, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3006 | $texto = 'CNPJ'; |
|
| 3007 | $aFont = array( |
|
| 3008 | 'font' => $this->fontePadrao, |
|
| 3009 | 'size' => 6, |
|
| 3010 | 'style' => ''); |
|
| 3011 | $this->pTextBox($x, $y + 6, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3012 | $texto = $this->pSimpleGetValue($this->ferrov, "CNPJ"); |
|
| 3013 | $aFont = array( |
|
| 3014 | 'font' => $this->fontePadrao, |
|
| 3015 | 'size' => 6, |
|
| 3016 | 'style' => 'B'); |
|
| 3017 | $this->pTextBox($x, $y + 9, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3018 | $x += 50; |
|
| 3019 | $texto = 'NOME'; |
|
| 3020 | $aFont = array( |
|
| 3021 | 'font' => $this->fontePadrao, |
|
| 3022 | 'size' => 6, |
|
| 3023 | 'style' => ''); |
|
| 3024 | $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3025 | $texto = $this->pSimpleGetValue($this->ferrov, "xNome"); |
|
| 3026 | $aFont = array( |
|
| 3027 | 'font' => $this->fontePadrao, |
|
| 3028 | 'size' => 6, |
|
| 3029 | 'style' => 'B'); |
|
| 3030 | $this->pTextBox($x, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3031 | $texto = 'INSCRICAO ESTADUAL'; |
|
| 3032 | $aFont = array( |
|
| 3033 | 'font' => $this->fontePadrao, |
|
| 3034 | 'size' => 6, |
|
| 3035 | 'style' => ''); |
|
| 3036 | $this->pTextBox($x, $y + 6, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3037 | $texto = $this->pSimpleGetValue($this->ferrov, "IE"); |
|
| 3038 | $aFont = array( |
|
| 3039 | 'font' => $this->fontePadrao, |
|
| 3040 | 'size' => 6, |
|
| 3041 | 'style' => 'B'); |
|
| 3042 | $this->pTextBox($x, $y + 9, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3043 | $x += 50; |
|
| 3044 | $texto = 'PARTICIPAÇÃO OUTRA FERROVIA'; |
|
| 3045 | $aFont = array( |
|
| 3046 | 'font' => $this->fontePadrao, |
|
| 3047 | 'size' => 6, |
|
| 3048 | 'style' => ''); |
|
| 3049 | $this->pTextBox($x, $y + 6, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3050 | $texto = ''; |
|
| 3051 | $aFont = array( |
|
| 3052 | 'font' => $this->fontePadrao, |
|
| 3053 | 'size' => 6, |
|
| 3054 | 'style' => 'B'); |
|
| 3055 | $this->pTextBox($x, $y + 9, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 3056 | } //fim da função zModalFerr |
|
| 3057 | ||
| 3058 | /** |
|
| 3059 | * zCanhoto |
|