Cambios Compras
This commit is contained in:
@@ -2688,8 +2688,19 @@ Partial Class Compras_Compras
|
||||
|
||||
TmpDT.Columns.Add("CveContrato", GetType(Integer))
|
||||
TmpDT.Columns.Add("DifPSSat", GetType(Integer))
|
||||
|
||||
If Not TmpDT.Columns.Contains("CveContratoDetalle") Then
|
||||
TmpDT.Columns.Add("CveContratoDetalle", GetType(Integer))
|
||||
End If
|
||||
|
||||
|
||||
If Not TmpDT.Columns.Contains("CveCultivoCuadroDetalle") Then
|
||||
TmpDT.Columns.Add("CveCultivoCuadroDetalle", GetType(Integer))
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
GvPS.DataSource = TmpDT
|
||||
|
||||
@@ -273,12 +273,19 @@ public class TareasJam : IHttpHandler
|
||||
|
||||
if (!ErrorProceso)
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
this.GuardaLog($"EjecutaThalamus: llenando archivo excel ventas. ");
|
||||
int count = 2;
|
||||
var wbVentas = new ClosedXML.Excel.XLWorkbook(FormatoVentas);
|
||||
this.GuardaLog($"EjecutaThalamus: archivo excel ventas cargado. ");
|
||||
this.GuardaLog($"EjecutaThalamus: archivo excel ventas creando sheet.");
|
||||
var wsVentas = wbVentas.Worksheet(1);
|
||||
this.GuardaLog($"EjecutaThalamus: archivo excel ventas sheet creada.");
|
||||
|
||||
foreach (DataRow DRow in DTVentas.Rows)
|
||||
{
|
||||
@@ -357,6 +364,16 @@ public class TareasJam : IHttpHandler
|
||||
wbProductos.SaveAs(RutaProductos);
|
||||
/////////////////////////////////////////////////////////////
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.GuardaLog($"EjecutaThalamus: Error procesamiento archivos exel " + ex.StackTrace.ToString() + " ");
|
||||
ErrorProceso = true;
|
||||
Respuesta = false;
|
||||
}
|
||||
|
||||
if (!ErrorProceso)
|
||||
{
|
||||
var FInfoProductos = new FileInfo(RutaProductos);
|
||||
var FInfoVentas = new FileInfo(RutaVentas);
|
||||
var FInfoClientes = new FileInfo(RutaClientes);
|
||||
@@ -459,6 +476,11 @@ public class TareasJam : IHttpHandler
|
||||
Respuesta = false;
|
||||
}
|
||||
|
||||
}else
|
||||
{
|
||||
Respuesta = false;
|
||||
}
|
||||
|
||||
SBLog.AppendLine("</table>");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user