コード例 #1
0
GRUP_KERNEL::GRUP_KERNEL (int program_id , int module_id , QString p_win_title, QString p_help_page, ADAK_SQL * db, QWidget * parent) : TREE_KERNEL ( parent ) , BASE_GRUP_KERNEL(), m_ui ( new Ui::GRUP_KERNEL )
{
    m_ui->setupUi     ( this );

    REGISTER_TREE_WIDGET   ( m_ui->tree_widget              );
    REGISTER_ADD_BUTTON    ( m_ui->push_button_add_alt_grup );
    REGISTER_ADD_BUTTON    ( m_ui->push_button_add_ana_grup );
    REGISTER_DELETE_BUTTON ( m_ui->push_button_grubu_sil    );
    REGISTER_HELP_BUTTON   ( m_ui->toolButton_help_button   );

    SET_FIRST_FOCUS_WIDGET( m_ui->push_button_add_ana_grup );
    m_grubu_parentine_aktar = false;

    SET_RIGHT_ALIGN_COLUMNS ( QList<int>() << 2 << 3 << 4);

    SET_COLUMN_HEADERS ( QStringList()<<tr ( "Group Code")           <<tr ( "Group Name" )
                         <<tr ( "Number of Sub Group ")     <<tr ( "Number of Record in Group")
                         <<tr ( "group_id")             <<tr ( "group_parent_id" )
                         <<tr ( "is_group_last_level ") <<tr ( "Full_group_code" ) );

    m_grp_kodu_column              = 0;
    m_grp_isim_column              = 1;
    m_grp_alt_grup_sayisi_column   = 2;
    m_grp_kayit_sayisi_column      = 3;
    m_grp_id_column                = 4;
    m_grp_parent_id_column         = 5;
    m_grp_son_seviye_mi_column     = 6;
    m_grp_tam_grup_kodu_column     = 7;

    GRP_SET_VISIBLE_PROG_MODULE(program_id,module_id);
    SET_DELIMETER ( " " );

    if ( p_win_title.isEmpty() EQ false  ) {
        SET_PAGE_TITLE( p_win_title );
    }
    else {
        SET_PAGE_TITLE(tr("GROUPs"));
    }

    if( p_help_page.isEmpty() EQ true ) {
        SET_HELP_PAGE( tr("groups") );
    }
    else {
        SET_HELP_PAGE( p_help_page );
    }
    SET_SETTING_NAME    ( tr("GROUPS") );

    INIT_GRUP_KERNEL( this , db );
}
コード例 #2
0
ファイル: fat_irsaliye_arama.cpp プロジェクト: ArGeMaNiA/K9
void FAT_IRSALIYE_ARAMA::SETUP_FORM ()
{
    SET_PAGE_TITLE( tr ( "FAT - İRSALİYE SEÇİMİ" ) );

    REGISTER_TABLE_WIDGET ( m_ui->tableWidget );
    REGISTER_ARAMA_BUTTONS_WIDGET ( m_ui->widget_batch_buttons );

    SET_HEADERS( QStringList() << tr("irsaliye_id") <<tr("İrs. Seri No") << tr("İrsaliye No") << tr("İrs. Tarihi") );

    SET_SORTING ( false );

    m_ui->tableWidget->hideColumn(0);
    m_ui->tableWidget->setColumnWidth ( 1, 20 );
    m_ui->tableWidget->setColumnWidth ( 2, 10 );
    m_ui->tableWidget->setColumnWidth ( 3, 200 );

    // Programa ilk girildiginde focuslanacak widget setlenmelidir.
    SET_FIRST_FOCUS_WIDGET ( m_ui->adakDate_bas_tarihi );

    SET_HELP_PAGE ("fat_irsaliye_secimi.html");

    m_ui->tableWidget->setColumnWidth( 3   , 10);

    SET_SETTING_NAME ( "FAT_IRSALIYE_SECIMI" );

    SET_ENTER_KEY_FOR_RUN_BATCH ( true );

    SET_FIND_BUTTON_NAME ( "İrsaliye Bul" );

    SQL_QUERY sql_query ( DB );

    sql_query.PREPARE_SELECT ( "k9_sabit_degerler","irs_faturalandirilacak_gun" ,"sabit_deger_id = :sabit_deger_id");
    sql_query.SET_VALUE(":sabit_deger_id" , 1);

    if ( sql_query.SELECT() EQ 0 ) {
        return;
    }

    sql_query.NEXT();

    int   faturandirilacak_gun            = sql_query.VALUE(0).toInt();

    QDate irsaliye_tarihi_bitis           = QDate::fromString ( m_irsaliye_tarihi_bitis, "yyyy.MM.dd" );
    int   irsaliye_tarihi_bitis_month     = irsaliye_tarihi_bitis.month();

    QDate irsaliye_tarihi_baslangic       = irsaliye_tarihi_bitis.addDays ( -1 * faturandirilacak_gun );
    int   irsaliye_tarihi_baslangic_month = irsaliye_tarihi_baslangic.month();

    if ( irsaliye_tarihi_baslangic_month NE irsaliye_tarihi_bitis_month ) {
        m_irsaliye_tarihi_baslangic = QDate( irsaliye_tarihi_bitis.year(), irsaliye_tarihi_bitis_month, 01 ).toString("yyyy.MM.dd");
    }
    else {
        m_irsaliye_tarihi_baslangic = irsaliye_tarihi_baslangic.toString("yyyy.MM.dd");
    }
   
    m_ui->adakDate_bas_tarihi->SET_DATE( m_irsaliye_tarihi_baslangic );
    m_ui->adakDate_bts_tarihi->SET_DATE( m_irsaliye_tarihi_bitis );

    AUTO_START();
}
コード例 #3
0
void  STOK_HIZMET_KARTI_FORMU::SETUP_FORM()
{
    SET_HELP_PAGE       ( "stok-islemleri_hizmet-karti" );
    SET_PAGE_TITLE      ( tr ("STK - HİZMET KARTI") );

    REGISTER_BUTTONS_WIDGET ( m_ui->navigation_buttons_widget );

    SET_SETTING_NAME        ( "FATURA_HIZMET_KARTI" );
    SET_FIRST_FOCUS_WIDGET  ( m_ui->lineEdit_hizmet_kodu );

    m_temel_para_birimi_kodu = DVZ_GET_TEMEL_PARA_BIRIMI_KODU ();

    REGISTER_SAVER_BUTTON( m_ui->pushButton_hizmetin_hareketleri );

    if ( K9_KULLANICI_URUN_HAREKETLERINI_GOREBILIR_MI() EQ HAYIR ) {
        m_ui->pushButton_hizmetin_hareketleri->setVisible( false );
    }

    // [ 1 ] Hassasiyet setleniyor
    int stok_birim_fiyat_hassasiyeti = STK_GET_BIRIM_HASSASIYETI();

    m_ui->commaEdit_alis_fiyati->SET_PRECISION( stok_birim_fiyat_hassasiyeti );
    m_ui->commaEdit_satis_fiyati->SET_PRECISION( stok_birim_fiyat_hassasiyeti );
    // [/1]
     

    DVZ_FILL_COMBOBOX         ( m_ui->comboBox_alis_doviz_cinsi   );
    DVZ_FILL_COMBOBOX         ( m_ui->comboBox_satis_doviz_cinsi  );
    K9_FILL_KDV_ORANLARI_COMBOBOX  ( m_ui->comboBox_alis_kdv_orani          );
    K9_FILL_KDV_ORANLARI_COMBOBOX  ( m_ui->comboBox_satis_kdv_orani          );

    m_ui->lineEdit_hizmet_kodu->setMaxLength                ( 30 );
    m_ui->lineEdit_barkod_no->setMaxLength                  ( 50 );
    m_ui->lineEdit_hizmet_ismi->setMaxLength                ( 50 );

    m_ui->limitedTextEdit->SET_LINE_LIMIT(5);
    m_ui->limitedTextEdit->SET_MAX_STRING_LENGTH(512);
    m_ui->lineEdit_hizmet_birimi->setMaxLength(20);

    m_muh_hesap_id = 0;

    m_ui->comboBox_hizmet_turu->addItems(QStringList() << QObject::tr("Alınan Hizmet") << QObject::tr("Satılan Hizmet") << QObject::tr( "Alınan / Satılan Hizmet") );


    DISABLE_CLEAR_ON_WIDGET(m_ui->searchEdit_muh_hesap_kodu);
    DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_muh_hesap_ismi);

    QString hizmetler_hesap_kodu, hizmetler_hesap_adi;

    m_muh_hesap_id = SUBE_GET_SUBE_ENT_HESAP_ID( SUBE_GET_SUBE_ID(), "hizmetler_ent_hesap_id", &hizmetler_hesap_kodu, &hizmetler_hesap_adi );

    m_ui->searchEdit_muh_hesap_kodu->SET_TEXT   ( hizmetler_hesap_kodu );
    m_ui->lineEdit_muh_hesap_ismi->setText      ( hizmetler_hesap_adi  );

    if ( K9_KULLANICI_ENT_BILGILERINI_DEGISTIREBILIR_MI() EQ 0 ) {
        m_ui->searchEdit_muh_hesap_kodu->setHidden(true);
        m_ui->lineEdit_muh_hesap_ismi->setHidden(true);
        m_ui->label_muhasebe_hesabi->setHidden(true);
    }
}
コード例 #4
0
void MUH_YEVMIYE_DOKUMU_BATCH::SETUP_FORM()
{
    SET_HELP_PAGE  ( "genel-muhasebe_yevmiye-dokumu" );
    SET_PAGE_TITLE ( tr ( "MUH - YEVMİYE DÖKÜMÜ" ) );

    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );

    m_ui->search_edit_baslangic_yevmiye_no->SET_TEXT ( "1" );
    m_ui->combobox_basim_turu->addItem ( tr ( "Deneme Baskısı" ) );
    m_ui->combobox_basim_turu->addItem ( tr ( "Resmi Baskı" ) );

    m_ui->adak_date_bas_tarihi->SET_DATE( MALI_YIL_FIRST_DATE() );
    m_ui->adak_date_bts_tarihi->SET_DATE( MALI_YIL_365_DATE()  );

    DATE_FRAME_AYARLA();

    YEVMIYE_NO_FRAME_AYARLA();

    m_ui->frame_ozet->setDisabled ( true );
    m_ui->frame_yevmiye_no_araligi->setDisabled ( true );

    SET_NAME_OF_RUN_BATCH_BUTTON ( tr ( "Başla" ) );
    SET_FIRST_FOCUS_WIDGET ( m_ui->adak_date_bas_tarihi );

    m_ui->frame_ozet->setDisabled                   ( true );
    m_ui->frame_yevmiye_no_araligi->setDisabled     ( true );

    FILL_PAPERSIZE_COMBOBOX                         ( m_ui->combo_box_sayfa_boyutu );
    m_ui->comma_edit_genisligi->SET_DOUBLE          ( 210.00 );
    m_ui->comma_edit_sayfa_yuksekligi->SET_DOUBLE   ( 297.00 );

    SET_SETTING_NAME        ( "MUH_YEVMIYE_DOKUMU_BATCH" );
}
コード例 #5
0
ファイル: xyz_tree_arama.cpp プロジェクト: ArGeMaNiA/K9
XYZ_TREE_ARAMA::XYZ_TREE_ARAMA(QWidget *parent) : TREE_ARAMA_KERNEL(parent),ui(new Ui::XYZ_TREE_ARAMA)
{
    ui->setupUi(this);

    SET_PAGE_TITLE     ( tr("XYZ SEÇİMİ") );
    SET_HELP_PAGE      ( tr("XYZ_TREE_ARAMA.html") );
    SET_COLUMN_HEADERS ( QStringList() << tr("Grup Kodu") << tr("Grup İsmi") );

    // Asagida ki fonksiyonla right align yapmak istedigimiz columnlari right align yapabiliriz.
    // Tek yapmamiz gereken gerekli columnlarin numarasini SET_RIGHT_ALIGN_COLUMNS fonksiyonunan gondermek

    QList<int> right_aligned_columns;

    right_aligned_columns << 2 << 3;

    SET_RIGHT_ALIGN_COLUMNS ( right_aligned_columns );

    REGISTER_BUTTON_WIDGET(ui->search_buttons_widget);

    INIT_KERNEL (ui->tree_view, this, DB );

    SET_SETTING_NAME    ( "XYZ_TREE_ARAMA" );

    //Tum lineeditlerin ve limitedtexteditlerin uzunlugu INIT_KERNEL dan sonra setlenmeli.Cunku bu widgetlarin default degeri 1 characterdir.
    //Ayrica eger bu widgetlara setlenmesi gereken degerler varsa bunu da uzunluklar setlendikten sonra yapmaliyiz.
    m_ui->line_edit_xyz->setMaxLength(25);
}
コード例 #6
0
ファイル: k9_onar_batch.cpp プロジェクト: csavur/K9
void K9_ONAR_BATCH::SETUP_FORM()
{    
    SET_PAGE_TITLE                  ( tr ( "K9 ONAR" ) );
    SET_HELP_PAGE                   ( "yonetim-islemleri_k9-onar" );

    SET_AUTO_EXIT_BATCH             ( true );

    REGISTER_BUTTON_WIDGET                          ( m_ui->widget_batch_buttons );

    SET_ENTER_KEY_FOR_RUN_BATCH     ( true );
    SET_SETTING_NAME                ( "K9_ONAR" );
    SET_NAME_OF_RUN_BATCH_BUTTON    ( "Onar" );

    // default olarak tum sistemi onar gelecek
    m_ui->checkBox_tum_sistemi_onar->setChecked( true );
    m_ui->label_moduller->setHidden(true);
    m_ui->frame_moduller->setHidden(true);
    m_tum_sistemi_onar = true;
    //

    SET_FIRST_FOCUS_WIDGET          ( m_ui->checkBox_tum_sistemi_onar );
    m_ui->textEdit_aciklama->setReadOnly  ( true );

    BILGILENDIR ( "Bulunduğunuz firmadaki , seçmiş olduğunuz modüllerin fişlerini,"
                  "hesap bakiyelerini, depodaki ve ürün kartındaki stok miktarını onarır." );
}
コード例 #7
0
ファイル: muh_hesap_arama.cpp プロジェクト: ArGeMaNiA/K9
void MUH_HESAP_ARAMA::SETUP_FORM()
{
    SET_HELP_PAGE       ( tr("muhasebe_hesap_arama.html") );
    SET_PAGE_TITLE      ( tr ( "MUH - HESAP ARAMA" ) );
    SET_SETTING_NAME    ( "MUH_HESAP_ARAMA" );
     
    SET_FIRST_FOCUS_WIDGET ( m_ui->line_edit_hesap_kodu_ismi );

    REGISTER_TABLE_WIDGET          ( m_ui->tableWidget ) ;
    REGISTER_ARAMA_BUTTONS_WIDGET  ( m_ui->widget_batch_buttons );


    SET_HEADERS(QStringList()<<tr ( "Hesap Id" )<<tr ( "Tam Hesap Kodu" )<<tr ( "Hesap İsmi" ) );

    m_ui->tableWidget->setColumnWidth (  1, 40 );
    m_ui->tableWidget->setColumnWidth (  2, 60 );

    m_ui->tableWidget->hideColumn(0);

    SET_FIND_BUTTON_NAME ( tr ( "Hesap Bul" ) );

    SET_ENTER_KEY_FOR_RUN_BATCH ( true );

    if ( m_hesap_kodu_baslangici.isEmpty() EQ true ) {
        m_hesap_kodu_baslangici = "*";
    }

    m_ui->line_edit_hesap_kodu_ismi->setText ( m_hesap_kodu_baslangici );

    if ( m_ui->line_edit_hesap_kodu_ismi->text() NE "*" ) {
        AUTO_START ();
    }
}
コード例 #8
0
void IMPORT_KERNEL::SETUP_FORM ()
{
    SET_NAME_OF_RUN_BATCH_BUTTON ( tr("Import") );

    SET_AUTO_EXIT_BATCH ( true );

    SET_FIRST_FOCUS_WIDGET ( m_ui->line_edit_dosya_path );
    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );

    SET_PAGE_TITLE    ( tr ( "IMPORT" ) );
    SET_SETTING_NAME  ("E9_AKTAR");

    SET_HELP_PAGE     ( m_help_page );

    m_kayitlar_onaylandi_mi = false;

    m_ui->line_edit_dosya_path->setDisabled (true);
    m_ui->line_edit_dosya_path->setMaxLength(250);

    m_ui->table_widget_onizleme->setObjectName("NO_EVENT_ON_WIDGET");
    m_ui->table_widget_kaydedilmisler->setObjectName("NO_EVENT_ON_WIDGET");
    m_ui->table_widget_kaydedilmisler->hide();
    m_ui->label_kaydedilmeyecek_veriler->hide();

    QList< QByteArray > available_coding_list = QTextCodec::availableCodecs() ;
    for( int i = 0 ; i < available_coding_list.size() ; ++i ){
        m_ui->comboBox_dosya_encoding->addItem( available_coding_list.at(i) );
    }

    FIND_AND_SET_COMBOBOX_TEXT(m_ui->comboBox_dosya_encoding, tr("UTF-8"));
}
コード例 #9
0
ファイル: dmr_grup_tree_secimi.cpp プロジェクト: ArGeMaNiA/K9
DMR_GRUP_TREE_SECIMI::DMR_GRUP_TREE_SECIMI ( QWidget * parent ) : TREE_SECIM_KERNEL (parent)
{
    SET_HELP_PAGE       ( "sabit-kiymetler-demirbaslar_rapor-islem-gruplari" );

    SET_SETTING_NAME    ( "DMR_GRUP_TREE_SECIMI" );

    SET_WINDOW_SIZE    (200,500);

    SET_COLUMN_HEADERS ( QStringList()<<tr("grup_id")<<("Grup Kodu")<<tr("Grup İsmi")<<("Alt Grup Sayısı")<<("Gruptaki Kayıt Sayısı") );

    SET_PAGE_TITLE( tr("DMR - DEMİRBAŞ GRUP SEÇİMİ") );


    INIT_KERNEL ( this, DB );

    m_tree_widget = GET_TREE_VIEW();

    HIDE_COLUMN(0);

    m_tree_widget->setColumnWidth( 1, 80  );
    m_tree_widget->setColumnWidth( 2, 300 );
    m_tree_widget->setColumnWidth( 3, 100 );
    m_tree_widget->setColumnWidth( 4, 100 );

}
コード例 #10
0
void MUH_TOPLU_FIS_RAPORU_BATCH::SETUP_FORM()
{
    SET_HELP_PAGE           (  "genel-muhasebe_toplu-fis-dokumu" );
    SET_PAGE_TITLE          ( tr ( "MUH - TOPLU FİŞ DÖKÜMÜ" ) );

    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );

    SET_SETTING_NAME        ( "MUH_TOPLU_FIS_RAPORU_BATCH" );

    m_ui->adakDate_bas_tarihi->SET_DATE( MALI_YIL_FIRST_DATE() );
    m_ui->adakDate_bitis_tarihi->SET_DATE( MALI_ARRAY_LAST_DATE() );

    SET_NAME_OF_RUN_BATCH_BUTTON ( "Rapor Al" );
    SET_FIRST_FOCUS_WIDGET       ( m_ui->adakDate_bas_tarihi );

    if( K9_KULLANICININ_CALISTIGI_SIRKET() EQ 1 ){
        m_ent_filtre_turu = FIS_BIRINCI_SIRKET;
    }
    else {
        m_ent_filtre_turu = FIS_HER_IKI_SIRKET;
    }

    K9_FILL_COMBOBOX_RAPOR_SIRKET_FILTRESI( m_ui->comboBox_sirket_turu );

    m_ui->comboBox_sirket_turu->setHidden(true );
    m_ui->label_sirket_turu->setHidden(true);

    if( K9_KULLANICI_SIRKET_DEGISTIRE_BILIR_MI() EQ EVET ){

        m_ui->comboBox_sirket_turu->setHidden(false);
        m_ui->label_sirket_turu->setHidden(false);
    }
    FIND_AND_SET_COMBOBOX_TEXT( m_ui->comboBox_sirket_turu, K9_GET_RAPOR_SIRKET_FILTRESI_STRING(m_ent_filtre_turu ) );
}
コード例 #11
0
KULLANICI_SECIMI::KULLANICI_SECIMI( bool p_yonetici_goster, QWidget * p_parent, QStringList * P_VAROLAN_KULLANICI_ID_LIST )
: SECIM_KERNELI ( p_parent ), m_yonetici_goster ( p_yonetici_goster )
{

    M_VAROLAN_KULLANICI_ID_LIST = P_VAROLAN_KULLANICI_ID_LIST;

    SET_WINDOW_SIZE                      ( 500, 700 );

    SET_PAGE_TITLE                       ( "KULLANICI SEÇİMİ");
    SET_HELP_PAGE                        ( "kullanici_secimi");

    SET_SORTING                          ( false );

    SET_HEADERS                          ( QStringList()<<"Kullanıcı_id"<<"kullanıcı kodu"
                                          <<"Kullanıcı Adı"<<"Email adresi");

    INIT_KERNEL                          ( G_YONETIM_DB );

    QTableWidget * table_widget = GET_TABLE_WIDGET ();

    table_widget->hideColumn(0);

    table_widget->setColumnWidth ( 1,  100 );
    table_widget->setColumnWidth ( 2,  250 );
    table_widget->setColumnWidth ( 3,  250 );

    SET_SETTING_NAME  ("KULLANICI_SECIMI");
}
コード例 #12
0
STOK_GIDEN_PARTI_NO_SECIMI::STOK_GIDEN_PARTI_NO_SECIMI( int p_depo_id, int p_urun_id, int p_secili_parti_no, QWidget * parent ) : SECIM_KERNELI ( parent )
{
    m_depo_id = p_depo_id;
    m_urun_id = p_urun_id;

    SET_SORTING(false);
    SET_WINDOW_SIZE ( 300, 700 );
    QString urun_adi;
    STK_GET_URUN_KODU_ADI( p_urun_id, NULL, &urun_adi );

    SET_HEADERS ( QStringList()<<tr("part_no_id")<<tr("Parti Kodu")<<tr("Ürün Miktarı") << tr("Üretim Tarihi") << tr("Son K. Tarihi"));

    SET_PAGE_TITLE    ( "PARTİ KODU SEÇİMİ" );
    SET_SETTING_NAME  ( "STOK_GIDEN_PARTI_NO_SECIMI" );
    SET_HELP_PAGE     ( tr("stok_giden_parti_no_secimi.html") );

    INIT_KERNEL ( DB );

    QTableWidget * tablewidget = GET_TABLE_WIDGET();

    tablewidget->hideColumn(0);

    tablewidget->setColumnWidth( 1 , 40);
    tablewidget->setColumnWidth( 2 , 20);
    tablewidget->setColumnWidth( 3 , 20);
    tablewidget->setColumnWidth( 4 , 20);

    QList< int > secili_olacak_id;
    secili_olacak_id << p_secili_parti_no;
    SELECT_LINES( secili_olacak_id );
}
コード例 #13
0
IRS_IADE_IRSALIYE_SECIMI::IRS_IADE_IRSALIYE_SECIMI ( QString p_irsaliye_tarihi, int p_cari_hesap_id, int p_irsaliye_alis_satis_turu,int p_irsaliye_turu, QWidget * p_parent ) : SECIM_KERNELI ( p_parent )
{
    SET_HELP_PAGE ("irs_iade_irsaliye_secimi.html");

    m_irsaliye_tarihi_bitis     = p_irsaliye_tarihi;
    m_cari_hesap_id             = p_cari_hesap_id;
    m_irsaliye_alis_satis_turu  = p_irsaliye_alis_satis_turu;
    m_irsaliye_turu             = p_irsaliye_turu;


    SET_WINDOW_SIZE     ( 300, 500 );
    SET_SORTING         ( false );
    SET_HEADERS         ( QStringList() << tr("irsaliye_id") << tr("İrsaliye No") <<tr("İrs. Seri No")
                                        << tr("İrs. Tarihi") );

    INIT_KERNEL         ( DB );

    QTableWidget * tableWidget = GET_TABLE_WIDGET();

    tableWidget->setColumnWidth ( FIS_NO_COLUMN,                    100 );
    tableWidget->setColumnWidth ( IRSALIYE_BELGE_SERI_NO_COLUMN,    100 );
    tableWidget->setColumnWidth ( IRSALIYE_TARIHI_COLUMN,           100 );

    SET_SETTING_NAME            ( "IRS_IADE_IRSALIYE_SECIMI" );

    SET_PAGE_TITLE              ( tr ( "İRS - İADE İRSALİYE SEÇİMİ" ) );

    tableWidget->hideColumn     ( 0 );

}
コード例 #14
0
void MUH_FIS_KOPYALAMA_BATCH::SETUP_FORM()
{
    SET_HELP_PAGE       ( tr ( "muh_fis_kopyalama.html" ) );
    SET_PAGE_TITLE      ( tr ( "MUH - MUHASEBE FİŞİ KOPYALAMA" ) );

    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );

    SET_SETTING_NAME    ( "MUH_FIS_KOPYALAMA" );

    MUH_FIS_BILGILERINI_OKU( M_FIS, m_fis_id );

    SET_AUTO_EXIT_BATCH(true);

    m_ui->search_edit_fis_no->SET_TEXT               ( QVariant( M_FIS->fis_no ).toString() );
    m_ui->adakDate_kopyalanacak_fis_tarihi->SET_DATE( M_FIS->fis_tarihi );
    m_ui->adakDate_yeni_fis_tarihi->SET_DATE        ( M_FIS->fis_tarihi );
    m_ui->textedit_aciklama->setPlainText           ( M_FIS->aciklama );
    m_ui->commaedit_top_borc->SET_DOUBLE            ( M_FIS->toplam_borc );
    m_ui->commaedit_top_alacak->SET_DOUBLE          ( M_FIS->toplam_alacak );

    m_fis_turu = M_FIS->fis_turu;

    int siradaki_fis_no = MUH_SIRADAKI_FIS_NO_AL ( m_ui->adakDate_yeni_fis_tarihi->DATE() );
    m_ui->lineEdit_yeni_fis_no->setText ( QVariant ( siradaki_fis_no ).toString() );

    SET_NAME_OF_RUN_BATCH_BUTTON ( tr ( "Fiş Kopyala" ) );  
    SET_FIRST_FOCUS_WIDGET       ( m_ui->search_edit_fis_no   );

    m_ui->adakDate_kopyalanacak_fis_tarihi->setEnabled( false );
    m_ui->search_edit_fis_no->setEnabled    ( false );
    m_ui->textedit_aciklama->setEnabled     ( false );
    m_ui->commaedit_top_alacak->setEnabled  ( false );
    m_ui->commaedit_top_borc->setEnabled    ( false );

}
コード例 #15
0
VERITABANI_SECIMI::VERITABANI_SECIMI( int kullanici_id , QString * veritabani_ismi , QString * veritabani_tanimi , QWidget *parent ) : SECIM_KERNELI ( parent )
{
    if ( kullanici_id EQ 1 ) {
        m_kullanici_id           = -1;
    }
    else {
        m_kullanici_id           = kullanici_id;
    }

    m_veritabani_ismi        = veritabani_ismi;
    m_veritabani_tanimi      = veritabani_tanimi;

    SET_WINDOW_SIZE  (400, 400 );
    SET_PAGE_TITLE ( QObject::tr ( "DATABASE SELECTION" ) );
    SET_HEADERS ( QStringList()<<QObject::tr("Database Id")<<QObject::tr ( "Database" )<<QObject::tr ( "Database Definition" ) );
    SET_SORTING ( false );

    SET_HELP_PAGE   ( "yonetim-islemleri_veritabani-degistir" );


    INIT_KERNEL (G_YONETIM_DB);

    QTableWidget * table_widget = GET_TABLE_WIDGET();

    table_widget->horizontalHeader()->setDefaultSectionSize(0);

    table_widget->hideColumn(0);
    table_widget->setColumnWidth ( 1,  30 );
    table_widget->setColumnWidth ( 2,  70 );

    SET_SETTING_NAME   ( "VERITABANI_SECIMI" );

}
コード例 #16
0
void HATA_ISTEK_BATCH::SETUP_FORM ()
{

    SET_PAGE_TITLE    (tr("BUG/REQUEST FORM"));//HATA/İSTEK BİLDİRİMİ
    SET_SETTING_NAME  ("HATA_ISTEK_EKRANI");
    SET_HELP_PAGE     ("hata_istek");
    SET_AUTO_EXIT_BATCH ( true );
    SET_NAME_OF_RUN_BATCH_BUTTON ( tr("SEND")      );
    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_button );

    if ( KULLANICI_ID() NE -1 ) {
         SQL_QUERY sql_query(G_YONETIM_DB);
         sql_query.PREPARE_SELECT ( "ynt_kullanicilar","email_adresi","kullanici_id = :kullanici_id AND silinmis_mi = 0","");
         sql_query.SET_VALUE       ( ":kullanici_id", KULLANICI_ID() );
         if ( sql_query.SELECT() NE 0 ) {
             sql_query.NEXT();
             m_ui->line_edit_email->setText(sql_query.VALUE(0).toString());
         }
    }

    SET_FIRST_FOCUS_WIDGET ( m_ui->text_edit_hata_istek );

    m_ui->line_edit_email->setMaxLength(50);
    m_ui->label_mail_atilacak_adres->setText(ADAK_PROGRAM_EMAIL(ADAK_DISPLAY_ID()));
}
コード例 #17
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 );
    }
}
コード例 #18
0
void ADRES_RAPOR_FILTRESI_BATCH::SETUP_FORM ()
{
    //SET_HELP_PAGE        ("adres-raporlari");
    SET_SETTING_NAME     ( "ADRES_RAPOR_FILTRESI_BATCH" );

    switch ( m_adres_rapor_turu ) {
    case ADRES_ILETISIM_RAPORU :
    default :
        SET_PAGE_TITLE ( tr ( "ADR - TELEFON / WEB / E-POSTA KAYITLARI" ) );
        SET_NAME_OF_RUN_BATCH_BUTTON ( tr ("Rapor Al" ) );
        SET_HELP_PAGE        ("adres-toplu-mail-sms_telefonwebe-posta-kayitlari");
        break;
    case ADRES_ETIKETLERI_RAPORU :
        SET_PAGE_TITLE ( tr ( "ADR - ADRES ETİKETLERİ YAZDIR" ) );
        SET_NAME_OF_RUN_BATCH_BUTTON ( tr ( "Etiket Yazdır" ) );
        SET_HELP_PAGE("adres-toplu-mail-smsm_adres-etiketleri-yazdir");
        break;
    case TOPLU_MAIL_GONDERIMI :
        SET_PAGE_TITLE ( tr ( "ADR - TOPLU MAIL GÖNDERİMİ" ) );
        SET_NAME_OF_RUN_BATCH_BUTTON ( tr ( "Mail Gönder" ) );
        SET_HELP_PAGE("adres-toplu-mail-sms_toplu-mail-gonderimi");
        break;
    case TOPLU_SMS_GONDERIMI:
        SET_PAGE_TITLE ( tr ( "ADR - TOPLU SMS GÖNDERİMİ" ) );
        SET_NAME_OF_RUN_BATCH_BUTTON ( tr ( "Kayıtları Seç" ) );
        SET_HELP_PAGE("adres-toplu-mail-sms_toplu-sms-gonderimi");
        break;
    case ADRES_BILGILERI_RAPORU :
        SET_PAGE_TITLE ( tr ( "ADR - ADRES KAYITLARI" ) );
        SET_NAME_OF_RUN_BATCH_BUTTON ( tr ("Rapor Al" ) );
        SET_HELP_PAGE        ("Adres-toplu-mail-sms_adres-kayitlari");
        break;
    }
    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );

    m_ui->frame_gruplar->setEnabled ( false );
    m_ui->frame_adres_kayitlari->setEnabled ( false );

    m_ui->radioButton_firma_sahis->setChecked ( true );
    m_adres_kayit_turu = SAHIS_ARTI_FIRMA;

    m_ui->tableWidget_adres_kayitlari->hideColumn(0);

    m_ui->radioButton_firma_sahis->setEnabled( true );
    SET_FIRST_FOCUS_WIDGET( m_ui->radioButton_firma_sahis );
}
コード例 #19
0
void E9_LOG_KAYDI_ARAMA::SETUP_FORM()
{
    SET_HELP_PAGE  ( "yonetim-islemleri_e9-log-bilgileri" );

    QString page_title = tr("E9 Log Bilgisi Arama");

    m_ui->frame_kullanici_secimi->setEnabled ( false );
    m_ui->frame_log_turu->setEnabled         ( false );
    m_ui->textEdit_yapilan_islem->setVisible ( false );

    m_ui->adakDate_first_date->SET_DATE( MALI_YIL_FIRST_DATE() );

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

    E9_FILL_COMBOBOX_ADAK_MODULES   ( m_ui->comboBox_modul_secimi );

    SET_FIRST_FOCUS_WIDGET( m_ui->adakDate_first_date );

#ifdef ADRES_BAGIMSIZ
    m_ui->adakDate_first_date->SET_DATE( QDate::currentDate().addDays(-30) );
    m_ui->comboBox_modul_secimi->setCurrentIndex ( m_ui->comboBox_modul_secimi->findText ( E9_GET_ADAK_MODULES_STRING ( ADRES_MODULU ) ));
    m_ui->comboBox_modul_secimi->setEnabled ( false );
    page_title = tr( "ADRES 007 LOG ARAMA" );

#endif

    FILL_LOG_TURLERI_COMBOBOX     ();

    m_kullanici_id = -1;

    REGISTER_TABLE_WIDGET         ( m_ui->tableWidget );

    REGISTER_ARAMA_BUTTONS_WIDGET ( m_ui->widget_batch_buttons );

    SET_PAGE_TITLE ( page_title );

    SET_HEADERS ( QStringList() << tr ("log_id")       << tr ("İşlem Tarihi") << tr ("İşlem Zamanı")
                                << tr ("Kullanıcı")    << tr ("Bilgisayar")   << tr ("Log Türü")
                                << tr ("İşlem Türü"));

    SET_ENTER_KEY_FOR_RUN_BATCH   ( true );

    SET_SORTING                   ( false );

    SET_FIND_BUTTON_NAME          ( tr("Log Kaydı Ara") );

    m_ui->tableWidget->hideColumn     ( LOG_ID_COLUMN );

    m_ui->tableWidget->setColumnWidth ( ISLEM_TARIHI_COLUMN, 144 );
    m_ui->tableWidget->setColumnWidth ( ISLEM_ZAMANI_COLUMN, 98 );
    m_ui->tableWidget->setColumnWidth ( KULLANICI_COLUMN,    147 );
    m_ui->tableWidget->setColumnWidth ( BILGISAYAR_COLUMN,   149 );
    m_ui->tableWidget->setColumnWidth ( LOG_TURU_COLUMN,     155 );
    m_ui->tableWidget->setColumnWidth ( ISLEM_TURU_COLUMN,   142 );

    SET_SETTING_NAME                  ( "E9_LOG_KAYDI_ARAMA" );
}
コード例 #20
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);
}
コード例 #21
0
void STOK_URUN_LISTESI_BATCH::SETUP_FORM()
{

    if ( m_urun_mu_hizmet_mi EQ ENUM_URUN_KARTI ) {
        SET_PAGE_TITLE( tr ( "STK - ÜRÜN LİSTESİ" ) );
        SET_SETTING_NAME( "STOK_URUN_LISTESI_BATCH" );
    }
    else {
        SET_PAGE_TITLE( tr ( "STK - HİZMET LİSTESİ" ) );
        SET_SETTING_NAME( "STOK_HIZMET_LISTESI_BATCH" );
    }

    SET_HELP_PAGE("urun-listesi");

    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );
    SET_NAME_OF_RUN_BATCH_BUTTON ( "Rapor Al" );
    SET_FIRST_FOCUS_WIDGET       ( m_ui->searchEdit_bas_urun_kodu );
    SET_ENTER_KEY_FOR_RUN_BATCH  ( true );

    SQL_QUERY query(DB);

    query.PREPARE_SELECT( "stk_urunler", "urun_kodu,urun_adi", "hizmet_mi = :hizmet_mi" );
    query.SET_VALUE(":hizmet_mi", m_urun_mu_hizmet_mi );

    if ( query.SELECT("urun_kodu", 0, 1 ) NE 0 ) {
        query.NEXT();
        m_ui->searchEdit_bas_urun_kodu->SET_TEXT(query.VALUE(0).toString());
        m_ui->lineEdit_bas_urun_adi->setText(query.VALUE(1).toString());
    }

    query.PREPARE_SELECT("stk_urunler","urun_kodu,urun_adi","hizmet_mi = :hizmet_mi");

    query.SET_VALUE(":hizmet_mi", m_urun_mu_hizmet_mi );

    if ( query.SELECT("urun_kodu DESC", 0, 1 ) NE 0 ) {
        query.NEXT();
        m_ui->searchEdit_bts_urun_kodu->SET_TEXT(query.VALUE(0).toString());
        m_ui->lineEdit_bts_urun_adi->setText(query.VALUE(1).toString());
    }

    m_ui->frame_grup_kodu->setDisabled(true);
}
コード例 #22
0
void YONETIM_007_ARAMA::SETUP_FORM ()
{

    REGISTER_TABLE_WIDGET ( m_ui->tableWidget );
    REGISTER_ARAMA_BUTTONS_WIDGET ( m_ui->widget_batch_buttons );

    SET_HEADERS(QStringList()<<tr ( "log_id")<<tr ( "Tarih" )<<tr ( "Saat" )<<tr ( "Kullanıcı Bilgisi")
                             <<tr ( "Bilgisayar Bilgisi" )<<tr ( "LOG Türü" )<<tr ( "LOG İşlemi" ) );

    SET_ENTER_KEY_FOR_RUN_BATCH(true);

    SET_FIND_BUTTON_NAME(tr("Kayıtları Göster"));

    SET_SORTING ( false );

    m_ui->frame_tarih->setEnabled(false);
    m_ui->frame_log_turu->setEnabled(false);
    m_ui->frame_kullanici->setEnabled(false);
    m_ui->dateEdit_first_date->setDate(QDate::currentDate());
    m_ui->dateEdit_second_date->setDate(QDate::currentDate());

    SQL_QUERY sql_query(G_YONETIM_DB);
    sql_query.PREPARE_SELECT("ynt_kullanicilar","kullanici_kodu","silinmis_mi = 0");
    if ( sql_query.SELECT() > 0 ) {
        while (sql_query.NEXT() EQ true ) {
            m_ui->comboBox_kullanicilar->addItem(sql_query.VALUE(0).toString());
        }
    }

    m_ui->comboBox_log_turu->addItem("BILGISAYARLAR");
    m_ui->comboBox_log_turu->addItem("KULLANICILAR");
    m_ui->comboBox_log_turu->addItem("VERITABANLARI");
    m_ui->comboBox_log_turu->addItem("PROGRAM");

    SET_PAGE_TITLE    ( tr("YÖNETİM 007 / LOG BİLGİLERİ"));
    SET_SETTING_NAME  ("YONETIM_007");
    SET_HELP_PAGE     ("yonetim-islemleri_yonetim-log-bilgileri");

    m_ui->tableWidget->setColumnWidth ( ISLEM_TARIHI_COLUMN      , 130 );
    m_ui->tableWidget->setColumnWidth ( ISLEM_SAATI_COLUMN       ,  50 );
    m_ui->tableWidget->setColumnWidth ( KULLANICI_BILGISI_COLUMN , 120 );
    m_ui->tableWidget->setColumnWidth ( BILGISAYAR_BILGISI_COLUMN, 250 );

    m_ui->tableWidget->hideColumn ( LOG_ID_COLUMN);

    m_ui->limitedTextEdit_ekstra_bilgiler->SET_LINE_LIMIT(5);
    m_ui->limitedTextEdit_ekstra_bilgiler->SET_MAX_STRING_LENGTH(500);


    m_ui->checkbox_tarih->setChecked( true );
    m_ui->frame_tarih->setEnabled( true );

    SET_FIRST_FOCUS_WIDGET( m_ui->dateEdit_first_date );
}
コード例 #23
0
void MUH_HESAP_PLANI_KOPYALA_BATCH::SETUP_FORM ()
{
    SET_PAGE_TITLE    ( tr ( "MUH - HESAP PLANI KOPYALA" ) );
    SET_HELP_PAGE     ("genel-muhasebe_hesap-plani-kopyala");

    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );

    SET_NAME_OF_RUN_BATCH_BUTTON ( "Kopyala" );
    SET_FIRST_FOCUS_WIDGET       ( m_ui->searchEdit_veritabani_ismi );
    SET_SETTING_NAME             ( "MUH_HESAP_PLANI_KOPYALA_BATCH" );
    SET_ENTER_KEY_FOR_RUN_BATCH  ( true );
}
コード例 #24
0
SQL_SUNUCU_SECIMI::SQL_SUNUCU_SECIMI( QString * secilen_sunucu ,QWidget * parent ) : SECIM_KERNELI ( parent )
{
    m_secilen_sunucu = secilen_sunucu;

    SET_WINDOW_SIZE ( 300, 800 );

    SET_HEADERS (QStringList() << "Sunucular" );

    SET_PAGE_TITLE    ( tr ( "SUNUCU SEÇİMİ" ) );
    SET_SETTING_NAME  ( "SUNUCU_SECIMI" );
    SET_HELP_PAGE     ( tr("sql_sunucu_secimi") );

    INIT_KERNEL ( DB );
}
コード例 #25
0
void DVZ_KUR_GUNCELLE_BATCH::SETUP_FORM()
{
    SET_PAGE_TITLE    ( tr ( "DVZ - KURLARI GÜNCELLE" ) );
    SET_SETTING_NAME  ("DVZ_KUR_GUNCELLE_BATCH");
    SET_HELP_PAGE     ("doviz-islemleri_kurlari-guncelle");

    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );

    SET_FIRST_FOCUS_WIDGET( m_ui->adakDate_bas_tarihi );
    SET_NAME_OF_RUN_BATCH_BUTTON ( "Kur Güncelle" );

    m_ui->adakDate_bas_tarihi->SET_DATE(QDate::currentDate());
    m_ui->adakDate_bitis_tarihi->SET_DATE(QDate::currentDate());
}
コード例 #26
0
void CARI_HESAP_EKSTRESI_BATCH::SETUP_FORM()
{
    SET_HELP_PAGE     ( "cari-hesap-islemleri_cari-hesap-ekstresi" );
    SET_PAGE_TITLE    ( tr ( "CARİ - CARİ HESAP EKSTRESİ" ) ) ;

    REGISTER_BUTTON_WIDGET          ( m_ui->widget_batch_buttons );

    m_ui->adakDate_bsl_tarihi->SET_DATE( MALI_YIL_FIRST_DATE() );
    m_ui->adakDate_bts_tarihi->SET_DATE( MALI_ARRAY_LAST_DATE() );

    m_ui->checkbox_tek_hesap->setChecked( true );
    m_ui->frame_tek_hesap->setEnabled( true );
    m_ui->checkbox_bakiyesiz_hesaplar->setChecked( true );
    m_ui->checkbox_bakiyesiz_hesaplar->setEnabled( false );

    m_ui->frame_hesap_araligi->setDisabled ( true );
    m_ui->frame_bakiyesiz_hesaplar->setDisabled ( true );
    m_ui->frame_calismamis_hesaplar->setDisabled ( true );

    SET_NAME_OF_RUN_BATCH_BUTTON    ( tr ( "Rapor Al" ) );
    SET_FIRST_FOCUS_WIDGET          ( m_ui->searchedit_tek_hesap );
    FOCUS_FIRST_WIDGET              ();

    if ( m_cari_hesap_id NE -1 ) {
        m_ui->checkbox_tek_hesap->setChecked(true);
        m_ui->frame_hesap_araligi->setDisabled(true);
        m_ui->checkbox_hesap_araligi->setCheckState(Qt::Unchecked);
        m_ui->frame_tek_hesap->setEnabled(true);
        SQL_QUERY query(DB);

        query.PREPARE_SELECT("car_hesaplar","cari_hesap_kodu,adres_id","cari_hesap_id = :cari_hesap_id");
        query.SET_VALUE(":cari_hesap_id" , m_cari_hesap_id);

        if( query.SELECT() NE 0 ) {
            query.NEXT();
            m_ui->searchedit_tek_hesap->SET_TEXT(query.VALUE(0).toString());

            m_ui->lineedit_tek_hesap_ismi->setText(ADR_GET_FIRMA_SAHIS_ADI(query.VALUE(0).toInt()));
        }

    }

    if ( E9_KULLANICI_SIRKET_DEGISTIRE_BILIR_MI() EQ EVET ) {
       m_ui->frame_entegre_filtresi->setVisible( true );
    }
    SET_ENTER_KEY_FOR_RUN_BATCH     ( true );
    SET_SETTING_NAME                ( "CARI_HESAP_EKSTRESI" );
}
コード例 #27
0
void STOK_EKSTRESI_BATCH::SETUP_FORM()
{
    SET_PAGE_TITLE    ( tr ( "STK - STOK EKSTRESİ" ) );
    SET_HELP_PAGE     ("stok-islemleri_stok-ekstresi");

    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );

    m_ui->adakDate_bsl_tarihi->SET_DATE(MALI_YIL_FIRST_DATE());
    m_ui->adakDate_bts_tarihi->SET_DATE(MALI_YIL_365_DATE());

    SET_NAME_OF_RUN_BATCH_BUTTON ( "Rapor Al" );

    SET_FIRST_FOCUS_WIDGET ( m_ui->search_edit_urun_kodu );

    STK_FILL_ALIS_SATIS_DURUMU_COMBO_BOX ( m_ui->comboBox_stok_alis_satis_durumu );

    SET_ENTER_KEY_FOR_RUN_BATCH(true);    

    SET_SETTING_NAME  ("STOK_EKSTRESI_BATCH");

    m_ui->checkBox_urun_kodu->setChecked( true );
    m_ui->frame_urun->setEnabled( true );

    m_ui->checkBox_urun_araligi->setChecked( false );
    m_ui->frame_urun_araligi->setEnabled( false );

    m_depo_id = SUBE_GET_UNITENIN_DEPOSU();

    m_depo_islem_yetkisi = SUBE_GET_DEPO_ISLEM_YETKISI();

    if ( m_depo_islem_yetkisi EQ SADECE_UNITE_DEPOSUNDA ) {

        m_ui->frame_depo->setHidden(true);
        m_ui->checkBox_depo->setHidden(true);
    }
    else {
        QString depo_kodu;
        QString depo_adi;

        SUBE_GET_DEPO_KODU_ADI(m_depo_id, &depo_kodu, &depo_adi);

        m_ui->searchEdit_depo_kodu->SET_TEXT(depo_kodu);
        m_ui->lineedit_depo_ismi->setText(depo_adi);
        m_ui->frame_depo->setDisabled(true);
    }

}
コード例 #28
0
ファイル: dvz_dovizler_batch.cpp プロジェクト: ArGeMaNiA/K9
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();
}
コード例 #29
0
void DMR_DEMIRBAS_LISTESI_BATCH::SETUP_FORM()
{
    SET_HELP_PAGE ("sabit-kiymetler-demirbaslar_sabit-kiymetler-listesi" );
    SET_PAGE_TITLE( tr ( "DMR - SABİT KIYMETLER LİSTESİ") );

    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );

    SET_NAME_OF_RUN_BATCH_BUTTON ( "Rapor Al" );
    SET_FIRST_FOCUS_WIDGET ( m_ui->searchEdit_bas_dmr_kodu );
    SET_SETTING_NAME        ( "DMR_DEMIRBAS_LISTESI_BATCH" );

    m_sube_id = 0;

    m_ui->frame_gruplar->setDisabled(true);
    m_ui->frame_sube->setDisabled(true);
    m_ui->checkBox_sabit_kiymet_araligi->setChecked(true);
}
コード例 #30
0
ファイル: sube_tree_batch.cpp プロジェクト: ArGeMaNiA/K9
void SUBE_TREE_BATCH::SETUP_FORM ()
{
    SET_PAGE_TITLE    ( tr ( "ŞUBE - Organizasyon Şeması" ) );
    SET_HELP_PAGE     ( "organizasyon_semasi" );

    SET_AUTO_EXIT_BATCH             ( true );

    REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons );

    SET_FIRST_FOCUS_WIDGET( m_ui->widget_batch_buttons );
    // Buton ismini setliyoruz.
    SET_NAME_OF_RUN_BATCH_BUTTON ( "Kapat" );

    SET_SETTING_NAME  ("ORGANIZASYON_SEMASI");

    REFRESH_SUBE_SCHEMA();
}