public Boolean GetExiste(ro_Rdep_Info info, ref string msg) { try { Boolean valorRetornar = false; using (EntitiesRoles db = new EntitiesRoles()) { int cont = (from a in db.ro_rdep where a.IdEmpresa == info.IdEmpresa && a.IdEmpleado == info.IdEmpleado && a.AnioFiscal == info.AnioFiscal select a).Count(); if (cont > 0) { valorRetornar = true; } else { valorRetornar = false; } } return(valorRetornar); } catch (Exception ex) { string array = 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(), "", array, "", "", "", "", "", DateTime.Now); oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje); mensaje = ex.InnerException + " " + ex.Message; throw new Exception(ex.InnerException.ToString()); } }
private void cmbAnioFiscal_SelectedIndexChanged(object sender, EventArgs e) { try { //VERIFICA QUE ESTE GRABANDO if (_Accion == Cl_Enumeradores.eTipo_action.grabar) { //VERIFICA SI YA TIENE REGISTRO PREVIO _Info.IdEmpleado = Convert.ToInt32(cmbEmpleados.EditValue); _Info.AnioFiscal = Convert.ToInt32(cmbAnioFiscal.Text); _Info.IdEmpresa = param.IdEmpresa; if (oRo_Rdep_Bus.GetExiste(_Info, ref mensaje)) { _Info = oRo_Rdep_Bus.GetInfoPorEmpleado(_Info.IdEmpresa, _Info.IdEmpleado, _Info.AnioFiscal, ref mensaje); setInfo(_Info); MessageBox.Show("El Empleado seleccionado ya tiene creado un registro, por favor intente seleccionando otro empleado", "ATENCION", MessageBoxButtons.OK, MessageBoxIcon.Stop); } else { pu_setHistorico(); } } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString()); } }
private void viewRDEP_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { try { _Info = (ro_Rdep_Info)viewRDEP.GetFocusedRow(); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString()); } }
public Boolean GetExiste(ro_Rdep_Info info, ref string msg) { try { return(oData.GetExiste(info, ref msg)); } 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("", "GetExiste", ex.Message), ex) { EntityType = typeof(ro_Rdep_Bus) }; } }
private void pu_setHistorico() { try { if (cmbEmpleados.EditValue != null && cmbAnioFiscal.Text != "") { _Info = oRo_Rdep_Bus.setInfoRdep(_Info.IdEmpresa, _Info.IdEmpleado, _Info.AnioFiscal, ref mensaje); setInfo(_Info); } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString()); } }
private void pu_Anular() { try { _Info = (ro_Rdep_Info)viewRDEP.GetFocusedRow(); if (_Info == null) { MessageBox.Show("Debe seleccionar un registro, revise poer favor", "ATENCION", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } else if (_Info.Estado == "I") { MessageBox.Show("No se procedió con la anulación porque ya está anulado", "INFORMACION", MessageBoxButtons.OK, MessageBoxIcon.Information); } else if (MessageBox.Show("¿Está seguro que desea ANULAR el registro seleccionado?", "CONFIRMACION", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { // Motivo por Anulación string motiAnulacion = ""; FrmGe_MotivoAnulacion frmAnula = new FrmGe_MotivoAnulacion(); frmAnula.ShowDialog(); motiAnulacion = frmAnula.motivoAnulacion; _Info.MotiAnula = motiAnulacion; _Info.Fecha_UltAnu = param.Fecha_Transac; _Info.IdUsuarioUltAnu = param.IdUsuario; _Info.Estado = "I"; if (oRo_Rdep_Bus.GuardarBD(_Info, ref mensaje)) { MessageBox.Show("El Registro ha anulado exitosamente", "INFORMACION", MessageBoxButtons.OK, MessageBoxIcon.Information); pu_CargaInicial(); } else { MessageBox.Show("Error al anular el contrato", "ATENCION", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString()); } }
public ro_Rdep_Info pu_CalcularRDEP(ro_Rdep_Info info) { try { double totalIngresos = 0; double totalDeducciones = 0; double baseImponible = 0; double totalIngresosInformativo = 0; totalIngresos = Convert.ToDouble(info.suelSal) + Convert.ToDouble(info.sobSuelComRemu) + Convert.ToDouble(info.partUtil) + Convert.ToDouble(info.intGrabGen) + Convert.ToDouble(info.valImpAsuEsteEmpl); totalDeducciones = Convert.ToDouble(info.apoPerIess) + Convert.ToDouble(info.aporPerIessConOtrosEmpls) + Convert.ToDouble(info.deducVivienda) + Convert.ToDouble(info.deducSalud) + Convert.ToDouble(info.deducEduca) + Convert.ToDouble(info.deducAliement) + Convert.ToDouble(info.deducVestim) + Convert.ToDouble(info.exoDiscap) + Convert.ToDouble(info.exoTerEd); baseImponible = totalIngresos - totalDeducciones; if (baseImponible > 0) { info.basImp = baseImponible.ToString("F2"); //IMPUESTO A LA RENTA CAUSADO info.impRentCaus = pu_CalcularImpuestoRenta(baseImponible, info.AnioFiscal).ToString("F2"); } else { info.basImp = "0.00"; info.impRentCaus = "0.00"; } //INGRESOS GRAVADOS CON ESTE EMPLEADOR (informativo) totalIngresosInformativo = Convert.ToDouble(info.suelSal) + Convert.ToDouble(info.sobSuelComRemu) + Convert.ToDouble(info.partUtil) + Convert.ToDouble(info.valImpAsuEsteEmpl); info.ingGravConEsteEmpl = totalIngresosInformativo.ToString("F2"); 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("", "pu_CalcularRDEP", ex.Message), ex) { EntityType = typeof(ro_Rdep_Bus) }; } }
private void cmbEmpleados_EditValueChanged(object sender, EventArgs e) { try { if (cmbEmpleados.EditValue != null && cmbEmpleados.Properties.View.DataRowCount > 0) { _Info = new ro_Rdep_Info(); _Info.IdEmpleado = Convert.ToInt32(cmbEmpleados.EditValue); _Info.AnioFiscal = Convert.ToInt32(cmbAnioFiscal.Text); _Info.IdEmpresa = param.IdEmpresa; ro_Empleado_Info tmp = (ro_Empleado_Info)cmbEmpleados.Properties.View.GetFocusedRow(); txtIdentificacion.Text = tmp.InfoPersona.pe_cedulaRuc; txtIdEmpleado.Text = tmp.IdEmpleado.ToString(); //VERIFICA QUE ESTE GRABANDO if (_Accion == Cl_Enumeradores.eTipo_action.grabar) { //VERIFICA SI YA TIENE REGISTRO PREVIO getInfo(); if (oRo_Rdep_Bus.GetExiste(_Info, ref mensaje)) { _Info = oRo_Rdep_Bus.GetInfoPorEmpleado(_Info.IdEmpresa, _Info.IdEmpleado, _Info.AnioFiscal, ref mensaje); setInfo(_Info); MessageBox.Show("El Empleado seleccionado ya tiene creado un registro, por favor intente seleccionando otro empleado", "ATENCION", MessageBoxButtons.OK, MessageBoxIcon.Stop); } else { pu_setHistorico(); } } } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString()); } }
private void pu_Calcular() { try { if (getInfo()) { if (oRo_Rdep_Bus.pu_ValidarRDEP(_Info, ref mensaje)) { _Info = oRo_Rdep_Bus.pu_CalcularRDEP(_Info); setInfo(_Info); } else { MessageBox.Show(mensaje); } } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString()); } }
private void llama_frm(Cl_Enumeradores.eTipo_action Accion) { try { frm = new frmRo_RDEP_Mant(); frm.Event_frmRo_RDEP_Mant_FormClosing += frm_Event_frmRo_RDEP_Mant_FormClosing; frm.setAccion(Accion); if (Accion != Cl_Enumeradores.eTipo_action.grabar) { _Info = (ro_Rdep_Info)viewRDEP.GetFocusedRow(); frm.setInfo(_Info); } frm.ShowDialog(); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString()); } }
public Boolean GuardarBD(ro_Rdep_Info info, ref string msg) { try { Boolean valorRetornar = false; //MODIFICAR if (oData.GetExiste(info, ref msg)) { info.UsuarioModifica = param.IdUsuario; info.FechaModifica = param.Fecha_Transac; valorRetornar = oData.ModificarBD(info, ref msg); } else //GRABAR { info.Estado = "A"; info.UsuarioIngresa = param.IdUsuario; info.FechaModifica = param.Fecha_Transac; info.UsuarioModifica = param.IdUsuario; info.FechaModifica = param.Fecha_Transac; valorRetornar = oData.GuardarBD(info, ref msg); } return(valorRetornar); } 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("", "GuardarBD", ex.Message), ex) { EntityType = typeof(ro_Rdep_Bus) }; } }
public void setInfo(ro_Rdep_Info info) { try { _Info = info; cmbEmpleados.EditValue = _Info.IdEmpleado; ro_Empleado_Info tmp = new ro_Empleado_Info(); //tmp = oRo_Empleado_Bus.Obtener_1_Empleado(_Info.IdEmpresa, _Info.IdEmpleado); txtIdentificacion.Text = _Info.CedulaRuc; txtIdEmpleado.Text = _Info.IdEmpleado.ToString(); txtObservacion.Text = _Info.Observacion; txtFechaRegistro.Text = _Info.FechaIngresa.ToShortDateString(); txtAporteIESSEmpleador.Text = _Info.apoPerIess; txtAporteIESSOtroEmpleador.Text = _Info.aporPerIessConOtrosEmpls; txtBaseImponibleGravada.Text = _Info.basImp; txtCompensacionSueldoDigno.Text = _Info.salarioDigno; txtDecimoCuartoSueldo.Text = _Info.decimCuar; txtDecimoTercerSueldo.Text = _Info.decimTer; txtDeduccionAlimentacion.Text = _Info.deducAliement; txtDeduccionEducacion.Text = _Info.deducEduca; txtDeduccionSalud.Text = _Info.deducSalud; txtDeduccionVestimenta.Text = _Info.deducVestim; txtDeduccionVivienda.Text = _Info.deducVivienda; txtExoneracionDiscapacidad.Text = _Info.exoDiscap; txtExoneracionTercerEdad.Text = _Info.exoTerEd; txtFechaRegistro.Text = _Info.FechaIngresa.ToShortDateString(); txtFondoReserva.Text = _Info.fondoReserva; txtImpuestoAsumidoEmpleador.Text = _Info.impRentEmpl; txtImpuestoRentaCausado.Text = _Info.impRentCaus; txtIngresosGravadosEmpleadorInformativo.Text = _Info.ingGravConEsteEmpl; txtIngresosGravadoOtroEmpleador.Text = _Info.intGrabGen; txtOtrosIngresosNoRentaGravada.Text = _Info.otrosIngRenGrav; txtSobresueldo.Text = _Info.sobSuelComRemu; txtSueldoSalario.Text = _Info.suelSal; txtUtilidad.Text = _Info.partUtil; txtValorImpuestoAsumidoPorEmpleador.Text = _Info.valImpAsuEsteEmpl; txtValorImpuestoRetenidoAsumidoPorOtroEmpleador.Text = _Info.valRetAsuOtrosEmpls; txtValorImpuestoRetenidoPorEmpleador.Text = _Info.valRet; if (_Info.Estado == "I") { lbl_Estado.Visible = true; CheckEstado.Checked = false; } else { lbl_Estado.Visible = false; CheckEstado.Checked = true; } return; } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString()); return; } }
public Boolean pu_ValidarRDEP(ro_Rdep_Info info, ref string msg) { double fraccionBasica = 0; double limiteGastoDeducible = 0; fraccionBasica = Convert.ToDouble(oRo_Tabla_Impu_Renta_Bus.ConsultaTablaImpuAnio(info.AnioFiscal).Where(v => v.FraccionBasica == 0 && v.ImpFraccionBasica == 0 && v.Por_ImpFraccion_Exce == 0).FirstOrDefault().ExcesoHasta); try { //GASTO VIVIENDA if (info.deducVivienda == "") { msg = "El Gasto Vivienda es obligatorio, revise por favor "; return(false); } else { limiteGastoDeducible = fraccionBasica * 0.325; if (Convert.ToDouble(info.deducVivienda) > limiteGastoDeducible) { msg = "La cuantía máxima del Gasto Vivienda debe ser menor que " + limiteGastoDeducible.ToString("F2") + " ( equivale a 0.325 veces la fracción básica) "; return(false); } } //GASTO EDUCACION if (info.deducEduca == "") { msg = "El Gasto Educación es obligatorio, revise por favor "; return(false); } else { limiteGastoDeducible = fraccionBasica * 0.325; if (Convert.ToDouble(info.deducEduca) > limiteGastoDeducible) { msg = "La cuantía máxima del Gasto Educación debe ser menor que " + limiteGastoDeducible.ToString("F2") + " ( equivale a 0.325 veces la fracción básica) "; return(false); } } //GASTO ALIMENTOS if (info.deducAliement == "") { msg = "El Gasto Alimentacion es obligatorio, revise por favor "; return(false); } else { limiteGastoDeducible = fraccionBasica * 0.325; if (Convert.ToDouble(info.deducAliement) > limiteGastoDeducible) { msg = "La cuantía máxima del Gasto Alimentos debe ser menor que " + limiteGastoDeducible.ToString("F2") + " ( equivale a 0.325 veces la fracción básica) "; return(false); } } //GASTO VESTIMENTA if (info.deducVestim == "") { msg = "El Gasto Vestimenta es obligatorio, revise por favor "; return(false); } else { limiteGastoDeducible = fraccionBasica * 0.325; if (Convert.ToDouble(info.deducVestim) > limiteGastoDeducible) { msg = "La cuantía máxima del Gasto Vestimenta debe ser menor que " + limiteGastoDeducible.ToString("F2") + " ( equivale a 0.325 veces la fracción básica) "; return(false); } } //GASTO SALUD if (info.deducSalud == "") { msg = "El Gasto Salud es obligatorio, revise por favor "; return(false); } else { limiteGastoDeducible = fraccionBasica * 1.3; if (Convert.ToDouble(info.deducSalud) > limiteGastoDeducible) { msg = "La cuantía máxima del Gasto Salud debe ser menor que " + limiteGastoDeducible.ToString("F2") + " ( equivale a 1.3 veces la fracción básica) "; return(false); } } if (info.suelSal == "") { msg = "Sueldos y salarios es obligatorio, revise por favor "; return(false); } if (info.sobSuelComRemu == "") { msg = "Sobresueldos, comisiones, bonos y otros ingresos gravados es obligatorio, revise por favor "; return(false); } if (info.partUtil == "") { msg = "Participación de utilidades es obligatorio, revise por favor "; return(false); } if (info.intGrabGen == "") { msg = "Ingresos gravados generados con otros empleadores es obligatorio, revise por favor "; return(false); } if (info.impRentEmpl == "") { msg = "Impuesto a la renta asumido por este empleador es obligatorio, revise por favor "; return(false); } if (info.decimTer == "") { msg = "Décimo tercer sueldo es obligatorio, revise por favor "; return(false); } if (info.decimCuar == "") { msg = "Décimo cuarto sueldo es obligatorio, revise por favor "; return(false); } if (info.fondoReserva == "") { msg = "Fondo de reserva es obligatorio, revise por favor "; return(false); } if (info.salarioDigno == "") { msg = "Compensación Económica Salario Digno es obligatorio, revise por favor "; return(false); } if (info.otrosIngRenGrav == "") { msg = "Otros ingresos en relación de dependencia que no constituyen renta gravada es obligatorio, revise por favor "; return(false); } //if (info.intGrabGen == "") //{ // msg = "Ingresos gravados con este empleador (Informativo) es obligatorio, revise por favor "; // return false; //} if (info.apoPerIess == "") { msg = "Aporte personal al IESS con este empleador (únicamente pagado por el trabajador) es obligatorio, revise por favor "; return(false); } if (info.aporPerIessConOtrosEmpls == "") { msg = "Aporte personal al IESS con otros empleadores (únicamente pagado por el trabajador) es obligatorio, revise por favor "; return(false); } if (info.exoDiscap == "") { msg = "Exoneración por Discapacidad es obligatorio, revise por favor "; return(false); } if (info.exoTerEd == "") { msg = "Exoneración por Tercera Edad es obligatorio, revise por favor "; return(false); } if (info.basImp == "") { msg = "Base imponible gravada es obligatorio, revise por favor "; return(false); } if (info.impRentCaus == "") { msg = "Impuesto a la renta causado es obligatorio, revise por favor "; return(false); } if (info.valRetAsuOtrosEmpls == "") { msg = "Valor del impuesto retenido y asumido por otros empleadores durante el período declarado es obligatorio, revise por favor "; return(false); } if (info.valImpAsuEsteEmpl == "") { msg = "Valor del impuesto asumido por este empleador es obligatorio, revise por favor "; return(false); } if (info.valRet == "") { msg = "Valor del impuesto retenido al trabajador por este empleador es obligatorio, revise por favor "; return(false); } 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("", "pu_ValidarRDEP", ex.Message), ex) { EntityType = typeof(ro_Rdep_Bus) }; } }
public Boolean ModificarBD(ro_Rdep_Info info, ref string msg) { try { using (EntitiesRoles db = new EntitiesRoles()) { ro_rdep item = (from a in db.ro_rdep where a.IdEmpresa == info.IdEmpresa && a.IdEmpleado == info.IdEmpleado && a.AnioFiscal == info.AnioFiscal select a).FirstOrDefault(); item.Observacion = info.Observacion; item.Estado = info.Estado; item.suelSal = Convert.ToDouble(info.suelSal); item.sobSuelComRemu = Convert.ToDouble(info.sobSuelComRemu); item.partUtil = Convert.ToDouble(info.partUtil); item.intGrabGen = Convert.ToDouble(info.intGrabGen); item.impRentEmpl = Convert.ToDouble(info.impRentEmpl); item.decimTer = Convert.ToDouble(info.decimTer); item.decimCuar = Convert.ToDouble(info.decimCuar); item.fondoReserva = Convert.ToDouble(info.fondoReserva); item.salarioDigno = Convert.ToDouble(info.salarioDigno); item.otrosIngRenGrav = Convert.ToDouble(info.otrosIngRenGrav); item.ingGravConEsteEmpl = Convert.ToDouble(info.ingGravConEsteEmpl); item.sisSalNet = Convert.ToDouble(info.sisSalNet); item.apoPerIess = Convert.ToDouble(info.apoPerIess); item.aporPerIessConOtrosEmpls = Convert.ToDouble(info.aporPerIessConOtrosEmpls); item.deducVivienda = Convert.ToDouble(info.deducVivienda); item.deducSalud = Convert.ToDouble(info.deducSalud); item.deducEduca = Convert.ToDouble(info.deducEduca); item.deducAliement = Convert.ToDouble(info.deducAliement); item.deducVestim = Convert.ToDouble(info.deducVestim); item.exoDiscap = Convert.ToDouble(info.exoDiscap); item.exoTerEd = Convert.ToDouble(info.exoTerEd); item.basImp = Convert.ToDouble(info.basImp); item.impRentCaus = Convert.ToDouble(info.impRentCaus); item.valRetAsuOtrosEmpls = Convert.ToDouble(info.valRetAsuOtrosEmpls); item.valImpAsuEsteEmpl = Convert.ToDouble(info.valImpAsuEsteEmpl); item.valRet = Convert.ToDouble(info.valRet); item.UsuarioModifica = info.UsuarioModifica; item.FechaModifica = info.FechaModifica; item.IdUsuarioUltAnu = info.IdUsuarioUltAnu; item.Fecha_UltAnu = info.Fecha_UltAnu; item.MotiAnula = info.MotiAnula; db.SaveChanges(); } return(true); } catch (Exception ex) { string array = 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(), "", array, "", "", "", "", "", DateTime.Now); oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje); mensaje = ex.InnerException + " " + ex.Message; throw new Exception(ex.InnerException.ToString()); } }
public List <ro_Rdep_Info> GetListGeneral(int idEmpresa, ref string msg) { List <ro_Rdep_Info> listado = new List <ro_Rdep_Info>(); try { using (EntitiesRoles db = new EntitiesRoles()) { var datos = (from a in db.vwRo_Rdep_x_Empleado where a.IdEmpresa == idEmpresa select a); foreach (var info in datos) { ro_Rdep_Info item = new ro_Rdep_Info(); item.IdEmpresa = info.IdEmpresa; item.IdEmpleado = info.IdEmpleado; item.AnioFiscal = info.AnioFiscal; item.Observacion = info.Observacion; item.Estado = info.Estado; item.suelSal = info.suelSal.ToString(); item.sobSuelComRemu = info.sobSuelComRemu.ToString(); item.partUtil = info.partUtil.ToString(); item.intGrabGen = info.intGrabGen.ToString(); item.impRentEmpl = info.impRentEmpl.ToString(); item.decimTer = info.decimTer.ToString(); item.decimCuar = info.decimCuar.ToString(); item.fondoReserva = info.fondoReserva.ToString(); item.salarioDigno = info.salarioDigno.ToString(); item.otrosIngRenGrav = info.otrosIngRenGrav.ToString(); item.ingGravConEsteEmpl = info.ingGravConEsteEmpl.ToString(); item.sisSalNet = info.sisSalNet.ToString(); item.apoPerIess = info.apoPerIess.ToString(); item.aporPerIessConOtrosEmpls = info.aporPerIessConOtrosEmpls.ToString(); item.deducVivienda = info.deducVivienda.ToString(); item.deducSalud = info.deducSalud.ToString(); item.deducEduca = info.deducEduca.ToString(); item.deducAliement = info.deducAliement.ToString(); item.deducVestim = info.deducVestim.ToString(); item.exoDiscap = info.exoDiscap.ToString(); item.exoTerEd = info.exoTerEd.ToString(); item.basImp = info.basImp.ToString(); item.impRentCaus = info.impRentCaus.ToString(); item.valRetAsuOtrosEmpls = info.valRetAsuOtrosEmpls.ToString(); item.valImpAsuEsteEmpl = info.valImpAsuEsteEmpl.ToString(); item.valRet = info.valRet.ToString(); item.UsuarioIngresa = info.UsuarioIngresa; item.FechaIngresa = info.FechaIngresa; item.UsuarioModifica = info.UsuarioModifica; item.FechaModifica = info.FechaModifica; item.IdUsuarioUltAnu = info.IdUsuarioUltAnu; item.Fecha_UltAnu = info.Fecha_UltAnu; item.MotiAnula = info.MotiAnula; //VISTA item.Cargo = info.cargo; item.Departamento = info.departamento; item.EstadoEmpleado = info.EstadoEmpleado; item.Apellido = info.Apellido; item.Nombre = info.Nombre; item.StatusEmpleado = info.StatusEmpleado; item.NomCompleto = info.NomCompleto; item.CedulaRuc = info.CedulaRuc; listado.Add(item); } } return(listado); } catch (Exception ex) { string array = 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(), "", array, "", "", "", "", "", DateTime.Now); oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje); mensaje = ex.InnerException + " " + ex.Message; throw new Exception(ex.InnerException.ToString()); } }