private void BTN_KAYDET_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (lbID.Caption != "") { GLOBALTARIFELER.GUNCELLE(lbFILE_NAME.Caption, lbID.Caption, "SINEMA", ""); } if (lbID.Caption == "") { TARIFELER._TARIFE_KAYDET frm = new TARIFELER._TARIFE_KAYDET(); frm.ShowDialog(); lbFILE_NAME.Caption = frm._TXT_FILE_NAME.ToString(); if (lbFILE_NAME.Caption.ToString() != "") { lbID.Caption = GLOBALTARIFELER.KAYDET(lbFILE_NAME.Caption, "SINEMA", "", false, "").ToString(); } else { MessageBox.Show("Tarife kodu giriniz.", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); } } if (dv != null) { // SATIR SİL dv.RowStateFilter = DataViewRowState.Deleted; GLOBALTARIFELER.SINEMA_ROW_DELETE(dv, lbID.Caption, _GLOBAL_PARAMETRELER._KULLANICI_FIRMA, _GLOBAL_PARAMETRELER._KULLANICI_MAIL); // SATIR EKLE dv.RowStateFilter = DataViewRowState.Added; GLOBALTARIFELER.SINEMA_ROW_ADD(dv, lbFILE_NAME.Caption.ToString(), lbID.Caption, _GLOBAL_PARAMETRELER._KULLANICI_FIRMA, _GLOBAL_PARAMETRELER._KULLANICI_MAIL); // SATIR GUNCELLE dv.RowStateFilter = DataViewRowState.ModifiedOriginal; GLOBALTARIFELER.SINEMA_ROW_UPDATE(dv, lbID.Caption, _GLOBAL_PARAMETRELER._KULLANICI_FIRMA, _GLOBAL_PARAMETRELER._KULLANICI_MAIL); DATA_READ(lbFILE_NAME.Caption.ToString()); //dv.RowStateFilter = DataViewRowState.CurrentRows ; //dv.Table.AcceptChanges(); } }