示例#1
0
        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());
            }
        }
示例#2
0
        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());
            }
        }