private void BindGrid()
        {
            SisPackController.AdministrarGrillas.Configurar(dtgComisionVendedores, "VendedorID", this.CantidadOpciones);

            IVendedor oVendedor = VendedorFactory.GetVendedor();

            oVendedor.Apellido  = this.txtApellido.Text;
            oVendedor.NroLegajo = this.txtNroLegajo.Text == "" ? "0" : this.txtNroLegajo.Text;
            this.dtgComisionVendedores.DataSource = oVendedor.GetVendedoresConsultaDataSet();
            this.dtgComisionVendedores.DataBind();
        }
Exemplo n.º 2
0
        private void BindGrid()
        {
            SisPackController.AdministrarGrillas.Configurar(dtgVendedores, "VendedorID", this.CantidadOpciones);
            IVendedor oVendedor = VendedorFactory.GetVendedor();

            oVendedor.Apellido = this.txtApellido.Text;
            //oVendedor.VendedorID = this.txtVendedorID.Text == "" ? 0 : Convert.ToInt32(this.txtVendedorID.Text);
            oVendedor.NroLegajo           = this.txtNroLegajo.Text == "" ? "0" : this.txtNroLegajo.Text;
            this.dtgVendedores.DataSource = oVendedor.GetVendedoresConsultaDataSet();            //.Datos.Select("","Apellido");
            Session["DsVendedores"]       = (DsVendedores)this.dtgVendedores.DataSource;
            this.dtgVendedores.DataBind();
        }