C#
Banka Hesap Hareket Kayıt
Kernel kernel = new Kernel();
Sirket sirket = default(Sirket);
BankaHesTraAna bankaHesTraAna = default(BankaHesTraAna);
BankaHesTra bankaHesTra = default(BankaHesTra);
try
{
sirket = kernel.yeniSirket(TVTTipi.vtMSSQL,
"vt adi",
"vt kull adi",
"vt kull sifre",
"netsis kull adi",
"netsis sifre",
0);
bankaHesTraAna = kernel.yeniBankaHesTraAna(sirket);
bankaHesTra = bankaHesTraAna.HareketYeni();
bankaHesTra.NetHesKodu = "YKB-01-VDSZ-2";
bankaHesTra.Tarih = DateTime.Today;
bankaHesTra.Tutar = 1000;
bankaHesTra.HarTuru = 0;
bankaHesTra.HarTipi = 0;
bankaHesTra.Aciklama = "Test";
bankaHesTra.BA = "B";
bankaHesTra.PlasiyerKodu = "1";
bankaHesTraAna.HareketKaydet();
}
finally
{
Marshal.ReleaseComObject(bankaHesTraAna);
Marshal.ReleaseComObject(sirket);
kernel.FreeNetsisLibrary();
Marshal.ReleaseComObject(kernel);
}
Banka Hesap Hareket Oku
Kernel kernel = new Kernel();
Sirket sirket = default(Sirket);
BankaHesTraAna bankaHesTraAna = default(BankaHesTraAna);
BankaHesTra bankaHesTra = default(BankaHesTra);
try
{
sirket = kernel.yeniSirket(TVTTipi.vtMSSQL,
"vt adi",
"vt kull adi",
"vt kull sifre",
"netsis kull adi",
"netsis sifre",
0);
bankaHesTraAna = kernel.yeniBankaHesTraAna(sirket);
bankaHesTra = bankaHesTraAna.OkunanHesTra;
bankaHesTraAna.kayitOku(TOkumaTipi.otAc, "NETHESKODU='YKB-01-VDSZ-2'");
{
bankaHesTraAna.kayitOku(TOkumaTipi.otIlk);
MessageBox.Show(bankaHesTra.IncKeyNo.ToString());
}
}
finally
{
Marshal.ReleaseComObject(bankaHesTraAna);
Marshal.ReleaseComObject(sirket);
kernel.FreeNetsisLibrary();
Marshal.ReleaseComObject(kernel);
}
Banka Hareket Kontrol
Kernel kernel = new Kernel();
Sirket sirket = default(Sirket);
try
{
sirket = kernel.yeniSirket(TVTTipi.vtMSSQL,
"vt adi",
"vt kull adi",
"vt kull sifre",
"netsis kull adi",
"netsis sifre",
0);
sirket.BankaHareketKontrol("102-01-XXX");
MessageBox.Show("İşlem Tamamlandı");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
Marshal.ReleaseComObject(sirket);
kernel.FreeNetsisLibrary();
Marshal.ReleaseComObject(kernel);
}
Copyright © 2018 Logo Yazılım