Esempio n. 1
0
        void LimpiarDatos()
        {
            try
            {
                _Accion = Cl_Enumeradores.eTipo_action.grabar;
                btnProcesarDepre.Enabled = true;
                btnContabilizar.Enabled  = false;
                lblContabilizado.Visible = false;
                InfoDepre            = new Af_Depreciacion_Info();
                cmbPeriodo.EditValue = null;
                txtIdDepre.EditValue = "";

                txtCodDepre.EditValue    = "";
                txtDescripcion.EditValue = "";

                txtCantActDepre.EditValue = "";
                txtTotActivo.EditValue    = "";
                txtTotDepre.EditValue     = "";
                txtTotDepreAcum.EditValue = "";
                txtTotImpLibros.EditValue = "";

                InfoDepre.ListDetalle      = new List <Af_Depreciacion_Det_Info>();
                gridActivoDepre.DataSource = new List <vwAf_ActivoFijo_Info>();

                CbteCbleInfo    = new ct_Cbtecble_Info();
                lstValoresDepre = new List <vwAf_Valores_Depre_Contabilizar_Info>();
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 2
0
 public Boolean GuardarDB(Af_Venta_Activo_Info InfoAf, ct_Cbtecble_Info CbteCbleInfo, ref decimal IdVtaActivo, ref decimal IdCbteCble, ref string msjError)
 {
     try
     {
         if (dataAf.GuardarDB(InfoAf, ref IdVtaActivo, ref msjError))
         {
             activoData.ModificarEstadoProceso(InfoAf.IdEmpresa, InfoAf.IdActivoFijo, Cl_Enumeradores.eEstadoActivoFijo.TIP_ESTADO_AF_VENTA.ToString());
             InfoAf.IdVtaActivo = IdVtaActivo;
             if (busCbteCble.ValidarObjeto(CbteCbleInfo, ref msjError))
             {
                 busCbteCble.GrabarDB(CbteCbleInfo, ref IdCbteCble, ref msjError);
                 CbteCbleInfo.IdCbteCble = IdCbteCble;
                 return(busTranCta.GuardarTran_x_CbteCble(Get_Info_TipoTran_x_CtaCble(InfoAf, CbteCbleInfo), ref msjError));
             }
             else
             {
                 return(false);
             }
         }
         else
         {
             return(false);
         }
     }
     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("", "GuardarDB", ex.Message), ex)
               {
                   EntityType = typeof(Af_Venta_Activo_Bus)
               };
     }
 }
Esempio n. 3
0
        public Boolean ActualizarObservacion(ba_Cbte_Ban_Info info, ref string MensajeError)
        {
            try
            {
                Boolean res = false;

                res = data.ActualizarObservacion(info, ref MensajeError);
                if (res == true)
                {
                    ct_Cbtecble_Bus  BusCbteCble  = new ct_Cbtecble_Bus();
                    ct_Cbtecble_Info InfoCbteCble = new ct_Cbtecble_Info();
                    InfoCbteCble.IdEmpresa      = info.IdEmpresa;
                    InfoCbteCble.IdTipoCbte     = info.IdTipocbte;
                    InfoCbteCble.IdCbteCble     = info.IdCbteCble;
                    InfoCbteCble.cb_Observacion = info.cb_Observacion;
                    res = BusCbteCble.Actualizar_Observacion(InfoCbteCble, ref MensajeError);
                }

                return(res);
            }
            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("", "ActualizarUltimocheque", ex.Message), ex)
                      {
                          EntityType = typeof(ba_Cbte_Ban_Bus)
                      };
            }
        }
        void ucGe_Menu_Mantenimiento_x_usuario_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                if (InfoCbteCble != null)
                {
                    InfoCbteCble = (ct_Cbtecble_Info)gridViewCbte.GetFocusedRow();

                    if (bus_Conci_bancaria.Cbte_existe_en_conciliacion(InfoCbteCble.IdEmpresa, InfoCbteCble.IdTipoCbte, InfoCbteCble.IdCbteCble))
                    {
                        MessageBox.Show("Uno de los registros de este comprobante existe en la conciliación del módulo de bancos, Debe tener presente que no podrá modificar el número de registros del comprobante, asi como la cuenta y el valor del registro conciliado.", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                        llamar_Formulario(Cl_Enumeradores.eTipo_action.actualizar);
                        return;
                    }
                    else
                    {
                        llamar_Formulario(Cl_Enumeradores.eTipo_action.actualizar);
                    }
                }
                else
                {
                    MessageBox.Show("Selecciones una fila", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 5
0
 public Boolean GuardarDB(Af_Mej_Baj_Activo_Info InfoAf, ct_Cbtecble_Info CbteCbleInfo, ref decimal IdMejoraBaja, ref decimal IdCbteCble, ref string msjError)
 {
     try
     {
         if (dataAf.GuardarDB(InfoAf, ref IdMejoraBaja, ref msjError))
         {
             InfoAf.Id_Mejora_Baja_Activo = IdMejoraBaja;
             if (busCbteCble.ValidarObjeto(CbteCbleInfo, ref msjError))
             {
                 busCbteCble.GrabarDB(CbteCbleInfo, ref IdCbteCble, ref msjError);
                 CbteCbleInfo.IdCbteCble = IdCbteCble;
                 return(busTranCta.GuardarTran_x_CbteCble(Get_Info_TipoTran_x_CtaCble(InfoAf, CbteCbleInfo), ref msjError));
             }
             else
             {
                 return(false);
             }
         }
         else
         {
             return(false);
         }
     }
     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("", "GuardarDataDB", ex.Message), ex)
               {
                   EntityType = typeof(Af_Mej_Baj_Activo_Bus)
               };
     }
 }
Esempio n. 6
0
 public Boolean ModificarDB(Af_Mej_Baj_Activo_Info InfoAf, ct_Cbtecble_Info CbteCbleInfo, ref string msjError)
 {
     try
     {
         if (dataAf.ModificarDB(InfoAf, ref msjError))
         {
             if (busCbteCble.ValidarObjeto(CbteCbleInfo, ref msjError))
             {
                 return(busCbteCble.ModificarDB(CbteCbleInfo, ref msjError));
             }
             else
             {
                 return(false);
             }
         }
         else
         {
             return(false);
         }
     }
     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("", "ModificarDataDB", ex.Message), ex)
               {
                   EntityType = typeof(Af_Mej_Baj_Activo_Bus)
               };
     }
 }
Esempio n. 7
0
 public cp_retencion_Info()
 {
     Info_Documento_talonario_Actual = new tb_sis_Documento_Tipo_Talonario_Info();
     ListDetalle        = new List <cp_retencion_det_Info>();
     Info_CbteCble_x_RT = new ct_Cbtecble_Info();
     Info_det_retencion = new cp_retencion_det_Info();
 }
Esempio n. 8
0
        void LimpiarDatos()
        {
            try
            {
                _Accion      = Cl_Enumeradores.eTipo_action.grabar;
                _InfoMejActi = new Af_Mej_Baj_Activo_Info();
                CbteCbleInfo = new ct_Cbtecble_Info();
                ucCon_GridDiarioContable.LimpiarGrid();

                txtIdmejora.EditValue   = "";
                cmbActivoFijo.EditValue = null;
                cmbProveedor.Inicializar_cmbProveedor();
                txtCodMejora.EditValue          = "";
                txtCostoActivo.EditValue        = "";
                txtValorMejora.EditValue        = "";
                txtComrobante.EditValue         = "";
                txtDescripcionTecnica.EditValue = "";
                txtMotivoMejora.EditValue       = "";

                txtVidaUtil.EditValue = "";
                cmbUbicacion.Inicializar_Catalogos();
                txtCostoActivo.EditValue = "";
                cmbMarca.Inicializar_Catalogos();
                cmbModelo.Inicializar_Catalogos();
                txtSerie.EditValue        = "";
                txtDepreciacion.EditValue = "";
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 9
0
        public ct_Cbtecble_Info Get_Info_Plantilla_CbteCble(int IdEmpresa, int IdTipoCbte, decimal IdPlantilla)
        {
            try
            {
                ct_cbtecble_Plantilla_Info  info    = new ct_cbtecble_Plantilla_Info();
                ct_Cbtecble_Info            _Info   = new ct_Cbtecble_Info();
                List <ct_Cbtecble_det_Info> Lst_det = new List <ct_Cbtecble_det_Info>();

                info = data.Get_Info_Plantilla(IdEmpresa, IdTipoCbte, IdPlantilla);

                _Info.Estado           = "A";
                _Info.cb_Fecha         = info.cb_Fecha;
                _Info.cb_Observacion   = info.cb_Observacion;
                _Info.IdEmpresa        = info.IdEmpresa;
                _Info.IdTipoCbte       = info.IdTipoCbte;
                _Info.IdUsuario        = info.IdUsuario;
                _Info.IdUsuarioUltModi = info.IdUsuarioUltModi;
                _Info.IdUsuarioAnu     = info.IdUsuarioAnu;
                _Info.cb_FechaAnu      = info.cb_FechaAnu;
                _Info.cb_FechaTransac  = info.cb_FechaTransac;
                _Info.cb_FechaUltModi  = info.cb_FechaUltModi;
                _Info.IdCbteCble       = info.IdPlantilla;

                foreach (var item in info.LstDet)
                {
                    ct_Cbtecble_det_Info det_i = new ct_Cbtecble_det_Info();

                    det_i.IdPunto_cargo_grupo = item.IdPunto_cargo_grupo;
                    det_i.IdPunto_cargo       = item.IdPunto_cargo;
                    det_i.IdEmpresa           = item.IdEmpresa;
                    det_i.IdTipoCbte          = item.IdTipoCbte;
                    det_i.IdCtaCble           = item.IdCtaCble;
                    det_i.IdCbteCble          = item.IdPlantilla;

                    if (item.IdCentroCosto != "")
                    {
                        det_i.IdCentroCosto = item.IdCentroCosto;
                    }

                    det_i.secuencia      = item.secuencia;
                    det_i.dc_Valor       = item.dc_Valor;
                    det_i.dc_Observacion = item.dc_Observacion;

                    Lst_det.Add(det_i);
                }

                _Info._cbteCble_det_lista_info = Lst_det;


                return(_Info);
            }
            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_Info_Plantilla_CbteCble", ex.Message), ex)
                      {
                          EntityType = typeof(ct_cbtecble_Plantilla_Bus)
                      };
            }
        }
Esempio n. 10
0
        void LimpiarDatos()
        {
            try
            {
                InfoRetiro   = new Af_Retiro_Activo_Info();
                _Accion      = Cl_Enumeradores.eTipo_action.grabar;
                CbteCbleInfo = new ct_Cbtecble_Info();

                txtIdRetiro.EditValue    = "";
                txtCodRetiro.EditValue   = "";
                txtConcepto.EditValue    = "";
                txtComproVta.EditValue   = "";
                txtValorActivo.EditValue = "";
                txtValorBaja.EditValue   = "";
                txtValorMejora.EditValue = "";
                txtValorDepre.EditValue  = "";
                txtValorNeto.EditValue   = "";
                cmbActivoFijo.EditValue  = "";


                ucCon_GridDiarioContable.LimpiarGrid();
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        void get_Cbtecble()
        {
            try
            {
                ListaDetalle = BindLstPrestamo.ToList();
                ListaDetalle = ListaDetalle.FindAll(var => var.Check == true && var.Monto_x_Canc > 0);
                if (ListaDetalle.Count != 0)
                {
                    foreach (var item in ListaDetalle)
                    {
                        ct_Cbtecble_Info CbteCble_I = new ct_Cbtecble_Info();

                        CbteCble_I.IdEmpresa      = param.IdEmpresa;
                        CbteCble_I.IdTipoCbte     = _IdTipoCbte_ND;
                        CbteCble_I.IdPeriodo      = Per_I.IdPeriodo;
                        CbteCble_I.cb_Fecha       = param.Fecha_Transac; //duda
                        CbteCble_I.cb_Valor       = Convert.ToDouble(item.Monto_x_Canc);
                        CbteCble_I.cb_Observacion = "Nota de Débtio de la Cuota#: " + item.NumCuota + " ,del Préstamo#: " + item.IdPrestamo + " y Valor: " + item.Monto_x_Canc;
                        CbteCble_I.Estado         = "A";
                        CbteCble_I.Anio           = param.Fecha_Transac.Year;
                        CbteCble_I.Mes            = param.Fecha_Transac.Month;
                        CbteCble_I.IdUsuario      = param.IdUsuario;

                        CbteCble_I.cb_FechaTransac = param.Fecha_Transac;

                        //Detalle Diario
                        //Debe
                        ct_Cbtecble_det_Info debe = new ct_Cbtecble_det_Info();
                        debe.IdEmpresa      = param.IdEmpresa;
                        debe.IdTipoCbte     = _IdTipoCbte_ND;
                        debe.IdCtaCble      = "";                //duda
                        debe.dc_Observacion = "Nota de Débtio de la Cuota#: " + item.NumCuota + " ,del Préstamo#: " + item.IdPrestamo + " y Valor: " + item.Monto_x_Canc;
                        debe.dc_Valor       = Convert.ToDouble(item.Monto_x_Canc);
                        CbteCble_I._cbteCble_det_lista_info.Add(debe);

                        //Haber
                        ct_Cbtecble_det_Info Haber = new ct_Cbtecble_det_Info();
                        Haber.IdEmpresa      = param.IdEmpresa;
                        Haber.IdTipoCbte     = _IdTipoCbte_ND;
                        Haber.IdCtaCble      = "";             //duda
                        Haber.dc_Observacion = "Nota de Débtio de la Cuota#: " + item.NumCuota + " ,del Préstamo#: " + item.IdPrestamo + " y Valor: " + item.Monto_x_Canc;
                        Haber.dc_Valor       = Convert.ToDouble(item.Monto_x_Canc) * -1;
                        CbteCble_I._cbteCble_det_lista_info.Add(Haber);


                        List_CbteCble_I.Add(CbteCble_I);

                        item.Lista_CbteCble = List_CbteCble_I;
                    }
                }
            }
            catch (Exception ex)
            {
                string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name;
                MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) + ex.Message + " ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
                Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString());
            }
        }
Esempio n. 12
0
        public Boolean ModificarDB(cp_retencion_Info info, ct_Cbtecble_Info cbtecble, ref string mensaje)
        {
            Boolean res = true;

            try
            {
                cp_retencion_Info ret = new cp_retencion_Info();
                if (!ValidaRetencion(info, ref mensaje))
                {
                    return(false);
                }


                ret = Get_Info_retencion(info.IdEmpresa, Convert.ToDecimal(info.IdCbteCble_Ogiro), Convert.ToInt32(info.IdTipoCbte_Ogiro));
                if (ret == null || ret.ListDetalle == null || ret.ListDetalle.Count <= 0)
                {
                    return(Graba_CbteCble_Ret_FactProveedor(info, cbtecble, ref mensaje));
                }
                info.IdRetencion = ret.IdRetencion;
                foreach (var item in info.ListDetalle)
                {
                    item.IdRetencion = info.IdRetencion;
                }

                if (cbtecble.IdCbteCble == 0)
                {
                    Graba_CbteCble_Ret_FactProveedor(info, cbtecble, ref mensaje);
                }

                foreach (var item in cbtecble._cbteCble_det_lista_info)
                {
                    item.IdCbteCble = cbtecble.IdCbteCble;
                    item.IdTipoCbte = cbtecble.IdTipoCbte;
                }

                if (data_retencion.Modificar_Num_Retencion(info, ref mensaje)) // solo modifica la cab de retencion
                {
                    cp_retencion_det_Data odataDet = new cp_retencion_det_Data();
                    if (odataDet.ActualizarDB(info.ListDetalle, ret.ListDetalle)) // elimina el detalle y lo vuelve a crear
                    {
                        if (!CbteCble_B.ModificarDB(cbtecble, ref mensaje))
                        {
                            mensaje = "Ha ocurrido un error al actualizar el CbteCble de Retención..." + mensaje;
                        }
                    }
                }
            }
            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("", "ModificarDB", ex.Message), ex)
                      {
                          EntityType = typeof(cp_retencion_Bus)
                      };
            }
            return(res);
        }
        public Boolean GuardarDetallePrestamosCancelados(ba_prestamo_detalle_Info info, ref string msg)
        {
            try
            {
                Boolean res = true;

                //grabar diario de la nota de debito
                ct_Cbtecble_Bus CbteCble_B = new ct_Cbtecble_Bus();

                decimal idCbteCble   = 0;
                string  cod_CbteCble = "";

                ct_Cbtecble_Info CbteCble = info.Info_CbteCble;

                if (CbteCble_B.GrabarDB(CbteCble, ref idCbteCble, ref msg))
                {
                    // grabar en tabla ba_Cbte_Ban
                    ba_Cbte_Ban_Info CbteBan = info.Info_CbteBan;
                    CbteBan.IdCbteCble = idCbteCble;

                    ba_Cbte_Ban_Bus CbteBan_B = new ba_Cbte_Ban_Bus();
                    if (CbteBan_B.GrabarDB(CbteBan, ref msg))
                    {
                        if (oData.GuardarDetallePrestamosCancelados(info, ref msg))
                        {
                            ba_prestamo_detalle_Data odata = new ba_prestamo_detalle_Data();
                            if (!odata.CancelarEstadoDetallePrestamo(info, ref msg))
                            {
                                res = false;
                            }
                        }
                        else
                        {
                            res = false;
                        }
                    }
                    else
                    {
                        res = false;
                    }
                }
                else
                {
                    res = false;
                }
                return(res);
            }
            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("", "GuardarDetallePrestamosCancelados", ex.Message), ex)
                      {
                          EntityType = typeof(ba_prestamo_detalle_cancelacion_Bus)
                      };
            }
        }
Esempio n. 14
0
 public void set_Info(ct_Cbtecble_Info _Info)
 {
     try
     {
         InfoCbteCble = _Info;
     }
     catch (Exception ex)
     {
     }
 }
Esempio n. 15
0
        public cp_orden_giro_Info()
        {
            Info_CbteCble_x_OG = new ct_Cbtecble_Info();
            Info_Retencion     = new cp_retencion_Info();
            Info_Orden_Pago    = new cp_orden_pago_Info();
            Info_cuotas_x_doc  = new cp_cuotas_x_doc_Info();

            lst_formasPagoSRI = new List <cp_orden_giro_pagos_sri_Info>();
            LstImportacionOC  = new List <cp_orden_giro_x_com_ordencompra_local_Info>();
            InfoProveedor     = new cp_proveedor_Info();
        }
Esempio n. 16
0
 private void gridViewCbte_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
 {
     try
     {
         InfoCbteCble = (ct_Cbtecble_Info)gridViewCbte.GetRow(e.FocusedRowHandle);
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 17
0
        public Boolean ModificarDB(ct_Cbtecble_Info _CbteCbleInfo, ref string MensajeError)
        {
            try
            {
                bool res = false;

                if (!ValidarObjeto(_CbteCbleInfo, ref MensajeError))
                {
                    return(false);
                }
                //Valido si la cabecera esta conciliada
                if (!bus_Conci_bancaria.Cbte_existe_en_conciliacion(_CbteCbleInfo.IdEmpresa, _CbteCbleInfo.IdTipoCbte, _CbteCbleInfo.IdCbteCble))
                {
                    res = data.ModificarDB(_CbteCbleInfo, ref MensajeError);
                }
                else
                {
                    //Si modifica cabecera, modifico uno a uno los detalles
                    if (data.Modificar_cabecera(_CbteCbleInfo))
                    {
                        foreach (var item in _CbteCbleInfo._cbteCble_det_lista_info)
                        {
                            // Elimino todas las lineas que no sean de la conciliacion
                            if (!bus_Conci_bancaria.Cbte_existe_en_conciliacion(item.IdEmpresa, item.IdTipoCbte, item.IdCbteCble, item.secuencia))
                            {
                                if (!data_det.ModificarDB(item, ref MensajeError))
                                {
                                    return(false);
                                }
                            }
                            else
                            {
                                if (!data_det.ModificarDB_conciliado(item, ref MensajeError))
                                {
                                    return(false);
                                }
                            }
                        }

                        res = true;
                    }
                }
                return(res);
            }
            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("", "ModificarDB", ex.Message), ex)
                      {
                          EntityType = typeof(ct_Cbtecble_Bus)
                      };
            }
        }
Esempio n. 18
0
        private ct_Cbtecble_Info GetAsientoContable(ro_Remplazo_x_emplado_Info info)
        {
            try
            {
                infocont                 = new ct_Cbtecble_Info();
                infocont.IdEmpresa       = info.IdEmpresa;
                infocont.IdTipoCbte      = Convert.ToInt32(info_parametros.IdTipoCbte_AsientoSueldoXPagar);
                infocont.IdPeriodo       = Convert.ToInt32(info.Fecha.Year.ToString() + info.Fecha.Month.ToString().PadLeft(2, '0'));
                infocont.cb_Valor        = Convert.ToDouble(info.Total_pagar_remplazo);
                infocont.cb_Fecha        = Convert.ToDateTime(info.Fecha);
                infocont.cb_Observacion  = "Pago de remplado de " + info.pe_nombreCompleto;
                info.Estado              = "A";
                infocont.Anio            = info.Fecha.Year;
                infocont.Mes             = info.Fecha.Year;
                infocont.IdUsuario       = info.IdUsuario;
                infocont.cb_FechaTransac = DateTime.Now;
                infocont.IdUsuario       = "";
                infocont.Estado          = "A";
                infocont.Mayorizado      = "N";
                infocont.IdUsuario       = info.IdUsuario;
                ct_Cbtecble_det_Info infocont_deth = new ct_Cbtecble_det_Info();
                infocont_deth.IdEmpresa      = info.IdEmpresa;
                infocont_deth.IdTipoCbte     = Convert.ToInt32(info_parametros.IdTipoCbte_AsientoSueldoXPagar);
                infocont_deth.IdCtaCble      = infoOptipo.IdCtaCble;
                infocont_deth.dc_Valor       = Convert.ToDouble(info.Total_pagar_remplazo);
                infocont_deth.dc_Observacion = "Pago de remplazo " + info.pe_nombreCompleto;
                infocont_deth.secuencia      = 1;
                infocont._cbteCble_det_lista_info.Add(infocont_deth);



                ct_Cbtecble_det_Info infocont_detd = new ct_Cbtecble_det_Info();
                infocont_detd.IdEmpresa      = info.IdEmpresa;
                infocont_detd.IdTipoCbte     = Convert.ToInt32(info_parametros.IdTipoCbte_AsientoSueldoXPagar);
                infocont_detd.IdCtaCble      = infoOptipo.IdCtaCble;
                infocont_detd.dc_Valor       = Convert.ToDouble(info.Total_pagar_remplazo) * -1;
                infocont_detd.dc_Observacion = "Pago de remplazo " + info.pe_nombreCompleto;
                infocont_detd.secuencia      = 2;

                infocont._cbteCble_det_lista_info.Add(infocont_detd);
                infocont_detd.secuencia = 2;

                return(infocont);
            }
            catch (Exception ex)
            {
                return(new ct_Cbtecble_Info());
            }
        }
Esempio n. 19
0
        public cp_orden_giro_Info()
        {
            Info_CbteCble_x_OG = new ct_Cbtecble_Info();
            Info_Retencion     = new cp_retencion_Info();
            Info_Orden_Pago    = new cp_orden_pago_Info();
            Info_cuotas_x_doc  = new cp_cuotas_x_doc_Info();
            lst_reembolso      = new List <cp_reembolso_Info>();

            lst_formasPagoSRI  = new List <cp_orden_giro_pagos_sri_Info>();
            LstImportacionGrid = new List <imp_ordencompra_ext_x_imp_gastosxImport_Info>();
            LstocXcbt_I        = new List <imp_ordencompra_ext_x_ct_cbtecble_Info>();
            LisImportacion     = new List <cp_orden_giro_x_imp_ordencompra_ext_Info>();
            LstImportacionOC   = new List <cp_orden_giro_x_com_ordencompra_local_Info>();
            InfoProveedor      = new cp_proveedor_Info();
        }
Esempio n. 20
0
 public Boolean Eliminar(ct_Cbtecble_Info _CbteCbleInfo, ref string MensajeError)
 {
     try
     {
         return(data.EliminarDB(_CbteCbleInfo, 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("", "EliminarDB", ex.Message), ex)
               {
                   EntityType = typeof(ct_Cbtecble_Bus)
               };
     }
 }
Esempio n. 21
0
 private void LImpiarDatos()
 {
     try
     {
         InfoCbteCble = new ct_Cbtecble_Info();
         this.cmb_tipocomprobante.EditValue = "";
         lbl_no_comprobante.Text            = "";
         txt_codCbteCble.Text   = "";
         this.txt_concepto.Text = "";
         UC_Diario.LimpiarGrid();
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 22
0
 public void set_CbteCble(ct_Cbtecble_Info cbtecbleI)
 {
     try
     {
         string MensajeError = "";
         cbtecble    = cbtecbleI;
         DetCbteCble = busDetCbte.Get_list_Cbtecble_det(param.IdEmpresa, cbtecble.IdTipoCbte, cbtecble.IdCbteCble, ref MensajeError);
     }
     catch (Exception ex)
     {
         string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name;
         NameMetodo = NameMetodo + " - " + ex.ToString();
         MessageBox.Show(NameMetodo + " " + param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas)
                         , param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
         Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString());
     }
 }
Esempio n. 23
0
        private ct_Cbtecble_Info Armar_diario(fa_notaCreDeb_Info info_ND)
        {
            try
            {
                ct_Cbtecble_Info info_diario = new ct_Cbtecble_Info();
                #region Cabecera
                info_diario.IdEmpresa       = param.IdEmpresa;
                info_diario.cb_Fecha        = Fecha_contabilizacion;
                info_diario.cb_Observacion  = info_ND.sc_observacion;
                info_diario.cb_Valor        = Math.Round(Convert.ToDouble(info_ND.Total), 2, MidpointRounding.AwayFromZero);
                info_diario.IdTipoCbte      = info_parametro.IdTipoCbteCble_ND;
                info_diario.IdUsuario       = "SysAdmin";
                info_diario.cb_FechaTransac = param.Fecha_Transac;
                info_diario.Estado          = "A";
                info_diario.IdPeriodo       = info_periodo.IdPeriodo;
                info_diario.Mayorizado      = "N";

                #endregion

                #region Detalle
                ct_Cbtecble_det_Info debe = new ct_Cbtecble_det_Info();
                debe.IdEmpresa      = param.IdEmpresa;
                debe.IdTipoCbte     = info_diario.IdTipoCbte;
                debe.IdCtaCble      = info_ND.info_cliente.IdCtaCble_cxc;
                debe.dc_Valor       = Math.Round(Convert.ToDouble(info_ND.Total), 2, MidpointRounding.AwayFromZero);
                debe.dc_Observacion = info_ND.sc_observacion;
                info_diario._cbteCble_det_lista_info.Add(debe);

                ct_Cbtecble_det_Info haber = new ct_Cbtecble_det_Info();
                haber.IdEmpresa      = param.IdEmpresa;
                haber.IdTipoCbte     = info_diario.IdTipoCbte;
                haber.IdCtaCble      = info_ND.info_cliente.IdCtaCble_cxc;
                haber.dc_Valor       = Math.Round(Convert.ToDouble(info_ND.Total), 2, MidpointRounding.AwayFromZero) * -1;
                haber.dc_Observacion = info_ND.sc_observacion;
                info_diario._cbteCble_det_lista_info.Add(haber);

                #endregion
                return(info_diario);
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(null);
            }
        }
Esempio n. 24
0
        private void btn_bucarPLantilla_Click(object sender, EventArgs e)
        {
            try
            {
                ct_cbtecble_Plantilla_Info InfoPlan = new ct_cbtecble_Plantilla_Info();

                if (txt_no_plantillacomprobante.Text == "0" || txt_no_plantillacomprobante.Text == "")
                {
                    frmCon_cbtecble_Plantilla_Consulta frm = new frmCon_cbtecble_Plantilla_Consulta();
                    frm.LlamaOtraPantalla = true;
                    frm.ShowDialog();
                    InfoCbteCble = frm.Get_Info_CbteCble();
                }
                else
                {
                    ct_cbtecble_Plantilla_Bus Pla_B = new ct_cbtecble_Plantilla_Bus();
                    InfoCbteCble = Pla_B.Get_Info_Plantilla_CbteCble(param.IdEmpresa, Convert.ToInt32(this.cmb_tipocomprobante.EditValue), Convert.ToDecimal(txt_no_plantillacomprobante.Text));
                }



                if (InfoCbteCble != null)
                {
                    if (InfoCbteCble.cb_Fecha != new DateTime(1, 1, 1))
                    {
                        List <ct_Cbtecble_det_Info> lm = new List <ct_Cbtecble_det_Info>();
                        lm = InfoCbteCble._cbteCble_det_lista_info;
                        this.cmb_tipocomprobante.EditValue = InfoCbteCble.IdTipoCbte;
                        dtFecha.Value     = InfoCbteCble.cb_Fecha;
                        txt_concepto.Text = InfoCbteCble.cb_Observacion;
                        UC_Diario.setDetalle(lm);
                    }
                    else
                    {
                        MessageBox.Show("Usted ha seleccionado mas de una plantilla, por favor intente de nuevo.", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                        LImpiarDatos();
                    }
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 25
0
        public bool AnularDB(List <ba_Archivo_Transferencia_Det_Info> Lista)
        {
            try
            {
                ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Info InfoParam_Banco = new ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Info();
                ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Bus  BusParam_Banco  = new ba_Cbte_Ban_tipo_x_ct_CbteCble_tipo_Bus();

                InfoParam_Banco = BusParam_Banco.Get_info_Cbte_Ban_tipo_x_ct_CbteCble_tipo(param.IdEmpresa, "NDBA");
                int IdTipo_rev = InfoParam_Banco.IdTipoCbteCble_Anu;

                string MensajeError = "";
                foreach (var item in Lista)
                {
                    oData.AnularDB(item);

                    Info_Comprobante_Bancario = Bus_Comprobante_Bancario.Get_Info_Cbte_Ban(Convert.ToInt32(item.IdEmpresa_pago), Convert.ToInt32(item.IdTipoCbte_pago), Convert.ToDecimal(item.IdCbteCble_pago), ref MensajeError);
                    if (Info_Comprobante_Bancario != null && Info_Comprobante_Bancario.IdEmpresa != 0)
                    {
                        ct_Cbtecble_Bus  CbteCble_B = new ct_Cbtecble_Bus();
                        ct_Cbtecble_Info CbteCble_I = new ct_Cbtecble_Info();

                        Info_Comprobante_Bancario.MotivoAnulacion = "Anulado por administrador de archivos";
                        Info_Comprobante_Bancario.IdUsuario_Anu   = param.IdUsuario;
                        Info_Comprobante_Bancario.FechaAnulacion  = param.Fecha_Transac;
                        decimal IdCbteCble_rev = 0;
                        CbteCble_B.ReversoCbteCble(Convert.ToInt32(item.IdEmpresa_pago), Convert.ToDecimal(item.IdCbteCble_pago), Convert.ToInt32(item.IdTipoCbte_pago), IdTipo_rev, ref IdCbteCble_rev, ref MensajeError, Info_Comprobante_Bancario.MotivoAnulacion);

                        Info_Comprobante_Bancario.IdTipoCbte_Anulacion = IdTipo_rev;
                        Info_Comprobante_Bancario.IdCbteCble_Anulacion = IdCbteCble_rev;
                        cp_orden_pago_cancelaciones_Bus OGPagos_B = new cp_orden_pago_cancelaciones_Bus();
                        OGPagos_B.Eliminar_OrdenPagoCancelaciones(Info_Comprobante_Bancario.IdEmpresa, Info_Comprobante_Bancario.IdTipocbte, Info_Comprobante_Bancario.IdCbteCble, ref MensajeError);
                        Bus_Comprobante_Bancario.AnularDB(Info_Comprobante_Bancario, ref MensajeError);
                    }
                }
                return(true);
            }
            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_Archivo_transferencia_Det", ex.Message), ex)
                      {
                          EntityType = typeof(ba_Archivo_Transferencia_Det_Bus)
                      };
            }
        }
Esempio n. 26
0
        public ct_Cbtecble_Info get_CbteCbleInfo()
        {
            InfoCbteCble = new ct_Cbtecble_Info();
            try
            {
                string codigo;
                string MensajeError = "";
                InfoPeriodo = BusPeriodo.Get_Info_Periodo(param.IdEmpresa, dtFecha.Value, ref MensajeError);

                if (InfoPeriodo != null && InfoPeriodo.pe_cerrado != "S")
                {
                    InfoCbteCble.IdEmpresa = param.IdEmpresa;
                    InfoCbteCble.IdUsuario = param.IdUsuario;
                    codigo = cbtipobus.Get_Codigo_x_CbtCble_tipo(param.IdEmpresa, Convert.ToInt32(this.cmb_tipocomprobante.EditValue), ref MensajeError).Trim();
                    InfoCbteCble.IdPeriodo       = InfoPeriodo.IdPeriodo;
                    InfoCbteCble.Anio            = InfoPeriodo.IdanioFiscal;
                    InfoCbteCble.Mes             = InfoPeriodo.pe_mes;
                    InfoCbteCble.IdTipoCbte      = Convert.ToInt32(this.cmb_tipocomprobante.EditValue);
                    InfoCbteCble.CodCbteCble     = txt_codCbteCble.Text;
                    InfoCbteCble.cb_Fecha        = Convert.ToDateTime(this.dtFecha.Value.ToShortDateString());
                    InfoCbteCble.cb_FechaTransac = param.GetDateServer();
                    InfoCbteCble.IdSucursal      = (cmb_sucursal.EditValue == null ? 0 : Convert.ToInt32(cmb_sucursal.EditValue));
                    InfoCbteCble.Mayorizado      = "N";
                    InfoCbteCble.cb_Observacion  = this.txt_concepto.Text;
                    InfoCbteCble.Secuencia       = BusCbteCble.Get_IdSecuencia(ref MensajeError);
                    InfoCbteCble.Estado          = "A";

                    InfoCbteCble._cbteCble_det_lista_info = UC_Diario.Get_List_Cbtecble_det();

                    return(InfoCbteCble);
                }
                else
                {
                    MessageBox.Show("El periodo de la fecha está cerrado.. No podrá grabar..");
                    InfoCbteCble = new ct_Cbtecble_Info();
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                InfoCbteCble = new ct_Cbtecble_Info();
            }
            return(InfoCbteCble);
        }
Esempio n. 27
0
        private void ucRo_Periodo_event_cmbPeriodo_EditValueChanged(object sender, EventArgs e)
        {
            try
            {
                splashScreenManager1.ShowWaitForm();
                periodoActual = ucRo_Periodo.getPeriodoXNomina();
                if (periodoActual == null)
                {
                    return;
                }
                if (periodoActual.Contabilizado == "N")
                {
                    dteFechaContabilidad.EditValue = periodoActual.pe_FechaFin;
                    ucCon_GridDiarioContable1.setAccion(Erp.Info.General.Cl_Enumeradores.eTipo_action.grabar);
                    info_sueldo = ro_Rol_Bus.get_diario_ctble_sueldo_x_pagar(periodoActual.IdEmpresa, periodoActual.IdNomina_Tipo, periodoActual.IdNomina_TipoLiqui, periodoActual.IdPeriodo, Convert.ToDateTime(dteFechaContabilidad.EditValue), ucRo_Periodo.GetNombreProceso(), ref mensaje);
                    ucCon_GridDiarioContable1.setDetalle(info_sueldo._cbteCble_det_lista_info);
                    ucCon_GridDiarioContable1.txtObservacion.Text         = info_sueldo.cb_Observacion;
                    ucCon_GridDiarioContable1.cmbTipoComp.EditValue       = info_sueldo.IdTipoCbte;
                    ucCon_GridDiarioContable1.dateTimePicker1.Value       = Convert.ToDateTime(dteFechaContabilidad.EditValue);
                    ucCon_GridDiarioContable1.textBox2.Text               = info_sueldo.cb_Observacion;
                    ucCon_GridDiarioContable1.searchLookUpEdit1.EditValue = info_sueldo.IdTipoCbte;
                    ucCon_GridDiarioContable1.dateTimePicker1.Value       = periodoActual.pe_FechaFin;

                    info_provisiones = ro_Rol_Bus.get_diario_ctble_provisiones(periodoActual.IdEmpresa, periodoActual.IdNomina_Tipo, periodoActual.IdNomina_TipoLiqui, periodoActual.IdPeriodo, Convert.ToDateTime(dteFechaContabilidad.EditValue), ucRo_Periodo.GetNombreProceso(), ref mensaje);
                    ucCon_GridDiarioContable2.setAccion(Erp.Info.General.Cl_Enumeradores.eTipo_action.grabar);
                    ucCon_GridDiarioContable2.setDetalle(info_provisiones._cbteCble_det_lista_info);
                    ucCon_GridDiarioContable2.txtObservacion.Text         = info_provisiones.cb_Observacion;
                    ucCon_GridDiarioContable2.cmbTipoComp.EditValue       = info_provisiones.IdTipoCbte;
                    ucCon_GridDiarioContable2.dateTimePicker1.Value       = Convert.ToDateTime(dteFechaContabilidad.EditValue);
                    ucCon_GridDiarioContable2.textBox2.Text               = info_provisiones.cb_Observacion;
                    ucCon_GridDiarioContable2.searchLookUpEdit1.EditValue = info_provisiones.IdTipoCbte;
                    ucCon_GridDiarioContable2.dateTimePicker1.Value       = periodoActual.pe_FechaFin;

                    splashScreenManager1.CloseWaitForm();
                }
                else
                {
                    splashScreenManager1.CloseWaitForm();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Esempio n. 28
0
        private void gridViewTransMoviInven_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
        {
            try
            {
                string mesn = "";

                vwin_movi_inve_x_cbteCble_Datos_Info infofila = new vwin_movi_inve_x_cbteCble_Datos_Info();
                infofila = (vwin_movi_inve_x_cbteCble_Datos_Info)gridViewTransMoviInven.GetFocusedRow();


                if (e.Column == col_modificar_contabilidad)
                {
                    if (infofila.IdCbteCble > 0)
                    {
                        frmCon_CbteCble_Mant frm      = new frmCon_CbteCble_Mant();
                        ct_Cbtecble_Info     InfoCbte = new ct_Cbtecble_Info();
                        ct_Cbtecble_Bus      BusCbte  = new ct_Cbtecble_Bus();
                        InfoCbte = BusCbte.Get_Info_CbteCble(Convert.ToInt32(infofila.IdEmpresa), Convert.ToInt32(infofila.IdTipoCbte), Convert.ToDecimal(infofila.IdCbteCble), ref mesn);
                        frm.event_frmCon_CbteCble_Mant_FormClosing += frm_event_frmCon_CbteCble_Mant_FormClosing;
                        frm.set_Info(InfoCbte);
                        frm.setAccion(Cl_Enumeradores.eTipo_action.actualizar);
                        frm.ShowDialog();
                    }
                }
                if (e.Column == col_modificar_producto)
                {
                    if (infofila.IdProducto > 0)
                    {
                        FrmIn_Producto_Mant frm           = new FrmIn_Producto_Mant();
                        in_Producto_Info    info_producto = new in_Producto_Info();
                        in_producto_Bus     bus_producto  = new in_producto_Bus();
                        info_producto = bus_producto.Get_Info_BuscarProducto(infofila.IdProducto, param.IdEmpresa);
                        frm.event_FrmIn_Producto_Mant_FormClosing += frm_event_FrmIn_Producto_Mant_FormClosing;
                        frm.set_Info_producto(info_producto);
                        frm.set_Accion(Cl_Enumeradores.eTipo_action.actualizar);
                        frm.ShowDialog();
                    }
                }
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show("Error comunicarse con Sistemas " + ex.Message + " ", "Sistemas", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 29
0
 private void gridViewCbte_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
 {
     try
     {
         InfoCbteCble = (ct_Cbtecble_Info)gridViewCbte.GetRow(e.RowHandle);
         if (InfoCbteCble != null)
         {
             if (InfoCbteCble.Estado == "I")
             {
                 e.Appearance.ForeColor = Color.Red;
             }
         }
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 30
0
        public Boolean ContabilizarDepreciacion(int IdEmpresa, decimal IdDepreciacion, int IdPeriodo, Cl_Enumeradores.eForma_Contabilizar sFormaContabiliza, ref decimal IdCbteCble, ref string mensaje)
        {
            try
            {
                bool Respuesta = true;

                Af_Parametros_Bus  busParam  = new Af_Parametros_Bus();
                Af_Parametros_Info infoParam = new Af_Parametros_Info();
                infoParam = busParam.Get_Info_Parametros(IdEmpresa);
                int IdTipoDepreciacion = 1; // depreacion lineal

                Af_Depreciacion_x_cta_cbtecble_Info         infoDepreCble   = new Af_Depreciacion_x_cta_cbtecble_Info();
                List <vwAf_Valores_Depre_Contabilizar_Info> lstValoresDepre = new List <vwAf_Valores_Depre_Contabilizar_Info>();
                lstValoresDepre = get_ValoresDepreciacion(IdEmpresa, IdDepreciacion, IdTipoDepreciacion, IdPeriodo, sFormaContabiliza);
                ct_Cbtecble_Info cbtCbleInfo = new ct_Cbtecble_Info();
                cbtCbleInfo = GetCbtecble_x_Depreacion(IdEmpresa, infoParam.IdTipoCbte, IdPeriodo, lstValoresDepre, sFormaContabiliza, ref mensaje);


                Respuesta = CbteCbleBus.GrabarDB(cbtCbleInfo, ref IdCbteCble, ref mensaje);

                if (Respuesta)
                {
                    infoDepreCble.IdEmpresa          = IdEmpresa;
                    infoDepreCble.IdDepreciacion     = IdDepreciacion;
                    infoDepreCble.IdTipoDepreciacion = IdTipoDepreciacion;
                    infoDepreCble.ct_IdEmpresa       = cbtCbleInfo.IdEmpresa;
                    infoDepreCble.ct_IdTipoCbte      = cbtCbleInfo.IdTipoCbte;
                    infoDepreCble.ct_IdCbteCble      = IdCbteCble;
                    busDepreCtaCble.GuardarDB(infoDepreCble);
                }

                return(Respuesta);
            }
            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("", "ContabilizarDepreciacion", ex.Message), ex)
                      {
                          EntityType = typeof(Af_Depreciacion_Bus)
                      };
            }
        }