33 lines
981 B
C#
33 lines
981 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace dcnsanplanung.shared.Helper
|
|
{
|
|
public class ImportLVToSoftware
|
|
{
|
|
public List<Model.LeistungsverzeichnisPosition> LVPositionen = new List<Model.LeistungsverzeichnisPosition>();
|
|
|
|
public ImportLVToSoftware(string XMLFile)
|
|
{
|
|
ReadSchnittstelle(XMLFile);
|
|
}
|
|
|
|
private void ReadSchnittstelle(string xMLFile)
|
|
{
|
|
foreach(Schnittstelle.Import.LV.Model.LVPosition src_lv in new Schnittstelle.Import.LV.X81(xMLFile).ExportedLVPosition)
|
|
{
|
|
LVPositionen.Add(new Model.LeistungsverzeichnisPosition()
|
|
{
|
|
Guid = Guid.NewGuid(),
|
|
Einheit = src_lv.Einheit,
|
|
Titel = src_lv.Title,
|
|
Positionsnummer = src_lv.Positionsnummer,
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|