public formMovCompras() { InitializeComponent(); compraDao = new ComprasDAO(); usuarioDao = new UsuariosDAO(); sessaoDao = new SessoesDAO(); }
public ActionResult Index() { List <NOW> ListaNow = new List <NOW>(); ListaNow = ComprasDAO.listar(); return(View(ListaNow)); }
public ActionResult Compra(Compras compra) { if (ModelState.IsValid) { var metodoCompra = new ComprasDAO(); metodoCompra.Insert(compra); return(RedirectToAction("Confirma", "Cliente")); } return(View()); }
public LibroCompras() { InitializeComponent(); this.ControlBox = false; this.Text = "Libro Compras"; this.StartPosition = FormStartPosition.Manual; this.Location = new Point(50, 20); objCompras = new Compras(); objComprasDao = new ComprasDAO(); objProceso = new Proceso(); lbl_anho.Text = DateTime.Now.Year.ToString(); cmbMes(); }
public CompraController() { DaoCompra = new ComprasDAO(); }
public CtrlCompras() : base(new ComprasDAO()) { this.DaoCompra = (ComprasDAO)this.Dao; }
public ActionResult ComprasNOW(NOW now) { ComprasDAO.CadastrarCompras(now); return(RedirectToAction("Index")); }