2026-01-27 02

This commit is contained in:
2026-01-27 13:08:08 +01:00
parent 415b281213
commit 328dc37571
12 changed files with 345 additions and 95 deletions

View File

@@ -38,6 +38,7 @@ namespace bdGrupoSanchoToro.Importaciones
{
pr = new productos()
{
idEmpresa = 1,
Codigo = "GR-" + gr.CGCOD,
Descripcion = "GRÚA " + mar.Marca + " " + gr.CGMDL
};
@@ -47,7 +48,9 @@ namespace bdGrupoSanchoToro.Importaciones
n.idMarcaNavigation = mar;
n.idProductoNavigation = pr;
n.FechaAlta = DateTime.Now;
n.Modelo = gr.CGMDL;
bd.SaveChanges();
lg.Add(n);
}
VersionesGruasEnum ver;
if (gr.CGVER != "")
@@ -91,7 +94,7 @@ namespace bdGrupoSanchoToro.Importaciones
break;
}
var vg = lv.FirstOrDefault(x => x.idModeloNavigation.Modelo == gr.CGMDL && x.idModeloNavigation.idMarcaNavigation.Marca == gr.CGMAR && x.Version == (int)ver);
if (vg != null)
if (vg == null)
{
vg = new versionesgruas()
{