示例#1
0
 public C_Organigrama(VISTA.V_Organigrama vorganigrama)
 {
     this.vorganigrama = vorganigrama;
     voorganigrama     = new MODELO.VO_Organigrama();
     daoorganigrama    = new MODELO.DAO_Organigrama();
     daoorganigrama.abrirConexion();
     Reload();
 }
        public C_DialogOrganigrama(VISTA.VDialog_Organigrama vdl_organigrama)
        {
            this.vdl_organigrama = vdl_organigrama;
            daoorganigrama       = new MODELO.DAO_Organigrama();
            daoorganigrama.abrirConexion();
            this.vdl_organigrama.cmbPersonal.Items.Clear();
            var items2 = (daoorganigrama.consultaPersonal() as IListSource).GetList();

            this.vdl_organigrama.cmbPersonal.ItemsSource       = items2;
            this.vdl_organigrama.cmbPersonal.DisplayMemberPath = "vchPersonal";
            this.vdl_organigrama.cmbPersonal.SelectedValuePath = "intIdPersonal";
        }