Beispiel #1
0
        private void llenaGrilla()
        {
            ServicioGeneralClient servicioGeneral = new ServicioGeneralClient();
            var withBlock = dtgCampanas;

            withBlock.DataSource = servicioGeneral.getCampanas(3, 0);
        }
 private void cargaCombos()
 {
     {
         var withBlock = cboCampanaEntrega;
         withBlock.DataSource    = ServicioGeneral.getCampanas(1, 0);
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedValue = 0;
     }
 }
 private void cargaCombos()
 {
     ServicioGeneralClient servicioGeneral = new ServicioGeneralClient();
     {
         var withBlock = cboPais;
         withBlock.DataSource    = servicioGeneral.getPaises(1, 0);
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedIndex = 0;
     }
     {
         var withBlock = cboTipoDocumento;
         withBlock.DataSource    = servicioGeneral.getTiposDocumento(1, 0);
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedIndex = 0;
     }
     {
         var withBlock = cboEstadoCivil;
         withBlock.DataSource    = servicioGeneral.getEstadoCivil(1, 0);
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedIndex = 0;
     }
     {
         var withBlock = cboTipoCliente;
         withBlock.DataSource    = servicioGeneral.getTipoCliente(1, 0);
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedIndex = 0;
     }
     {
         var withBlock = cboFormaPago;
         withBlock.DataSource    = servicioGeneral.getFormaPago(1, 0);
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedIndex = 0;
     }
     {
         var withBlock = cboCampanavinculacion;
         withBlock.DataSource    = servicioGeneral.getCampanas(1, 0);
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedIndex = 0;
     }
     {
         var withBlock = cboFormaIngreso;
         withBlock.DataSource    = servicioGeneral.getformasIngreso(1, 0);
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedIndex = 0;
     }
     {
         var withBlock = cboTipoReferencia;
         withBlock.DataSource    = servicioGeneral.getTipoReferencia(1, 0);
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedIndex = 0;
     }
     {
         var withBlock = cboGenero;
         withBlock.DataSource    = servicioGeneral.GetGeneros(1, 0);
         withBlock.ValueMember   = "CODIGO";
         withBlock.DisplayMember = "NOMBRE";
         withBlock.SelectedIndex = 0;
     }
 }