示例#1
0
 void UstawPozCommand()
 {
     if (ZamowienieView == null)
     {
         return;
     }
     Poz.Clear();
     foreach (IHP_POZDOK item in GetPozByNagl(ZamowienieView.ID_IHP_NAGLDOK))
     {
         Poz.Add(item);
     }
 }
示例#2
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();
        }
示例#3
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;
 }