Sub EXTRACT2() Dim EXT = System.Windows.Forms.Application.StartupPath & "\veritabanı\FATURALAR" For Each FAT_PDf In Directory.GetFiles(EXT, "*.pdf") Dim AR = Strings.Right(FAT_PDf, 40) For ROW = 0 To DGV_Efatura.RowCount - 1 Dim AR2 = DGV_Efatura.Rows(ROW).Cells(9).Value & ".pdf" If AR = AR2 Then DGV_Efatura.Rows(ROW).Cells(4).Value = AR End If Next Next End Sub
<li id="9a73ca5d58074b" class="favoriteClass"><span>acracr</span><button class="fa fa-star-o"></button></li>
HideDGVColumns(New Integer(){3,4,5},DataGridView1) HideDGVColumns(New Integer(){textbox1.text},DataGridView1)
If .Rows(ROW).Cells(C_BARKOD).Value = "" Then D_BARKOD = DBNull.Value.ToString Else D_BARKOD = .Rows(ROW).Cells(C_BARKOD).Value.ToString End If
Dim STNNAME = "SNO,CARKOD,TARIH,BELGETIP,BELGENO,BA,ACIKLAMA,MUH_ACIKLAMA,STKKOD,TBRM,MIKTAR,BARKOD,USTBRM,MIKTAR2,BRMFIYAT,TUTAR,KDV,KDVTUTAR,ISK,ISKTUTAR,NETTUTAR,KDVDAHIL,KAYITNO,STOKLU,ISLTARIH,GIDKALEM,GIDYER,BIRIM,MUHKOD" Dim STR1 = "INSERT INTO CARTH002(" & STNNAME & ") VALUES(@1,@2,@3,@4,@5,@6,@7,@8,@9,@10,@11,@12,@13,@14,@15,@16,@17,@18,@19,@20,@21,@22,@23,@24,@25,@26,@27,@28,@29) " Dim GUN As DateTime ' MsgBox(.Cells(0).Value) With FAT_TABLO For ROW = 0 To .Rows.Count - 1 If IsDBNull(.Rows(ROW).Cells(1).Value) = False Then If .Rows(ROW).Cells(1).Value.ToString <> "" Then ' SNO,CARKOD,TARIH,BELGETIP,BELGENO,BA,ACIKLAMA,MUH_ACIKLAMA,STKKOD, ' TBRM,MIKTAR,BARKOD,USTBRM,MIKTAR2,BRMFIYAT,TUTAR,KDV,KDVTUTAR,ISK,ISKTUTAR, ' NETTUTAR, KDVDAHIL, KAYITNO, STOKLU, ISLTARIH, GIDKALEM, GIDYER Dim D_ACIKLAMA = .Rows(ROW).Cells(C_ACIKLAMA).Value If D_ACIKLAMA = "" Then D_ACIKLAMA = DBNull.Value.ToString Dim D_STKKOD As String = .Rows(ROW).Cells(C_STKKOD).Value.ToString If D_STKKOD = "" Then D_STKKOD = DBNull.Value.ToString Dim D_TBRM As String = .Rows(ROW).Cells(C_TBRM).Value If D_TBRM = "" Then D_TBRM = DBNull.Value.ToString Dim D_BARKOD As String = .Rows(ROW).Cells(C_BARKOD).Value.ToString If D_BARKOD = "" Then D_BARKOD = DBNull.Value.ToString Dim D_USTBRM As String = .Rows(ROW).Cells(C_USTBRM).Value.ToString If D_USTBRM = "" Then D_USTBRM = DBNull.Value.ToString Dim D_MIKTAR2 As String = .Rows(ROW).Cells(C_MIKTAR2).Value.ToString If D_MIKTAR2 = "" Then D_MIKTAR2 = 0 Dim D_GIDKALEM As String = .Rows(ROW).Cells(C_GIDKALEM).Value.ToString If D_GIDKALEM = "" Then D_GIDKALEM = DBNull.Value.ToString Dim D_GIDYER As String = .Rows(ROW).Cells(C_GIDYER).Value.ToString If D_GIDYER = "" Then D_GIDYER = DBNull.Value.ToString Dim D_MUHKOD = .Rows(ROW).Cells(C_MUHKOD).Value If D_MUHKOD = "" Then D_MUHKOD = DBNull.Value ' MsgBox(.Rows(ROW).Cells(C_TARIH).Value) GUN = .Rows(ROW).Cells(C_TARIH).Value Dim Comm As New OleDbCommand(STR1, cn) Comm.Parameters.AddWithValue("@1", ROW + 1) Comm.Parameters.AddWithValue("@2", CARKOD.Text) Comm.Parameters.AddWithValue("@3", GUN) Comm.Parameters.AddWithValue("@4", MODUL.Text) Comm.Parameters.AddWithValue("@5", BELGENO.Text) Comm.Parameters.AddWithValue("@6", BA.Text) Comm.Parameters.AddWithValue("@7", D_ACIKLAMA) Comm.Parameters.AddWithValue("@8", "") Comm.Parameters.AddWithValue("@9", D_STKKOD) If D_TBRM <> "" Then Comm.Parameters.AddWithValue("@10", D_TBRM) End If Comm.Parameters.AddWithValue("@11", .Rows(ROW).Cells(C_MIKTAR).Value * 1) Comm.Parameters.AddWithValue("@12", D_BARKOD) Comm.Parameters.AddWithValue("@13", D_USTBRM) Comm.Parameters.AddWithValue("@14", D_MIKTAR2) Comm.Parameters.AddWithValue("@15", .Rows(ROW).Cells(C_BRMFIYAT).Value * 1)
Sub detayformagonder() F_CariKayıt.CARKOD3.Text = CARI_TABLO.Rows(CARI_TABLO.CurrentCell.RowIndex).Cells(0).Value F_CariKayıt.UNVAN_CEK() End If ' Me.Close() End Sub
TOPLAM = "SELECT B.CARKOD,B.TARIH,B.ISLTARIH ,SUM(" & BORC & "- " & ALACAK & ") AS TOPL FROM CARTH001 B GROUP BY B.CARKOD,B.TARIH,B.ISLTARIH ORDER BY B.CARKOD,B.TARIH,B.ISLTARIH ASC " TOPLAM2 = "SELECT CARKOD,TARIH,ISLTARIH,TOPL FROM (" & TOPLAM & ") " TOPLAM3 = "SELECT SUM(TOPL) FROM (" & TOPLAM2 & ") WHERE CARKOD=A.CARKOD AND TARIH<=A.TARIH AND ISLTARIH<=B.ISLTARIH " SORGU = "SELECT A.CARKOD,A.TARIH,A.ISLTARIH,IIF(A.BA='B',A.TUTAR,0)AS BORC ,IIF(A.BA='A',A.TUTAR*-1,0) AS ALACAK,(" & TOPLAM3 & ") AS BAKIYE FROM CARTH001 A order by A.CARKOD,A.TARIH,A.ISLTARIH"
CARKOD ISLTARIH TARIH KAYITNO BORC ALACAC BAKYIE 12001001 2020-03-11 15:41:19 2020-03-01 3 500 500 12001002 2020-03-15 23:03:41 2020-03-01 1 -500 0 12001001 2020-03-10 11:09:16 2020-03-03 8 600 600 12001001 2020-03-12 16:09:16 2020-03-05 4 600 1200 12001001 2020-03-22 17:01:20 2020-03-05 13 -400 800 12001001 2020-03-20 16:44:01 2020-03-15 12 300 1100 12001001 2020-03-13 22:20:51 2020-03-20 5 -500 400 12001001 2020-03-18 16:40:03 2020-03-20 10 750 1150 12001001 2020-03-19 16:40:30 2020-03-20 11 30 1180 12001001 2020-03-14 23:03:14 2020-03-30 7 -500 600 12001001 2020-03-16 23:03:42 2020-03-30 9 -500 100 12001001 2020-03-17 23:03:47 2020-03-30 6 -500 -600
Sub updatesave() Dim Con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\Veritabanı\Veritabanı.mdb") Dim STR1 As String Con.Open() With Form2 Dim A = Year(.gün.Value) Dim B = .gün.Value.ToString("dd/MM/yyyy") Dim C = .firma.Text Dim D = .gelenfirma.Text Dim E = .satinalma.Text Dim G = .aciklama.Text Dim H = .randevu.CheckState STR1 = "UPDATE rapor SET YIL='" & A & "',TARIH='" & B & "',FIRMA='" & C & "',FIRMACI='" & D & "',SATINALMA='" & E & "' , ACIKLAMA='" & G & "',RANDEVU='" & H & "'" & _ " WHERE TARIH = '" & Form2.kosul1tar.Text & "' And KAYITZ = '" & .kosul2kzaman.Text & "' And FIRMA = ' " & Form2.kosul3firma.Text & "' And FIRMACI = ' " & Form2.kosul4gfirma.Text & "'" Dim cmd As OleDbCommand = New OleDbCommand(STR1, Con) cmd.ExecuteNonQuery() Con.Close() End With End Sub