Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1.  
  2. private void PPBOMRekurencyjnie(string indeksDrzewa, int nrPozRodzica)
  3. {
  4. Baza.Recordset pozycje = dbOperations.PobierzPozycjeBOM(indeksDrzewa);
  5. pozycje.MoveFirst();
  6. do
  7. {
  8. nrPozycji++;
  9. PozycjaBOM pozycja = new PozycjaBOM(nrPozycji, nrPozRodzica);
  10. Baza.Fields pola = pozycje.Fields;
  11.  
  12. pozycja.Code = pola.Item("code").Value;
  13. pozycja.ItemName = pola.Item("itemName").Value;
  14. pozycja.Quantity = pola.Item("Quantity").Value;
  15. pozycja.U_VC_typ = pola.Item("U_VC_typ").Value;
  16.  
  17. string treeType = pola.Item("TreeType").Value;
  18. pozycja.TreeType = treeType;
  19.  
  20. lista.Add(pozycja);
  21. if (treeType.Trim().ToLower()!="n")
  22. {
  23. PPBOMRekurencyjnie(pozycja.Code, nrPozycji);
  24. }
  25.  
  26. pozycje.MoveNext();
  27. } while (pozycje.EoF == false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement