Esempio n. 1
0
 public bool Procesar_Liquidaciones(int IdEmpresa, int IdPEriodo, DateTime fecha_inicio, DateTime fecha_fin)
 {
     try
     {
         using (Entity_Facturacion_FJ database = new Entity_Facturacion_FJ())
         {
             database.spFa_Liquidar_Prefacturacion_x_periodo(IdEmpresa, IdPEriodo, fecha_inicio, fecha_fin);
         }
         return(true);
     }
     catch (Exception ex)
     {
         string arreglo = ToString();
         tb_sis_Log_Error_Vzen_Data oDataLog      = new tb_sis_Log_Error_Vzen_Data();
         tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), "", arreglo, "", "", "", "", "", DateTime.Now);
         oDataLog.Guardar_Log_Error(Log_Error_sis, ref MensajeError);
         MensajeError = ex.ToString();
         throw new Exception(ex.ToString());
     }
 }