Example #1
0
 public void ShowPoz()
 {
     if (Dokument != null)
     {
         var window = new Poz();
         Messenger.Default.Send <IHP_POZDOK>(PozycjaDok);
         window.Show();
     }
 }
Example #2
0
 void UstawPozCommand()
 {
     if (ZamowienieView == null)
     {
         return;
     }
     Poz.Clear();
     foreach (IHP_POZDOK item in GetPozByNagl(ZamowienieView.ID_IHP_NAGLDOK))
     {
         Poz.Add(item);
     }
 }
Example #3
0
        private void Clear()
        {
            EdycjaZamowienia = false;

            Nagl               = new IHP_NAGLDOK();
            Nagl.DATADOK       = DateTime.Today;
            Nagl.BLOKADA       = 1;
            Nagl.TERMINREALIZ  = DateTime.Today;
            _lstpoz            = new List <IHP_POZDOK>();
            IsPopupOpenKontrah = true;
            NrDokWew           = string.Empty;
            Kontrahent         = null;
            Poz.Clear();
            PozJ   = null;
            _lppoz = 0;
            ClearPoz();
        }
Example #4
0
        private void PopulatePozEdit()
        {
            List <IHP_POZDOK> _poz = Context.IHP_POZDOK.Where(x => x.ID_IHP_NAGLDOK == _nagl.ID_IHP_NAGLDOK).OrderBy(x => x.LP).ToList();

            Poz.Clear();
            foreach (IHP_POZDOK item in _poz)
            {
                Poz.Add(item);
            }
            SumaWartNetto  = Poz.Sum(x => x.WARTNETTO);
            SumaWartBrutto = Poz.Sum(x => x.WARTBRUTTO);
            WartoscRazem   = SumaWartBrutto;
            SumaWartVat    = Poz.Sum(x => x.WARTVAT);
            SumaIloscMat   = Poz.Sum(x => x.ILOSC);
            SumaWartMat    = Poz.Sum(x => x.WARTBRUTTO);

            //    PrzeliczWartoscWgCeny();
        }
Example #5
0
 private void PopulatePozNagl()
 {
     Poz.Clear();
     _lstpoz.Clear();
     if (_nagl == null)
     {
         return;
     }
     if (_nagl.IHP_POZDOK.Count > 0)
     {
         foreach (IHP_POZDOK item in _nagl.IHP_POZDOK)
         {
             Poz.Add(item);
             _lstpoz.Add(item);
         }
     }
     SumaWartNetto  = Poz.Sum(x => x.WARTNETTO);
     SumaWartVat    = Poz.Sum(x => x.WARTVAT);
     SumaWartBrutto = Poz.Sum(x => x.WARTBRUTTO);
     WartoscRazem   = SumaWartBrutto;
 }