Avance exportacion factua electronica
parent
4cbf5df086
commit
03d7306745
|
|
@ -32,13 +32,13 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
INTERNO_Impuestos_Factura_E_modelo Impuesto { get; set; }
|
INTERNO_Impuestos_Factura_E_modelo Impuesto { get; set; }
|
||||||
//resumen-----------------------------------------
|
//resumen-----------------------------------------
|
||||||
public decimal TotalBruto { get; set; }
|
public decimal TotalBruto { get; set; }
|
||||||
public decimal TotalDescuento { get; set; }
|
public decimal? TotalDescuento { get; set; }
|
||||||
public decimal TotalBase { get; set; }
|
public decimal TotalBase { get; set; }
|
||||||
public decimal TotalImpuestos { get; set; }
|
public decimal TotalImpuestos { get; set; }
|
||||||
public decimal TotalFactura { get; set; }
|
public decimal TotalFactura { get; set; }
|
||||||
public decimal TotalPendiente { get; set; }
|
public decimal TotalPendiente { get; set; }
|
||||||
public decimal TotalEjecutable { get; set; }
|
public decimal TotalEjecutable { get; set; }
|
||||||
public decimal TotalAnticipo { get; set; }
|
public decimal? TotalAnticipo { get; set; }
|
||||||
//elementos factura------------------------------
|
//elementos factura------------------------------
|
||||||
INTERNO_Item_Factura_E_modelo[] Items { get; set; }
|
INTERNO_Item_Factura_E_modelo[] Items { get; set; }
|
||||||
|
|
||||||
|
|
@ -289,8 +289,6 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
private string grabaXML(XmlDocument doc, XmlElement factura)
|
private string grabaXML(XmlDocument doc, XmlElement factura)
|
||||||
{
|
{
|
||||||
string res = null;
|
string res = null;
|
||||||
bool cab, part, lin;
|
|
||||||
cab = part = lin = false;
|
|
||||||
XmlElement header = doc.CreateElement(string.Empty, FACTURA_E_HEADER_NAME, string.Empty);
|
XmlElement header = doc.CreateElement(string.Empty, FACTURA_E_HEADER_NAME, string.Empty);
|
||||||
XmlElement parties = doc.CreateElement(string.Empty, FACTURA_E_PARTES_NAME, string.Empty);
|
XmlElement parties = doc.CreateElement(string.Empty, FACTURA_E_PARTES_NAME, string.Empty);
|
||||||
XmlElement items = doc.CreateElement(string.Empty, FACTURA_E_LIN_FACTURA_NAME, string.Empty);
|
XmlElement items = doc.CreateElement(string.Empty, FACTURA_E_LIN_FACTURA_NAME, string.Empty);
|
||||||
|
|
@ -562,14 +560,20 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
string res = null;
|
string res = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
XmlElement nod;
|
||||||
XmlElement nbase = doc.CreateElement(string.Empty, FACTURA_E_ContactDetails_NAME, string.Empty);
|
XmlElement nbase = doc.CreateElement(string.Empty, FACTURA_E_ContactDetails_NAME, string.Empty);
|
||||||
|
if (dat.Tlf != null)
|
||||||
XmlElement nod = doc.CreateElement(string.Empty, FACTURA_E_Telephone_NAME, string.Empty);
|
{
|
||||||
nod.InnerText = dat.Tlf;
|
nod = doc.CreateElement(string.Empty, FACTURA_E_Telephone_NAME, string.Empty);
|
||||||
nbase.AppendChild(nod);
|
nod.InnerText = dat.Tlf;
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TeleFax_NAME, string.Empty);
|
nbase.AppendChild(nod);
|
||||||
nod.InnerText = dat.Fax;
|
}
|
||||||
nbase.AppendChild(nod);
|
if (dat.Fax != null)
|
||||||
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TeleFax_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.Fax;
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
if (dat.Web != null)
|
if (dat.Web != null)
|
||||||
{
|
{
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_WebAddress_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_WebAddress_NAME, string.Empty);
|
||||||
|
|
@ -601,10 +605,12 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
XmlElement nod = doc.CreateElement(string.Empty, FACTURA_E_CorporateName_NAME, string.Empty);
|
XmlElement nod = doc.CreateElement(string.Empty, FACTURA_E_CorporateName_NAME, string.Empty);
|
||||||
nod.InnerText = dat.RazonSocial;
|
nod.InnerText = dat.RazonSocial;
|
||||||
nbase.AppendChild(nod);
|
nbase.AppendChild(nod);
|
||||||
|
if (dat.NombreComercial != null)
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TradeName_NAME, string.Empty);
|
{
|
||||||
nod.InnerText = dat.NombreComercial;
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TradeName_NAME, string.Empty);
|
||||||
nbase.AppendChild(nod);
|
nod.InnerText = dat.NombreComercial;
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
res=grabaDireccon(dat, doc, nbase);
|
res=grabaDireccon(dat, doc, nbase);
|
||||||
if (res != null)
|
if (res != null)
|
||||||
return res;
|
return res;
|
||||||
|
|
@ -630,21 +636,34 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
{
|
{
|
||||||
XmlElement nbase = doc.CreateElement(string.Empty, FACTURA_E_AdministrativeCentre_NAME, string.Empty);
|
XmlElement nbase = doc.CreateElement(string.Empty, FACTURA_E_AdministrativeCentre_NAME, string.Empty);
|
||||||
|
|
||||||
XmlElement nod = doc.CreateElement(string.Empty, FACTURA_E_CentreCode_NAME, string.Empty);
|
XmlElement nod;
|
||||||
nod.InnerText = dat.Codigo;
|
if (dat.Codigo != null)
|
||||||
nbase.AppendChild(nod);
|
{
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_RoleTypeCode_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_CentreCode_NAME, string.Empty);
|
||||||
nod.InnerText = dat.Role;
|
nod.InnerText = dat.Codigo;
|
||||||
nbase.AppendChild(nod);
|
nbase.AppendChild(nod);
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_Name_NAME, string.Empty);
|
}
|
||||||
nod.InnerText = dat.Encargado;
|
if (dat.Role != null)
|
||||||
nbase.AppendChild(nod);
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_RoleTypeCode_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.Role;
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
|
if (dat.Encargado != null)
|
||||||
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_Name_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.Encargado;
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
res = grabaDireccon(dat, doc, nbase);
|
res = grabaDireccon(dat, doc, nbase);
|
||||||
if (res != null)
|
if (res != null)
|
||||||
return res;
|
return res;
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_CentreDescription_NAME, string.Empty);
|
if (dat.Descripcion != null)
|
||||||
nod.InnerText = dat.Descripcion;
|
{
|
||||||
nbase.AppendChild(nod);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_CentreDescription_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.Descripcion;
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
nodo.AppendChild(nbase);
|
nodo.AppendChild(nbase);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
@ -659,15 +678,19 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
XmlElement nbase = doc.CreateElement(string.Empty, FACTURA_E_Corrective_NAME, string.Empty);
|
XmlElement nbase = doc.CreateElement(string.Empty, FACTURA_E_Corrective_NAME, string.Empty);
|
||||||
|
XmlElement nod;
|
||||||
XmlElement nod = doc.CreateElement(string.Empty, FACTURA_E_InvoiceNumber_NAME, string.Empty);
|
if (dat.NumeroFactura != null)
|
||||||
nod.InnerText = dat.NumeroFactura.ToString();
|
{
|
||||||
nbase.AppendChild(nod);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_InvoiceNumber_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.NumeroFactura.ToString();
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_InvoiceSeriesCode_NAME, string.Empty);
|
nbase.AppendChild(nod);
|
||||||
nod.InnerText = dat.SerieDelegacion.ToString();
|
}
|
||||||
nbase.AppendChild(nod);
|
if (dat.SerieDelegacion != null)
|
||||||
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_InvoiceSeriesCode_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.SerieDelegacion.ToString();
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_ReasonCode_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_ReasonCode_NAME, string.Empty);
|
||||||
nod.InnerText = FACTURA_E_ReasonCode;
|
nod.InnerText = FACTURA_E_ReasonCode;
|
||||||
nbase.AppendChild(nod);
|
nbase.AppendChild(nod);
|
||||||
|
|
@ -692,13 +715,18 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
nod.InnerText = FACTURA_E_CorrectionMethod;
|
nod.InnerText = FACTURA_E_CorrectionMethod;
|
||||||
nbase.AppendChild(nod);
|
nbase.AppendChild(nod);
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_CorrectionMethodDescription_NAME, string.Empty);
|
if (dat.RazonCorreccion != null)
|
||||||
nod.InnerText = dat.RazonCorreccion;
|
{
|
||||||
nbase.AppendChild(nod);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_CorrectionMethodDescription_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.RazonCorreccion;
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_AdditionalReasonDescription_NAME, string.Empty);
|
nbase.AppendChild(nod);
|
||||||
nod.InnerText = dat.Observaciones;
|
}
|
||||||
nbase.AppendChild(nod);
|
if (dat.Observaciones != null)
|
||||||
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_AdditionalReasonDescription_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.Observaciones;
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
nodo.AppendChild(nbase);
|
nodo.AppendChild(nbase);
|
||||||
|
|
@ -720,19 +748,18 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
XmlElement nod = doc.CreateElement(string.Empty, FACTURA_E_IssueDate_NAME, string.Empty);
|
XmlElement nod = doc.CreateElement(string.Empty, FACTURA_E_IssueDate_NAME, string.Empty);
|
||||||
nod.InnerText = toStr(Fecha);
|
nod.InnerText = toStr(Fecha);
|
||||||
nbase.AppendChild(nod);
|
nbase.AppendChild(nod);
|
||||||
XmlElement nbase2 = doc.CreateElement(string.Empty, FACTURA_E_InvoiceIssueData_NAME, string.Empty);
|
if (PeriodoInicio != null && PeriodoFin != null)
|
||||||
|
{
|
||||||
|
XmlElement nbase2 = doc.CreateElement(string.Empty, FACTURA_E_InvoicingPeriod_NAME, string.Empty);
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_InvoicingPeriod_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_StartDate_NAME, string.Empty);
|
||||||
nod.InnerText = toStr(PeriodoInicio);
|
nod.InnerText = toStr(PeriodoInicio);
|
||||||
|
nbase2.AppendChild(nod);
|
||||||
nbase2.AppendChild(nod);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_EndDate_NAME, string.Empty);
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_StartDate_NAME, string.Empty);
|
nod.InnerText = toStr(PeriodoFin);
|
||||||
nod.InnerText = toStr(PeriodoInicio);
|
nbase2.AppendChild(nod);
|
||||||
nbase2.AppendChild(nod);
|
nbase.AppendChild(nbase2);
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_EndDate_NAME, string.Empty);
|
}
|
||||||
nod.InnerText = toStr(PeriodoFin);
|
|
||||||
nbase2.AppendChild(nod);
|
|
||||||
nbase.AppendChild(nbase2);
|
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_InvoiceCurrencyCode_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_InvoiceCurrencyCode_NAME, string.Empty);
|
||||||
nod.InnerText = Moneda;
|
nod.InnerText = Moneda;
|
||||||
|
|
@ -757,29 +784,42 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
string res = null;
|
string res = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (dat.Porcentaje != null || dat.Tipo != null || dat.Base != null || dat.Importe != null)
|
||||||
|
{
|
||||||
|
XmlElement nbase = doc.CreateElement(string.Empty, FACTURA_E_Tax_NAME, string.Empty);
|
||||||
|
|
||||||
XmlElement nbase = doc.CreateElement(string.Empty, FACTURA_E_Tax_NAME, string.Empty);
|
XmlElement nod;
|
||||||
|
if (dat.Tipo != null)
|
||||||
XmlElement nod = doc.CreateElement(string.Empty, FACTURA_E_TaxTypeCode_NAME, string.Empty);
|
{
|
||||||
nod.InnerText = toStr(dat.Tipo);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TaxTypeCode_NAME, string.Empty);
|
||||||
nbase.AppendChild(nod);
|
nod.InnerText = toStr(dat.Tipo.Value);
|
||||||
|
nbase.AppendChild(nod);
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TaxRate_NAME, string.Empty);
|
}
|
||||||
nod.InnerText = toStr(dat.Porcentaje);
|
if (dat.Porcentaje != null)
|
||||||
nbase.AppendChild(nod);
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TaxRate_NAME, string.Empty);
|
||||||
XmlElement nbase2 = doc.CreateElement(string.Empty, FACTURA_E_TaxableBase_NAME, string.Empty);
|
nod.InnerText = toStr(dat.Porcentaje.Value);
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalAmount_NAME, string.Empty);
|
nbase.AppendChild(nod);
|
||||||
nod.InnerText = toStr(dat.Base);
|
}
|
||||||
nbase2.AppendChild(nod);
|
XmlElement nbase2;
|
||||||
nbase.AppendChild(nbase2);
|
if (dat.Base != null)
|
||||||
|
{
|
||||||
nbase2 = doc.CreateElement(string.Empty, FACTURA_E_TaxAmount_NAME, string.Empty);
|
nbase2 = doc.CreateElement(string.Empty, FACTURA_E_TaxableBase_NAME, string.Empty);
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalAmount_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalAmount_NAME, string.Empty);
|
||||||
nod.InnerText = toStr(dat.Importe);
|
nod.InnerText = toStr(dat.Base.Value);
|
||||||
nbase2.AppendChild(nod);
|
nbase2.AppendChild(nod);
|
||||||
nbase.AppendChild(nbase2);
|
nbase.AppendChild(nbase2);
|
||||||
nodo.AppendChild(nbase);
|
}
|
||||||
|
if (dat.Importe != null)
|
||||||
|
{
|
||||||
|
nbase2 = doc.CreateElement(string.Empty, FACTURA_E_TaxAmount_NAME, string.Empty);
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalAmount_NAME, string.Empty);
|
||||||
|
nod.InnerText = toStr(dat.Importe.Value);
|
||||||
|
nbase2.AppendChild(nod);
|
||||||
|
nbase.AppendChild(nbase2);
|
||||||
|
}
|
||||||
|
nodo.AppendChild(nbase);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
@ -798,10 +838,13 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
XmlElement nod = doc.CreateElement(string.Empty, FACTURA_E_TotalGrossAmount_NAME, string.Empty);
|
XmlElement nod = doc.CreateElement(string.Empty, FACTURA_E_TotalGrossAmount_NAME, string.Empty);
|
||||||
nod.InnerText = toStr(TotalBruto);
|
nod.InnerText = toStr(TotalBruto);
|
||||||
nbase.AppendChild(nod);
|
nbase.AppendChild(nod);
|
||||||
|
if(TotalDescuento!=null)
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalGeneralDiscounts_NAME, string.Empty);
|
{
|
||||||
nod.InnerText = toStr(TotalDescuento);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalGeneralDiscounts_NAME, string.Empty);
|
||||||
nbase.AppendChild(nod);
|
nod.InnerText = toStr(TotalDescuento.Value);
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalGrossAmountBeforeTaxes_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalGrossAmountBeforeTaxes_NAME, string.Empty);
|
||||||
nod.InnerText = toStr(TotalBase);
|
nod.InnerText = toStr(TotalBase);
|
||||||
|
|
@ -822,10 +865,13 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalOutstandingAmount_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalOutstandingAmount_NAME, string.Empty);
|
||||||
nod.InnerText = toStr(TotalPendiente);
|
nod.InnerText = toStr(TotalPendiente);
|
||||||
nbase.AppendChild(nod);
|
nbase.AppendChild(nod);
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalPaymentsOnAccount_NAME, string.Empty);
|
if (TotalAnticipo != null)
|
||||||
nod.InnerText = toStr(TotalAnticipo);
|
{
|
||||||
nbase.AppendChild(nod);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalPaymentsOnAccount_NAME, string.Empty);
|
||||||
|
nod.InnerText = toStr(TotalAnticipo.Value);
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalExecutableAmount_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalExecutableAmount_NAME, string.Empty);
|
||||||
nod.InnerText = toStr(TotalEjecutable);
|
nod.InnerText = toStr(TotalEjecutable);
|
||||||
|
|
@ -852,10 +898,12 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
nod.InnerText = dat.Codigo;
|
nod.InnerText = dat.Codigo;
|
||||||
nbase2.AppendChild(nod);
|
nbase2.AppendChild(nod);
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_DeliveryNoteDate_NAME, string.Empty);
|
if (dat.FechaAlbaran != null)
|
||||||
nod.InnerText = toStr(dat.FechaAlbaran);
|
{
|
||||||
nbase2.AppendChild(nod);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_DeliveryNoteDate_NAME, string.Empty);
|
||||||
|
nod.InnerText = toStr(dat.FechaAlbaran);
|
||||||
|
nbase2.AppendChild(nod);
|
||||||
|
}
|
||||||
nbase.AppendChild(nbase2);
|
nbase.AppendChild(nbase2);
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_ItemDescription_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_ItemDescription_NAME, string.Empty);
|
||||||
|
|
@ -877,24 +925,32 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalCost_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TotalCost_NAME, string.Empty);
|
||||||
nod.InnerText = toStr(dat.Total);
|
nod.InnerText = toStr(dat.Total);
|
||||||
nbase.AppendChild(nod);
|
nbase.AppendChild(nod);
|
||||||
|
if (dat.DescuentoPorcentaje != null || dat.Descuentoimporte != null)
|
||||||
|
{
|
||||||
|
nbase2 = doc.CreateElement(string.Empty, FACTURA_E_DiscountsAndRebates_NAME, string.Empty);
|
||||||
|
var nbase3 = doc.CreateElement(string.Empty, FACTURA_E_Discount_NAME, string.Empty);
|
||||||
|
if (dat.DescuentoRazon != null)
|
||||||
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_DiscontReason_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.DescuentoRazon;
|
||||||
|
nbase3.AppendChild(nod);
|
||||||
|
}
|
||||||
|
if (dat.DescuentoPorcentaje != null)
|
||||||
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_DiscountRate_NAME, string.Empty);
|
||||||
|
nod.InnerText = toStr(dat.DescuentoPorcentaje.Value);
|
||||||
|
nbase3.AppendChild(nod);
|
||||||
|
}
|
||||||
|
if (dat.Descuentoimporte != null)
|
||||||
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_DiscountAmount_NAME, string.Empty);
|
||||||
|
nod.InnerText = toStr(dat.Descuentoimporte.Value);
|
||||||
|
}
|
||||||
|
nbase3.AppendChild(nod);
|
||||||
|
|
||||||
nbase2 = doc.CreateElement(string.Empty, FACTURA_E_DiscountsAndRebates_NAME, string.Empty);
|
nbase2.AppendChild(nbase3);
|
||||||
var nbase3 = doc.CreateElement(string.Empty, FACTURA_E_Discount_NAME, string.Empty);
|
nbase.AppendChild(nbase2);
|
||||||
|
}
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_DiscontReason_NAME, string.Empty);
|
|
||||||
nod.InnerText = dat.DescuentoRazon;
|
|
||||||
nbase3.AppendChild(nod);
|
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_DiscountRate_NAME, string.Empty);
|
|
||||||
nod.InnerText = toStr(dat.DescuentoPorcentaje);
|
|
||||||
nbase3.AppendChild(nod);
|
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_DiscountAmount_NAME, string.Empty);
|
|
||||||
nod.InnerText = toStr(dat.Descuentoimporte);
|
|
||||||
nbase3.AppendChild(nod);
|
|
||||||
|
|
||||||
nbase2.AppendChild(nbase3);
|
|
||||||
nbase.AppendChild(nbase2);
|
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_GrossAmount_NAME, string.Empty);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_GrossAmount_NAME, string.Empty);
|
||||||
nod.InnerText = toStr(dat.ImporteBruto);
|
nod.InnerText = toStr(dat.ImporteBruto);
|
||||||
|
|
@ -903,17 +959,25 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
res = grabaImpuestos(dat, doc, nbase);
|
res = grabaImpuestos(dat, doc, nbase);
|
||||||
if (res != null)
|
if (res != null)
|
||||||
return res;
|
return res;
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_TransactionDate_NAME, string.Empty);
|
|
||||||
nod.InnerText = toStr(dat.FechaAlbaran);
|
|
||||||
nbase.AppendChild(nod);
|
|
||||||
|
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_AdditionalLineItemInformation_NAME, string.Empty);
|
if (dat.FechaAlbaran != null)
|
||||||
nod.InnerText = dat.Adicional;
|
{
|
||||||
nbase.AppendChild(nod);
|
nod = doc.CreateElement(string.Empty, FACTURA_E_TransactionDate_NAME, string.Empty);
|
||||||
|
nod.InnerText = toStr(dat.FechaAlbaran);
|
||||||
nod = doc.CreateElement(string.Empty, FACTURA_E_AdditionalLineItemInformation_NAME, string.Empty);
|
nbase.AppendChild(nod);
|
||||||
nod.InnerText = dat.CodigoArticulo;
|
}
|
||||||
nbase.AppendChild(nod);
|
if (dat.Adicional != null)
|
||||||
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_AdditionalLineItemInformation_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.Adicional;
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
|
if (dat.CodigoArticulo != null)
|
||||||
|
{
|
||||||
|
nod = doc.CreateElement(string.Empty, FACTURA_E_AdditionalLineItemInformation_NAME, string.Empty);
|
||||||
|
nod.InnerText = dat.CodigoArticulo;
|
||||||
|
nbase.AppendChild(nod);
|
||||||
|
}
|
||||||
|
|
||||||
nodo.AppendChild(nbase);
|
nodo.AppendChild(nbase);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
{
|
{
|
||||||
public class INTERNO_Impuestos_Factura_E_modelo
|
public class INTERNO_Impuestos_Factura_E_modelo
|
||||||
{
|
{
|
||||||
public decimal Porcentaje { get; set; }
|
public decimal? Porcentaje { get; set; }
|
||||||
public long Tipo { get; set; }
|
public long? Tipo { get; set; }
|
||||||
public decimal Base { get; set; }
|
public decimal? Base { get; set; }
|
||||||
public decimal Importe { get; set; }
|
public decimal? Importe { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ namespace Exferia_Aplicacion.Modelos_Factura_E
|
||||||
public decimal Precio { get; set; }
|
public decimal Precio { get; set; }
|
||||||
public decimal Total { get; set; }
|
public decimal Total { get; set; }
|
||||||
public string DescuentoRazon { get; set; }
|
public string DescuentoRazon { get; set; }
|
||||||
public decimal DescuentoPorcentaje { get; set; }
|
public decimal? DescuentoPorcentaje { get; set; }
|
||||||
public decimal Descuentoimporte { get; set; }
|
public decimal? Descuentoimporte { get; set; }
|
||||||
|
|
||||||
public decimal ImporteBruto { get; set; }//despues de descuentos
|
public decimal ImporteBruto { get; set; }//despues de descuentos
|
||||||
public string Adicional { get; set; }
|
public string Adicional { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -202,6 +202,10 @@ namespace Exferia_Ventas._3_Vistas.Controladoras
|
||||||
|
|
||||||
g_frm_P_FacturaCabecera_Procesos.Exferia_Label_SinColor_EnviarMensajes_Total_Abiertos.Text = int_Totalregistros_Abiertos.ToString();
|
g_frm_P_FacturaCabecera_Procesos.Exferia_Label_SinColor_EnviarMensajes_Total_Abiertos.Text = int_Totalregistros_Abiertos.ToString();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
g_frm_P_FacturaCabecera_Procesos.Exferia_Label_SinColor_Factura_E_Total_Cerrados.Text = int_Totalregistros_Cerrados.ToString();
|
||||||
|
|
||||||
|
g_frm_P_FacturaCabecera_Procesos.Exferia_Label_SinColor_Factura_E_Total_Abiertos.Text = int_Totalregistros_Abiertos.ToString();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,15 @@
|
||||||
this.exferia_Label_SinColor12 = new Exferia_Controles.Exferia_Label_SinColor();
|
this.exferia_Label_SinColor12 = new Exferia_Controles.Exferia_Label_SinColor();
|
||||||
this.exferia_Label_SinColor13 = new Exferia_Controles.Exferia_Label_SinColor();
|
this.exferia_Label_SinColor13 = new Exferia_Controles.Exferia_Label_SinColor();
|
||||||
this.ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado = new Exferia_Controles.Exferia_TextBox();
|
this.ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado = new Exferia_Controles.Exferia_TextBox();
|
||||||
|
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso = new Exferia_Controles.Exferia_Button();
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado = new Exferia_Controles.Exferia_TextBox();
|
||||||
|
this.exferia_Label_SinColor17 = new Exferia_Controles.Exferia_Label_SinColor();
|
||||||
|
this.exferia_GroupBox5 = new Exferia_Controles.Exferia_GroupBox();
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados = new Exferia_Controles.Exferia_Label_SinColor();
|
||||||
|
this.exferia_Label_SinColor14 = new Exferia_Controles.Exferia_Label_SinColor();
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos = new Exferia_Controles.Exferia_Label_SinColor();
|
||||||
|
this.exferia_Label_SinColor16 = new Exferia_Controles.Exferia_Label_SinColor();
|
||||||
this.exferia_GroupBox1 = new Exferia_Controles.Exferia_GroupBox();
|
this.exferia_GroupBox1 = new Exferia_Controles.Exferia_GroupBox();
|
||||||
this.ex_rdb_P_FacturaCabecera_Procesos_Registros_Seleccionados = new Exferia_Controles.Exferia_RadioButton();
|
this.ex_rdb_P_FacturaCabecera_Procesos_Registros_Seleccionados = new Exferia_Controles.Exferia_RadioButton();
|
||||||
this.ex_lbl_P_FacturaCabecera_Procesos_Registros_Total_Titulo = new Exferia_Controles.Exferia_Label_SinColor();
|
this.ex_lbl_P_FacturaCabecera_Procesos_Registros_Total_Titulo = new Exferia_Controles.Exferia_Label_SinColor();
|
||||||
|
|
@ -73,6 +82,7 @@
|
||||||
this.ex_btn_P_FacturaCabecera_Procesos_Cerrar = new Exferia_Controles.Exferia_Button();
|
this.ex_btn_P_FacturaCabecera_Procesos_Cerrar = new Exferia_Controles.Exferia_Button();
|
||||||
this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes = new Exferia_Controles.Exferia_Button();
|
this.ex_btn_P_FacturaCabecera_Procesos_EnviarMensajes = new Exferia_Controles.Exferia_Button();
|
||||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica = new Exferia_Controles.Exferia_Button();
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica = new Exferia_Controles.Exferia_Button();
|
||||||
|
this.checkEnviaEmails = new System.Windows.Forms.CheckBox();
|
||||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.SuspendLayout();
|
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.SuspendLayout();
|
||||||
this.tbp_Cerrar.SuspendLayout();
|
this.tbp_Cerrar.SuspendLayout();
|
||||||
this.exferia_GroupBox2.SuspendLayout();
|
this.exferia_GroupBox2.SuspendLayout();
|
||||||
|
|
@ -81,6 +91,8 @@
|
||||||
this.tbp_RecalcularResumen.SuspendLayout();
|
this.tbp_RecalcularResumen.SuspendLayout();
|
||||||
this.tbp_EnvioMensajes.SuspendLayout();
|
this.tbp_EnvioMensajes.SuspendLayout();
|
||||||
this.exferia_GroupBox4.SuspendLayout();
|
this.exferia_GroupBox4.SuspendLayout();
|
||||||
|
this.tabPage1.SuspendLayout();
|
||||||
|
this.exferia_GroupBox5.SuspendLayout();
|
||||||
this.exferia_GroupBox1.SuspendLayout();
|
this.exferia_GroupBox1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
|
|
@ -93,6 +105,7 @@
|
||||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tbp_Abrir);
|
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tbp_Abrir);
|
||||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tbp_RecalcularResumen);
|
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tbp_RecalcularResumen);
|
||||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tbp_EnvioMensajes);
|
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tbp_EnvioMensajes);
|
||||||
|
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Controls.Add(this.tabPage1);
|
||||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed;
|
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed;
|
||||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Exferia_TabControl_Fondo_TabPage_Cambiado = System.Drawing.Color.WhiteSmoke;
|
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Exferia_TabControl_Fondo_TabPage_Cambiado = System.Drawing.Color.WhiteSmoke;
|
||||||
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Exferia_TabControl_Fondo_TabPage_Normal = System.Drawing.Color.WhiteSmoke;
|
this.ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.Exferia_TabControl_Fondo_TabPage_Normal = System.Drawing.Color.WhiteSmoke;
|
||||||
|
|
@ -639,6 +652,143 @@
|
||||||
this.ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado.Size = new System.Drawing.Size(716, 338);
|
this.ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado.Size = new System.Drawing.Size(716, 338);
|
||||||
this.ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado.TabIndex = 1080;
|
this.ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado.TabIndex = 1080;
|
||||||
//
|
//
|
||||||
|
// tabPage1
|
||||||
|
//
|
||||||
|
this.tabPage1.Controls.Add(this.checkEnviaEmails);
|
||||||
|
this.tabPage1.Controls.Add(this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso);
|
||||||
|
this.tabPage1.Controls.Add(this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado);
|
||||||
|
this.tabPage1.Controls.Add(this.exferia_Label_SinColor17);
|
||||||
|
this.tabPage1.Controls.Add(this.exferia_GroupBox5);
|
||||||
|
this.tabPage1.Location = new System.Drawing.Point(4, 22);
|
||||||
|
this.tabPage1.Name = "tabPage1";
|
||||||
|
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||||
|
this.tabPage1.Size = new System.Drawing.Size(728, 479);
|
||||||
|
this.tabPage1.TabIndex = 9;
|
||||||
|
this.tabPage1.Text = "Factura Electrónica";
|
||||||
|
this.tabPage1.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso
|
||||||
|
//
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.BackColor = System.Drawing.Color.Maroon;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_Bloqueable = true;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_Imagen = Exferia_Aplicacion.General.Imagenes.G_ENUM_IMAGENES.G_IMG_ACTUALIZAR;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_Permitir_CambioFuenteAutomatico = true;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_ReadOnly = false;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_TabStop = false;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Exferia_Button_ToolTip = "Generar Facturas";
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.FlatAppearance.BorderSize = 0;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Location = new System.Drawing.Point(691, 7);
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Name = "ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso";
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Size = new System.Drawing.Size(31, 36);
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.TabIndex = 1086;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.TabStop = false;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.UseVisualStyleBackColor = false;
|
||||||
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso.Click += new System.EventHandler(this.ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso_Click);
|
||||||
|
//
|
||||||
|
// ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado
|
||||||
|
//
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Bloqueable = true;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_BordeColor_Foco = System.Drawing.Color.Red;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_BordeColor_Normal = System.Drawing.Color.Black;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Fondo = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_MaxLength = 32767;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Multiline = true;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_NoBloquear = true;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Obligatorio = false;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_PasswordChar = '\0';
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Permitir_CambioFuenteAutomatico = false;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_ReadOnly = true;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_SelectionLength = 0;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_SelectionStart = 0;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_TabStop_Txt = true;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Texto_Inicial = "";
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Tipo_Decimal_Decimales = 2;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Tipo_Decimal_Enteros = 9;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_Tipos = Exferia_Aplicacion.General.Enumerados.G_ENUM_TEXTBOX_TIPODATO.Textos;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Exferia_TextBox_UseSystemPasswordChar = false;
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Location = new System.Drawing.Point(7, 138);
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Name = "ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado";
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Padding = new System.Windows.Forms.Padding(2);
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.Size = new System.Drawing.Size(716, 338);
|
||||||
|
this.ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado.TabIndex = 1085;
|
||||||
|
//
|
||||||
|
// exferia_Label_SinColor17
|
||||||
|
//
|
||||||
|
this.exferia_Label_SinColor17.AutoSize = true;
|
||||||
|
this.exferia_Label_SinColor17.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.exferia_Label_SinColor17.Location = new System.Drawing.Point(3, 109);
|
||||||
|
this.exferia_Label_SinColor17.Name = "exferia_Label_SinColor17";
|
||||||
|
this.exferia_Label_SinColor17.Size = new System.Drawing.Size(133, 24);
|
||||||
|
this.exferia_Label_SinColor17.TabIndex = 1084;
|
||||||
|
this.exferia_Label_SinColor17.Text = "RESULTADO";
|
||||||
|
//
|
||||||
|
// exferia_GroupBox5
|
||||||
|
//
|
||||||
|
this.exferia_GroupBox5.Controls.Add(this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados);
|
||||||
|
this.exferia_GroupBox5.Controls.Add(this.exferia_Label_SinColor14);
|
||||||
|
this.exferia_GroupBox5.Controls.Add(this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos);
|
||||||
|
this.exferia_GroupBox5.Controls.Add(this.exferia_Label_SinColor16);
|
||||||
|
this.exferia_GroupBox5.Location = new System.Drawing.Point(6, 6);
|
||||||
|
this.exferia_GroupBox5.Name = "exferia_GroupBox5";
|
||||||
|
this.exferia_GroupBox5.Size = new System.Drawing.Size(235, 80);
|
||||||
|
this.exferia_GroupBox5.TabIndex = 1083;
|
||||||
|
this.exferia_GroupBox5.TabStop = false;
|
||||||
|
this.exferia_GroupBox5.Text = "RESUMEN DE REGISTROS";
|
||||||
|
//
|
||||||
|
// ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados
|
||||||
|
//
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.AutoSize = true;
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.ForeColor = System.Drawing.Color.ForestGreen;
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.Location = new System.Drawing.Point(140, 47);
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.Name = "ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados";
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.Size = new System.Drawing.Size(15, 16);
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.TabIndex = 1069;
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados.Text = "0";
|
||||||
|
//
|
||||||
|
// exferia_Label_SinColor14
|
||||||
|
//
|
||||||
|
this.exferia_Label_SinColor14.AutoSize = true;
|
||||||
|
this.exferia_Label_SinColor14.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.exferia_Label_SinColor14.ForeColor = System.Drawing.Color.ForestGreen;
|
||||||
|
this.exferia_Label_SinColor14.Location = new System.Drawing.Point(35, 47);
|
||||||
|
this.exferia_Label_SinColor14.Name = "exferia_Label_SinColor14";
|
||||||
|
this.exferia_Label_SinColor14.Size = new System.Drawing.Size(64, 16);
|
||||||
|
this.exferia_Label_SinColor14.TabIndex = 1068;
|
||||||
|
this.exferia_Label_SinColor14.Text = "Cerrados";
|
||||||
|
//
|
||||||
|
// ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos
|
||||||
|
//
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.AutoSize = true;
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.ForeColor = System.Drawing.Color.Maroon;
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.Location = new System.Drawing.Point(140, 21);
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.Name = "ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos";
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.Size = new System.Drawing.Size(15, 16);
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.TabIndex = 1064;
|
||||||
|
this.ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos.Text = "0";
|
||||||
|
//
|
||||||
|
// exferia_Label_SinColor16
|
||||||
|
//
|
||||||
|
this.exferia_Label_SinColor16.AutoSize = true;
|
||||||
|
this.exferia_Label_SinColor16.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.exferia_Label_SinColor16.ForeColor = System.Drawing.Color.Maroon;
|
||||||
|
this.exferia_Label_SinColor16.Location = new System.Drawing.Point(35, 21);
|
||||||
|
this.exferia_Label_SinColor16.Name = "exferia_Label_SinColor16";
|
||||||
|
this.exferia_Label_SinColor16.Size = new System.Drawing.Size(58, 16);
|
||||||
|
this.exferia_Label_SinColor16.TabIndex = 1059;
|
||||||
|
this.exferia_Label_SinColor16.Text = "Abiertos";
|
||||||
|
//
|
||||||
// exferia_GroupBox1
|
// exferia_GroupBox1
|
||||||
//
|
//
|
||||||
this.exferia_GroupBox1.Controls.Add(this.ex_rdb_P_FacturaCabecera_Procesos_Registros_Seleccionados);
|
this.exferia_GroupBox1.Controls.Add(this.ex_rdb_P_FacturaCabecera_Procesos_Registros_Seleccionados);
|
||||||
|
|
@ -800,6 +950,16 @@
|
||||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.UseVisualStyleBackColor = false;
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.UseVisualStyleBackColor = false;
|
||||||
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Click += new System.EventHandler(this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica_Click);
|
this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica.Click += new System.EventHandler(this.ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica_Click);
|
||||||
//
|
//
|
||||||
|
// checkEnviaEmails
|
||||||
|
//
|
||||||
|
this.checkEnviaEmails.AutoSize = true;
|
||||||
|
this.checkEnviaEmails.Location = new System.Drawing.Point(262, 14);
|
||||||
|
this.checkEnviaEmails.Name = "checkEnviaEmails";
|
||||||
|
this.checkEnviaEmails.Size = new System.Drawing.Size(200, 17);
|
||||||
|
this.checkEnviaEmails.TabIndex = 1087;
|
||||||
|
this.checkEnviaEmails.Text = "Envia facturas por correo electrónico";
|
||||||
|
this.checkEnviaEmails.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
// P_FacturaCabecera_Procesos
|
// P_FacturaCabecera_Procesos
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
|
@ -836,6 +996,10 @@
|
||||||
this.tbp_EnvioMensajes.PerformLayout();
|
this.tbp_EnvioMensajes.PerformLayout();
|
||||||
this.exferia_GroupBox4.ResumeLayout(false);
|
this.exferia_GroupBox4.ResumeLayout(false);
|
||||||
this.exferia_GroupBox4.PerformLayout();
|
this.exferia_GroupBox4.PerformLayout();
|
||||||
|
this.tabPage1.ResumeLayout(false);
|
||||||
|
this.tabPage1.PerformLayout();
|
||||||
|
this.exferia_GroupBox5.ResumeLayout(false);
|
||||||
|
this.exferia_GroupBox5.PerformLayout();
|
||||||
this.exferia_GroupBox1.ResumeLayout(false);
|
this.exferia_GroupBox1.ResumeLayout(false);
|
||||||
this.exferia_GroupBox1.PerformLayout();
|
this.exferia_GroupBox1.PerformLayout();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
@ -888,5 +1052,15 @@
|
||||||
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor13;
|
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor13;
|
||||||
private Exferia_Controles.Exferia_TextBox ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado;
|
private Exferia_Controles.Exferia_TextBox ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado;
|
||||||
private Exferia_Controles.Exferia_Button ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica;
|
private Exferia_Controles.Exferia_Button ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica;
|
||||||
|
private System.Windows.Forms.TabPage tabPage1;
|
||||||
|
private Exferia_Controles.Exferia_Button ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso;
|
||||||
|
private Exferia_Controles.Exferia_TextBox ex_txt_P_FacturaCabecera_Procesos_Factura_E_Resultado;
|
||||||
|
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor17;
|
||||||
|
private Exferia_Controles.Exferia_GroupBox exferia_GroupBox5;
|
||||||
|
private Exferia_Controles.Exferia_Label_SinColor ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados;
|
||||||
|
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor14;
|
||||||
|
private Exferia_Controles.Exferia_Label_SinColor ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos;
|
||||||
|
private Exferia_Controles.Exferia_Label_SinColor exferia_Label_SinColor16;
|
||||||
|
private System.Windows.Forms.CheckBox checkEnviaEmails;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ namespace Exferia_Ventas._3_Vistas
|
||||||
//Exferia_Label_SinColor
|
//Exferia_Label_SinColor
|
||||||
internal Exferia_Label_SinColor Exferia_Label_SinColor_Registros_Total_Titulo { get { return ex_lbl_P_FacturaCabecera_Procesos_Registros_Total_Titulo; } }
|
internal Exferia_Label_SinColor Exferia_Label_SinColor_Registros_Total_Titulo { get { return ex_lbl_P_FacturaCabecera_Procesos_Registros_Total_Titulo; } }
|
||||||
internal Exferia_Label_SinColor Exferia_Label_SinColor_Registros_Total { get { return ex_lbl_P_FacturaCabecera_Procesos_Registros_Total; } }
|
internal Exferia_Label_SinColor Exferia_Label_SinColor_Registros_Total { get { return ex_lbl_P_FacturaCabecera_Procesos_Registros_Total; } }
|
||||||
|
|
||||||
//Exferia_RadioButton
|
//Exferia_RadioButton
|
||||||
internal Exferia_RadioButton Exferia_RadioButton_Registros_Seleccionados { get { return ex_rdb_P_FacturaCabecera_Procesos_Registros_Seleccionados; } }
|
internal Exferia_RadioButton Exferia_RadioButton_Registros_Seleccionados { get { return ex_rdb_P_FacturaCabecera_Procesos_Registros_Seleccionados; } }
|
||||||
|
|
||||||
|
|
@ -46,6 +46,8 @@ namespace Exferia_Ventas._3_Vistas
|
||||||
internal TabPage TabPage_Cerrar = null;
|
internal TabPage TabPage_Cerrar = null;
|
||||||
internal TabPage TabPage_Abrir = null;
|
internal TabPage TabPage_Abrir = null;
|
||||||
internal TabPage TabPage_EnviarMensajes = null;
|
internal TabPage TabPage_EnviarMensajes = null;
|
||||||
|
internal TabPage TabPage_FacturaElectronica = null;
|
||||||
|
|
||||||
|
|
||||||
#region RECALCULAR RESUMEN
|
#region RECALCULAR RESUMEN
|
||||||
// Exferia_TextBox
|
// Exferia_TextBox
|
||||||
|
|
@ -84,6 +86,16 @@ namespace Exferia_Ventas._3_Vistas
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region FACTURA ELECTRONICA
|
||||||
|
//Exferia_Label_SinColor
|
||||||
|
internal Exferia_Label_SinColor Exferia_Label_SinColor_Factura_E_Total_Abiertos { get { return ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Abiertos; } }
|
||||||
|
internal Exferia_Label_SinColor Exferia_Label_SinColor_Factura_E_Total_Cerrados { get { return ex_lbl_P_FacturaCabecera_Procesos_Factura_E_Total_Cerrados; } }
|
||||||
|
|
||||||
|
// Exferia_TextBox
|
||||||
|
internal Exferia_TextBox Exferia_TextBox_Factura_Es_Resumen { get { return ex_txt_P_FacturaCabecera_Procesos_EnviarMensajes_Resultado; } }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Constructor
|
#region Constructor
|
||||||
|
|
@ -137,7 +149,7 @@ namespace Exferia_Ventas._3_Vistas
|
||||||
TabPage_Abrir = tbp_Abrir;
|
TabPage_Abrir = tbp_Abrir;
|
||||||
TabPage_RecalcularResumen = tbp_RecalcularResumen;
|
TabPage_RecalcularResumen = tbp_RecalcularResumen;
|
||||||
TabPage_EnviarMensajes = tbp_EnvioMensajes;
|
TabPage_EnviarMensajes = tbp_EnvioMensajes;
|
||||||
|
TabPage_FacturaElectronica = tabPage1;
|
||||||
EliminarTabs();
|
EliminarTabs();
|
||||||
|
|
||||||
//Poner Cerrar
|
//Poner Cerrar
|
||||||
|
|
@ -316,7 +328,15 @@ namespace Exferia_Ventas._3_Vistas
|
||||||
|
|
||||||
private void ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica_Click(object sender, EventArgs e)
|
private void ex_btn_P_FacturaCabecera_Procesos_Factura_Electronica_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
EliminarTabs();
|
||||||
|
|
||||||
|
//Añadir el tab
|
||||||
|
ex_tab_P_FacturaCabecera_Procesos_TABCONTROL.TabPages.Add(TabPage_FacturaElectronica);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ex_btn_P_FacturaCabecera_Procesos_Factura_E_IniciarProceso_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1009,16 +1009,28 @@ namespace Exferia_Ventas.General
|
||||||
factura_e.Comprador.Poblacion = direcliente.GEN_Poblaciones.descripcion;
|
factura_e.Comprador.Poblacion = direcliente.GEN_Poblaciones.descripcion;
|
||||||
factura_e.Comprador.Provincia = direcliente.GEN_Provincias.descripcion;
|
factura_e.Comprador.Provincia = direcliente.GEN_Provincias.descripcion;
|
||||||
factura_e.Comprador.Pais = direcliente.GEN_Paises.descripcion;
|
factura_e.Comprador.Pais = direcliente.GEN_Paises.descripcion;
|
||||||
factura_e.Comprador = null;
|
//factura_e.Comprador = null;
|
||||||
|
|
||||||
//datos factura----------------------
|
//datos factura----------------------
|
||||||
factura_e.NumeroFactura = factura.numeroFactura;
|
factura_e.NumeroFactura = factura.numeroFactura;
|
||||||
factura_e.SerieDelegacion = delegacion.codigo;
|
factura_e.SerieDelegacion = delegacion.codigo;
|
||||||
factura_e.FacturaOriginal = true;
|
factura_e.FacturaOriginal = true;
|
||||||
|
factura_e.Fecha = factura.fecha;
|
||||||
|
|
||||||
//correcciones--------------------
|
//correcciones--------------------
|
||||||
|
|
||||||
factura_e.Fecha = factura.fecha;
|
factura_e.Fecha = factura.fecha;
|
||||||
|
|
||||||
|
//invoice Periodo-----------------------
|
||||||
|
|
||||||
|
//impuestos-------------------
|
||||||
|
|
||||||
|
//totales----------------------------
|
||||||
|
|
||||||
|
//lineas-----------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//exporta---------------------------------------------------------------------------------------------------
|
//exporta---------------------------------------------------------------------------------------------------
|
||||||
string resul =factura_e.exportarXML(path);
|
string resul =factura_e.exportarXML(path);
|
||||||
if(resul!=null)
|
if(resul!=null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue