Ejemplo n.º 1
0
void MUH_HESAP_EKLEME_FISI::SETUP_FORM()
{
    SET_HELP_PAGE ( tr("hesap-plani") );
    SET_PAGE_TITLE( tr( "MUH - ALT HESAP EKLEME" ) );

    m_num_of_columns    = 10;

    REGISTER_TABLE_WIDGET   ( m_ui->tablewidget_alt_hesaplar, m_num_of_columns );
    REGISTER_BUTTONS_WIDGET ( m_ui->navigation_button_widget );

    SET_FIRST_FOCUS_WIDGET( m_ui->line_edit_hesap_kodu );

    m_muh_hesap_plani->m_record_updated = false;
    m_muh_hesap_plani->m_line_added     = false;
    m_muh_hesap_plani->m_line_updated   = false;

    m_ui->lineEdit_hesap_ismi->setMaxLength(60);
    m_ui->line_edit_hesap_kodu->setMaxLength(30);

    SET_ROW_ID_COLUMN_POSITION  ( ROW_ID_COLUMN );
    SET_FORM_ID_COLUMN_POSITION ( ANA_HESAP_ID_COLUMN );
    SET_FIS_ORDER_COLUMN_NUMBER ( ORDER_COLUMN );
    SET_NUMBER_OF_HIDDEN_COLUMN ( 4 );

    m_ana_hesap_aktarilmalimi = false;

    SET_TABLE_ROW_WIDGETS ( ANA_HESAP_KODU_COLUMN,      WIDGET_LINE_EDIT    );
    SET_TABLE_ROW_WIDGETS ( HESAP_KODU_COLUMN,          WIDGET_LINE_EDIT    );
    SET_TABLE_ROW_WIDGETS ( TAM_HESAP_KODU_COLUMN,      WIDGET_LINE_EDIT    );
    SET_TABLE_ROW_WIDGETS ( HESAP_ISMI_COLUMN,          WIDGET_LINE_EDIT    );
    SET_TABLE_ROW_WIDGETS ( HESAP_GRUPLAR ,             WIDGET_LINE_EDIT    );
    SET_TABLE_ROW_WIDGETS ( HESAP_GRUP_SECIMI_COLUMN,   WIDGET_PUSH_BUTTON  );

    SET_LINE_BUTTON_ICON ( QStringList() << "" << "" );

    m_ui->tablewidget_alt_hesaplar->setHorizontalHeaderLabels ( QStringList()<< "row_id" << "hesap_id" << "satir_order" << "grup_idleri"
                                                                            << tr ( "Ana Hesap Kodu" )
                                                                            << tr ( "Hesap Kodu" )
                                                                            << tr ( "Tam Hesap Kodu" )
                                                                            << tr ( "Hesap İsmi" )
                                                                            << tr ( "Hesabın Grupları" )
                                                                            << "" << "" << "" );

    m_ui->tablewidget_alt_hesaplar->setSelectionMode    ( QAbstractItemView::NoSelection );
    m_ui->tablewidget_alt_hesaplar->setFocus            ( Qt::OtherFocusReason );

    m_ui->tablewidget_alt_hesaplar->setColumnWidth      ( ANA_HESAP_KODU_COLUMN,     140 );
    m_ui->tablewidget_alt_hesaplar->setColumnWidth      ( HESAP_KODU_COLUMN,         130 );
    m_ui->tablewidget_alt_hesaplar->setColumnWidth      ( TAM_HESAP_KODU_COLUMN,     200 );
    m_ui->tablewidget_alt_hesaplar->setColumnWidth      ( HESAP_ISMI_COLUMN,         200 );
    m_ui->tablewidget_alt_hesaplar->setColumnWidth      ( HESAP_GRUPLAR,             170 );
    m_ui->tablewidget_alt_hesaplar->setColumnWidth      ( HESAP_GRUP_SECIMI_COLUMN,  100 );

    SET_SETTING_NAME                                    ( "MUH_HESAP_EKLEME_FISI" );

    if ( m_ana_hesap_id NE -1 ) {
        AUTOSTART_FIS_KERNEL( m_ana_hesap_id );
    }
}
Ejemplo n.º 2
0
void PRS_PERSONEL_AILE_FISI::SETUP_FORM()
{
    SET_HELP_PAGE ( "personel-sicil-karti" );
    SET_PAGE_TITLE ( tr ( "PRS - AİLE FİŞİ" ) );

    int num_of_columns   = 12;
    SET_SINGLE_RECORD_ID              (m_record_id);

    REGISTER_BUTTONS_WIDGET           ( navigation_button_widget  );

    REGISTER_TABLE_WIDGET             ( table_widget_aile_satirlari , num_of_columns );

    SET_FORM_ID_COLUMN_POSITION       ( RECORD_ID_COLUMN );
    SET_FIS_ORDER_COLUMN_NUMBER       ( ORDER_COLUMN  );
    SET_ROW_ID_COLUMN_POSITION        ( ROW_ID_COLUMN );

    SET_NUMBER_OF_HIDDEN_COLUMN       ( 3 );

    SET_FIS_ORDER_DATABASE ( "prs_personel_aile_bilgileri", "order_number", "aile_bilgi_id" );

    SET_TABLE_ROW_WIDGETS ( AD_SOYAD_COLUMN                 , WIDGET_LINE_EDIT );
    SET_TABLE_ROW_WIDGETS ( TC_KIMLIK_NO_COLUMN             , WIDGET_LINE_EDIT );
    SET_TABLE_ROW_WIDGETS ( AKRABALIK_DERECESI_COLUMN       , WIDGET_COMBO_BOX );
    SET_TABLE_ROW_WIDGETS ( CALISMA_DURUMU_COLUMN           , WIDGET_COMBO_BOX );
    SET_TABLE_ROW_WIDGETS ( DOGUM_TARIHI_COLUMN             , WIDGET_ADAK_DATE);
    SET_TABLE_ROW_WIDGETS ( EGITIM_DURUMU_COLUMN            , WIDGET_COMBO_BOX );
    SET_TABLE_ROW_WIDGETS ( CINSIYET_COLUMN                 , WIDGET_COMBO_BOX );
    SET_TABLE_ROW_WIDGETS ( ASGARI_GECIM_IND_DURUMU_COLUMN  , WIDGET_COMBO_BOX );
    SET_TABLE_ROW_WIDGETS ( ACIKLAMA_COLUMN                 , WIDGET_LINE_EDIT );

    table_widget_aile_satirlari->setHorizontalHeaderLabels(QStringList()<<"id"<<"record_id"<<"satir_order"
                                                           <<tr("Ad Soyad") <<tr("TC Kimlik No")<<tr("Akrabalık\n Derecesi")<<tr("Çalışma Durumu")
                                                           <<tr("Doğum Tarihi")<<tr("Eğitim Düzeyi")
                                                           <<tr("Cinsiyet") << tr("Asgari Geçim \n İndirimi")<<tr("Açıklama")<<tr("")<<tr("") );

    table_widget_aile_satirlari->setColumnWidth ( AD_SOYAD_COLUMN                   , 150  );
    table_widget_aile_satirlari->setColumnWidth ( TC_KIMLIK_NO_COLUMN               , 150  );
    table_widget_aile_satirlari->setColumnWidth ( AKRABALIK_DERECESI_COLUMN         , 140  );
    table_widget_aile_satirlari->setColumnWidth ( CALISMA_DURUMU_COLUMN             , 180  );
    table_widget_aile_satirlari->setColumnWidth ( DOGUM_TARIHI_COLUMN               , 250  );
    table_widget_aile_satirlari->setColumnWidth ( EGITIM_DURUMU_COLUMN              , 150  );
    table_widget_aile_satirlari->setColumnWidth ( CINSIYET_COLUMN                   , 120  );
    table_widget_aile_satirlari->setColumnWidth ( ASGARI_GECIM_IND_DURUMU_COLUMN    , 140  );
    table_widget_aile_satirlari->setColumnWidth ( ACIKLAMA_COLUMN                   , 150  );

    SET_SETTING_NAME ( "PRS_PERSONEL_VE_AILE_FISI" );

    SET_FIRST_FOCUS_WIDGET ( table_widget_aile_satirlari );

    FOCUS_FIRST_WIDGET();
    SET_WIDGETS_MAXIMUM_SIZE      ();

    line_edit_personel_sicil_no->setReadOnly(true);
    line_edit_personel_adi->setReadOnly(true);
}
Ejemplo n.º 3
0
void ADRES_TELEFON_FISI::SETUP_FORM()
{
    SET_HELP_PAGE       ( tr("telefon-fisi") );
    SET_PAGE_TITLE      ( tr ( "ADR - TELEFONLAR" ) );
    SET_SETTING_NAME    ( "ADRES_TELEFON_FISI" );

    SET_SINGLE_RECORD_ID         ( m_adres_id );
    REGISTER_BUTTONS_WIDGET      ( m_ui->kernel_buttons_widget, true );
    REGISTER_TABLE_WIDGET        ( m_ui->tableWidget_telefonlar, 8 );
    SET_FIS_ORDER_COLUMN_NUMBER  ( TELEFON_ORDER_NUM );
    SET_FORM_ID_COLUMN_POSITION  ( KAYIT_ID_COLUMN   );
    SET_ROW_ID_COLUMN_POSITION   ( TELEFON_ID_COLUMN );
    SET_NUMBER_OF_HIDDEN_COLUMN  ( 3 );

    SET_FIS_ORDER_DATABASE ("adr_telefonlar", "order_number", "telefon_id" );

    SET_TABLE_ROW_WIDGETS ( TEL_ULKE_KODU_COLUMN,       WIDGET_COMBO_BOX    );
    SET_TABLE_ROW_WIDGETS ( TEL_ALAN_KODU_COLUMN,       WIDGET_COMBO_BOX    );
    SET_TABLE_ROW_WIDGETS ( TELEFON_COLUMN,             WIDGET_LINE_EDIT    );
    SET_TABLE_ROW_WIDGETS ( IS_DAHILI_TELEFON_COLUMN,   WIDGET_COMMA_EDIT   );
    SET_TABLE_ROW_WIDGETS ( ACIKLAMA_COLUMN,            WIDGET_LINE_EDIT    );

    m_ui->tableWidget_telefonlar->setHorizontalHeaderLabels(QStringList()<<"telefon_id"<<"adres_id"<<"order_column"
                                                                         <<tr ( "Ülke kodu" )<<tr ( "Alan Kodu" )
                                                                         <<tr ( "Telefon" )<<tr("Dahili")<<tr("Açıklama")<<tr ( "" )<<tr("") );

    m_ui->tableWidget_telefonlar->setColumnWidth ( TEL_ULKE_KODU_COLUMN,        90  );
    m_ui->tableWidget_telefonlar->setColumnWidth ( TEL_ALAN_KODU_COLUMN,        90  );
    m_ui->tableWidget_telefonlar->setColumnWidth ( TELEFON_COLUMN,              110 );
    m_ui->tableWidget_telefonlar->setColumnWidth ( IS_DAHILI_TELEFON_COLUMN,    90  );
    m_ui->tableWidget_telefonlar->setColumnWidth ( ACIKLAMA_COLUMN,             170 );

    m_ui->tableWidget_telefonlar->setSelectionMode ( QAbstractItemView::NoSelection );
    m_ui->tableWidget_telefonlar->setFocus         ( Qt::OtherFocusReason );

    FOCUS_FIRST_WIDGET ();
}
Ejemplo n.º 4
0
void PRK_GELIR_GIDER_TURLERI_FISI::SETUP_FORM()
{
    if ( m_gider_turu_mu EQ 1 ) {
        SET_PAGE_TITLE    ( tr ( "PRK - ALIŞ / GİDER TÜRLERİ" ) );
        SET_HELP_PAGE     ("kasa-perakende_alisgider-turlari");
    }
    else {
        SET_PAGE_TITLE    ( tr ( "PRK - SATIŞ / GELİR TÜRLERİ" ) );
        SET_HELP_PAGE     ("kasa-perakende_satisgelir-turleri");
    }




    DISABLE_CLEAR_ON_WIDGET(m_ui->searchEdit_sube_kodu);
    DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_sube_ismi);

    SET_SETTING_NAME  ("PRK_GELIR_GIDER_TURLERI_FISI");
    QString sube_kodu, sube_adi;

    SUBE_GET_SUBE_KODU_ADI( m_sube_id, &sube_kodu, &sube_adi );

    SET_SINGLE_RECORD_ID  ( m_sube_id);

    REGISTER_BUTTONS_WIDGET ( m_ui->kernel_buttons_widget );

    m_ui->searchEdit_sube_kodu->SET_TEXT(sube_kodu);
    m_ui->searchEdit_sube_kodu->setDisabled(true);
    m_ui->lineEdit_sube_ismi->setText(sube_adi);
    m_ui->lineEdit_sube_ismi->setDisabled(true);

    if ( SUBE_GET_SUBE_ISLEM_YETKISI() EQ SADECE_UNITE_SUBESINDE ) {
        m_ui->searchEdit_sube_kodu->setHidden(true);
        m_ui->lineEdit_sube_ismi->setHidden(true);
        m_ui->label_sube_kodu->setHidden(true);
    }

    SET_FIRST_FOCUS_WIDGET( m_ui->tablewidget_fis_satirlari );

    REGISTER_TABLE_WIDGET ( m_ui->tablewidget_fis_satirlari, 7 );

    SET_FIS_ORDER_COLUMN_NUMBER ( ORDER_NUMBER_COLUMN );
    SET_FORM_ID_COLUMN_POSITION ( FIS_ID_COLUMN );
    SET_ROW_ID_COLUMN_POSITION  ( ROW_ID_COLUMN );
    SET_NUMBER_OF_HIDDEN_COLUMN ( 4 );

    SET_FIS_ORDER_DATABASE ("prk_gelir_gider_turleri", "order_number", "tur_id" );

    SET_TABLE_ROW_WIDGETS ( GELIR_GIDER_ADI_COLUMN  , WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( HESAP_KODU_COLUMN       , WIDGET_SEARCH_EDIT );
    SET_TABLE_ROW_WIDGETS ( HESAP_ISMI_COLUMN       , WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( HESAP_ID_COLUMN         , WIDGET_LINE_EDIT   );

    if ( m_gider_turu_mu EQ 1 ) {
        m_ui->tablewidget_fis_satirlari->setHorizontalHeaderLabels
                (QStringList() << "row_id" << "fis_id" << "order_number_column"<<"gider hsp id"
                               << tr("Gider Türü") << tr("Gider Hesabı Kodu")
                               << tr("Gider Hesabı İsmi") << tr("") << tr("") );
    }
    else {
        m_ui->tablewidget_fis_satirlari->setHorizontalHeaderLabels
                (QStringList() << "row_id" << "fis_id" << "order_number_column"<<"gelir hsp id"
                               << tr("Gelir Türü") << tr("Gelir Hesabı Kodu")
                               << tr("Gelir Hesabı İsmi") << tr("") << tr("") );
    }

    m_ui->tablewidget_fis_satirlari->setColumnWidth(GELIR_GIDER_ADI_COLUMN       , 300);
    m_ui->tablewidget_fis_satirlari->setColumnWidth(HESAP_KODU_COLUMN            , 150);
    m_ui->tablewidget_fis_satirlari->setColumnWidth(HESAP_ISMI_COLUMN            , 300);

    m_ui->lineEdit_sube_ismi->setMaxLength(30);

    if ( K9_KULLANICI_ENT_BILGILERINI_DEGISTIREBILIR_MI() EQ 0 ) {
        m_ui->tablewidget_fis_satirlari->hideColumn(HESAP_KODU_COLUMN);
        m_ui->tablewidget_fis_satirlari->hideColumn(HESAP_ISMI_COLUMN);
    }

    FOCUS_FIRST_WIDGET ();
}
Ejemplo n.º 5
0
void PRS_PERSONEL_ODENEK_EKLEME_FISI::SETUP_FORM()
{
    SET_HELP_PAGE  (      "personel-bordrosu_ek-odenek-tanimlama" );
    SET_PAGE_TITLE ( tr ( "PRS - EK ÖDENEK EKLEME" ) );

    SET_SETTING_NAME        ( "PRS_PERSONEL_ODENEK_EKLEME_FISI" );

    int num_of_columns   = 13;

    if ( m_who_called EQ PRS_PERSONEL_SICIL_KARTI ) {
        SET_SINGLE_RECORD_ID (m_record_id);
    }

    REGISTER_BUTTONS_WIDGET          ( navigation_button_widget);

    SET_WIDGETS_MAXIMUM_SIZE ();


    REGISTER_TABLE_WIDGET             ( table_widget_odenek_satirlari , num_of_columns );

    SET_FORM_ID_COLUMN_POSITION       ( RECORD_ID_COLUMN );
    SET_FIS_ORDER_COLUMN_NUMBER       ( ORDER_COLUMN  );
    SET_ROW_ID_COLUMN_POSITION        ( ROW_ID_COLUMN );

    SET_NUMBER_OF_HIDDEN_COLUMN       ( 3 );

    SET_FIS_ORDER_DATABASE ( "prs_ek_kesintiler_odenekler", "order_number", "kesinti_odenek_id" );


    SET_TABLE_ROW_WIDGETS ( BORDRO_DONEMI_AY_COLUMN, WIDGET_COMBO_BOX );
    SET_TABLE_ROW_WIDGETS ( BORDRO_DONEMI_YIL_COLUMN, WIDGET_COMBO_BOX );
    SET_TABLE_ROW_WIDGETS ( ODENEK_ADI_COLUMN, WIDGET_LINE_EDIT );
    SET_TABLE_ROW_WIDGETS ( ODENEK_SSK_KESINTISI_ICERIYOR_MU_COLUMN, WIDGET_CHECK_BOX);
    SET_TABLE_ROW_WIDGETS ( ODENEK_GELIR_VERGISI_ICERIYOR_MU_COLUMN, WIDGET_CHECK_BOX);
    SET_TABLE_ROW_WIDGETS ( ODENEK_DAMGA_VERGISI_ICERIYOR_MU_COLUMN, WIDGET_CHECK_BOX);
    SET_TABLE_ROW_WIDGETS ( ODENEK_YUZDE_MI_COLUMN, WIDGET_COMBO_BOX);
    SET_TABLE_ROW_WIDGETS ( YUZDE_COLUMN, WIDGET_COMMA_EDIT);
    SET_TABLE_ROW_WIDGETS ( TUTAR_COLUMN, WIDGET_COMMA_EDIT );
    SET_TABLE_ROW_WIDGETS ( ACIKLAMA_COLUMN, WIDGET_LINE_EDIT );

    table_widget_odenek_satirlari->setHorizontalHeaderLabels(QStringList()<<"id"<<"record_id"<<"satir_order"
                                                           <<tr("Bordro \nDönemi Ay") <<tr("Bordro \nDönemi Yıl")
                                                           <<tr("Ödenek Adı")
                                                           <<tr("SSK Kesintisi")<<tr("Gelir Vergisi")<<tr("Damga Vergisi")
                                                           <<("Yüzde Mi")<<("Yüzde")<<tr("Tutar")
                                                           <<tr("Açıklama")<<tr("")<<tr("") );

    table_widget_odenek_satirlari->setColumnWidth ( BORDRO_DONEMI_AY_COLUMN   , 120  );
    table_widget_odenek_satirlari->setColumnWidth ( BORDRO_DONEMI_YIL_COLUMN  , 120  );
    table_widget_odenek_satirlari->setColumnWidth ( ODENEK_ADI_COLUMN         , 120  );
    table_widget_odenek_satirlari->setColumnWidth ( ODENEK_SSK_KESINTISI_ICERIYOR_MU_COLUMN     , 180  );
    table_widget_odenek_satirlari->setColumnWidth ( ODENEK_GELIR_VERGISI_ICERIYOR_MU_COLUMN     , 180  );
    table_widget_odenek_satirlari->setColumnWidth ( ODENEK_DAMGA_VERGISI_ICERIYOR_MU_COLUMN     , 180  );
    table_widget_odenek_satirlari->setColumnWidth ( ODENEK_YUZDE_MI_COLUMN    , 120  );
    table_widget_odenek_satirlari->setColumnWidth ( YUZDE_COLUMN              , 80  );
    table_widget_odenek_satirlari->setColumnWidth ( TUTAR_COLUMN              , 80  );
    table_widget_odenek_satirlari->setColumnWidth ( ACIKLAMA_COLUMN           , 150 );

    SET_FIRST_FOCUS_WIDGET ( table_widget_odenek_satirlari );

    FOCUS_FIRST_WIDGET();

    line_edit_personel_sicil_no->setReadOnly(true);
    line_edit_personel_adi_soyadi->setReadOnly(true);
}
void PRS_PUANTAJLARI_GOR_VE_DUZELT_FISI::SETUP_FORM()
{
    SET_PAGE_TITLE    ( tr ( "PRS - PUANTAJ TABLOSU" ) );
    SET_HELP_PAGE     (      "maas-bordrosu" );

    SET_SINGLE_RECORD_ID (m_record_id);

    REGISTER_BUTTONS_WIDGET ( m_ui->navigation_button_widget );

    int num_of_columns = 13;

    REGISTER_SAVER_BUTTON( m_ui->push_button_bordro_al );

    REGISTER_TABLE_WIDGET       ( m_ui->table_widget_gun_satirlari , num_of_columns );
    SET_FIS_ORDER_COLUMN_NUMBER ( ORDER_COLUMN );
    SET_FORM_ID_COLUMN_POSITION ( RECORD_ID_COLUMN );
    SET_ROW_ID_COLUMN_POSITION  ( ROW_ID_COLUMN );
    SET_NUMBER_OF_HIDDEN_COLUMN ( 5 );

    SET_FIS_ORDER_DATABASE ("puantaj_bilgileri", "order_number", "personel_id" );

    SET_TABLE_ROW_WIDGETS ( ADI_COLUMN                  , WIDGET_LINE_EDIT );
    SET_TABLE_ROW_WIDGETS ( CALISTIGI_GUN_COLUMN        , WIDGET_COMMA_EDIT);
    SET_TABLE_ROW_WIDGETS ( ALDIGI_UCRET                , WIDGET_COMMA_EDIT);
    SET_TABLE_ROW_WIDGETS ( EK_ODENEK_TUTARI            , WIDGET_COMMA_EDIT);
    SET_TABLE_ROW_WIDGETS ( EK_KESINTI_TUTARI           , WIDGET_COMMA_EDIT);
    SET_TABLE_ROW_WIDGETS ( KUR_COLUMN                  , WIDGET_COMMA_EDIT);
    SET_TABLE_ROW_WIDGETS ( TEMEL_PARABIRIMI_UCRET      , WIDGET_COMMA_EDIT);
    SET_TABLE_ROW_WIDGETS ( CALISMA_SEKLI               , WIDGET_LINE_EDIT );
    SET_TABLE_ROW_WIDGETS ( YEMEK_VERILEN_GUN_SAYISI    , WIDGET_COMMA_EDIT);
    SET_TABLE_ROW_WIDGETS ( GUNLUK_UCRET                , WIDGET_COMMA_EDIT);

    SET_FIRST_FOCUS_WIDGET ( m_ui->table_widget_gun_satirlari);

    SET_SETTING_NAME  ("PRS_PUANTAJ_GOR_VE_DUZELT_FISI");

    m_ui->table_widget_gun_satirlari->setHorizontalHeaderLabels (QStringList() << "row_id" << "record_id"
            << "order_number_column" << tr("") << tr("")<< tr("Adı / Soyadı")
            << tr( "Brüt/Net Ücret" )<< tr("Ek \nÖdenek Tutarı") << tr("Ek \nKesinti Tutarı")
            << tr("Kur") << tr( "Personel Ücret" ) << tr("Yemek Verilen\nGün Sayısı ") << tr("Çalıştığı Gün") << "" <<"" << "");

    m_ui->table_widget_gun_satirlari->setColumnWidth( ADI_COLUMN                    , 200 );
    m_ui->table_widget_gun_satirlari->setColumnWidth( ALDIGI_UCRET                  , 100 );
    m_ui->table_widget_gun_satirlari->setColumnWidth( EK_ODENEK_TUTARI              , 100 );
    m_ui->table_widget_gun_satirlari->setColumnWidth( EK_KESINTI_TUTARI             , 100 );
    m_ui->table_widget_gun_satirlari->setColumnWidth( KUR_COLUMN                    , 100 );
    m_ui->table_widget_gun_satirlari->setColumnWidth( TEMEL_PARABIRIMI_UCRET        , 100 );
    m_ui->table_widget_gun_satirlari->setColumnWidth( CALISTIGI_GUN_COLUMN          , 100 );
    m_ui->table_widget_gun_satirlari->setColumnWidth( YEMEK_VERILEN_GUN_SAYISI      , 100 );

    m_ui->lineEdit_ay->setDisabled(true);
    m_ui->lineEdit_yil->setDisabled(true);
    m_ui->lineEdit_sube_adi->setDisabled(true);
    m_ui->lineEdit_sube_kodu->setDisabled(true);

    DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_sube_kodu);
    DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_sube_adi);
    DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_yil);
    DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_ay);

    QString sube_kodu, sube_adi;

    SUBE_GET_SUBE_KODU_ADI( m_sube_id, &sube_kodu, &sube_adi );

    m_ui->lineEdit_sube_kodu->setText   ( sube_kodu );
    m_ui->lineEdit_sube_adi->setText    ( sube_adi  );

    m_ui->lineEdit_yil->setText(QVariant(m_bordro_yili).toString());

    m_ui->lineEdit_ay->setText(QDate::longMonthName(m_bordro_ayi));

    FOCUS_FIRST_WIDGET ();
}
Ejemplo n.º 7
0
void ADRES_YETKILILER_FISI::SETUP_FORM()
{
    SET_HELP_PAGE    ( tr("firma_yetkilileri_fisi.html") );
    SET_PAGE_TITLE   ( tr ( "FİRMA YETKİLİLERİ" ) );
    SET_SETTING_NAME ( "ADRES_YETKILILER_FISI" );

    SET_SINGLE_RECORD_ID(m_start_fis_kernel);

    REGISTER_BUTTONS_WIDGET ( m_ui->kernel_buttons_widget );

    int num_of_columns   = 15;

    REGISTER_TABLE_WIDGET             ( m_ui->table_widget_yetkililer, num_of_columns );
    SET_FIS_ORDER_COLUMN_NUMBER       ( ORDER_COLUMN );
    SET_FORM_ID_COLUMN_POSITION       ( FIRMA_ID_COLUMN );
    SET_ROW_ID_COLUMN_POSITION        ( YETKILI_ID_COLUMN );
    SET_NUMBER_OF_HIDDEN_COLUMN       ( 4 );    

    SET_FIS_ORDER_DATABASE ( "adr_yetkili_bilgileri", "order_number", "yetkili_id" );

    SET_TABLE_ROW_WIDGETS ( SAHIS_ID_COLUMN,            WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( YETKILI_ADI_SOYADI_COLUMN,  WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( YETKILI_GOREVI,             WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( YETKILI_EV_TELEFONU,        WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( YETKILI_IS_TELEFONU,        WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( YETKILI_CEP_TELEFONU,       WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( YETKILI_ULKE_KODU,          WIDGET_COMBO_BOX   );
    SET_TABLE_ROW_WIDGETS ( YETKILI_EV_TEL_ALAN_KODU,   WIDGET_COMBO_BOX   );
    SET_TABLE_ROW_WIDGETS ( YETKILI_GSM_KODU,           WIDGET_COMBO_BOX   );
    SET_TABLE_ROW_WIDGETS ( YETKILI_IS_TEL_ALAN_KODU,   WIDGET_COMBO_BOX   );
    SET_TABLE_ROW_WIDGETS ( YETKILI_IS_TELEFONU_DAHILI, WIDGET_COMMA_EDIT  );
    SET_TABLE_ROW_WIDGETS ( DETAYLAR_BUTTON_COLUMN,     WIDGET_PUSH_BUTTON );

    SET_FIRST_FOCUS_WIDGET  ( m_ui->table_widget_yetkililer );

    SET_LINE_BUTTON_ICON                 ( QStringList()<<"" );

    SET_LINE_BUTTON_ICON ( QStringList()<<"" );

    m_ui->table_widget_yetkililer->setHorizontalHeaderLabels ( QStringList()<<"id"<<"fis_id"<<"Column Order"
                                                                                   <<tr ( "adres_id" )<<tr ( "Yetkili Adı Soyadı" )
                                                                                   <<tr ( "Görevi")<<tr ( "Ülke Kodu" )
                                                                                   <<tr ( "Alan Kodu")<<tr ( "Ev Telefonu" )
                                                                                   <<tr ( "Gsm Kodu" )<<tr("Cep Telefonu")
                                                                                   <<tr ( "Alan Kodu" )
                                                                                   <<tr ( "İş Telefonu" )
                                                                                   <<tr ( "İş Tel Dahili" )
                                                                                   <<tr ( "" ) <<tr ( "" ) <<tr ( "" ) );

    m_ui->table_widget_yetkililer->setColumnWidth ( YETKILI_ADI_SOYADI_COLUMN      , 275 );
    m_ui->table_widget_yetkililer->setColumnWidth ( YETKILI_GOREVI                 , 145 );
    m_ui->table_widget_yetkililer->setColumnWidth ( YETKILI_ULKE_KODU              , 85  );
    m_ui->table_widget_yetkililer->setColumnWidth ( YETKILI_EV_TEL_ALAN_KODU       , 78  );
    m_ui->table_widget_yetkililer->setColumnWidth ( YETKILI_EV_TELEFONU            , 87  );
    m_ui->table_widget_yetkililer->setColumnWidth ( YETKILI_GSM_KODU               , 78  );
    m_ui->table_widget_yetkililer->setColumnWidth ( YETKILI_CEP_TELEFONU           , 95  );
    m_ui->table_widget_yetkililer->setColumnWidth ( YETKILI_IS_TEL_ALAN_KODU       , 72  );
    m_ui->table_widget_yetkililer->setColumnWidth ( YETKILI_IS_TELEFONU            , 91  );
    m_ui->table_widget_yetkililer->setColumnWidth ( YETKILI_IS_TELEFONU_DAHILI     , 87  );
    m_ui->table_widget_yetkililer->setColumnWidth ( DETAYLAR_BUTTON_COLUMN         , 90 );


    m_ui->table_widget_yetkililer->setSelectionMode ( QAbstractItemView::NoSelection );
    m_ui->table_widget_yetkililer->setFocus         ( Qt::OtherFocusReason );

   FOCUS_FIRST_WIDGET ();

   //AUTOSTART_FIS_KERNEL    ( m_start_fis_kernel );
}
Ejemplo n.º 8
0
void PRS_EK_ODENEK_VE_KESINTI_FISI::SETUP_FORM()
{

    SET_SETTING_NAME  ("EK_ODENEK_VE_KESINTI_FISI");
    SET_HELP_PAGE     ("personel-bordrosu_ek-odenek-tanimlama");

    if ( m_fis_turu EQ ENUM_PRS_ODENEK ) {
        SET_PAGE_TITLE    ( tr ( "PRS - EK ÖDENEK TANIMLAMA" ) );
    }
    else {
        SET_PAGE_TITLE    ( tr ( "PRS - EK KESİNTİ TANIMLAMA" ) );
    }

    REGISTER_BUTTONS_WIDGET ( m_ui->kernel_buttons_widget );

    SET_FIRST_FOCUS_WIDGET( m_ui->lineEdit_odenek_kesinti_adi );    

    REGISTER_TABLE_WIDGET ( m_ui->table_widget, 6 );

    SET_FIS_ORDER_COLUMN_NUMBER ( ORDER_NUMBER_COLUMN );
    SET_FORM_ID_COLUMN_POSITION ( RECORD_ID_COLUMN );
    SET_ROW_ID_COLUMN_POSITION  ( ROW_ID_COLUMN );
    SET_NUMBER_OF_HIDDEN_COLUMN ( 4 );

    // Bu fonksiyon ise kernelin otomatik olarak satir order numlarin reorganize edilmesi saglar.
    // Burda kernela database bilgilerini setleyerek bu isi yapabiliriz.

    DISABLE_CLEAR_ON_WIDGET( m_ui->comboBox_yuzde_mi );

    QStringList kesinti_yuzde_mi;
    kesinti_yuzde_mi << tr("TUTAR")<< tr("YÜZDE");

    m_ui->comboBox_yuzde_mi->addItems( kesinti_yuzde_mi );

    SET_FIS_ORDER_DATABASE ("prs_ek_kesintiler_odenekler", "order_number", "kesinti_odenek_id" );

    SET_TABLE_ROW_WIDGETS ( PERSONEL_KODU      , WIDGET_SEARCH_EDIT );
    SET_TABLE_ROW_WIDGETS ( PERSONEL_AD_SOYAD  , WIDGET_LINE_EDIT );


    DISABLE_CLEAR_ON_WIDGET( m_ui->comboBox_bordro_donemi_ay );
    DISABLE_CLEAR_ON_WIDGET( m_ui->comboBox_bordro_donemi_yil );

    K9_FILL_COMBOBOX_AYLAR( m_ui->comboBox_bordro_donemi_ay );

    PRS_FILL_COMBO_BOX_BORDRO_YILLARI( m_ui->comboBox_bordro_donemi_yil );

    int current_month = QDate::currentDate().month();
    FIND_AND_SET_COMBOBOX_TEXT( m_ui->comboBox_bordro_donemi_ay, K9_GET_AYLAR_STRING( current_month) );

    m_ui->lineEdit_odenek_kesinti_adi->setMaxLength( 50 );

    m_ui->limitedTextEdit_aciklama->SET_MAX_STRING_LENGTH( 512 );

    m_ui->table_widget->setHorizontalHeaderLabels (QStringList() << "row_id" << "fis_id" << "order_number_column" << "personel_id"
                                                   << tr("Personel Kodu") << tr("Personel Adı Soyadı") << tr("") << tr("") );

    m_ui->table_widget->setColumnWidth( PERSONEL_KODU      , 100 );
    m_ui->table_widget->setColumnWidth( PERSONEL_AD_SOYAD  , 550 );

    FOCUS_FIRST_WIDGET ();

    if ( m_fis_turu EQ ENUM_PRS_KESINTI ) {

        m_ui->checkBox_ssk_kesintisi->setVisible( false );
        m_ui->checkBox_gelir_vergisi_kesintisi->setVisible( false );
        m_ui->checkBox_damga_vergisi_kesintisi->setVisible( false );
    }
}
Ejemplo n.º 9
0
void SMM_HIZMET_TANIMLAMA_FISI::SETUP_FORM()
{
    if ( m_hizmet_sekli EQ SMM_ALINAN_HIZMET ) {
        SET_PAGE_TITLE    ( tr ( "SMM - SMMM ALINAN HİZMETLER" ) );
        SET_HELP_PAGE     ("serbest-meslek-makbuzu_alinan-hizmetler");
    }
    else {
        SET_PAGE_TITLE    ( tr ( "SMM - SMMM SATILAN HİZMETLER" ) );
        SET_HELP_PAGE     ("serbest-meslek-makbuzu_satilan-hizmetler");
    }

    DISABLE_CLEAR_ON_WIDGET(m_ui->searchEdit_sube_kodu);
    DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_sube_ismi);

    SET_SETTING_NAME  ("SMM_HIZMET_TANIMLAMA_FISI");
    QString sube_kodu, sube_adi;

    SUBE_GET_SUBE_KODU_ADI( m_sube_id, &sube_kodu, &sube_adi );

    m_ui->searchEdit_sube_kodu->SET_TEXT(sube_kodu);
    m_ui->searchEdit_sube_kodu->setDisabled(true);
    m_ui->lineEdit_sube_ismi->setText(sube_adi);
    m_ui->lineEdit_sube_ismi->setDisabled(true);

    if ( SUBE_GET_SUBE_ISLEM_YETKISI() EQ SADECE_UNITE_SUBESINDE ) {
        m_ui->searchEdit_sube_kodu->setHidden(true);
        m_ui->lineEdit_sube_ismi->setHidden(true);
        m_ui->label_sube_kodu->setHidden(true);
    }

    SET_SINGLE_RECORD_ID (m_sube_id);

    REGISTER_BUTTONS_WIDGET ( m_ui->kernel_buttons_widget );

    REGISTER_TABLE_WIDGET ( m_ui->tablewidget_fis_satirlari, 10 );

    SET_FIS_ORDER_COLUMN_NUMBER ( ORDER_NUMBER_COLUMN );

    SET_FORM_ID_COLUMN_POSITION ( FIS_ID_COLUMN );

    SET_ROW_ID_COLUMN_POSITION  ( ROW_ID_COLUMN );

    SET_NUMBER_OF_HIDDEN_COLUMN ( 5 );

    SET_FIS_ORDER_DATABASE ("smm_hizmetler", "order_number", "hizmet_id" );


    SET_TABLE_ROW_WIDGETS ( HIZMET_ADI_COLUMN       , WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( HESAP_KODU_COLUMN       , WIDGET_SEARCH_EDIT );
    SET_TABLE_ROW_WIDGETS ( HESAP_ISMI_COLUMN       , WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( HESAP_ID_COLUMN         , WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( VERGI_HESAP_ID_COLUMN   , WIDGET_LINE_EDIT   );
    SET_TABLE_ROW_WIDGETS ( VERGI_HESAP_KODU_COLUMN , WIDGET_SEARCH_EDIT );
    SET_TABLE_ROW_WIDGETS ( VERGI_HESAP_ISMI_COLUMN , WIDGET_LINE_EDIT   );

    SET_FIRST_FOCUS_WIDGET (m_ui->tablewidget_fis_satirlari );

    if ( m_hizmet_sekli EQ SMM_ALINAN_HIZMET ) {
        m_ui->tablewidget_fis_satirlari->setHorizontalHeaderLabels
        (QStringList() << "row_id" << "fis_id"    << "order_number_column"<<"gider hsp id"<<"vergi_hsp_id"
         << tr("Alınan Hizmet")     << tr("Gider Hesabı Kodu")
         << tr("Gider Hesabı İsmi") << tr("Vergi Hesabı Kodu")
         << tr("Vergi Hesabı İsmi") << tr("") << tr("") );
    }
    else {
        m_ui->tablewidget_fis_satirlari->setHorizontalHeaderLabels
        (QStringList() << "row_id" << "fis_id"    << "order_number_column"<<"gelir hsp id"<<"vergi_hsp_id"
         << tr("Satılan Hizmet")    << tr("Gelir Hesabı Kodu")
         << tr("Gelir Hesabı İsmi") << tr("Vergi Hesabı Kodu")
         << tr("Vergi Hesabı İsmi") << tr("") << tr("") );
    }

    m_ui->tablewidget_fis_satirlari->setColumnWidth(HIZMET_ADI_COLUMN            , 200);
    m_ui->tablewidget_fis_satirlari->setColumnWidth(HESAP_KODU_COLUMN            , 125);
    m_ui->tablewidget_fis_satirlari->setColumnWidth(HESAP_ISMI_COLUMN            , 175);
    m_ui->tablewidget_fis_satirlari->setColumnWidth(VERGI_HESAP_KODU_COLUMN      , 125);
    m_ui->tablewidget_fis_satirlari->setColumnWidth(VERGI_HESAP_ISMI_COLUMN      , 175);

    m_ui->lineEdit_sube_ismi->setMaxLength(30);

    if ( K9_KULLANICI_ENT_BILGILERINI_DEGISTIREBILIR_MI() EQ 0 ) {
        m_ui->tablewidget_fis_satirlari->hideColumn(HESAP_KODU_COLUMN);
        m_ui->tablewidget_fis_satirlari->hideColumn(HESAP_ISMI_COLUMN);
        m_ui->tablewidget_fis_satirlari->hideColumn(VERGI_HESAP_KODU_COLUMN);
        m_ui->tablewidget_fis_satirlari->hideColumn(VERGI_HESAP_ISMI_COLUMN);
    }


    FOCUS_FIRST_WIDGET ();
}
Ejemplo n.º 10
0
void SQL_TABLOLAR_FISI::SETUP_FORM()
{

    setWindowState(Qt::WindowMaximized);
    REGISTER_BUTTONS_WIDGET ( m_ui->navigation_button_widget );

    num_of_columns   = 11;

    REGISTER_TABLE_WIDGET             ( m_ui->tablewidget_tablo_satirlari, num_of_columns );
    SET_FIS_ORDER_COLUMN_NUMBER       ( ORDER_COLUMN );
    SET_FORM_ID_COLUMN_POSITION       ( TABLO_ID_COLUMN );
    SET_ROW_ID_COLUMN_POSITION        ( ROW_ID_COLUMN );
    SET_NUMBER_OF_HIDDEN_COLUMN       ( 3 );
    SET_FIS_ORDER_DATABASE            ( "sql_alanlar", "alan_order_num", "alan_id" );
    SET_COMMA_EDIT_PRECISION          ( ALAN_BOYUT_COLUMN, 0);
    SET_COMMA_EDIT_PRECISION          ( DIZI_BOYUT_COLUMN, 0);
    SET_FIRST_FOCUS_WIDGET            ( m_ui->lineEdit_tablo_adi );


    SET_TABLE_ROW_WIDGETS ( ALAN_TIPI_COLUMN      , WIDGET_COMBO_BOX  );
    SET_TABLE_ROW_WIDGETS ( DIZI_MI_COLUMN        , WIDGET_CHECK_BOX  );
    SET_TABLE_ROW_WIDGETS ( AUTO_INCREMENT_COLUMN , WIDGET_CHECK_BOX  );
    SET_TABLE_ROW_WIDGETS ( NOT_NULL_COLUMN       , WIDGET_CHECK_BOX  );
    SET_TABLE_ROW_WIDGETS ( ALAN_ADI_COLUMN       , WIDGET_LINE_EDIT  );
    SET_TABLE_ROW_WIDGETS ( ACIKLAMA_COLUMN       , WIDGET_LINE_EDIT  );
    SET_TABLE_ROW_WIDGETS ( ALAN_BOYUT_COLUMN     , WIDGET_COMMA_EDIT );
    SET_TABLE_ROW_WIDGETS ( DIZI_BOYUT_COLUMN     , WIDGET_COMMA_EDIT );

    m_ui->lineEdit_tablo_adi->setMaxLength                  ( 27  );
    m_ui->lineEdit_alan_adi->setMaxLength                   ( 30  ); // Oracle 30 hane ile sinirli
    m_ui->limitedTextEdit_aciklama->SET_MAX_STRING_LENGTH   ( 512 );

    SET_PAGE_TITLE        ( tr("SQL DESIGNER - TABLES"));

    REGISTER_SAVER_BUTTON ( m_ui->button_indexler );
    REGISTER_SAVER_BUTTON ( m_ui->button_header_olustur );

    m_ui->tablewidget_tablo_satirlari->setHorizontalHeaderLabels(QStringList()<<"alan_id"<<"tablo_id"
                                                                              <<"alan_order_num"
                                                                              <<tr("Field Name")<<tr("Field Type")
                                                                              <<tr("Length")<<tr("Is Array?")
                                                                              <<tr("Array Size")<<tr("Statement")
                                                                              <<tr("Auto Increment")<<tr("Not Null")
                                                                              <<tr("")<<tr(""));

    QHeaderView * header =  m_ui->tablewidget_tablo_satirlari->horizontalHeader();

     m_ui->tablewidget_tablo_satirlari->setColumnWidth ( ALAN_ADI_COLUMN       ,    300 );
     m_ui->tablewidget_tablo_satirlari->setColumnWidth ( ALAN_TIPI_COLUMN      ,    150 );
     m_ui->tablewidget_tablo_satirlari->setColumnWidth ( ALAN_BOYUT_COLUMN     ,    100 );
     m_ui->tablewidget_tablo_satirlari->setColumnWidth ( DIZI_MI_COLUMN        ,    75  );
     m_ui->tablewidget_tablo_satirlari->setColumnWidth ( DIZI_BOYUT_COLUMN     ,    100 );
     m_ui->tablewidget_tablo_satirlari->setColumnWidth ( ACIKLAMA_COLUMN       ,    446 );


    m_ui->tablewidget_tablo_satirlari->hideColumn ( AUTO_INCREMENT_COLUMN );
    m_ui->tablewidget_tablo_satirlari->hideColumn ( NOT_NULL_COLUMN       );

    header->setStretchLastSection(QHeaderView::Stretch);
    m_ui->tablewidget_tablo_satirlari->setSelectionMode ( QAbstractItemView::NoSelection );
    m_ui->tablewidget_tablo_satirlari->setFocus( Qt::OtherFocusReason );

    FOCUS_FIRST_WIDGET();
}