Guest User

Untitled

a guest
Jan 23rd, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <div class="form-group">
  2. <label>N° Factura</label>
  3. <input type="checkbox" name="checkfactura" id="idcheckfactura" value="true" checked="checked" />
  4. @Html.TextBox("NumeroFactura", null, new { @class = "form-control", id = "factura" })
  5. </div>
  6.  
  7. [HttpPost]
  8. public ActionResult BuscarRecepcion(int NumeroFactura, bool checkfactura = false)
  9. {
  10. if (!string.IsNullOrEmpty(NumeroFactura.ToString()))
  11. {
  12. if (checkfactura)
  13. {
  14. //BUSCO FACTURA
  15. var numerofactura1 = db.Entradas.Where(f => f.n_Factura == Convert.ToInt32(NumeroFactura))
  16. .Select(d => d.n_Factura).FirstOrDefault();
  17. }
  18. }
  19.  
  20. }
Add Comment
Please, Sign In to add comment