示例#1
0
 public bool procesarIV(ro_rol_Info info)
 {
     try
     {
         using (Entities_rrhh Context = new Entities_rrhh())
         {
             Context.spROL_DecimoCuarto(info.IdEmpresa, info.Anio, info.region, info.UsuarioIngresa, info.Observacion);
         }
         return(true);
     }
     catch (Exception e)
     {
         throw;
     }
 }
示例#2
0
 public bool procesarIV(ro_rol_Info info)
 {
     try
     {
         if (info.IdRol == 0)
         {
             info.IdRol = get_id(info.IdEmpresa);
         }
         using (Entities_rrhh Context = new Entities_rrhh())
         {
             Context.spROL_DecimoCuarto(info.IdEmpresa, info.Anio, info.region, info.UsuarioIngresa, info.Observacion, Convert.ToInt32(info.IdRol));
         }
         return(true);
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#3
0
        public bool procesarIV(ro_rol_Info info)
        {
            try
            {
                int IdSucursalInicio = Convert.ToInt32(info.IdSucursal);
                int IdSucursalFin    = Convert.ToInt32(info.IdSucursal) == 0 ? 9999 : Convert.ToInt32(info.IdSucursal);

                if (info.IdRol == 0)
                {
                    info.IdRol = get_id(info.IdEmpresa);
                }
                using (Entities_rrhh Context = new Entities_rrhh())
                {
                    Context.spROL_DecimoCuarto(info.IdEmpresa, info.Anio, info.region, info.UsuarioIngresa, info.Observacion, Convert.ToInt32(info.IdRol), IdSucursalInicio, IdSucursalFin, info.IdNomina_Tipo);
                }
                return(true);
            }
            catch (Exception)
            {
                throw;
            }
        }