20260129 - 01
This commit is contained in:
61
bdGrupoSanchoToro/Importaciones/ImportaCTESGESL.cs
Normal file
61
bdGrupoSanchoToro/Importaciones/ImportaCTESGESL.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
using Microsoft.VisualBasic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace bdGrupoSanchoToro.Importaciones
|
||||
{
|
||||
public class ImportaCTESGESL
|
||||
{
|
||||
public static void Importar(byte[] Fichero)
|
||||
{
|
||||
try
|
||||
{
|
||||
var bd = tscGrupoSanchoToro.NuevoContexto();
|
||||
var le = bd.enumeraciones.ToList();
|
||||
var grs = bd.gruposenumeraciones.ToList();
|
||||
var dsprueba = new XSD.CTESGESL();
|
||||
|
||||
dsprueba.ReadXml(new System.IO.MemoryStream(Fichero));
|
||||
int i = 1;
|
||||
int Ultimalinea = dsprueba.Tables["Datos"].Rows.Count;
|
||||
foreach (XSD.CTESGESL.DatosRow Proant in dsprueba.Tables["Datos"].Rows)
|
||||
{
|
||||
try
|
||||
{
|
||||
bdGrupoSanchoToro.db.enumeraciones Pronue;
|
||||
Pronue = le.FirstOrDefault(x => x.Codigo == Proant.LCCOD.Trim());
|
||||
if (Pronue == null)
|
||||
{
|
||||
Pronue = new bdGrupoSanchoToro.db.enumeraciones();
|
||||
bd.enumeraciones.Add(Pronue);
|
||||
}
|
||||
Pronue.Codigo = Proant.LCCOD.Trim();
|
||||
int idgrupo = grs.First(x => x.Grupo == Proant.LCGRU.Trim()).idGrupoEnumeracion;
|
||||
Pronue.idGrupoEnumeracion = idgrupo;
|
||||
Pronue.ValorAlfabetico1 = Proant.LCDES.Trim();
|
||||
Pronue.Descripcion = Proant.LCVAA.Trim();
|
||||
Pronue.Orden = int.Parse(Proant.LCORD);
|
||||
i = i + 1;
|
||||
if (i > 1000)
|
||||
{
|
||||
bd.SaveChanges();
|
||||
i = 0;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message, ex);
|
||||
}
|
||||
}
|
||||
bd.SaveChanges();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
57
bdGrupoSanchoToro/Importaciones/ImportaFAMILIAS.cs
Normal file
57
bdGrupoSanchoToro/Importaciones/ImportaFAMILIAS.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
using bdGrupoSanchoToro.db;
|
||||
using Microsoft.VisualBasic;
|
||||
using System.Linq.Dynamic.Core;
|
||||
namespace bdGrupoSanchoToro.Importaciones
|
||||
|
||||
{
|
||||
public class ImportaFAMILIAS
|
||||
{
|
||||
public static void Importar(byte[] Fichero)
|
||||
{
|
||||
try
|
||||
{
|
||||
var bd = tscGrupoSanchoToro.NuevoContexto();
|
||||
var ds = new XSD.FAMILIAS();
|
||||
|
||||
ds.ReadXml(new System.IO.MemoryStream(Fichero));
|
||||
int Ultimalinea = ds.Tables["Datos"].Rows.Count;
|
||||
var lf = bd.familias.ToList();
|
||||
var fams = ds.Tables["Datos"].Rows.Cast<XSD.FAMILIAS.DatosRow>().ToList();
|
||||
|
||||
foreach (XSD.FAMILIAS.DatosRow fam in fams)
|
||||
{
|
||||
try
|
||||
{
|
||||
bdGrupoSanchoToro.db.familias f = lf.FirstOrDefault(x => x.Codigo == fam.FACOD);
|
||||
if (f == null)
|
||||
{
|
||||
f = new familias()
|
||||
{
|
||||
Codigo = fam.FACOD
|
||||
};
|
||||
lf.Add(f);
|
||||
bd.familias.Add(f);
|
||||
}
|
||||
f.Descripcion = fam.FADES;
|
||||
f.CuentaContableCompra = fam.FACCC;
|
||||
f.CuentaContableVenta = fam.FACCV;
|
||||
f.CuentaContableVentaAlquiler = fam.FACCVA;
|
||||
f.CuentaContableCompraAlquiler = fam.FACCCA;
|
||||
bd.SaveChanges();
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message, ex);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,5 @@
|
||||
using bdGrupoSanchoToro.db;
|
||||
using Microsoft.VisualBasic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Eventing.Reader;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Linq.Dynamic.Core;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace bdGrupoSanchoToro.Importaciones
|
||||
{
|
||||
public class ImportaGRUASGC
|
||||
|
||||
130
bdGrupoSanchoToro/Importaciones/ImportaPRODUCTOS.cs
Normal file
130
bdGrupoSanchoToro/Importaciones/ImportaPRODUCTOS.cs
Normal file
@@ -0,0 +1,130 @@
|
||||
|
||||
using bdGrupoSanchoToro.db;
|
||||
using Microsoft.VisualBasic;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Globalization;
|
||||
using System.Linq.Dynamic.Core;
|
||||
using tsUtilidades.Extensiones;
|
||||
|
||||
namespace bdGrupoSanchoToro.Importaciones
|
||||
|
||||
{
|
||||
public class ImportaPRODUCTOS
|
||||
{
|
||||
public static void Importar(byte[] Fichero)
|
||||
{
|
||||
try
|
||||
{
|
||||
var bd = tscGrupoSanchoToro.NuevoContexto();
|
||||
var ds = new XSD.PRODUCTOS();
|
||||
|
||||
ds.ReadXml(new System.IO.MemoryStream(Fichero));
|
||||
int Ultimalinea = ds.Tables["Datos"].Rows.Count;
|
||||
var lp = bd.productos.ToList();
|
||||
var lf = bd.familias.ToList();
|
||||
var lm = bd.marcas.ToList();
|
||||
var lfh = bd.enumeraciones.Where(x=> x.idGrupoEnumeracionNavigation.Grupo=="FAMH").ToList();
|
||||
var pros = ds.Tables["Datos"].Rows.Cast<XSD.PRODUCTOS.DatosRow>().ToList();
|
||||
|
||||
foreach (XSD.PRODUCTOS.DatosRow pro in pros)
|
||||
{
|
||||
try
|
||||
{
|
||||
bdGrupoSanchoToro.db.productos p = lp.FirstOrDefault(x => x.Codigo == pro.PRCOD || x.DescripcionAbreviada.RemoveDiacritics() ==pro.PRDES.Trim().RemoveDiacritics().ToUpper() || x.Descripcion.RemoveDiacritics().ToUpper()==pro.PRDESL.Trim().RemoveDiacritics().ToUpper() );
|
||||
if (p == null)
|
||||
{
|
||||
p = new productos()
|
||||
{
|
||||
Codigo = pro.PRCOD
|
||||
};
|
||||
lp.Add(p);
|
||||
bd.productos.Add(p);
|
||||
}
|
||||
p.CodigoBarras = pro.PRCBR;
|
||||
p.Descripcion = pro.PRDESL.Trim().RemoveDiacritics().ToUpper();
|
||||
p.DescripcionAbreviada = pro.PRDES.Trim().RemoveDiacritics().ToUpper();
|
||||
p.FechaAlta = DateOnly.FromDateTime(DateTime.Now);
|
||||
familias? fam = bd.familias.FirstOrDefault(x => x.Codigo == pro.PRFAM);
|
||||
p.idFamilia = fam == null ? null : fam.idFamilia;
|
||||
if (pro.PRMAR.NothingAVacio() != "")
|
||||
{
|
||||
var mar = lm.FirstOrDefault(x => x.Marca == pro.PRMAR);
|
||||
if (mar == null)
|
||||
{
|
||||
mar = new marcas()
|
||||
{
|
||||
Marca = pro.PRMAR
|
||||
};
|
||||
lm.Add(mar);
|
||||
bd.marcas.Add(mar);
|
||||
p.idMarcaNavigation = mar;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
p.idMarca = null;
|
||||
}
|
||||
p.Modelo = pro.PRMDL;
|
||||
p.Servicio = (pro.PRCFP=="AL" ? true : false);
|
||||
p.idFamiliaHomologacion = null;
|
||||
if (pro.PRFAMH!="")
|
||||
{
|
||||
var fh=lfh.FirstOrDefault(x=> x.Codigo==("FAMH." + pro.PRFAMH));
|
||||
if (fh != null)
|
||||
{
|
||||
p.idFamiliaHomologacion = fh.idEnumeracion;
|
||||
switch (fh.ValorAlfabetico1)
|
||||
{
|
||||
case "P":
|
||||
{
|
||||
p.Tipo = (int)productos.TipoProductoEnum.OTROS_PRODUCTOS;
|
||||
break;
|
||||
}
|
||||
case "C":
|
||||
{
|
||||
p.Tipo = (int)productos.TipoProductoEnum.CONSUMIBLES;
|
||||
break;
|
||||
}
|
||||
case "CG":
|
||||
{
|
||||
p.Tipo = (int)productos.TipoProductoEnum.ELEMENTO_GRUA;
|
||||
break;
|
||||
}
|
||||
case "MO":
|
||||
{
|
||||
p.Tipo = (int)productos.TipoProductoEnum.MATERIAL_OFICINA;
|
||||
break;
|
||||
}
|
||||
case "S":
|
||||
{
|
||||
p.Tipo = (int)productos.TipoProductoEnum.SERVICIO;
|
||||
break;
|
||||
}
|
||||
case "R":
|
||||
{
|
||||
p.Tipo = (int)productos.TipoProductoEnum.REPUESTO;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
p.PrecioVenta = double.Parse(pro.PRPVP, CultureInfo.InvariantCulture);
|
||||
p.ReferenciaFabrica = pro.PRRFA;
|
||||
p.PrefijoNumeroSerie = pro.PRPNS;
|
||||
bd.SaveChanges();
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message, ex);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,12 @@ namespace bdGrupoSanchoToro.Importaciones
|
||||
tscGrupoSanchoToro bd = tscGrupoSanchoToro.NuevoContexto();
|
||||
|
||||
//00
|
||||
Importa("GRUASGC", bdGrupoSanchoToro.Importaciones.ImportaGRUASGC.Importar, de); //00
|
||||
//Importa("GRUASGC", bdGrupoSanchoToro.Importaciones.ImportaGRUASGC.Importar, de); //00
|
||||
//Importa("FAMILIAS", bdGrupoSanchoToro.Importaciones.ImportaFAMILIAS.Importar, de); //00
|
||||
//Importa("FAMILIAS", bdGrupoSanchoToro.Importaciones.ImportaFAMILIAS.Importar, de); //00
|
||||
//Importa("CTESGESL", bdGrupoSanchoToro.Importaciones.ImportaCTESGESL.Importar, de); //00
|
||||
Importa("PRODUCTOS", bdGrupoSanchoToro.Importaciones.ImportaPRODUCTOS.Importar, de); //00
|
||||
|
||||
//Importa("GRUPRO", bdGrupoSanchoToro.Importaciones.ImportaGrupoProductos.Importar, de); //01
|
||||
//Importa("CAMPAÑAS", bdGrupoSanchoToro.Importaciones.ImportaCampañas.Importar, de); //02
|
||||
//Importa("PRODUCTOS", bdGrupoSanchoToro.Importaciones.ImportaProductos.Importar, de); //03
|
||||
@@ -37,7 +42,7 @@ namespace bdGrupoSanchoToro.Importaciones
|
||||
//Importa("PROVEEDORH", bdGrupoSanchoToro.Importaciones.ImportaProveedoresh.Importar, de); //25
|
||||
//Importa("CLIENTES", bdGrupoSanchoToro.Importaciones.ImportaClientes.Importar, de); //15
|
||||
//Importa("CLIENTESH", bdGrupoSanchoToro.Importaciones.ImportaClientesh.Importar, de); //26
|
||||
// Importa("PERSONAL", bdGrupoSanchoToro.Importaciones.ImportaClientesh.Importar, de); //26
|
||||
// Importa("PERSONAL", bdGrupoSanchoToro.Importaciones.ImportaClientesh.Importar, de); //26
|
||||
}
|
||||
|
||||
//public static void ImportarPersonal(DelegadoErroresImportacion de)
|
||||
@@ -70,11 +75,15 @@ namespace bdGrupoSanchoToro.Importaciones
|
||||
string Fichh = "/var/tecnosis/DATAXML/HISTORICO/" + Fichero + ".DATA";
|
||||
var sftp = ConfiguraFTPHP(bd);
|
||||
var st = new MemoryStream();
|
||||
var std = new MemoryStream();
|
||||
if (tsFluentFTP.ftp.ExisteFichero(Fich, sftp))
|
||||
{
|
||||
tsFluentFTP.ftp.DescargaFichero(Fich, st, sftp);
|
||||
st.Seek(0, 0);
|
||||
tsUtilidades.Ficheros.EliminaCaracteresInvalidosXML(st, std);
|
||||
std.Seek(0, 0);
|
||||
// tsFluentFTP.ftp.RenombraFichero(Fich,Fichh, sftp);
|
||||
return st.ToArray();
|
||||
return std.ToArray();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
773
bdGrupoSanchoToro/XSD/DAT-CTESGESL.Designer.cs
generated
Normal file
773
bdGrupoSanchoToro/XSD/DAT-CTESGESL.Designer.cs
generated
Normal file
@@ -0,0 +1,773 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Este código fue generado por una herramienta.
|
||||
// Versión de runtime:4.0.30319.42000
|
||||
//
|
||||
// Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
|
||||
// se vuelve a generar el código.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#pragma warning disable 1591
|
||||
|
||||
namespace bdGrupoSanchoToro.XSD {
|
||||
|
||||
|
||||
/// <summary>
|
||||
///Represents a strongly typed in-memory cache of data.
|
||||
///</summary>
|
||||
[global::System.Serializable()]
|
||||
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[global::System.ComponentModel.ToolboxItem(true)]
|
||||
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
|
||||
[global::System.Xml.Serialization.XmlRootAttribute("CTESGESL")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
|
||||
public partial class CTESGESL : global::System.Data.DataSet {
|
||||
|
||||
private DatosDataTable tableDatos;
|
||||
|
||||
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public CTESGESL() {
|
||||
this.BeginInit();
|
||||
this.InitClass();
|
||||
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
||||
base.Tables.CollectionChanged += schemaChangedHandler;
|
||||
base.Relations.CollectionChanged += schemaChangedHandler;
|
||||
this.EndInit();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[System.ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called" +
|
||||
" or extended by application code.", DiagnosticId="SYSLIB0051")]
|
||||
protected CTESGESL(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
||||
base(info, context, false) {
|
||||
if ((this.IsBinarySerialized(info, context) == true)) {
|
||||
this.InitVars(false);
|
||||
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
||||
this.Tables.CollectionChanged += schemaChangedHandler1;
|
||||
this.Relations.CollectionChanged += schemaChangedHandler1;
|
||||
return;
|
||||
}
|
||||
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
|
||||
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
||||
global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
||||
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
||||
if ((ds.Tables["Datos"] != null)) {
|
||||
base.Tables.Add(new DatosDataTable(ds.Tables["Datos"]));
|
||||
}
|
||||
this.DataSetName = ds.DataSetName;
|
||||
this.Prefix = ds.Prefix;
|
||||
this.Namespace = ds.Namespace;
|
||||
this.Locale = ds.Locale;
|
||||
this.CaseSensitive = ds.CaseSensitive;
|
||||
this.EnforceConstraints = ds.EnforceConstraints;
|
||||
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
||||
this.InitVars();
|
||||
}
|
||||
else {
|
||||
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
||||
}
|
||||
this.GetSerializationData(info, context);
|
||||
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
||||
base.Tables.CollectionChanged += schemaChangedHandler;
|
||||
this.Relations.CollectionChanged += schemaChangedHandler;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
||||
public DatosDataTable Datos {
|
||||
get {
|
||||
return this.tableDatos;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.BrowsableAttribute(true)]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
|
||||
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
|
||||
get {
|
||||
return this._schemaSerializationMode;
|
||||
}
|
||||
set {
|
||||
this._schemaSerializationMode = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
||||
public new global::System.Data.DataTableCollection Tables {
|
||||
get {
|
||||
return base.Tables;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
||||
public new global::System.Data.DataRelationCollection Relations {
|
||||
get {
|
||||
return base.Relations;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void InitializeDerivedDataSet() {
|
||||
this.BeginInit();
|
||||
this.InitClass();
|
||||
this.EndInit();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public override global::System.Data.DataSet Clone() {
|
||||
CTESGESL cln = ((CTESGESL)(base.Clone()));
|
||||
cln.InitVars();
|
||||
cln.SchemaSerializationMode = this.SchemaSerializationMode;
|
||||
return cln;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override bool ShouldSerializeTables() {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override bool ShouldSerializeRelations() {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
|
||||
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
||||
this.Reset();
|
||||
global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
||||
ds.ReadXml(reader);
|
||||
if ((ds.Tables["Datos"] != null)) {
|
||||
base.Tables.Add(new DatosDataTable(ds.Tables["Datos"]));
|
||||
}
|
||||
this.DataSetName = ds.DataSetName;
|
||||
this.Prefix = ds.Prefix;
|
||||
this.Namespace = ds.Namespace;
|
||||
this.Locale = ds.Locale;
|
||||
this.CaseSensitive = ds.CaseSensitive;
|
||||
this.EnforceConstraints = ds.EnforceConstraints;
|
||||
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
||||
this.InitVars();
|
||||
}
|
||||
else {
|
||||
this.ReadXml(reader);
|
||||
this.InitVars();
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
|
||||
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
|
||||
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
|
||||
stream.Position = 0;
|
||||
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal void InitVars() {
|
||||
this.InitVars(true);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal void InitVars(bool initTable) {
|
||||
this.tableDatos = ((DatosDataTable)(base.Tables["Datos"]));
|
||||
if ((initTable == true)) {
|
||||
if ((this.tableDatos != null)) {
|
||||
this.tableDatos.InitVars();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private void InitClass() {
|
||||
this.DataSetName = "CTESGESL";
|
||||
this.Prefix = "";
|
||||
this.Locale = new global::System.Globalization.CultureInfo("en-US");
|
||||
this.EnforceConstraints = true;
|
||||
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
this.tableDatos = new DatosDataTable();
|
||||
base.Tables.Add(this.tableDatos);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private bool ShouldSerializeDatos() {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
||||
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
|
||||
this.InitVars();
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
||||
CTESGESL ds = new CTESGESL();
|
||||
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
||||
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
||||
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
|
||||
any.Namespace = ds.Namespace;
|
||||
sequence.Items.Add(any);
|
||||
type.Particle = sequence;
|
||||
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
||||
if (xs.Contains(dsSchema.TargetNamespace)) {
|
||||
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
||||
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
||||
try {
|
||||
global::System.Xml.Schema.XmlSchema schema = null;
|
||||
dsSchema.Write(s1);
|
||||
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
||||
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
||||
s2.SetLength(0);
|
||||
schema.Write(s2);
|
||||
if ((s1.Length == s2.Length)) {
|
||||
s1.Position = 0;
|
||||
s2.Position = 0;
|
||||
for (; ((s1.Position != s1.Length)
|
||||
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
||||
;
|
||||
}
|
||||
if ((s1.Position == s1.Length)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
finally {
|
||||
if ((s1 != null)) {
|
||||
s1.Close();
|
||||
}
|
||||
if ((s2 != null)) {
|
||||
s2.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
xs.Add(dsSchema);
|
||||
return type;
|
||||
}
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public delegate void DatosRowChangeEventHandler(object sender, DatosRowChangeEvent e);
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
[global::System.Serializable()]
|
||||
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
||||
public partial class DatosDataTable : global::System.Data.TypedTableBase<DatosRow> {
|
||||
|
||||
private global::System.Data.DataColumn columnLCORD;
|
||||
|
||||
private global::System.Data.DataColumn columnLCGRU;
|
||||
|
||||
private global::System.Data.DataColumn columnLCCOD;
|
||||
|
||||
private global::System.Data.DataColumn columnLCDES;
|
||||
|
||||
private global::System.Data.DataColumn columnLCVAA;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public DatosDataTable() {
|
||||
this.TableName = "Datos";
|
||||
this.BeginInit();
|
||||
this.InitClass();
|
||||
this.EndInit();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal DatosDataTable(global::System.Data.DataTable table) {
|
||||
this.TableName = table.TableName;
|
||||
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
||||
this.CaseSensitive = table.CaseSensitive;
|
||||
}
|
||||
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
||||
this.Locale = table.Locale;
|
||||
}
|
||||
if ((table.Namespace != table.DataSet.Namespace)) {
|
||||
this.Namespace = table.Namespace;
|
||||
}
|
||||
this.Prefix = table.Prefix;
|
||||
this.MinimumCapacity = table.MinimumCapacity;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[System.ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called" +
|
||||
" or extended by application code.", DiagnosticId="SYSLIB0051")]
|
||||
protected DatosDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
||||
base(info, context) {
|
||||
this.InitVars();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn LCORDColumn {
|
||||
get {
|
||||
return this.columnLCORD;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn LCGRUColumn {
|
||||
get {
|
||||
return this.columnLCGRU;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn LCCODColumn {
|
||||
get {
|
||||
return this.columnLCCOD;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn LCDESColumn {
|
||||
get {
|
||||
return this.columnLCDES;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn LCVAAColumn {
|
||||
get {
|
||||
return this.columnLCVAA;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
public int Count {
|
||||
get {
|
||||
return this.Rows.Count;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public DatosRow this[int index] {
|
||||
get {
|
||||
return ((DatosRow)(this.Rows[index]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public event DatosRowChangeEventHandler DatosRowChanging;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public event DatosRowChangeEventHandler DatosRowChanged;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public event DatosRowChangeEventHandler DatosRowDeleting;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public event DatosRowChangeEventHandler DatosRowDeleted;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void AddDatosRow(DatosRow row) {
|
||||
this.Rows.Add(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public DatosRow AddDatosRow(string LCORD, string LCGRU, string LCCOD, string LCDES, string LCVAA) {
|
||||
DatosRow rowDatosRow = ((DatosRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
LCORD,
|
||||
LCGRU,
|
||||
LCCOD,
|
||||
LCDES,
|
||||
LCVAA};
|
||||
rowDatosRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowDatosRow);
|
||||
return rowDatosRow;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public override global::System.Data.DataTable Clone() {
|
||||
DatosDataTable cln = ((DatosDataTable)(base.Clone()));
|
||||
cln.InitVars();
|
||||
return cln;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override global::System.Data.DataTable CreateInstance() {
|
||||
return new DatosDataTable();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal void InitVars() {
|
||||
this.columnLCORD = base.Columns["LCORD"];
|
||||
this.columnLCGRU = base.Columns["LCGRU"];
|
||||
this.columnLCCOD = base.Columns["LCCOD"];
|
||||
this.columnLCDES = base.Columns["LCDES"];
|
||||
this.columnLCVAA = base.Columns["LCVAA"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private void InitClass() {
|
||||
this.columnLCORD = new global::System.Data.DataColumn("LCORD", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnLCORD);
|
||||
this.columnLCGRU = new global::System.Data.DataColumn("LCGRU", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnLCGRU);
|
||||
this.columnLCCOD = new global::System.Data.DataColumn("LCCOD", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnLCCOD);
|
||||
this.columnLCDES = new global::System.Data.DataColumn("LCDES", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnLCDES);
|
||||
this.columnLCVAA = new global::System.Data.DataColumn("LCVAA", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnLCVAA);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public DatosRow NewDatosRow() {
|
||||
return ((DatosRow)(this.NewRow()));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
||||
return new DatosRow(builder);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override global::System.Type GetRowType() {
|
||||
return typeof(DatosRow);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanged(e);
|
||||
if ((this.DatosRowChanged != null)) {
|
||||
this.DatosRowChanged(this, new DatosRowChangeEvent(((DatosRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanging(e);
|
||||
if ((this.DatosRowChanging != null)) {
|
||||
this.DatosRowChanging(this, new DatosRowChangeEvent(((DatosRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleted(e);
|
||||
if ((this.DatosRowDeleted != null)) {
|
||||
this.DatosRowDeleted(this, new DatosRowChangeEvent(((DatosRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleting(e);
|
||||
if ((this.DatosRowDeleting != null)) {
|
||||
this.DatosRowDeleting(this, new DatosRowChangeEvent(((DatosRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void RemoveDatosRow(DatosRow row) {
|
||||
this.Rows.Remove(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
||||
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
||||
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
||||
CTESGESL ds = new CTESGESL();
|
||||
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
||||
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
||||
any1.MinOccurs = new decimal(0);
|
||||
any1.MaxOccurs = decimal.MaxValue;
|
||||
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
||||
sequence.Items.Add(any1);
|
||||
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
||||
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
||||
any2.MinOccurs = new decimal(1);
|
||||
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
||||
sequence.Items.Add(any2);
|
||||
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
||||
attribute1.Name = "namespace";
|
||||
attribute1.FixedValue = ds.Namespace;
|
||||
type.Attributes.Add(attribute1);
|
||||
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
||||
attribute2.Name = "tableTypeName";
|
||||
attribute2.FixedValue = "DatosDataTable";
|
||||
type.Attributes.Add(attribute2);
|
||||
type.Particle = sequence;
|
||||
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
||||
if (xs.Contains(dsSchema.TargetNamespace)) {
|
||||
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
||||
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
||||
try {
|
||||
global::System.Xml.Schema.XmlSchema schema = null;
|
||||
dsSchema.Write(s1);
|
||||
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
||||
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
||||
s2.SetLength(0);
|
||||
schema.Write(s2);
|
||||
if ((s1.Length == s2.Length)) {
|
||||
s1.Position = 0;
|
||||
s2.Position = 0;
|
||||
for (; ((s1.Position != s1.Length)
|
||||
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
||||
;
|
||||
}
|
||||
if ((s1.Position == s1.Length)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
finally {
|
||||
if ((s1 != null)) {
|
||||
s1.Close();
|
||||
}
|
||||
if ((s2 != null)) {
|
||||
s2.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
xs.Add(dsSchema);
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents strongly named DataRow class.
|
||||
///</summary>
|
||||
public partial class DatosRow : global::System.Data.DataRow {
|
||||
|
||||
private DatosDataTable tableDatos;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal DatosRow(global::System.Data.DataRowBuilder rb) :
|
||||
base(rb) {
|
||||
this.tableDatos = ((DatosDataTable)(this.Table));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string LCORD {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableDatos.LCORDColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("El valor de la columna \'LCORD\' de la tabla \'Datos\' es DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableDatos.LCORDColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string LCGRU {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableDatos.LCGRUColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("El valor de la columna \'LCGRU\' de la tabla \'Datos\' es DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableDatos.LCGRUColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string LCCOD {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableDatos.LCCODColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("El valor de la columna \'LCCOD\' de la tabla \'Datos\' es DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableDatos.LCCODColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string LCDES {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableDatos.LCDESColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("El valor de la columna \'LCDES\' de la tabla \'Datos\' es DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableDatos.LCDESColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string LCVAA {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableDatos.LCVAAColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("El valor de la columna \'LCVAA\' de la tabla \'Datos\' es DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableDatos.LCVAAColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsLCORDNull() {
|
||||
return this.IsNull(this.tableDatos.LCORDColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetLCORDNull() {
|
||||
this[this.tableDatos.LCORDColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsLCGRUNull() {
|
||||
return this.IsNull(this.tableDatos.LCGRUColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetLCGRUNull() {
|
||||
this[this.tableDatos.LCGRUColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsLCCODNull() {
|
||||
return this.IsNull(this.tableDatos.LCCODColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetLCCODNull() {
|
||||
this[this.tableDatos.LCCODColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsLCDESNull() {
|
||||
return this.IsNull(this.tableDatos.LCDESColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetLCDESNull() {
|
||||
this[this.tableDatos.LCDESColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsLCVAANull() {
|
||||
return this.IsNull(this.tableDatos.LCVAAColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetLCVAANull() {
|
||||
this[this.tableDatos.LCVAAColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public class DatosRowChangeEvent : global::System.EventArgs {
|
||||
|
||||
private DatosRow eventRow;
|
||||
|
||||
private global::System.Data.DataRowAction eventAction;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public DatosRowChangeEvent(DatosRow row, global::System.Data.DataRowAction action) {
|
||||
this.eventRow = row;
|
||||
this.eventAction = action;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public DatosRow Row {
|
||||
get {
|
||||
return this.eventRow;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataRowAction Action {
|
||||
get {
|
||||
return this.eventAction;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore 1591
|
||||
1
bdGrupoSanchoToro/XSD/DAT-CTESGESL.xsc
Normal file
1
bdGrupoSanchoToro/XSD/DAT-CTESGESL.xsc
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
20
bdGrupoSanchoToro/XSD/DAT-CTESGESL.xsd
Normal file
20
bdGrupoSanchoToro/XSD/DAT-CTESGESL.xsd
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="CTESGESL" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xs:element name="CTESGESL" msdata:IsDataSet="true" msdata:Locale="en-US">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="Datos">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="LCORD" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="LCGRU" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="LCCOD" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="LCDES" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="LCVAA" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
1
bdGrupoSanchoToro/XSD/DAT-CTESGESL.xss
Normal file
1
bdGrupoSanchoToro/XSD/DAT-CTESGESL.xss
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1294
bdGrupoSanchoToro/XSD/DAT-FAMILIAS.Designer.cs
generated
Normal file
1294
bdGrupoSanchoToro/XSD/DAT-FAMILIAS.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
1
bdGrupoSanchoToro/XSD/DAT-FAMILIAS.xsc
Normal file
1
bdGrupoSanchoToro/XSD/DAT-FAMILIAS.xsc
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
32
bdGrupoSanchoToro/XSD/DAT-FAMILIAS.xsd
Normal file
32
bdGrupoSanchoToro/XSD/DAT-FAMILIAS.xsd
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="FAMILIAS" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xs:element name="FAMILIAS" msdata:IsDataSet="true" msdata:Locale="en-US">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="Datos">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="FACOD" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FADES" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FAUSU" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FACCV" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FACCVA" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FACCC" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FACCCA" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FALA1" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FALA2" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FALA3" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FALA4" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FANL1" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FANL2" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FANL3" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FANL4" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FASIT" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="FAOBS" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
1
bdGrupoSanchoToro/XSD/DAT-FAMILIAS.xss
Normal file
1
bdGrupoSanchoToro/XSD/DAT-FAMILIAS.xss
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
3143
bdGrupoSanchoToro/XSD/DAT-PRODUCTOS.Designer.cs
generated
Normal file
3143
bdGrupoSanchoToro/XSD/DAT-PRODUCTOS.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
1
bdGrupoSanchoToro/XSD/DAT-PRODUCTOS.xsc
Normal file
1
bdGrupoSanchoToro/XSD/DAT-PRODUCTOS.xsc
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
75
bdGrupoSanchoToro/XSD/DAT-PRODUCTOS.xsd
Normal file
75
bdGrupoSanchoToro/XSD/DAT-PRODUCTOS.xsd
Normal file
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="PRODUCTOS" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xs:element name="PRODUCTOS" msdata:IsDataSet="true" msdata:Locale="en-US">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="Datos">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="PRCOD" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRDES" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRDESL" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRFAM" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRTHO" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRCFP" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRRFA" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRTPR" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRCBR" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PREXP" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRDPM" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRSER" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRPNS" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRUXE" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRPES" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRCI" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRMAR" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRMDL" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRVGU" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRPCM" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRUPC" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRPVP" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRDTO" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRFAMH" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PREXI1" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PREXI2" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PREXI3" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PREXI4" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PREXI5" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PREXI6" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRFUR1" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRFUR2" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRFUR3" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRFUR4" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRFUR5" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRFUR6" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRNMA1" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRNMA2" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRNMA3" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRNMA4" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRNMA5" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRNMA6" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PREXT" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRSMI" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PREXM" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRMGPA" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRMOPA" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRCOPA" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRUBI" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRCEA" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRAL1" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRAL2" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRAL3" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRAL4" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRNL1" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRNL2" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRNL3" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRNL4" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PRSIT" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="PROBS" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
1
bdGrupoSanchoToro/XSD/DAT-PRODUCTOS.xss
Normal file
1
bdGrupoSanchoToro/XSD/DAT-PRODUCTOS.xss
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
@@ -36,18 +36,45 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="XSD\DAT-CTESGESL.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>DAT-CTESGESL.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="XSD\DAT-FAMILIAS.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>DAT-FAMILIAS.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="XSD\DAT-GRUASGC.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>DAT-GRUASGC.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="XSD\DAT-PRODUCTOS.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>DAT-PRODUCTOS.xsd</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="XSD\DAT-CTESGESL.xsd">
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DAT-CTESGESL.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Update="XSD\DAT-FAMILIAS.xsd">
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DAT-FAMILIAS.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Update="XSD\DAT-GRUASGC.xsd">
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DAT-GRUASGC.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Update="XSD\DAT-PRODUCTOS.xsd">
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DAT-PRODUCTOS.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -11,7 +11,7 @@ public partial class productos
|
||||
|
||||
public string Codigo { get; set; } = null!;
|
||||
|
||||
public string? DescripcionAbreviada { get; set; }
|
||||
public string DescripcionAbreviada { get; set; } = null!;
|
||||
|
||||
public string Descripcion { get; set; } = null!;
|
||||
|
||||
@@ -27,28 +27,16 @@ public partial class productos
|
||||
|
||||
public string? CodigoBarras { get; set; }
|
||||
|
||||
public string? NumeroSerie { get; set; }
|
||||
|
||||
public string? PrefijoNumeroSerie { get; set; }
|
||||
|
||||
public double? UnidadesPorEmbalaje { get; set; }
|
||||
|
||||
public double Peso { get; set; }
|
||||
|
||||
public int? idCodigoImpresion { get; set; }
|
||||
public int? TipoImpresion { get; set; }
|
||||
|
||||
public int? idMarca { get; set; }
|
||||
|
||||
public string? Modelo { get; set; }
|
||||
|
||||
public bool? VentaGruaUsada { get; set; }
|
||||
|
||||
public double? PrecioCosteMedio { get; set; }
|
||||
|
||||
public double? UltimoPrecioCoste { get; set; }
|
||||
|
||||
public double PrecioVenta { get; set; }
|
||||
|
||||
public DateOnly FechaAlta { get; set; }
|
||||
|
||||
public DateTime? FechaBaja { get; set; }
|
||||
@@ -57,32 +45,38 @@ public partial class productos
|
||||
|
||||
public int? idFamiliaHomologacion { get; set; }
|
||||
|
||||
public double? ExistenciasTotal { get; set; }
|
||||
|
||||
public string? StockMinimo { get; set; }
|
||||
|
||||
public double? ExistenciasMedias { get; set; }
|
||||
|
||||
public string? ModeloGruaPatas { get; set; }
|
||||
|
||||
public string? ModelosPatas { get; set; }
|
||||
|
||||
public string? CorrespondenciaPatas { get; set; }
|
||||
|
||||
public string? Ubicacion { get; set; }
|
||||
|
||||
public string? ControlarEnAlbaran { get; set; }
|
||||
|
||||
public int? idUsuarioCreador { get; set; }
|
||||
|
||||
public int? idUsuarioModificador { get; set; }
|
||||
|
||||
public string? Observaciones { get; set; }
|
||||
|
||||
public int idEmpresa { get; set; }
|
||||
public int? idEmpresa { get; set; }
|
||||
|
||||
public double? UltimoPrecioCoste { get; set; }
|
||||
|
||||
public double? UltimoPrecioCompra { get; set; }
|
||||
|
||||
public double TotalUnidades { get; set; }
|
||||
|
||||
public double UnidadesInicialesOFabricadas { get; set; }
|
||||
|
||||
public double UnidadesCompradas { get; set; }
|
||||
|
||||
public double UnidadesVendidas { get; set; }
|
||||
|
||||
public double UnidadesAlquiladas { get; set; }
|
||||
|
||||
public double UnidadesAveriadas { get; set; }
|
||||
|
||||
public double UnidadesDesechadas { get; set; }
|
||||
|
||||
public double UnidadesSubAlquiladas { get; set; }
|
||||
|
||||
public double? PrecioAlquilerMensual { get; set; }
|
||||
|
||||
public double? PrecioVenta { get; set; }
|
||||
|
||||
public virtual ICollection<articulos> articulos { get; set; } = new List<articulos>();
|
||||
|
||||
public virtual ICollection<detallepresupuesto> detallepresupuesto { get; set; } = new List<detallepresupuesto>();
|
||||
@@ -93,7 +87,7 @@ public partial class productos
|
||||
|
||||
public virtual ICollection<detallesfacturasrecibidas> detallesfacturasrecibidas { get; set; } = new List<detallesfacturasrecibidas>();
|
||||
|
||||
public virtual empresas idEmpresaNavigation { get; set; } = null!;
|
||||
public virtual empresas? idEmpresaNavigation { get; set; }
|
||||
|
||||
public virtual familias? idFamiliaNavigation { get; set; }
|
||||
|
||||
|
||||
@@ -2056,6 +2056,8 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
|
||||
entity.HasIndex(e => e.Codigo, "Codigo_UNIQUE").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.DescripcionAbreviada, "DescripcionAbreviada_UNIQUE").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.Descripcion, "Descripcion_UNIQUE").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.idUsuarioCreador, "productos_01_usuarios_idx");
|
||||
@@ -2070,8 +2072,6 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
|
||||
entity.Property(e => e.Codigo).HasMaxLength(40);
|
||||
entity.Property(e => e.CodigoBarras).HasMaxLength(16);
|
||||
entity.Property(e => e.ControlarEnAlbaran).HasMaxLength(2);
|
||||
entity.Property(e => e.CorrespondenciaPatas).HasMaxLength(45);
|
||||
entity.Property(e => e.Descripcion)
|
||||
.HasMaxLength(100)
|
||||
.UseCollation("latin1_swedish_ci")
|
||||
@@ -2079,20 +2079,17 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
entity.Property(e => e.DescripcionAbreviada).HasMaxLength(45);
|
||||
entity.Property(e => e.FechaBaja).HasColumnType("datetime");
|
||||
entity.Property(e => e.Modelo).HasMaxLength(50);
|
||||
entity.Property(e => e.ModeloGruaPatas).HasMaxLength(45);
|
||||
entity.Property(e => e.ModelosPatas).HasMaxLength(45);
|
||||
entity.Property(e => e.NumeroSerie).HasMaxLength(2);
|
||||
entity.Property(e => e.Observaciones)
|
||||
.HasMaxLength(300)
|
||||
.UseCollation("latin1_swedish_ci")
|
||||
.HasCharSet("latin1");
|
||||
entity.Property(e => e.PrecioVenta).HasDefaultValueSql("'0'");
|
||||
entity.Property(e => e.PrefijoNumeroSerie).HasMaxLength(8);
|
||||
entity.Property(e => e.ReferenciaFabrica).HasMaxLength(45);
|
||||
entity.Property(e => e.StockMinimo).HasMaxLength(45);
|
||||
entity.Property(e => e.Ubicacion).HasMaxLength(45);
|
||||
|
||||
entity.HasOne(d => d.idEmpresaNavigation).WithMany(p => p.productos)
|
||||
.HasForeignKey(d => d.idEmpresa)
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.HasConstraintName("productos_empresas");
|
||||
|
||||
entity.HasOne(d => d.idFamiliaNavigation).WithMany(p => p.productos)
|
||||
|
||||
@@ -4,15 +4,18 @@
|
||||
"ContextNamespace": null,
|
||||
"FilterSchemas": false,
|
||||
"IncludeConnectionString": false,
|
||||
"MinimumProductVersion": "2.6.1186",
|
||||
"IrregularWords": null,
|
||||
"MinimumProductVersion": "2.6.1301",
|
||||
"ModelNamespace": null,
|
||||
"OutputContextPath": "dbcontext",
|
||||
"OutputPath": "db",
|
||||
"PluralRules": null,
|
||||
"PreserveCasingWithRegex": true,
|
||||
"ProjectRootNamespace": "bdGrupoSanchoToro",
|
||||
"Schemas": null,
|
||||
"SelectedHandlebarsLanguage": 2,
|
||||
"SelectedToBeGenerated": 0,
|
||||
"SingularRules": null,
|
||||
"T4TemplatePath": null,
|
||||
"Tables": [
|
||||
{
|
||||
|
||||
185
bdGrupoSanchoToro/extensiones/albaranes.cs
Normal file
185
bdGrupoSanchoToro/extensiones/albaranes.cs
Normal file
@@ -0,0 +1,185 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using static bdGrupoSanchoToro.db.almacenes;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using static tsUtilidades.Extensiones.StringExtensions;
|
||||
using System.Drawing.Imaging;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace bdGrupoSanchoToro.db
|
||||
{
|
||||
|
||||
public partial class albaranes :INotifyPropertyChanged
|
||||
{
|
||||
public municipios? municipios
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.CodigoMunicipioCargaNavigation;
|
||||
}
|
||||
}
|
||||
public municipios? municipios1
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.CodigoMunicipioDescargaNavigation;
|
||||
}
|
||||
}
|
||||
public presupuestos? presupuestos
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.idPresupuestoNavigation;
|
||||
}
|
||||
}
|
||||
public entidades? entidades
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.idEntidadNavigation;
|
||||
}
|
||||
}
|
||||
public usuarios usuarios
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.idUsuarioNavigation;
|
||||
}
|
||||
}
|
||||
|
||||
public string Entidad
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.idEntidad.HasValue)
|
||||
{
|
||||
return this.entidades.RazonSocial;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
public string DescripcionTipoAlbaran
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((TipoAlbaranEnum)this.Tipo).ToString().Replace("_", " ");
|
||||
}
|
||||
}
|
||||
public string NumeroAlbaran
|
||||
{
|
||||
get
|
||||
{
|
||||
return albaranes.ObtieneNumeroAlbaran(this.idAlbaran, (PrefijoAlbaranEnum)this.Tipo);
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler? PropertyChanged;
|
||||
|
||||
public static string ObtieneNumeroAlbaran(int idAlbaran, PrefijoAlbaranEnum Tipo)
|
||||
{
|
||||
return Tipo.ToString() + "-" + idAlbaran.ToString().PadLeft(6, '0');
|
||||
}
|
||||
public string Usuario
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.usuarios is null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else
|
||||
{
|
||||
return this.usuarios.Nombre;
|
||||
}
|
||||
}
|
||||
}
|
||||
public string PoblacionCarga
|
||||
{
|
||||
get
|
||||
{
|
||||
return Conversions.ToString(municipios.ObtienePoblacion(this.CodigoMunicipioCarga));
|
||||
}
|
||||
}
|
||||
public string PoblacionDescarga
|
||||
{
|
||||
get
|
||||
{
|
||||
return Conversions.ToString(municipios.ObtienePoblacion(this.CodigoMunicipioDescarga));
|
||||
}
|
||||
}
|
||||
|
||||
public string ProvinciaCarga
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.municipios!=null && !string.IsNullOrEmpty(this.CodigoMunicipioCarga.NothingAVacio()))
|
||||
{
|
||||
return this.municipios.provincias.Nombre;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
public string ProvinciaDescarga
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.municipios1 != null && !string.IsNullOrEmpty(this.CodigoMunicipioDescarga.NothingAVacio()))
|
||||
{
|
||||
return this.municipios1.provincias.Nombre;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
public void RefrescaCamposSoloLectura()
|
||||
{
|
||||
this.OnPropertyChanged("PoblacionCarga");
|
||||
this.OnPropertyChanged("PoblacionDescarga");
|
||||
this.OnPropertyChanged("ProvinciaCarga");
|
||||
this.OnPropertyChanged("ProvinciaDescarga");
|
||||
this.OnPropertyChanged("CodigoPostalCarga");
|
||||
this.OnPropertyChanged("CodigoPostalDescarga");
|
||||
}
|
||||
protected void OnPropertyChanged([CallerMemberName] string name = null)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
|
||||
}
|
||||
public enum TipoAlbaranEnum : int
|
||||
{
|
||||
ENTREGA = 0,
|
||||
RECOGIDA = 1,
|
||||
CAMBIO_ALMACEN = 2,
|
||||
SUBALQUILER = 3,
|
||||
DEVOLUCION_SUBALQUILER = 4,
|
||||
STOCK_INICIAL_O_FABRICACION = 100,
|
||||
COMPRA = 101
|
||||
}
|
||||
public enum PrefijoAlbaranEnum : int
|
||||
{
|
||||
AENT = 0,
|
||||
AREC = 1,
|
||||
ACMA = 2,
|
||||
ASBA = 3,
|
||||
ADSA = 4,
|
||||
ASIOF = 100,
|
||||
ACMP = 101
|
||||
}
|
||||
|
||||
public enum TipoImpresionAlbaranEntregaEnum : int
|
||||
{
|
||||
IMPRIMIR_CONTRATO = 0,
|
||||
IMPRIMIR_ALBARAN_NO_VALORADO = 1,
|
||||
IMPRIMIR_ALBARAN_VALORADO = 2,
|
||||
}
|
||||
}
|
||||
}
|
||||
188
bdGrupoSanchoToro/extensiones/detallesalbaranes.cs
Normal file
188
bdGrupoSanchoToro/extensiones/detallesalbaranes.cs
Normal file
@@ -0,0 +1,188 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using static bdGrupoSanchoToro.db.productos;
|
||||
|
||||
namespace bdGrupoSanchoToro.db
|
||||
{
|
||||
|
||||
public partial class detallesalbaranes
|
||||
{
|
||||
//public albaranes albaranes
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return this.idAlbaranNavigation;
|
||||
// }
|
||||
//}
|
||||
public string NumeroAlbaran
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.idAlbaranNavigation.NumeroAlbaran;
|
||||
}
|
||||
}
|
||||
public DateOnly FechaAlbaran
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.idAlbaranNavigation.Fecha;
|
||||
}
|
||||
}
|
||||
public string AlmacenOrigen
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.idAlbaranNavigation.idAlmacenOrigen.HasValue)
|
||||
{
|
||||
return this.idAlbaranNavigation.idAlmacenOrigenNavigation.Descripcion;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
public string AlmacenDestino
|
||||
{
|
||||
get
|
||||
{
|
||||
if (idAlbaranNavigation.idAlmacenDestino.HasValue)
|
||||
{
|
||||
return idAlbaranNavigation.idAlmacenDestinoNavigation.Descripcion;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
public string Entidad
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.idAlbaranNavigation.Entidad;
|
||||
}
|
||||
}
|
||||
public void ActualizaProducto(bdGrupoSanchoToro.dbcontext.GrupoSanchoToroContext bd, int Factor)
|
||||
{
|
||||
try
|
||||
{
|
||||
var pr = bd.productos.First(x => x.idProducto == this.idProducto);
|
||||
if (pr.Tipo != (int)TipoProductoEnum.SERVICIO )
|
||||
{
|
||||
var almo = this.idAlbaranNavigation.idAlmacenOrigen.HasValue ? bd.almacenes.First(x => x.idAlmacen== idAlbaranNavigation.idAlmacenOrigen) : (almacenes)null;
|
||||
var almd = this.idAlbaranNavigation.idAlmacenDestino.HasValue ? bd.almacenes.First(x => x.idAlmacen == this.idAlbaranNavigation.idAlmacenDestino) : (almacenes)null;
|
||||
switch ((albaranes.TipoAlbaranEnum)this.idAlbaranNavigation.Tipo)
|
||||
{
|
||||
case albaranes.TipoAlbaranEnum.COMPRA:
|
||||
case albaranes.TipoAlbaranEnum.STOCK_INICIAL_O_FABRICACION:
|
||||
{
|
||||
this.ActStockPorAlmacen(bd, Factor, almd.idAlmacen, pr.idProducto);
|
||||
pr.UnidadesInicialesOFabricadas += this.Cantidad * (double)Factor;
|
||||
this.ActStockGlobal(pr, (almacenes.TipoAlmacenEnum)almd.Tipo, true, Factor);
|
||||
break;
|
||||
}
|
||||
case albaranes.TipoAlbaranEnum.CAMBIO_ALMACEN:
|
||||
{
|
||||
this.ActStockPorAlmacen(bd, Factor * -1, almo.idAlmacen, pr.idProducto);
|
||||
this.ActStockGlobal(pr, (almacenes.TipoAlmacenEnum)almo.Tipo, false, Factor * -1);
|
||||
|
||||
this.ActStockPorAlmacen(bd, Factor, almd.idAlmacen, pr.idProducto);
|
||||
this.ActStockGlobal(pr, (almacenes.TipoAlmacenEnum)almd.Tipo, false, Factor);
|
||||
break;
|
||||
}
|
||||
case albaranes.TipoAlbaranEnum.ENTREGA:
|
||||
{
|
||||
this.ActStockPorAlmacen(bd, Factor * -1, almo.idAlmacen, pr.idProducto);
|
||||
this.ActStockGlobal(pr, (almacenes.TipoAlmacenEnum)almo.Tipo, this.EsVenta, Factor * -1);
|
||||
if (this.EsVenta == false)
|
||||
{
|
||||
pr.UnidadesAlquiladas += this.Cantidad * (double)Factor;
|
||||
}
|
||||
else
|
||||
{
|
||||
pr.UnidadesVendidas += this.Cantidad * (double)Factor;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case albaranes.TipoAlbaranEnum.RECOGIDA:
|
||||
{
|
||||
this.ActStockPorAlmacen(bd, Factor, almd.idAlmacen, pr.idProducto);
|
||||
this.ActStockGlobal(pr, (almacenes.TipoAlmacenEnum)almd.Tipo, false, Factor);
|
||||
pr.UnidadesAlquiladas += this.Cantidad * (double)Factor * (double)-1;
|
||||
break;
|
||||
}
|
||||
case albaranes.TipoAlbaranEnum.SUBALQUILER:
|
||||
{
|
||||
this.ActStockPorAlmacen(bd, Factor, almd.idAlmacen, pr.idProducto);
|
||||
this.ActStockGlobal(pr, (almacenes.TipoAlmacenEnum)almd.Tipo, true, Factor);
|
||||
pr.UnidadesSubAlquiladas += this.Cantidad * (double)Factor;
|
||||
break;
|
||||
}
|
||||
case albaranes.TipoAlbaranEnum.DEVOLUCION_SUBALQUILER:
|
||||
{
|
||||
this.ActStockPorAlmacen(bd, Factor * -1, almo.idAlmacen, pr.idProducto);
|
||||
this.ActStockGlobal(pr, (almacenes.TipoAlmacenEnum)almo.Tipo, true, Factor * -1);
|
||||
pr.UnidadesSubAlquiladas += this.Cantidad * (double)Factor * (double)-1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// bd.SaveChanges()
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message, ex);
|
||||
}
|
||||
}
|
||||
private void ActStockPorAlmacen(bdGrupoSanchoToro.dbcontext.GrupoSanchoToroContext bd, int Factor, int idAlmacen, int idProducto)
|
||||
{
|
||||
try
|
||||
{
|
||||
var st = bd.stocks.FirstOrDefault(x => x.idProducto == idProducto && x.idAlmacen == idAlmacen);
|
||||
if (st is null)
|
||||
{
|
||||
st = new stocks();
|
||||
st.idProducto = idProducto;
|
||||
st.idAlmacen = idAlmacen;
|
||||
st.Unidades = 0d;
|
||||
bd.stocks.Add(st);
|
||||
}
|
||||
st.Unidades += this.Cantidad * (double)Factor;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message, ex);
|
||||
}
|
||||
}
|
||||
private void ActStockGlobal(productos pr, almacenes.TipoAlmacenEnum TipoAlmacen, bool ActTotalUnidades, int Factor)
|
||||
{
|
||||
try
|
||||
{
|
||||
switch (TipoAlmacen)
|
||||
{
|
||||
// Case almacenes.TipoAlmacenEnum.ALMACEN
|
||||
case almacenes.TipoAlmacenEnum.TALLER_REPARACIONES:
|
||||
{
|
||||
pr.UnidadesAveriadas += this.Cantidad * (double)Factor;
|
||||
break;
|
||||
}
|
||||
case almacenes.TipoAlmacenEnum.UNIDADES_DESCARTADAS:
|
||||
{
|
||||
pr.UnidadesDesechadas += this.Cantidad * (double)Factor;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (ActTotalUnidades)
|
||||
pr.TotalUnidades += this.Cantidad * (double)Factor;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception(ex.Message, ex);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,8 +46,9 @@ namespace bdGrupoSanchoToro.db
|
||||
GRUA = 0,
|
||||
ELEMENTO_GRUA = 1,
|
||||
REPUESTO =10,
|
||||
OTRO_MATERIAL = 11,
|
||||
MATERIAL_OFICINA = 12,
|
||||
OTROS_PRODUCTOS = 11,
|
||||
CONSUMIBLES =12,
|
||||
MATERIAL_OFICINA = 13,
|
||||
SERVICIO = 99,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user