/** @param cad1 Left aligned text. @param cad2 Right aligned text. @param x x coordinate of center. @param y y coordinate of center. */ void BcPsGenerateModel::escrizqder ( QString cad1, QString cad2, int x, int y ) { BL_FUNC_DEBUG escrizq ( cad1, x, y ); escrder ( cad2, x, y ); }
/** \param valor \param x \param y **/ void BcPsGenerateModel::escrder ( float valor, int x, int y ) { BL_FUNC_DEBUG QString tempstr; tempstr.sprintf ( "%g", valor ); escrder ( tempstr, x, y ); }
/** @param cad1 Left aligned text. @param cad2 Right aligned text. @param x x coordinate of center. @param y y coordinate of center. */ void BcPsGenerateModel::escrizqder ( float valor, int x, int y ) { BL_FUNC_DEBUG QString cad1, cad2; formatdigits ( &cad1, &cad2, valor ); // cout << "Si le digo" << valor << " me sale:\n"; // cout << "OJO!!!:"<< cad1.toLatin1().constData() << " ," << cad2.toLatin1().constData() <<"\n"; escrizq ( cad1, x, y ); escrder ( cad2, x, y ); }
void BcModelo300Imprimir2PS::rellena_identificacion() { BL_FUNC_DEBUG QString cad1; BlPostgreSqlClient *m = new BlPostgreSqlClient(); m->inicializa ( "bulmages" ); ///[TODO] CAMBIAR!!!! escrder ( m->propiedadempresa ( "CIF" ), 78, 601 ); escrder ( m->propiedadempresa ( "NombreEmpresa" ), 213, 601 ); escrder ( m->propiedadempresa ( "TipoVia" ), 78, 576 ); escrder ( m->propiedadempresa ( "NombreVia" ), 141, 576 ); escrder ( m->propiedadempresa ( "NumeroVia" ), 389, 576 ); escrder ( m->propiedadempresa ( "Escalera" ), 431, 576 ); escrder ( m->propiedadempresa ( "Piso" ), 461, 576 ); escrder ( m->propiedadempresa ( "Puerta" ), 490, 576 ); ///\bug Por ahora, el número de teléfono no cabe!! escrder ( m->propiedadempresa ( "Municipio" ), 78, 550 ); escrder ( m->propiedadempresa ( "Provincia" ), 360, 550 ); escribe_codigo_postal ( m->propiedadempresa ( "CodPostal" ) ); delete m; cad1.sprintf ( "%d", trimestre->currentIndex() + 1 ); /// Si elegido item 0 ---> cad1="1", etc. marca_casilla ( cad1, 452, 690 ); marca_casilla ( "T", 467, 690 ); escrder ( empresa, 209, 601 ); for ( int i = 0; i < 4; i++ ) { marca_casilla ( QString ( ano[i] ), 453 + i * 14, 706 ); } // end for }