Correcciones exportacion
parent
c1be801015
commit
65b8854b07
|
|
@ -410,6 +410,7 @@ namespace OliviaAddInPro.Helper
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
geomSal = GeometryEngine.Instance.Union(geomIni, geomUne);
|
geomSal = GeometryEngine.Instance.Union(geomIni, geomUne);
|
||||||
|
|
||||||
return geomSal;
|
return geomSal;
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|
@ -478,6 +479,8 @@ namespace OliviaAddInPro.Helper
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
var geom = new List<ArcGIS.Core.Geometry.Geometry>();
|
||||||
|
//geomSal = GeometryEngine.Instance.Union(f);
|
||||||
using (RowCursor rowCursor = fclss.Search(filtro))
|
using (RowCursor rowCursor = fclss.Search(filtro))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -485,10 +488,13 @@ namespace OliviaAddInPro.Helper
|
||||||
{
|
{
|
||||||
using (Row row = rowCursor.Current)
|
using (Row row = rowCursor.Current)
|
||||||
{
|
{
|
||||||
if(row is Feature ft)
|
if (row is Feature ft)
|
||||||
geomsal = UneGeom(geomsal, ft.GetShape());
|
geom.Add(ft.GetShape());
|
||||||
|
//geomsal = UneGeom(geomsal, ft.GetShape());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
geomsal= GeometryEngine.Instance.Union(geom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
@ -661,7 +667,7 @@ namespace OliviaAddInPro.Helper
|
||||||
string _ex =System.IO.Path.GetExtension(nameNew);
|
string _ex =System.IO.Path.GetExtension(nameNew);
|
||||||
string nn = nameNew;
|
string nn = nameNew;
|
||||||
if (!string.IsNullOrEmpty(_ex))
|
if (!string.IsNullOrEmpty(_ex))
|
||||||
nn.Replace(_ex, "");
|
nn=nn.Replace(_ex, "");
|
||||||
var res = true;
|
var res = true;
|
||||||
foreach(var ex in extensions)
|
foreach(var ex in extensions)
|
||||||
{
|
{
|
||||||
|
|
@ -672,7 +678,7 @@ namespace OliviaAddInPro.Helper
|
||||||
|
|
||||||
if (!File.Exists(po))
|
if (!File.Exists(po))
|
||||||
res = false;//no existe
|
res = false;//no existe
|
||||||
if (!File.Exists(pn))
|
if (File.Exists(pn))
|
||||||
File.Delete(pn);
|
File.Delete(pn);
|
||||||
File.Move(po,pn );
|
File.Move(po,pn );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ namespace OliviaAddInPro.Model
|
||||||
};
|
};
|
||||||
|
|
||||||
private static TiposEjecucion tipoEjec = TiposEjecucion.Ninguno;
|
private static TiposEjecucion tipoEjec = TiposEjecucion.Ninguno;
|
||||||
private static Limpieza limp = new Limpieza();
|
public static Limpieza limp = new Limpieza();
|
||||||
private static Recogida reco = new Recogida();
|
private static Recogida reco = new Recogida();
|
||||||
|
|
||||||
#region Properties
|
#region Properties
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ namespace OliviaAddInPro
|
||||||
class PaneLimpiezaViewModel : PanelViewModelBase
|
class PaneLimpiezaViewModel : PanelViewModelBase
|
||||||
{
|
{
|
||||||
private PaneLimpiezaSub1ViewModel _subPanel1ViewModel;
|
private PaneLimpiezaSub1ViewModel _subPanel1ViewModel;
|
||||||
Limpieza limp;
|
|
||||||
|
|
||||||
public PaneLimpiezaViewModel()
|
public PaneLimpiezaViewModel()
|
||||||
{
|
{
|
||||||
|
|
@ -32,7 +31,7 @@ namespace OliviaAddInPro
|
||||||
new OptionsMenuItem(new BitmapImage(new Uri("pack://application:,,,/OliviaAddInPro;component/Resources/time.png")), Resource1.String_tiempos, _subPanel4ViewModel)
|
new OptionsMenuItem(new BitmapImage(new Uri("pack://application:,,,/OliviaAddInPro;component/Resources/time.png")), Resource1.String_tiempos, _subPanel4ViewModel)
|
||||||
};
|
};
|
||||||
SelectedOption = OptionsMenu[0];
|
SelectedOption = OptionsMenu[0];
|
||||||
limp = OliviaGlob.Limp;
|
// OliviaGlob.limp = OliviaGlob.Limp;
|
||||||
}
|
}
|
||||||
public override string DisplayName
|
public override string DisplayName
|
||||||
{
|
{
|
||||||
|
|
@ -78,7 +77,7 @@ namespace OliviaAddInPro
|
||||||
err_str = "No se ha seleccionado ninguna Capa de Limpieza";
|
err_str = "No se ha seleccionado ninguna Capa de Limpieza";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
limp.CapaElems = _subPanel1ViewModel.CapaElems;
|
OliviaGlob.limp.CapaElems = _subPanel1ViewModel.CapaElems;
|
||||||
|
|
||||||
//lee el tipo tto
|
//lee el tipo tto
|
||||||
if (_subPanel1ViewModel.TipoTto == (int)LimpiezaDef.TiposTto.TtoNoDef)
|
if (_subPanel1ViewModel.TipoTto == (int)LimpiezaDef.TiposTto.TtoNoDef)
|
||||||
|
|
@ -86,7 +85,7 @@ namespace OliviaAddInPro
|
||||||
err_str = "No se ha seleccionado ningún Tipo de Tratamiento";
|
err_str = "No se ha seleccionado ningún Tipo de Tratamiento";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
limp.TipoTto = _subPanel1ViewModel.TipoTto;
|
OliviaGlob.limp.TipoTto = _subPanel1ViewModel.TipoTto;
|
||||||
|
|
||||||
//lee el/los ámbito seleccionado
|
//lee el/los ámbito seleccionado
|
||||||
if (!_subPanel1ViewModel.lee_ambitos())
|
if (!_subPanel1ViewModel.lee_ambitos())
|
||||||
|
|
@ -94,18 +93,18 @@ namespace OliviaAddInPro
|
||||||
err_str = "No se ha seleccionado ningún Ámbito de trabajo";
|
err_str = "No se ha seleccionado ningún Ámbito de trabajo";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
limp.AmbitosSel = _subPanel1ViewModel.AmbitosSel;
|
OliviaGlob.limp.AmbitosSel = _subPanel1ViewModel.AmbitosSel;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (i = 0; i < limp.AmbitosSel.Length; i++)
|
for (i = 0; i < OliviaGlob.limp.AmbitosSel.Length; i++)
|
||||||
if (limp.AmbitosSel[i])
|
if (OliviaGlob.limp.AmbitosSel[i])
|
||||||
break;
|
break;
|
||||||
if(i>= limp.AmbitosSel.Length)
|
if(i>= OliviaGlob.limp.AmbitosSel.Length)
|
||||||
{
|
{
|
||||||
err_str = "No se ha seleccionado ningún Ámbito de trabajo";
|
err_str = "No se ha seleccionado ningún Ámbito de trabajo";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//lee si respeta circulacion
|
//lee si respeta circulacion
|
||||||
limp.RespCirc = _subPanel1ViewModel.RespCirc;
|
OliviaGlob.limp.RespCirc = _subPanel1ViewModel.RespCirc;
|
||||||
|
|
||||||
//lee velo de desplazamiento
|
//lee velo de desplazamiento
|
||||||
int vv = -1;
|
int vv = -1;
|
||||||
|
|
@ -119,7 +118,7 @@ namespace OliviaAddInPro
|
||||||
err_str = "La velocidad de desplazamiento no está dentro de los límites configurados";
|
err_str = "La velocidad de desplazamiento no está dentro de los límites configurados";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
limp.VDespl = vv;
|
OliviaGlob.limp.VDespl = vv;
|
||||||
|
|
||||||
//lee tiempo de tto
|
//lee tiempo de tto
|
||||||
if ((_subPanel1ViewModel.TimeTto == 0) ||
|
if ((_subPanel1ViewModel.TimeTto == 0) ||
|
||||||
|
|
@ -128,11 +127,11 @@ namespace OliviaAddInPro
|
||||||
err_str = "El tiempo de tratamiento no está dentro de los límites configurados";
|
err_str = "El tiempo de tratamiento no está dentro de los límites configurados";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
limp.Ttto = _subPanel1ViewModel.TimeTto;
|
OliviaGlob.limp.Ttto = _subPanel1ViewModel.TimeTto;
|
||||||
limp.UdsTTto = _subPanel1ViewModel.UdsTTto;
|
OliviaGlob.limp.UdsTTto = _subPanel1ViewModel.UdsTTto;
|
||||||
|
|
||||||
//lee las propiedades comunes a recogida
|
//lee las propiedades comunes a recogida
|
||||||
if (!LeeComun(limp,out err_str))
|
if (!LeeComun(OliviaGlob.limp,out err_str))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue