Exemple #1
0
void DVZ_DOVIZLER_BATCH::SETUP_FORM()
{
    m_ui->reklamViewer->SHOW_REKLAM( "DVZ-DOVIZLER" );

    m_last_created_frame = NULL;
    m_main_layout        = NULL;

    SET_NAME_OF_RUN_BATCH_BUTTON    ( tr ( "Güncelle" ) );

    REGISTER_BUTTON_WIDGET          ( m_ui->widget_batch_buttons );

    SET_PAGE_TITLE                  ( tr ( "DVZ - DÖVİZLER" ) );
    SET_SETTING_NAME                ( "DOVIZ_ANA_MENU" );
    SET_HELP_PAGE                   ( "doviz-islemleri_doviz-kurlari" );

    SET_AUTO_EXIT_BATCH ( true );

    SET_FIRST_FOCUS_WIDGET( m_ui->adakDate_kur_tarihi );

    SQL_QUERY sql_query ( DB );

    DVZ_DOVIZLERI_GUNCELLE ();

    DB->START_TRANSACTION();

    sql_query.PREPARE_INSERT("dvz_degiskenler" , "degisken_id" , "son_guncellestirilme_tarihi");

    sql_query.SET_VALUE      ( ":son_guncellestirilme_tarihi",QDate::currentDate().toString ( "yyyy.MM.dd" ) );
    sql_query.INSERT();
    DB->COMMIT_TRANSACTION();

    setFont ( QFont ( "Monospace" ) );

    sql_query.PREPARE_SELECT ( "dvz_degiskenler", "kullanilan_xml_adresi" );
    if ( sql_query.SELECT() NE 0 ) {
        sql_query.NEXT();
        m_ui->comboBox->setCurrentIndex ( sql_query.VALUE(0).toInt() );
    }

    m_ui->adakDate_kur_tarihi->SET_DATE( QDate::currentDate() ) ;

    m_main_layout = new QHBoxLayout;
    m_ui->widget_dovizler->setLayout ( m_main_layout );

    CREATE_SCREEN();
}
bool DVZ_DOVIZLER_BATCH::DOVIZLERI_TARIHE_GORE_GOSTER ()
{
    CREATE_SCREEN();
    return true;
}