Пример #1
0
 public formMovCompras()
 {
     InitializeComponent();
     compraDao  = new ComprasDAO();
     usuarioDao = new UsuariosDAO();
     sessaoDao  = new SessoesDAO();
 }
Пример #2
0
        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());
 }
Пример #4
0
 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();
 }
Пример #5
0
 public CompraController()
 {
     DaoCompra = new ComprasDAO();
 }
Пример #6
0
 public CtrlCompras() : base(new ComprasDAO())
 {
     this.DaoCompra = (ComprasDAO)this.Dao;
 }
Пример #7
0
 public ActionResult ComprasNOW(NOW now)
 {
     ComprasDAO.CadastrarCompras(now);
     return(RedirectToAction("Index"));
 }