public ba_rpt_transferencia_Info Get_Info_rpt_transferencia(int IdEmpresa, int Idtransferencia) { try { string MensajeError = ""; ba_rpt_transferencia_Info Datos = new ba_rpt_transferencia_Info(); ct_Cbtecble_det_Data CbteCble_D = new ct_Cbtecble_det_Data(); Datos.Transf = Get_Info_transferencia(IdEmpresa, Idtransferencia); Datos.diario_ND = CbteCble_D.Get_list_Cbtecble_det(Datos.Transf.IdEmpresa_origen, Datos.Transf.IdTipocbte_origen, Datos.Transf.IdCbteCble_origen, ref MensajeError); Datos.diario_NC = CbteCble_D.Get_list_Cbtecble_det(Datos.Transf.IdEmpresa_destino, Datos.Transf.IdTipocbte_destino, Datos.Transf.IdCbteCble_destino, ref MensajeError); return(Datos); } 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 mensaje); mensaje = ex.InnerException + " " + ex.Message; throw new Exception(ex.InnerException.ToString()); } }
public Boolean GrabarDB(ct_Cbtecble_det_Info _CbteCble_det_Info, ref string MensajeError) { try { ct_Cbtecble_det_Data _CbteCbleData = new ct_Cbtecble_det_Data(); return(_CbteCbleData.GrabarDB(_CbteCble_det_Info, ref MensajeError)); } catch (Exception ex) { Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message); throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "GrabarDB", ex.Message), ex) { EntityType = typeof(ct_Cbtecble_det_Bus) }; } }
public List <ct_Cbtecble_det_Info> Get_list_CbteCble_x_cp_Conciliacion_caja(int IdEmpresa, decimal IdConciliacion_caja) { try { ct_Cbtecble_det_Data _CbteCbleData = new ct_Cbtecble_det_Data(); return(_CbteCbleData.Get_list_CbteCble_x_cp_Conciliacion_caja(IdEmpresa, IdConciliacion_caja)); } catch (Exception ex) { Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message); throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "Get_list_CbteCble_x_cp_Conciliacion_caja", ex.Message), ex) { EntityType = typeof(ct_Cbtecble_det_Bus) }; } }
public List <vwct_cbtecble_Con_Saldo_Info> Get_list_Cbtecble_OG_otrosPagos(int IdEmpresa, decimal IdCbteCble, int IdTipoCbte, ref string MensajeError) { try { ct_Cbtecble_det_Data _CbteCbleData = new ct_Cbtecble_det_Data(); return(_CbteCbleData.Get_list_ObtenerCbtecble_OG_otrosPagos(IdEmpresa, IdCbteCble, IdTipoCbte, ref MensajeError)); } catch (Exception ex) { Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message); throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "Get_list_ObtenerCbtecble_OG_otrosPagos", ex.Message), ex) { EntityType = typeof(ct_Cbtecble_det_Bus) }; } }
public List <vwct_cbtecble_Con_Saldo_Info> Get_list_Cbtecble_Con_Saldo(int IdEmpresa, DateTime FechaIni, DateTime FechaFin, ref string MensajeError) { try { ct_Cbtecble_det_Data _CbteCbleData = new ct_Cbtecble_det_Data(); return(_CbteCbleData.Get_list_Cbtecble_Con_Saldo(IdEmpresa, FechaIni, FechaFin, ref MensajeError)); } catch (Exception ex) { Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message); throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "Get_list_Cbtecble_Con_Saldo", ex.Message), ex) { EntityType = typeof(ct_Cbtecble_det_Bus) }; } }
public void Get_SaldoContableMesAnterior(int IdEmpresa, string IdCtaCble, DateTime Fecha, ref decimal Saldo, ref string MensajeError) { try { ct_Cbtecble_det_Data _CbteCbleData = new ct_Cbtecble_det_Data(); _CbteCbleData.Get_SaldoContableMesAnterior(IdEmpresa, IdCtaCble, Fecha, ref Saldo, ref MensajeError); } catch (Exception ex) { Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message); throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "Get_SaldoContableMesAnterior", ex.Message), ex) { EntityType = typeof(ct_Cbtecble_det_Bus) }; } }
public List <ct_Cbtecble_det_Info> Get_list_Cbtecble_det(int IdEmpresa, int idTipoCbte, decimal id, ref string MensajeError) { List <ct_Cbtecble_det_Info> lm = new List <ct_Cbtecble_det_Info>(); ct_Cbtecble_det_Data data = new ct_Cbtecble_det_Data(); try { lm = data.Get_list_Cbtecble_det(IdEmpresa, idTipoCbte, id, ref MensajeError); return(lm); } catch (Exception ex) { Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message); throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "Get_list_Cbtecble_det", ex.Message), ex) { EntityType = typeof(ct_Cbtecble_det_Bus) }; } }
public caj_rpt_Caja_Movimiento_Info Get_Info_MovimientoCaja_Rpt(int IdEmpresa, decimal IdCbteCble, int IdTipoCbte, ref string MensajeError) { caj_rpt_Caja_Movimiento_Info Datos = new caj_rpt_Caja_Movimiento_Info(); ct_Cbtecble_det_Data CbteCble_D = new ct_Cbtecble_det_Data(); try { Datos.diario = CbteCble_D.Get_list_Cbtecble_det(IdEmpresa, IdTipoCbte, IdCbteCble, ref MensajeError); Datos.MovimientoCaja = Get_Info_MovimientoCaja(IdEmpresa, IdCbteCble, IdTipoCbte, ref MensajeError); return(Datos); } 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.InnerException + " " + ex.Message; throw new Exception(ex.ToString()); } }