public void PrBelgeKayitIrsaliye(string belgeNo, string cariKodu)
 {
     using (var context = new NetsisContext())
     {
         SqlParameter _belgeNo  = new SqlParameter("@BelgeNo", belgeNo);
         SqlParameter _cariKodu = new SqlParameter("@CariKodu", cariKodu);
         context.Database.ExecuteSqlCommand("INN_PR_BELGE_KAYIT @BelgeNo, @CariKodu, '3', 'H'", _belgeNo, _cariKodu);
     }
 }
 public void PrTeklifOnayIptal(string belgeNo, char onayKodu)
 {
     using (var context = new NetsisContext())
     {
         SqlParameter _belgeNo  = new SqlParameter("@fatirsNo", belgeNo);
         SqlParameter _onayKodu = new SqlParameter("@durum", onayKodu);
         context.Database.ExecuteSqlCommand("INN_PR_TEKLIF_ISLEM @fatirsNo, @durum", _belgeNo, _onayKodu);
     }
 }
 public void TeklifSil(string belgeNo)
 {
     using (var context = new NetsisContext())
     {
         SqlParameter _belgeNo = new SqlParameter("@fatirsNo", belgeNo);
         SqlParameter _fisNo   = new SqlParameter("@fisNo", belgeNo);
         context.Database.ExecuteSqlCommand("delete from  TBLTEKLIFMAS where FATIRS_NO= @fatirsNo", _belgeNo);
         context.Database.ExecuteSqlCommand("delete from  TBLTEKLIFTRA where FISNO= @fisNo", _fisNo);
     }
     //return !string.IsNullOrEmpty(stokKodu)? _context.Stok.Where(x=>x.StokKodu== stokKodu).ToList(): _context.Stok.ToList();
 }
示例#4
0
        public StokRepository(string donem = null)
        {
            // IConfigurationRoot configuration = new ConfigurationBuilder()
            //.SetBasePath(AppDomain.CurrentDomain.BaseDirectory)
            //.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
            //.Build();

            // if (!string.IsNullOrEmpty(donem.ToString()))
            // {
            //     var connStr = configuration.GetConnectionString("NETSISDonemConnection").Replace("DBNAME",donem);
            //     //DBNAME
            //     _netsisContext = new NetsisDonemContext(connStr);
            // }
            // else
            // {
            //     var connStr = configuration.GetConnectionString("NETSISConnection");
            //     //DBNAME
            //     _netsisContext = new NetsisDonemContext(connStr);
            // }
            _netsisContext = new NetsisContext();
        }
 public NetsisVerilerRepository()
 {
     _context  = new NetsisContext();
     _userRepo = new UserRepository();
 }
 public MotoServisNetsisRepository()
 {
     _context  = new NetsisContext();
     _userRepo = new UserRepository();
 }