2026-01-27 02
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user