eFacturas
This commit is contained in:
@@ -91,9 +91,6 @@ public class TareasJam : IHttpHandler
|
||||
}
|
||||
|
||||
|
||||
|
||||
//"ftp://us2.hostedftp.com/", "agrojam", "A12345678";
|
||||
|
||||
string FTPServer = "ftp://127.0.0.1/";
|
||||
string TFPUsr = "Toor";
|
||||
string FTPPass = "agj-3500";
|
||||
@@ -198,8 +195,12 @@ public class TareasJam : IHttpHandler
|
||||
DTAlmacenes.AcceptChanges();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
DataTable dtCloned = DTVentas.Clone();
|
||||
dtCloned.Columns[3].DataType = typeof(DateTime);
|
||||
dtCloned.Columns[3].DataType = typeof(string);
|
||||
|
||||
foreach (DataRow row in DTVentas.Rows)
|
||||
{
|
||||
@@ -209,7 +210,7 @@ public class TareasJam : IHttpHandler
|
||||
DTVentas = dtCloned;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -217,7 +218,7 @@ public class TareasJam : IHttpHandler
|
||||
|
||||
|
||||
dtCloned = DTAlmacenes.Clone();
|
||||
dtCloned.Columns[3].DataType = typeof(DateTime);
|
||||
dtCloned.Columns[3].DataType = typeof(string);
|
||||
|
||||
foreach (DataRow row in DTAlmacenes.Rows)
|
||||
{
|
||||
@@ -227,7 +228,8 @@ public class TareasJam : IHttpHandler
|
||||
DTAlmacenes = dtCloned;
|
||||
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;
|
||||
}
|
||||
DTAlmacenes.AcceptChanges();
|
||||
@@ -249,6 +251,7 @@ public class TareasJam : IHttpHandler
|
||||
if (!ErrorProceso)
|
||||
{
|
||||
|
||||
int contador = 0;
|
||||
|
||||
SpreadsheetInfo.SetLicense(Extensiones.ModExtensiones.SerialGemBoxSpreadsheet());
|
||||
|
||||
@@ -258,8 +261,18 @@ public class TareasJam : IHttpHandler
|
||||
{
|
||||
ColumnHeaders = true,
|
||||
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);
|
||||
|
||||
var workbookProductos = new ExcelFile();
|
||||
@@ -278,7 +291,28 @@ public class TareasJam : IHttpHandler
|
||||
ColumnHeaders = true,
|
||||
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);
|
||||
|
||||
|
||||
@@ -292,7 +326,7 @@ public class TareasJam : IHttpHandler
|
||||
workbookClientes.Save(RutaClientes);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var FInfoProductos = new FileInfo(RutaProductos);
|
||||
@@ -438,7 +472,7 @@ public class TareasJam : IHttpHandler
|
||||
|
||||
|
||||
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 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