コード例 #1
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            C_Cliente cli = new C_Cliente();

            dtgrdclientes.ItemsSource = cli.listarPendientes((int)user.telemark);
            //llenar los combobox con listas dependiendo del tipo


            C_TipoDocumento tdoc = new C_TipoDocumento();

            cmbtipo.ItemsSource       = tdoc.listarDocumento();
            cmbtipo.DisplayMemberPath = "descripcion";
            cmbtipo.SelectedValuePath = "id_td";

            cmbtipoA.ItemsSource       = tdoc.listarDocumento();
            cmbtipoA.DisplayMemberPath = "descripcion";
            cmbtipoA.SelectedValuePath = "id_td";

            C_Pais pais = new C_Pais();

            cmbPais.ItemsSource       = pais.listarPaises();
            cmbPais.DisplayMemberPath = "nombre";
            cmbPais.SelectedValuePath = "id_pais";

            statusPrincipal stsp = new statusPrincipal();

            cmbStatusPrincipal.ItemsSource       = stsp.listarStatusPrincipal();
            cmbStatusPrincipal.DisplayMemberPath = "descripcion";
            cmbStatusPrincipal.SelectedValuePath = "id_statusPrincipal";

            C_Locacion loc = new C_Locacion();

            cmbLocacion.ItemsSource       = loc.listarLocaciones();
            cmbLocacion.DisplayMemberPath = "codigo";
            cmbLocacion.SelectedValuePath = "idlocacion";
            cmbtipo.Focus();

            cmbPromotor.ItemsSource       = llenarCombo();
            cmbPromotor.DisplayMemberPath = "Value";
            cmbPromotor.SelectedValuePath = "Key";
            //lista de edos civiles
            cmbEdoCivil.Items.Add("CASADO(A)");
            cmbEdoCivil.Items.Add("SOLTERO(A) SOLO(A)");
            cmbEdoCivil.Items.Add("SOLTERO(A) CON PAREJA");
            cmbEdoCivil.Items.Add("VIUDO(A)");
            cmbEdoCivil.Items.Add("DIVORCIADO(A)");
            cmbEdoCivil.Items.Add("CONVIVIENTE");
        }
コード例 #2
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            statusPrincipal stsp = new statusPrincipal();

            cmbStatusPrincipal.ItemsSource       = stsp.listarStatusPrincipal();
            cmbStatusPrincipal.DisplayMemberPath = "descripcion";
            cmbStatusPrincipal.SelectedValuePath = "id_statusPrincipal";
            C_Telemarketing tele = new C_Telemarketing();

            cmbTelemarketing.ItemsSource       = llenarCombo();
            cmbTelemarketing.DisplayMemberPath = "Value";
            cmbTelemarketing.SelectedValuePath = "Key";
            C_Locacion loc = new C_Locacion();

            cmbLocacion.ItemsSource       = loc.listarLocaciones();
            cmbLocacion.DisplayMemberPath = "codigo";
            cmbLocacion.SelectedValuePath = "idlocacion";
        }