Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpPost]
- public ActionResult Consulta(Models.SolicitudesViewModels.Consulta consultar)
- {
- var token = Session["token"] as string;
- SRSolicitudes.SolicitudesSoapClient wsSolicitudes = new SRSolicitudes.SolicitudesSoapClient();
- SRSolicitudes.ConsultaSolicitudes outConsultaSolicitudes = new SRSolicitudes.ConsultaSolicitudes();
- outConsultaSolicitudes = wsSolicitudes.ConsultarSolicitud(token, consultar.Estado, consultar.Cedula, consultar.Nombres, consultar.Apellidos, consultar.Computacion, 1, 50);
- ViewBag.resultado = outConsultaSolicitudes.Cantidad;
- ViewBag.Ocultar = false;
- ViewBag.Mostrar = false;
- return View();
- }
- <section>
- <div class="table-responsive">
- <h2>Consultar Solicitudes</h2>
- @if (ViewBag.Ocultar == false)
- {
- <h3>Se encontraron @ViewBag.resultado resultados.</h3>
- }
- <form name="buscando" action="@Url.Action("Consulta", "Solicitudes")" method="POST">
- <table class="table table-bordered table-striped">
- <tr>
- <td colspan="7" class="text-right">
- <input class="btn btn-primary" type="submit" value="Buscar" />
- <a class="btn btn-danger" href="@Url.Action("Inicio","Home")"><i class="glyphicon glyphicon-remove"></i> Salir</a>
- </td>
- </tr>
- <tr>
- <th>
- Cédula<br />
- @Html.TextBoxFor(m => m.Cedula, null, new { @class = " form-control" })
- </th>
- <th>
- Apellidos <br />
- @Html.TextBoxFor(m => m.Apellidos, null, new { @class = " mayusculas form-control" })
- </th>
- <th>
- Nombres <br />
- @Html.TextBoxFor(m => m.Nombres, null, new { @class = " mayusculas form-control" })
- </th>
- <th>
- Nro. de Computación <br />
- @Html.TextBoxFor(m => m.Computacion, null, new { @class = "form-control" })
- </th>
- <th>
- Estado <br />
- @Html.DropDownListFor(m => m.Estado, new SelectList(new[] { null, "Aprobado", "Rechazado" }), new { @class = "form-control" })
- </th>
- @if (ViewBag.Mostrar == false)
- {
- <th>
- Categoria
- </th>
- <th>
- Acciones
- </th>
- }
- </tr>
- @if (ViewBag.Mostrar == false)
- {
- <tr>
- <td>Cedula</td>
- <td>Apellido</td>
- <td>Nombres</td>
- <td>NroComputacion</td>
- <td>Estado</td>
- <td>Categoria</td>
- <td>
- <button class="btn btn-xs btn-primary" role="button"><i class="glyphicon glyphicon-credit-card"></i> <span>Ver</span></button>
- </td>
- </tr>
- }
- </table>
- </form>
- </div>
- <tr>
- <td>Cedula</td>
- <td>Apellido</td>
- <td>Nombres</td>
- <td>NroComputacion</td>
- <td>Estado</td>
- <td>Categoria</td>
- <td>
- <button class="btn btn-xs btn-primary" role="button"><i class="glyphicon glyphicon-credit-card"></i> <span>Ver</span></button>
- </td>
- </tr>
- <ConsultaSolicitud>
- <IdSolicitud>int</IdSolicitud>
- <Estado>string</Estado>
- <NroComputacion>int</NroComputacion>
- <Cedula>string</Cedula>
- <Apellidos>string</Apellidos>
- <Nombres>string</Nombres>
- <Fecha>dateTime</Fecha>
- <Categoria>string</Categoria>
- </ConsultaSolicitud>
Add Comment
Please, Sign In to add comment