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); } }
void PRS_IBRANAME_MADDELERI_BATCH::SETUP_FORM() { SET_HELP_PAGE ("sabit-degerler"); SET_SETTING_NAME ( "PRS - PRS_IBRANAME_MADDELERI_BATCH" ); SET_PAGE_TITLE ( tr("SÖZLEŞME") ); SET_AUTO_EXIT_BATCH ( true ); REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons ); SQL_QUERY sql_query( DB ); SET_NAME_OF_RUN_BATCH_BUTTON (tr("Kaydet")); SET_ICON_OF_BATCH_BUTTON (":/e9_icons/E9_ICONS/kaydet_ikonu.png"); m_ui->text_edit_ibraname_maddeleri->SET_MAX_STRING_LENGTH( 950 ); DISABLE_CLEAR_ON_WIDGET( m_ui->text_edit_ibraname_maddeleri ); SET_FIRST_FOCUS_WIDGET ( m_ui->text_edit_ibraname_maddeleri ); sql_query.PREPARE_SELECT("prs_sabit_degerler ","ibraname_maddeleri ", "sabit_degerler_id =:sabit_degerler"); sql_query.SET_VALUE(":sabit_degerler",1); if ( sql_query.SELECT() > 0 ) { sql_query.NEXT(); m_ui->text_edit_ibraname_maddeleri->setText( sql_query.VALUE(0).toString() ); } sql_query.PREPARE_SELECT("e9_sabit_degerler ","firma_ismi", "sabit_deger_id =:sabit_degerler"); sql_query.SET_VALUE(":sabit_deger",1); if(sql_query.SELECT() EQ 0 ) { m_ui->label_firma_adi->clear(); } else { sql_query.NEXT(); m_ui->label_firma_adi->setText(sql_query.VALUE(0).toString()); } }
void XYZ_FORMU::SETUP_FORM () { // Single record mode setlenirse sadece yenile ve kaydet butonlari aktif olur. // record mode atamasi init kerneldan once yapilmalidir.Cunku gui init kernelda olusturulur. // single record mode da database de en az 1 kayit oldugu kabul edilir.bu yuzden yoksa bir kere yaratilmalidir. // // SET_SIGNLE_RECORD_MODE (record_id) // Programa ilk girildiginde ve yeni kayitta focuslanacak widget setlenmelidir. SET_FIRST_FOCUS_WIDGET ( m_ui->xyz_widget ); // buttonlarin koyacagi widgetlar atanir. REGISTER_BUTTONS_WIDGET ( m_ui->kernel_buttons_widget ); SET_PAGE_TITLE (tr("BLA BLA EKRANI")); SET_SETTING_NAME ("BLA_BLA_FORMU"); SET_HELP_PAGE ("bla_bla.html"); DISABLE_CLEAR_ON_WIDGET(m_ui->lineedit_muhasebe_ayraci); //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); }
void DMR_DEMIRBAS_KARTI::SETUP_FORM() { SET_HELP_PAGE ( "sabit-kiymetler-demirbaslar_sabit-kiymet-kaydi" ); SET_PAGE_TITLE ( tr ( "DMR - SABİT KIYMET KAYDI" ) ); REGISTER_BUTTONS_WIDGET ( m_ui->navigation_buttons_widget ); SET_FIRST_FOCUS_WIDGET ( m_ui->lineedit_demirbas_kodu ); REGISTER_CHANGER_BUTTON(m_ui->pushButton_guplar); REGISTER_CHANGER_BUTTON(m_ui->pushButton_fatura_sec); m_ui->lineEdit_temel_para_birimi->setText(DVZ_GET_TEMEL_PARA_BIRIMI_KODU()); m_ui->comboBox_amortisman_yontemi->addItems ( QStringList() << "Normal Bakiye" << "Azalan Bakiye" ); DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_temel_para_birimi); m_ui->checkBox_yeniden_degerleme->setChecked ( true ); SET_SETTING_NAME ( "DMR_DEMIRBAS_KARTI" ); FOCUS_FIRST_WIDGET (); m_ui->lineedit_amortisman_suresi->setMaxLength(2); m_ui->lineedit_demirbas_adi->setMaxLength(128); m_ui->lineedit_demirbas_kodu->setMaxLength(20); m_ui->lineedit_garanti_suresi->setMaxLength(2); m_ui->lineEdit_marka->setMaxLength(128); m_ui->lineEdit_model->setMaxLength(128); m_ui->lineedit_muh_hesap_ismi->setMaxLength(60); m_ui->lineEdit_seri_no->setMaxLength(20); m_ui->lineEdit_uretici_firma->setMaxLength(128); DISABLE_CLEAR_ON_WIDGET(m_ui->checkBox_amortisman_ayrilacak_mi); m_ui->checkBox_amortisman_ayrilacak_mi->setChecked(true); DISABLE_CLEAR_ON_WIDGET(m_ui->comboBox_amortisman_yontemi); DISABLE_CLEAR_ON_WIDGET(m_ui->searchedit_muh_hesap_kodu); DISABLE_CLEAR_ON_WIDGET(m_ui->lineedit_muh_hesap_ismi ); DISABLE_CLEAR_ON_WIDGET(m_ui->searchedit_amor_gdr_hesap_kodu); DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_amor_gdr_hesap_ismi ); DISABLE_CLEAR_ON_WIDGET(m_ui->searchedit_bir_amortisman_hesap_kodu); DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_bir_amortisman_hesap_ismi ); DISABLE_CLEAR_ON_WIDGET(m_ui->searchEdit_sube_kodu); DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_sube_ismi); DISABLE_CLEAR_ON_WIDGET(m_ui->searchedit_dmr_satis_kar_hesap_kodu); DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_dmr_satis_kar_hesap_ismi); DISABLE_CLEAR_ON_WIDGET(m_ui->searchedit_dmr_satis_zarar_hesap_kodu); DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_dmr_satis_zarar_hesap_ismi); SQL_QUERY query(DB); m_grup_id = -1; m_muh_hesap_id = 0; m_fatura_id = 0; m_amor_gider_hesap_id = 0; m_bir_amor_hesap_id = 0; m_dmr_satis_kar_hesap_id = 0; QString demirbas_hesap_kodu, demirbas_hesap_adi; m_muh_hesap_id = SUBE_GET_SUBE_ENT_HESAP_ID( SUBE_GET_SUBE_ID(), "demirbaslar_ent_hesap_id", &demirbas_hesap_kodu, &demirbas_hesap_adi ); m_ui->searchedit_muh_hesap_kodu->SET_TEXT ( demirbas_hesap_kodu ); m_ui->lineedit_muh_hesap_ismi->setText ( demirbas_hesap_adi ); QString amortisman_hesap_kodu, amortisman_hesap_adi; m_bir_amor_hesap_id = SUBE_GET_SUBE_ENT_HESAP_ID( SUBE_GET_SUBE_ID(), "bir_amortismanlar_hsp_id", &amortisman_hesap_kodu, &amortisman_hesap_adi ); m_ui->searchedit_bir_amortisman_hesap_kodu->SET_TEXT ( amortisman_hesap_kodu ); m_ui->lineEdit_bir_amortisman_hesap_ismi->setText ( amortisman_hesap_adi ); QString amor_gider_hesap_kodu, amor_gider_hesap_adi; m_amor_gider_hesap_id = SUBE_GET_SUBE_ENT_HESAP_ID( SUBE_GET_SUBE_ID(), "amor_giderleri_hsp_id", &amor_gider_hesap_kodu, &amor_gider_hesap_adi ); m_ui->searchedit_amor_gdr_hesap_kodu->SET_TEXT ( amortisman_hesap_kodu ); m_ui->lineEdit_amor_gdr_hesap_ismi->setText ( amortisman_hesap_adi ); QString dmr_satis_kar_hesap_kodu, dmr_satis_kar_hesap_adi; m_dmr_satis_kar_hesap_id = SUBE_GET_SUBE_ENT_HESAP_ID( SUBE_GET_SUBE_ID(), "dmr_satis_kar_ent_hesap_id", &dmr_satis_kar_hesap_kodu, &dmr_satis_kar_hesap_adi ); m_ui->searchedit_dmr_satis_kar_hesap_kodu->SET_TEXT ( dmr_satis_kar_hesap_kodu ); m_ui->lineEdit_dmr_satis_kar_hesap_ismi->setText ( dmr_satis_kar_hesap_adi ); QString dmr_satis_zarar_hesap_kodu, dmr_satis_zarar_hesap_adi; m_dmr_satis_zarar_hesap_id = SUBE_GET_SUBE_ENT_HESAP_ID( SUBE_GET_SUBE_ID(), "dmr_satis_zarar_ent_hesap_id", &dmr_satis_zarar_hesap_kodu, &dmr_satis_zarar_hesap_adi ); m_ui->searchedit_dmr_satis_zarar_hesap_kodu->SET_TEXT ( dmr_satis_zarar_hesap_kodu ); m_ui->lineEdit_dmr_satis_zarar_hesap_ismi->setText ( dmr_satis_zarar_hesap_adi ); if ( E9_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); } m_sube_id = 1; 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->lineEdit_sube_ismi->setText( sube_adi ); }
void MUH_MIZAN_RAPORU_BATCH::SETUP_FORM() { SET_HELP_PAGE ( "mizan" ); SET_PAGE_TITLE ( "MUH - MİZAN" ); REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons ); SET_SETTING_NAME ( "MUH_MIZAN_RAPORU_BATCH" ); SET_NAME_OF_RUN_BATCH_BUTTON ( tr ( "Rapor Al" ) ); SET_ENTER_KEY_FOR_RUN_BATCH ( true ); SET_FIRST_FOCUS_WIDGET( m_ui->comboBox_mizan_donemi ); m_grup_idleri.clear(); SQL_QUERY sql_query ( DB ); sql_query.PREPARE_SELECT("e9_kullanici_yetkileri" , "mizan_nakli_yekun" , "kullanici_id = :kullanici_id"); sql_query.SET_VALUE(":kullanici_id" , KULLANICI_ID()); int nakli_yekun = 1; if ( sql_query.SELECT() NE 0 ) { sql_query.NEXT(); nakli_yekun = sql_query.VALUE(0).toInt(); } m_ui->checkbox_nakli_yekun->setChecked(QVariant(nakli_yekun).toBool()); m_ui->frame_tarih_araligi->setDisabled(true); sql_query.PREPARE_SELECT("muh_hesaplar" , "tam_hesap_kodu,hesap_ismi" ); if (sql_query.SELECT("tam_hesap_kodu ASC" , 0,1) NE 0 ) { sql_query.NEXT(); m_ui->search_edit_bas_hesap_kodu->SET_TEXT ( sql_query.VALUE(0).toString() ); m_ui->lineedit_bas_hesap_ismi->setText ( sql_query.VALUE(1).toString() ); } sql_query.PREPARE_SELECT("muh_hesaplar" , "tam_hesap_kodu,hesap_ismi" ); if ( sql_query.SELECT("tam_hesap_kodu DESC" , 0,1) NE 0 ) { sql_query.NEXT(); m_ui->search_edit_bts_hesap_kodu->SET_TEXT ( sql_query.VALUE(0).toString() ); m_ui->lineedit_bts_hesap_ismi->setText ( sql_query.VALUE(1).toString() ); } m_ui->spinbox_mizan_seviyesi->setMinimum(1); m_ui->spinbox_mizan_seviyesi->setMaximum(5); if ( E9_KULLANICI_SIRKET_DEGISTIRE_BILIR_MI() EQ EVET ) { m_ui->comboBox_sirket->setVisible(true); m_ui->label_sirket->setVisible(true); } DISABLE_CLEAR_ON_WIDGET(m_ui->comboBox_mizan_donemi); FILL_COMBOBOX_MIZAN_DONEMI(m_ui->comboBox_mizan_donemi); if ( QDate::currentDate().year() EQ MALI_YIL_FIRST_DATE().year() OR QDate::currentDate().year() EQ MALI_ARRAY_LAST_DATE().year() ) { m_current_mizan_donemi = GET_MZN_DONEMI_AY_STR(QDate::currentDate().month()) + QVariant(QDate::currentDate().year()).toString(); } else { m_current_mizan_donemi = GET_MZN_DONEMI_AY_STR(MALI_YIL_365_DATE().month()) + QVariant(MALI_YIL_365_DATE().year()).toString(); } m_ui->comboBox_mizan_donemi->setCurrentIndex(m_ui->comboBox_mizan_donemi->findText( m_current_mizan_donemi)); GET_MZN_DONEMINE_GORE_BAS_BTS_TARIHI(m_current_mizan_donemi , m_ui->adakDate_baslangic_tarihi, m_ui->adakDate_bts_tarihi); if ( nakli_yekun EQ 1 ) { m_ui->adakDate_baslangic_tarihi->SET_DATE(MALI_YIL_FIRST_DATE()); m_ui->adakDate_baslangic_tarihi->setDisabled(true); } }
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 (); }
void BNK_VIRMAN_FORMU::SETUP_FORM () { SET_PAGE_TITLE (tr ( "BNK - BANKA VİRMAN FORMU" ) ); SET_HELP_PAGE ("banka-islemleri_banka-virman-formu"); REGISTER_BUTTONS_WIDGET ( m_ui->kernel_buttons_widget ); REGISTER_SAVER_BUTTON( m_ui->pushButton_urettigi_fisler ); if ( K9_KULLANICI_FISIN_URETTIGI_ENT_FISLERINI_GOREBILIR_MI() EQ HAYIR ) { m_ui->pushButton_urettigi_fisler->setVisible( false ); } m_ui->commaEdit_kur->setVisible( false ); m_ui->label_kur->setVisible( false ); M_FIS = new BNK_DEFTER_FIS_STRUCT; M_FIS_SATIRI = new BNK_DEFTER_FIS_SATIRI_STRUCT; if( K9_KULLANICININ_CALISTIGI_SIRKET() EQ SIRKET_1 ){ m_ent_filtresi_turu = FIS_BIRINCI_SIRKET; }else { m_ent_filtresi_turu = FIS_HER_IKI_SIRKET; } FIND_AND_SET_COMBOBOX_TEXT(m_ui->comboBox_sirket_turu , K9_GET_KAYDEDILECEK_SIRKET_STRING( K9_KULLANICININ_CALISTIGI_SIRKET() ) ); DISABLE_CLEAR_ON_WIDGET( m_ui->comboBox_fis_filtresi ); m_ui->adakDate_tarih->SET_DATE( QDate::currentDate() ); m_ui->comboBox_fis_filtresi->setVisible( false ); m_ui->label_fis_filtresi->setVisible(false); m_ui->comboBox_sirket_turu->setVisible(false); m_ui->label_sirket->setVisible(false); K9_FILL_COMBOBOX_KAYDEDILECEK_SIRKET ( m_ui->comboBox_sirket_turu); K9_FILL_COMBOBOX_FIS_FILTRESI( m_ui->comboBox_fis_filtresi ); BNK_FILL_COMBO_BOX_BANKA_HESAPLARI ( m_ui->comboBox_gonderen_hesap ); BNK_FILL_COMBO_BOX_BANKA_HESAPLARI ( m_ui->comboBox_alici_hesap ); if ( K9_KULLANICI_SIRKET_DEGISTIRE_BILIR_MI() EQ EVET ) { m_ui->comboBox_fis_filtresi->setVisible( true ); m_ui->label_fis_filtresi->setVisible(true); m_ui->label_sirket->setVisible(true); m_ui->comboBox_sirket_turu->setVisible( true ); } FIND_AND_SET_COMBOBOX_TEXT( m_ui->comboBox_fis_filtresi, K9_GET_FIS_FILTRESI_STRING( m_ent_filtresi_turu )); SET_FIRST_FOCUS_WIDGET ( m_ui->lineEdit_fis_no ); SET_SETTING_NAME ( "BANAKA_VIRMAN_FORMU" ); m_ui->commaEdit_gonderen_tutar->SET_PRECISION ( 2 ); m_ui->commaEdit_alan_tutar->SET_PRECISION ( 2 ); m_ui->commaEdit_kur->SET_PRECISION ( 4 ); m_ui->limitedTextEdit_aciklama->SET_MAX_STRING_LENGTH ( 512); m_ui->lineEdit_gonderen_hesap_adi->setMaxLength ( 50 ); m_ui->lineEdit_alici_hesap_adi->setMaxLength ( 50 ); m_ui->commaEdit_gonderen_tutar->setMaxLength ( 15 ); m_ui->commaEdit_alan_tutar->setMaxLength ( 15 ); m_ui->commaEdit_kur->setMaxLength ( 8 ); m_ui->lineEdit_fis_no->setMaxLength ( 10 ); DISABLE_CLEAR_ON_WIDGET( m_ui->adakDate_tarih ); AUTOSTART_FORM_KERNEL( m_form_id ); }
void SMM_MAKBUZ_FORMU::SETUP_FORM () { if ( m_makbuz_turu EQ SMM_ALIS_MAKBUZU ) { SET_PAGE_TITLE ( tr ( "SMM - SERBEST MESLEK MAKBUZU (ALIŞ)" ) ); SET_HELP_PAGE ("serbest-meslek-makbuzu-alis"); } else { SET_PAGE_TITLE ( tr ( "SMM - SERBEST MESLEK MAKBUZU (SATIŞ)" ) ); SET_HELP_PAGE ("serbest-meslek-makbuzu-satis"); } REGISTER_SAVER_BUTTON( m_ui->pushButton_urettigi_fisler ); if ( K9_KULLANICI_FISIN_URETTIGI_ENT_FISLERINI_GOREBILIR_MI() EQ HAYIR ) { m_ui->pushButton_urettigi_fisler->setVisible( false ); } REGISTER_BUTTONS_WIDGET ( m_ui->kernel_buttons_widget ); SET_SETTING_NAME ( "SMM_MAKBUZ_FORMU" ); SET_FIRST_FOCUS_WIDGET ( m_ui->lineEdit_smmm_no ); M_ENT_DETAYLARI = new SMM_ENT_DETAYLARI; M_MAKBUZ = new SMM_MAKBUZ_STRUCT; BNK_FILL_COMBO_BOX_BANKA_HESAPLARI( m_ui->comboBox_banka_hesap_kodu ); SMM_CLEAR_MAKBUZ_STRUCT(M_MAKBUZ); m_ui->lineEdit_smmm_no->setText("*"); m_ui->lineEdit_smmm_no->setMaxLength(10); DISABLE_CLEAR_ON_WIDGET(m_ui->lineEdit_smmm_no); DISABLE_CLEAR_ON_WIDGET ( m_ui->comboBox_fis_filtresi); DISABLE_CLEAR_ON_WIDGET ( m_ui->comboBox_sirket ); K9_FILL_COMBOBOX_KAYDEDILECEK_SIRKET( m_ui->comboBox_sirket ); if ( K9_KULLANICININ_CALISTIGI_SIRKET() EQ SIRKET_1 ) { m_entegre_filtresi = FIS_BIRINCI_SIRKET; M_MAKBUZ->kaydedilecek_sirket = SIRKET_1; } else { m_entegre_filtresi = FIS_HER_IKI_SIRKET; M_MAKBUZ->kaydedilecek_sirket = SIRKET_2; } FIND_AND_SET_COMBOBOX_TEXT( m_ui->comboBox_sirket, K9_GET_KAYDEDILECEK_SIRKET_STRING( M_MAKBUZ->kaydedilecek_sirket )); K9_FILL_COMBOBOX_FIS_FILTRESI(m_ui->comboBox_fis_filtresi); if ( K9_KULLANICI_ENT_BILGILERINI_DEGISTIREBILIR_MI() EQ HAYIR ) { m_ui->pushButton_detaylar->setVisible( false ); } if ( K9_KULLANICI_SIRKET_DEGISTIRE_BILIR_MI() EQ HAYIR ) { m_ui->label_fis_filtresi->setVisible( false); m_ui->comboBox_fis_filtresi->setVisible( false ); m_ui->comboBox_sirket->setVisible( false ); m_ui->label_sirket->setVisible( false ); } m_ui->comboBox_fis_filtresi->setCurrentIndex(m_ui->comboBox_fis_filtresi->findText(K9_GET_FIS_FILTRESI_STRING(m_entegre_filtresi))); M_KDV_ORANLARI_ARRAY = new double [KDV_OTV_ORANLARI_SAYISI]; M_INDIRILECEK_KDV_HESABI_ID_ARRAY = new int [KDV_OTV_ORANLARI_SAYISI]; M_TEVKIFAT_HESAPLARI_ID_ARRAY = new int [KDV_OTV_ORANLARI_SAYISI]; GET_VERGI_DAIRELERI(m_ui->comboBox_vergi_dairesi); SQL_QUERY query(DB); query.PREPARE_SELECT("k9_sabit_degerler" , "ontanimli_kdv_orani,kdv_oranlari_array,ind_kdv_hesap_id_array," "tevkifat_kdv_hesap_id_array", "sabit_deger_id = :sabit_deger_id"); query.SET_VALUE(":sabit_deger_id" , 1); if ( query.SELECT() NE 0 ) { query.NEXT(); m_ontanimli_kdv_orani = query.VALUE(0).toDouble(); UNPACK_DOUBLE_ARRAY(query.VALUE(1).toString() , M_KDV_ORANLARI_ARRAY , KDV_OTV_ORANLARI_SAYISI); UNPACK_INT_ARRAY(query.VALUE(2).toString() , M_INDIRILECEK_KDV_HESABI_ID_ARRAY , KDV_OTV_ORANLARI_SAYISI ); UNPACK_INT_ARRAY(query.VALUE(3).toString() , M_TEVKIFAT_HESAPLARI_ID_ARRAY , KDV_OTV_ORANLARI_SAYISI); } m_ui->limitedTextEdit_aciklama->SET_MAX_STRING_LENGTH(512); m_ui->limitedTextEdit_adres->SET_MAX_STRING_LENGTH(512); SET_COMBOBOX_LENGTH(m_ui->comboBox_vergi_dairesi , 50); m_ui->lineEdit_vergi_numarasi->setMaxLength(15); m_ui->lineEdit_sm_sicil_numarasi->setMaxLength(20); m_ui->lineEdit_belge_seri->setMaxLength(3); m_ui->lineEdit_belge_numarasi->setMaxLength(15); DISABLE_CLEAR_ON_WIDGET(m_ui->comboBox_kdv_orani); K9_FILL_KDV_ORANLARI_COMBOBOX(m_ui->comboBox_kdv_orani); m_sube_kasa_hesap_id = SUBE_GET_UNITE_MUH_KASA_HESABI_ID(); SET_COMBOBOX_LENGTH(m_ui->comboBox_hizmet_turu , 128); query.PREPARE_SELECT("smm_hizmetler" ,"hizmet_adi" ,"hizmet_turu = :hizmet_turu"); if ( m_makbuz_turu EQ SMM_ALIS_MAKBUZU ) { query.SET_VALUE(":hizmet_turu" , SMM_ALINAN_HIZMET); } else { query.SET_VALUE(":hizmet_turu" , SMM_SATILAN_HIZMET); } if ( query.SELECT() NE 0 ) { while ( query.NEXT() ) { m_ui->comboBox_hizmet_turu->addItem(query.VALUE(0).toString()); } } else { MSG_WARNING( tr("Hizmet Alış/Satış tanımlamalısınız.!"), NULL ); } m_ui->comboBox_hizmet_turu->setCurrentIndex(-1); m_ui->comboBox_tah_odm_sekli->addItems(QStringList() << QObject::tr("Nakit")<< QObject::tr("Kredi Kartı") << QObject::tr("Havale")<< QObject::tr("Eft")); m_ui->comboBox_tah_odm_sekli->setCurrentIndex(-1); m_ui->comboBox_tah_odm_sekli->setEditable(false); m_ui->comboBox_hizmet_turu->setEditable(false); REGISTER_CHANGER_BUTTON ( m_ui->pushButton_detaylar ); REGISTER_SAVER_BUTTON ( m_ui->pushButton_yazdir ); AUTOSTART_FORM_KERNEL( m_form_id ); }
void E9_EFT_BATCH::SETUP_FORM() { SET_PAGE_TITLE ( tr ( "HAVALE / EFT DETAYLARI" ) ); SET_HELP_PAGE ( "e9-eft-havele" ); REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons ); SET_FIRST_FOCUS_WIDGET ( m_ui->comboBox_banka_hesap_kodu ); SET_NAME_OF_RUN_BATCH_BUTTON ( "Tamam" ); SET_ENTER_KEY_FOR_RUN_BATCH ( true ); SET_SETTING_NAME ( "E9_EFT_BATCH" ); SET_AUTO_EXIT_BATCH ( true ); BNK_FILL_COMBO_BOX_BANKA_HESAPLARI( m_ui->comboBox_banka_hesap_kodu ); DISABLE_CLEAR_ON_WIDGET(m_ui->combobox_banka_ismi); m_hesap_no_id = 0; m_ui->frame_musteri_banka_bilgisi->setHidden(true); if ( m_fis_turu EQ ENUM_CARI_ODEME_FISI ){ GET_BANKALAR ( m_ui->combobox_banka_ismi ); if ( m_islem_turu EQ ENUM_HAVALE ) { m_ui->combobox_banka_ismi->setDisabled(true); } m_ui->frame_musteri_banka_bilgisi->setHidden(false); } if ( m_modul_id EQ PERAKENDE_MODULU OR m_modul_id EQ SMM_MODULU OR m_modul_id EQ ISLETME_MODULU ) { if ( m_islem_turu EQ ENUM_HAVALE ) { GET_BANKALAR ( m_ui->combobox_banka_ismi ); m_ui->combobox_banka_ismi->setDisabled(true); } } if ( m_fis_satiri_id EQ -1 ) { if ( m_modul_id EQ CARI_MODULU ) { m_ui->lineedit_hesap_no->setText(M_ISLEM_DETAYLARI->hesap_no); m_ui->combobox_banka_ismi->setEditText(M_ISLEM_DETAYLARI->sube_adi); m_ui->lineedit_sube_kodu->setText(M_ISLEM_DETAYLARI->sube_kodu); m_ui->combobox_sube_ismi->setEditText(M_ISLEM_DETAYLARI->sube_adi); m_ui->combobox_banka_ismi->setEditText(M_ISLEM_DETAYLARI->banka_ismi); } m_hesap_no_id = M_ISLEM_DETAYLARI->bnk_hesap_no_id; SQL_QUERY query(DB); query.PREPARE_SELECT("bnk_hesaplar", "banka_hesap_kodu,banka_ismi,sube_kodu,sube_ismi,hesap_numarasi,doviz_id", "hesap_no_id = :hesap_no_id AND doviz_id = :doviz_id"); query.SET_VALUE(":hesap_no_id" , m_hesap_no_id); query.SET_VALUE(":doviz_id" , m_makbuz_para_birimi_id); if ( query.SELECT() NE 0 ) { query.NEXT(); m_ui->comboBox_banka_hesap_kodu->setCurrentIndex(m_ui->comboBox_banka_hesap_kodu->findText(query.VALUE(0).toString())); QString banka_bilgisi = query.VALUE(1).toString() + " / " + query.VALUE(2).toString() + " " + query.VALUE(3).toString() + " " + query.VALUE(4).toString(); m_ui->lineEdit_bnk_sube_bilgisi->setText(banka_bilgisi); m_ui->lineEdit_doviz_cinsi->setText(DVZ_GET_DOVIZ_KODU(query.VALUE(5).toInt())); } } else { SQL_QUERY sql_query(DB); if ( m_modul_id EQ CARI_MODULU ) { sql_query.PREPARE_SELECT("car_fis_satirlari", "hesap_no_id , musteri_banka_ismi , musteri_sube_kodu , musteri_sube_ismi,musteri_hesap_no", "fis_satiri_id = :fis_satiri_id"); } else if ( m_modul_id EQ PERAKENDE_MODULU ) {//Perakende modulu sql_query.PREPARE_SELECT("prk_fis_satirlari", "hesap_no_id", "fis_satiri_id = :fis_satiri_id"); } else if ( m_modul_id EQ ISLETME_MODULU ) { sql_query.PREPARE_SELECT("isl_fis_satirlari", "hesap_no_id", "fis_satiri_id = :fis_satiri_id"); } sql_query.SET_VALUE(":fis_satiri_id" , m_fis_satiri_id); if ( sql_query.SELECT() NE 0 ) { sql_query.NEXT(); m_hesap_no_id = sql_query.VALUE(0).toInt(); if ( m_fis_turu EQ ENUM_CARI_ODEME_FISI ) { GET_BANKA_SUBE_ADLARI(m_ui->combobox_sube_ismi,sql_query.VALUE(1).toString()); if ( sql_query.VALUE(1).toString() EQ NULL) { m_ui->combobox_banka_ismi->setEditText(M_ISLEM_DETAYLARI->banka_ismi); } else { m_ui->combobox_banka_ismi->setEditText(sql_query.VALUE(1).toString()); } if ( sql_query.VALUE(2).toString() EQ NULL ) { m_ui->lineedit_sube_kodu->setText(M_ISLEM_DETAYLARI->sube_kodu); } else { m_ui->lineedit_sube_kodu->setText(sql_query.VALUE(2).toString()); } if ( sql_query.VALUE(3).toString() EQ NULL ) { m_ui->combobox_sube_ismi->setEditText(M_ISLEM_DETAYLARI->sube_adi); } else { m_ui->combobox_sube_ismi->setEditText(sql_query.VALUE(3).toString()); } if ( sql_query.VALUE(4).toString() EQ NULL ) { m_ui->lineedit_hesap_no->setText(M_ISLEM_DETAYLARI->hesap_no); } else { m_ui->lineedit_hesap_no->setText(sql_query.VALUE(4).toString()); } } int row = BNK_HESAPLARI_MODEL_INDEX_BUL( m_hesap_no_id, m_ui->comboBox_banka_hesap_kodu ); if ( row > -1) { m_ui->comboBox_banka_hesap_kodu->setCurrentIndex(m_ui->comboBox_banka_hesap_kodu->findText(BNK_GET_DATA_FROM_BNK_HESAPLARI_MODEL(m_ui->comboBox_banka_hesap_kodu,row,2).toString())); m_ui->lineEdit_doviz_cinsi->setText ( DVZ_GET_DOVIZ_KODU ( BNK_GET_DATA_FROM_BNK_HESAPLARI_MODEL ( m_ui->comboBox_banka_hesap_kodu, row, 1 ).toInt()) ); QString banka_bilgisi = BNK_GET_DATA_FROM_BNK_HESAPLARI_MODEL ( m_ui->comboBox_banka_hesap_kodu, row, 3 ).toString() + " / " + BNK_GET_DATA_FROM_BNK_HESAPLARI_MODEL ( m_ui->comboBox_banka_hesap_kodu, row, 4 ).toString() + " " + BNK_GET_DATA_FROM_BNK_HESAPLARI_MODEL ( m_ui->comboBox_banka_hesap_kodu, row, 5 ).toString() + " " + BNK_GET_DATA_FROM_BNK_HESAPLARI_MODEL ( m_ui->comboBox_banka_hesap_kodu, row, 6 ).toString(); m_ui->lineEdit_bnk_sube_bilgisi->setText ( banka_bilgisi ); } } } }
void CEK_SENET_ARAMA::SETUP_FORM() { REGISTER_TABLE_WIDGET ( m_ui->tableWidget ); REGISTER_ARAMA_BUTTONS_WIDGET ( m_ui->widget_batch_buttons ); DISABLE_CLEAR_ON_WIDGET(m_ui->combobox_sirket_filtresi); m_ui->adak_date_vade_bas_tarihi->MALI_YIL_KISITI_YOK( true ); m_ui->adak_date_vade_bts_tarihi->MALI_YIL_KISITI_YOK( true ); m_ui->adak_date_vade_bas_tarihi->SET_DATE( MALI_YIL_FIRST_DATE() ); m_ui->adak_date_vade_bts_tarihi->SET_DATE( MALI_ARRAY_LAST_DATE() ); SET_HELP_PAGE( "cek-senet-islemleri"); SET_FIRST_FOCUS_WIDGET( m_ui->combobox_cekin_durumu ); if ( E9_KULLANICI_SIRKET_DEGISTIRE_BILIR_MI() EQ HAYIR ) { m_ui->combobox_sirket_filtresi->setHidden(true); m_ui->label_sirket->setHidden(true); } if (m_cek_mi_senet_mi EQ ENUM_CEK OR m_cek_mi_senet_mi EQ ENUM_HEPSI ) { SET_HEADERS(QStringList()<<tr ( "Çek Id" )<<tr ( "Portföy No" )<<tr("Çek Numarası")<<tr ( "Vade Tarihi" )<<tr ( "Düzenleme Tarihi" )<< tr ( "Banka İsmi")<<tr ( "Şube İsmi" )<<tr("Hesap No" )<<tr("Tutar")<<tr ( "Para Birimi" ) ); } else { SET_HEADERS ( QStringList()<<tr ( "Senet Id")<<tr ( "Portföy Numarası" )<<tr ( "Senet Numarası" )<<tr ( "Vade Tarihi" ) <<tr ( "Düzenleme Tarihi" )<<tr("Tutar") << tr( "Para Birimi" ) ); } SET_ENTER_KEY_FOR_RUN_BATCH ( true ); if ( m_cek_mi_senet_mi EQ ENUM_CEK OR m_cek_mi_senet_mi EQ ENUM_HEPSI ) { m_ui->tableWidget->setColumnWidth( 1, 110 ); m_ui->tableWidget->setColumnWidth( 2, 110 ); m_ui->tableWidget->setColumnWidth( 3, 140 ); m_ui->tableWidget->setColumnWidth( 4, 130 ); m_ui->tableWidget->setColumnWidth( 5, 110 ); m_ui->tableWidget->setColumnWidth( 6, 110 ); m_ui->tableWidget->setColumnWidth( 7, 110 ); m_ui->tableWidget->setColumnWidth( 8, 80 ); m_ui->tableWidget->setColumnWidth( 9, 70 ); SET_SETTING_NAME( "CEK_SENET_ARAMA_CEK" ); if ( m_cek_mi_senet_mi EQ ENUM_CEK ) { SET_FIND_BUTTON_NAME ( tr ( "Çekleri Bul" ) ); SET_PAGE_TITLE ( tr ( "ÇEK-SNT - ÇEK ARAMA" ) ); } else { //Hepsi SET_FIND_BUTTON_NAME ( tr ( "Bul" ) ); SET_PAGE_TITLE ( tr ( "ÇEK-SNT - ÇEK / SENET ARAMA" ) ); } if ( m_musteri_cek_senedi_mi EQ 1 ) { GET_BANKALAR(m_ui->combobox_banka_ismi ); } else { QStringList kullanilan_banka_list = BNK_GET_BANKA_ISIMLERI(); for( int i = 0; i < kullanilan_banka_list.size(); i++ ) { m_ui->combobox_banka_ismi->addItem ( kullanilan_banka_list.at( i ) ); } m_ui->combobox_banka_ismi->setCurrentIndex(-1); } } else { //senetler m_ui->tableWidget->setColumnWidth( 1, 130 ); m_ui->tableWidget->setColumnWidth( 2, 180 ); m_ui->tableWidget->setColumnWidth( 3, 200 ); m_ui->tableWidget->setColumnWidth( 4, 200 ); m_ui->tableWidget->setColumnWidth( 5, 140 ); m_ui->tableWidget->setColumnWidth( 6, 70 ); SET_SETTING_NAME( "CEK_SENET_ARAMA_SENET" ); SET_FIND_BUTTON_NAME( tr ( "Senetleri Bul" ) ); SET_PAGE_TITLE( tr ( "ÇEK-SNT - SENET ARAMA" ) ); m_ui->banka_bilgisi_frame->hide (); m_ui->checkbox_banka_bilgisi->hide (); } m_ui->tableWidget->hideColumn( 0 ); m_ui->date_frame->setEnabled( false ); m_ui->banka_bilgisi_frame->setEnabled( false ); m_ui->cekin_durumu_frame->setEnabled( false ); if ( m_aranacak_cek_senet_turu EQ ENUM_CEK_IADE_ALINDI_BANKADAN OR m_aranacak_cek_senet_turu EQ ENUM_CEK_ODENDI_HESAPTAN) { m_ui->checkbox_banka_bilgisi->hide(); m_ui->banka_bilgisi_frame->hide(); } if ( m_aranacak_cek_senet_turu NE ENUM_CEK_TAHSIL_EDILDI_HESABA AND m_aranacak_cek_senet_turu NE ENUM_CEK_TAHSIL_EDILDI_NKT AND m_aranacak_cek_senet_turu NE ENUM_CEK_IADE_ALINDI_BANKADAN ) { m_ui->cekin_durumu_frame->hide(); m_ui->checkbox_cekin_durumu->hide(); } else { FILL_COMBOBOX_CEKIN_DURUMU(); } }
void FAT_FATURA_LISTESI_BATCH::SETUP_FORM() { SET_PAGE_TITLE ( tr ( "FAT - FATURA LİSTESİ" ) ); SET_HELP_PAGE ("fatura-islemleri_fatura-listesi"); REGISTER_BUTTON_WIDGET ( m_ui->widget_batch_buttons ); m_ui->frame_sirket_filtresi->setVisible( false ); m_ui->checkBox_sirket_filtresi->setVisible( false ); FAT_FILL_ACIK_KAPALI_COMBO_BOX( m_ui->comboBox_acik_kapali_fatura ); FIND_AND_SET_COMBOBOX_TEXT( m_ui->comboBox_acik_kapali_fatura, FAT_GET_ACIK_KAPALI_FATURA_STRING( ENUM_TUM_FATURALAR )); m_ui->checkBox_tarih_araligi->setChecked( true ); m_ui->frame_tarih_araligi->setEnabled( true ); SET_FIRST_FOCUS_WIDGET( m_ui->adakDate_bas_tarihi ); if ( E9_KULLANICI_SIRKET_DEGISTIRE_BILIR_MI() EQ EVET ) { m_ui->frame_sirket_filtresi->setVisible( true ); m_ui->checkBox_sirket_filtresi->setVisible( true ); m_ui->frame_sirket_filtresi->setEnabled( true ); m_ui->checkBox_sirket_filtresi->setChecked( true ); } DISABLE_CLEAR_ON_WIDGET( m_ui->comboBox_sirket_filtresi ); SET_SETTING_NAME ("FAT_FATURA_LISTESI_BATCH"); SET_NAME_OF_RUN_BATCH_BUTTON ( "Rapor Al" ); SET_ENTER_KEY_FOR_RUN_BATCH( true ); m_ui->commaEdit_min_tutar->SET_PRECISION( 2 ); m_ui->commaEdit_min_tutar->SET_RETURN_EMPTY( false ); m_ui->commaEdit_min_tutar->SET_PRECISION( 2 ); m_ui->commaEdit_max_tutar->SET_RETURN_EMPTY( false ); m_ui->adakDate_bas_tarihi->SET_DATE(MALI_YIL_FIRST_DATE()); m_ui->adakDate_bts_tarihi->SET_DATE(MALI_ARRAY_LAST_DATE()); m_ui->frame_fatura_durumu->setDisabled(true); m_ui->comboBox_irsaliye_durumu->addItems(QStringList() << tr("İrsaliyelenmiş") << tr("İrsaliyelenmemiş")); m_ui->comboBox_irsaliye_durumu->setCurrentIndex(-1); m_ui->frame_cari_hesap->setDisabled(true); m_ui->frame_tutar_araligi->setDisabled(true); m_ui->frame_fatura_alis_satis_turu->setDisabled(true); m_ui->label_sirket->setDisabled(true); m_ui->comboBox_sirket_filtresi->setDisabled(true); m_ui->frame_fatura_turu->setEnabled( false ); FAT_FILL_ALIS_SATIS_FAT_TURU_COMBO_BOX( m_ui->comboBox_fatura_alis_satis_turu ); m_ui->comboBox_fatura_alis_satis_turu->setCurrentIndex(-1); m_cari_hesap_id = -1; m_depo_id = -1; }
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 (); }
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 ); } }
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 (); }