Ejemplo n.º 1
0
        public LoVOt()
        {
            InitializeComponent();
            this.Text          = "OT/ CENTRO DE COSTO";
            this.StartPosition = FormStartPosition.Manual;
            this.Location      = new Point(50, 20);
            obj       = new OtDTO();
            objLoVDao = new LoVDAO();

            objListOt = objLoVDao.getLovOt(Ventas.UNIDADNEGOCIO);
            gridParams();
            grdOt.DataSource          = objListOt;
            cajaChicaForm             = Caja.CajaChica.formCajachica;
            grdOt.DoubleClick        += GrdOt_DoubleClick;
            txt_Busqueda.TextChanged += Txt_Busqueda_TextChanged;
            objListTotal              = objListOt;
        }
Ejemplo n.º 2
0
        public grd_Gastos()
        {
            InitializeComponent();
            this.Text          = "Tipo Gastos";
            this.StartPosition = FormStartPosition.Manual;
            this.Location      = new Point(50, 20);
            objTipoGastos      = new TipoGastos();
            objLoVDao          = new LoVDAO();

            objListTipoGastos = objLoVDao.getLovTipoGastos();
            gridParams();
            grdGasto.DataSource       = objListTipoGastos;
            cajaChicaForm             = Caja.CajaChica.formCajachica;
            grdGasto.DoubleClick     += GrdGasto_DoubleClick;
            txt_Busqueda.TextChanged += Txt_Busqueda_TextChanged;
            objListTipoGastosTotal    = objListTipoGastos;
        }
Ejemplo n.º 3
0
        public BuscarDocVoucher(String Ruc, String operacion)
        {
            InitializeComponent();
            TipoBusqueda    = operacion;
            objVoucherDao   = new VoucherDAO();
            objFacturaAbono = new FacturaAbono();
            objBancoDAO     = new BancoDAO();


            ojbVentas = new ContabilidadDTO.Ventas();
            if (operacion == "C")
            {
                formCaja = Caja.CajaChica.formCajachica;
            }
            else if (operacion == "V")
            {
                formVoucher = Caja.EmisionVoucher.formEmision;
                TipoBanco   = Caja.EmisionVoucher.TipoOperacionBanco;
            }
            if (TipoBanco == "A")
            {
                objListBusquedaAbono = objVoucherDao.geetDocumentoVoucherAbono(Ventas.UNIDADNEGOCIO, Ruc);
                gridParamsAbono();
                grdDocumento.DataSource   = objListBusquedaAbono;
                objListBusquedaTotalAbono = objListBusquedaAbono;
            }
            else
            {
                objListVentas = objVoucherDao.listarDocumentosVentas(Ruc, Ventas.UNIDADNEGOCIO /*,moneda,monedadoc*/);
                gridParams();
                grdDocumento.DataSource = objListVentas;
                objListBusquedaTotal    = objListVentas;
            }


            grdDocumento.Refresh();
            grdDocumento.DoubleClick += GrdDocumento_DoubleClick;

            txt_BuscarDocumento.TextChanged += Txt_BuscarDocumento_TextChanged;
        }
Ejemplo n.º 4
0
        public LoVProveedor()
        {
            InitializeComponent();
            this.Text          = "Proveedor / Personal";
            this.StartPosition = FormStartPosition.Manual;
            this.Location      = new Point(50, 20);
            objLoVDao          = new LoVDAO();
            objPersonal        = new Personal();
            objProveedor       = new Proveedor();
            cajaChicaForm      = Caja.CajaChica.formCajachica;
            objListPersonal    = objLoVDao.getLovPersonal();
            objListProveedor   = objLoVDao.getLovProveedor(Ventas.UNIDADNEGOCIO);

            rb_Prov.Checked           = true;
            rb_Prov.CheckedChanged   += Rb_Prov_CheckedChanged;
            txt_Busqueda.TextChanged += Txt_Busqueda_TextChanged;
            grdProveedor.DoubleClick += GrdProveedor_DoubleClick;
            lbl_Buscar.Text           = "Razón Social o RUC:";
            gridParams("Ruc", "ProveedorNDoc", "Razón Social", "ProveedorRazonSocial");
            listProveedor(objListProveedor);
            objListProveedorTotal = objListProveedor;
            objListPersonalTotal  = objListPersonal;
        }