Example #1
0
        public void DaaregistrireMzgvevelzeGamosartmeviTanxa(GaformdaKontrakti movlena)
        {
            //todo შევამოწმო განმეორებით ხომ არ მოვიდა შეცდომით
            var tranzaqciebi = new TranzaqciebisSacavi();
            var zzz = tranzaqciebi.MomeciTranzaqciebi()
                .Where(x => x.Paketebi.Polisebi.Select(y => y.PolisisNomeri).Contains(movlena.PolisiNomeri) &
                    x.Tipi == TranzaqciisTipi.UechveliGamosartmevi
                );

            var polisTranzaqciebshi = MomeciTranzaqciebi()
                .Where(x => x.Paketebi.Polisebi.Select(y => y.PolisisNomeri).Contains(movlena.PolisiNomeri)).ToList();
        }
Example #2
0
 public bool MozebneShecdomitXomArMovidaDamtkicda(string polisisNomeri)
 {
     var tranzaqciebi = new TranzaqciebisSacavi();
     var shecdoma = tranzaqciebi.MomeciTranzaqciebi()
         .Where(x => x.Paketebi.Polisebi.Select(y => y.PolisisNomeri).Contains(polisisNomeri) &
             x.Tipi == TranzaqciisTipi.UechveliGamosartmevi
         );
     return shecdoma.Count() == 0;
 }
Example #3
0
 public bool MozebneShecdomitXomArMovidaChabarda(string paketisNomeri)
 {
     var tranzaqciebi = new TranzaqciebisSacavi();
     var shecdoma = tranzaqciebi.MomeciTranzaqciebi().
         Where(x => x.Paketebi.PaketisNomeri.Contains(paketisNomeri) &
                    x.Statusi != TranzaqciisStatusi.GauqmebuliTranzaqcia &
                    x.Tipi == TranzaqciisTipi.SavaraudodGamosartmevi
         );
     return shecdoma.Count() == 0;
 }