eFacturas
This commit is contained in:
@@ -2893,7 +2893,10 @@ Partial Class Compras_eFacturas
|
|||||||
|
|
||||||
If Not (FechaDoRecibo >= FT1 And FechaDoRecibo < FT2) Then
|
If Not (FechaDoRecibo >= FT1 And FechaDoRecibo < FT2) Then
|
||||||
|
|
||||||
BtnVincularPago.Visible = False
|
If TieneRegistros AndAlso UsuarioActual.TienePermisoProceso(286) Then
|
||||||
|
DivVincularPagoManualmente.Visible = True
|
||||||
|
End If
|
||||||
|
|
||||||
MSGComplemento = MSGComplemento & " Existen mas de 3 días de diferencia entre la fecha del documento y la fecha de complemento. "
|
MSGComplemento = MSGComplemento & " Existen mas de 3 días de diferencia entre la fecha del documento y la fecha de complemento. "
|
||||||
|
|
||||||
Exit For
|
Exit For
|
||||||
@@ -2902,24 +2905,14 @@ Partial Class Compras_eFacturas
|
|||||||
Next
|
Next
|
||||||
|
|
||||||
If MSGComplemento.Trim.Length > 0 Then
|
If MSGComplemento.Trim.Length > 0 Then
|
||||||
|
|
||||||
' BtnVincularPago.Visible = False
|
' BtnVincularPago.Visible = False
|
||||||
ViculacionConPUE = True
|
ViculacionConPUE = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'saco la información de lo vinculado en el ie
|
'saco la información de lo vinculado en el ie
|
||||||
|
|
||||||
ImporteIES = ObjCompras.DtResultados.FiltraParametros("CveIE > 0").SUM("Importe")
|
ImporteIES = ObjCompras.DtResultados.FiltraParametros("CveIE > 0").SUM("Importe")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DiferenciaImportes = Monto - ImporteIES
|
DiferenciaImportes = Monto - ImporteIES
|
||||||
ObjCompras.Dispose()
|
ObjCompras.Dispose()
|
||||||
|
|
||||||
|
|||||||
@@ -91,9 +91,6 @@ public class TareasJam : IHttpHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//"ftp://us2.hostedftp.com/", "agrojam", "A12345678";
|
|
||||||
|
|
||||||
string FTPServer = "ftp://127.0.0.1/";
|
string FTPServer = "ftp://127.0.0.1/";
|
||||||
string TFPUsr = "Toor";
|
string TFPUsr = "Toor";
|
||||||
string FTPPass = "agj-3500";
|
string FTPPass = "agj-3500";
|
||||||
@@ -198,8 +195,12 @@ public class TareasJam : IHttpHandler
|
|||||||
DTAlmacenes.AcceptChanges();
|
DTAlmacenes.AcceptChanges();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DataTable dtCloned = DTVentas.Clone();
|
DataTable dtCloned = DTVentas.Clone();
|
||||||
dtCloned.Columns[3].DataType = typeof(DateTime);
|
dtCloned.Columns[3].DataType = typeof(string);
|
||||||
|
|
||||||
foreach (DataRow row in DTVentas.Rows)
|
foreach (DataRow row in DTVentas.Rows)
|
||||||
{
|
{
|
||||||
@@ -209,7 +210,7 @@ public class TareasJam : IHttpHandler
|
|||||||
DTVentas = dtCloned;
|
DTVentas = dtCloned;
|
||||||
foreach (DataRow dRow in DTVentas.Rows)
|
foreach (DataRow dRow in DTVentas.Rows)
|
||||||
{
|
{
|
||||||
DateTime tmpDate = dRow[3].ToString().ToDate().ToString("yyyy/MM/dd").ToDate();
|
string tmpDate = dRow[3].ToString().ToDate().ToString("yyyy/MM/dd");//.ToDate().ToString("yyyy/MM/dd").ToDate();
|
||||||
dRow[3] = tmpDate;
|
dRow[3] = tmpDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -217,7 +218,7 @@ public class TareasJam : IHttpHandler
|
|||||||
|
|
||||||
|
|
||||||
dtCloned = DTAlmacenes.Clone();
|
dtCloned = DTAlmacenes.Clone();
|
||||||
dtCloned.Columns[3].DataType = typeof(DateTime);
|
dtCloned.Columns[3].DataType = typeof(string);
|
||||||
|
|
||||||
foreach (DataRow row in DTAlmacenes.Rows)
|
foreach (DataRow row in DTAlmacenes.Rows)
|
||||||
{
|
{
|
||||||
@@ -227,7 +228,8 @@ public class TareasJam : IHttpHandler
|
|||||||
DTAlmacenes = dtCloned;
|
DTAlmacenes = dtCloned;
|
||||||
foreach (DataRow dRow in DTAlmacenes.Rows)
|
foreach (DataRow dRow in DTAlmacenes.Rows)
|
||||||
{
|
{
|
||||||
DateTime tmpDate = dRow[3].ToString().ToDate().ToString("yyyy/MM/dd").ToDate();
|
//DateTime tmpDate = dRow[3].ToString().ToDate().ToString("yyyy/MM/dd").ToDate();
|
||||||
|
string tmpDate = dRow[3].ToString().ToDate().ToString("yyyy/MM/dd");
|
||||||
dRow[3] = tmpDate;
|
dRow[3] = tmpDate;
|
||||||
}
|
}
|
||||||
DTAlmacenes.AcceptChanges();
|
DTAlmacenes.AcceptChanges();
|
||||||
@@ -249,6 +251,7 @@ public class TareasJam : IHttpHandler
|
|||||||
if (!ErrorProceso)
|
if (!ErrorProceso)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
int contador = 0;
|
||||||
|
|
||||||
SpreadsheetInfo.SetLicense(Extensiones.ModExtensiones.SerialGemBoxSpreadsheet());
|
SpreadsheetInfo.SetLicense(Extensiones.ModExtensiones.SerialGemBoxSpreadsheet());
|
||||||
|
|
||||||
@@ -258,8 +261,18 @@ public class TareasJam : IHttpHandler
|
|||||||
{
|
{
|
||||||
ColumnHeaders = true,
|
ColumnHeaders = true,
|
||||||
StartRow = 0
|
StartRow = 0
|
||||||
});
|
});
|
||||||
worksheetAlmacenes.Columns[3].Style.NumberFormat = "yyyy/MM/dd";
|
|
||||||
|
foreach (DataRow DRow in DTAlmacenes.Rows)
|
||||||
|
{
|
||||||
|
|
||||||
|
//contador++;
|
||||||
|
//var cell = worksheetAlmacenes.Cells[contador, 3];
|
||||||
|
//cell.Style.WrapText = true;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
//worksheetAlmacenes.Columns[3].Style.NumberFormat = "yyyy/MM/dd";
|
||||||
workbookAlmacenes.Save(RutaAlmacenes);
|
workbookAlmacenes.Save(RutaAlmacenes);
|
||||||
|
|
||||||
var workbookProductos = new ExcelFile();
|
var workbookProductos = new ExcelFile();
|
||||||
@@ -278,7 +291,28 @@ public class TareasJam : IHttpHandler
|
|||||||
ColumnHeaders = true,
|
ColumnHeaders = true,
|
||||||
StartRow = 0
|
StartRow = 0
|
||||||
});
|
});
|
||||||
worksheetVentas.Columns[3].Style.NumberFormat = "yyyy/MM/dd";
|
|
||||||
|
|
||||||
|
contador = 0;
|
||||||
|
foreach (DataRow DRow in DTVentas.Rows)
|
||||||
|
{
|
||||||
|
|
||||||
|
//var value = DateTime.Now;
|
||||||
|
contador++;
|
||||||
|
|
||||||
|
var cell = worksheetVentas.Cells[contador, 3];
|
||||||
|
cell.Style.WrapText = false;
|
||||||
|
cell.Style.IsTextVertical = false;
|
||||||
|
cell.Style.Font.Italic = false;
|
||||||
|
|
||||||
|
//cell.Style.NumberFormat = "h:mm AM/PM"; // "yyyy-MM-dd";
|
||||||
|
//cell.SetValue(value);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//worksheetVentas.Columns[3].Style.NumberFormat = "yyyy/MM/dd";
|
||||||
|
|
||||||
workbookVentas.Save(RutaVentas);
|
workbookVentas.Save(RutaVentas);
|
||||||
|
|
||||||
|
|
||||||
@@ -292,7 +326,7 @@ public class TareasJam : IHttpHandler
|
|||||||
workbookClientes.Save(RutaClientes);
|
workbookClientes.Save(RutaClientes);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var FInfoProductos = new FileInfo(RutaProductos);
|
var FInfoProductos = new FileInfo(RutaProductos);
|
||||||
@@ -438,7 +472,7 @@ public class TareasJam : IHttpHandler
|
|||||||
|
|
||||||
|
|
||||||
ClsSisMail Correo = new ClsSisMail();
|
ClsSisMail Correo = new ClsSisMail();
|
||||||
// string Para = "julian@adssistemas.mx;rene.molina@adssistemas.mx;oscar.irigoyen@adssistemas.mx";
|
// string Para = "julian@adssistemas.mx;rene.molina@adssistemas.mx;oscar.irigoyen@adssistemas.mx";
|
||||||
string Para = "oscar.irigoyen@adssistemas.mx";
|
string Para = "oscar.irigoyen@adssistemas.mx";
|
||||||
string Asunto = ErrorProceso ? $"Carga Layout Corteva {DateTime.Now.ToString("yyyy-MM-dd")}" : $"Carga Layout Corteva Error {DateTime.Now.ToString("yyyy-MM-dd")}";
|
string Asunto = ErrorProceso ? $"Carga Layout Corteva {DateTime.Now.ToString("yyyy-MM-dd")}" : $"Carga Layout Corteva Error {DateTime.Now.ToString("yyyy-MM-dd")}";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user