public AdministracionGeneracionOPControl()
        {
            InitializeComponent();

            Context = new CooperativaProduccionEntities();

            _liquidaciones = new LiquidacionesParaOPViewModel()
            {
                Retenciones = new List <RetencionDetalleViewModel>(),
                Items       = new List <LiquidacionParaOPViewModel>()
            };

            _pagosManager      = new PagosManager();
            _messageBoxService = new MessageBoxService();

            // Generacion de Ordenes de Pago
            this.btnBuscarLiquidaciones.Click += this.btnBuscarLiquidaciones_Click;

            this.txtPorcentajePago.KeyPress += this.txtPorcentajePago_KeyPress;
            this.btnPorcentajePago.Click    += this.btnPorcentajePago_Click;
            this.txtPagoPorKilo.KeyPress    += this.txtPagoPorKilo_KeyPress;
            this.btnPagoPorKilo.Click       += this.btnPagoPorKilo_Click;

            this.btnGenerarOP.Click += this.btnGenerarOP_Click;

            this.gridViewLiquidacion.SelectionChanged        += gridViewLiquidacion_SelectionChanged;
            this.gridViewLiquidacion.CustomUnboundColumnData += gridViewLiquidacion_CustomUnboundColumnData;
        }
        private Form_AdministracionDetalleOrdenPago()
        {
            InitializeComponent();

            //Context = new CooperativaProduccionEntities();

            _pagosManager       = new PagosManager();
            _productoresManager = new ProductoresManager();

            this.gridViewPendientes.CellValueChanged += gridViewPendientes_CellValueChanged;

            this.btnPago.Click     += this.btnPago_Click;
            this.btnCancelar.Click += this.btnCancelar_Click;
        }
Beispiel #3
0
        public AdministracionVistaOPControl()
        {
            InitializeComponent();

            _pagosManager       = new PagosManager();
            _productoresManager = new ProductoresManager();
            _messageBoxService  = new MessageBoxService();

            this.btnBuscarLiquidacion.Click += this.btnBuscarLiquidacion_Click;

            this.txtFet.KeyPress    += this.txtFet_KeyPress;
            this.btnBuscarFet.Click += this.btnBuscarFet_Click;

            this.txtProductor.KeyPress    += this.txtProductor_KeyPress;
            this.btnBuscarProductor.Click += this.btnBuscarProductor_Click;

            this.gridControlOrdenPago.DoubleClick          += this.gridControlOrdenPago_DoubleClick;
            this.gridViewOrdenPago.CustomUnboundColumnData += gridViewOrdenPago_CustomUnboundColumnData;

            this.btnFormaPago.Click += this.btnFormaPago_Click;
        }