Example #1
0
        private void BindParentDept()
        {
            SecurityManage secruty = new SecurityManage();
            DataTable      dtDept  = secruty.getAllDept();

            cmbParentDept.DataSource    = dtDept;
            cmbParentDept.ValueMember   = "部门ID";
            cmbParentDept.DisplayMember = "部门名称";
            cmbParentDept.DataBind();

            cmbParentDept.SelectedIndex = 0;            //cmbParentDept.FindString("云南人才市场");

            cmbParentDept2.DataSource    = dtDept;
            cmbParentDept2.ValueMember   = "部门ID";
            cmbParentDept2.DisplayMember = "部门名称";
            cmbParentDept2.DataBind();

            cmbParentDept2.SelectedIndex = 0;            //cmbParentDept2.FindString("云南人才市场");

            cmbParentDept3.DataSource    = dtDept;
            cmbParentDept3.ValueMember   = "部门ID";
            cmbParentDept3.DisplayMember = "部门名称";
            cmbParentDept3.DataBind();

            cmbParentDept3.SelectedIndex = 0;            //cmbParentDept3.FindString("云南人才市场");

            this.ultraGrid1.DataSource = dtDept;
            this.ultraGrid1.DataBind();

            BindOper();
        }
Example #2
0
        private void BindDept()
        {
            SecurityManage secruty = new SecurityManage();
            DataTable      dtDept  = secruty.getAllDept();


            cmbDept.DataSource    = dtDept;
            cmbDept.ValueMember   = "部门ID";
            cmbDept.DisplayMember = "部门名称";
            cmbDept.DataBind();
            cmbDept.SelectedIndex = 0;

            cmbDept2.DataSource    = dtDept;
            cmbDept2.ValueMember   = "部门ID";
            cmbDept2.DisplayMember = "部门名称";
            cmbDept2.DataBind();
            cmbDept2.SelectedIndex = 0;

            cmbDept3.DataSource    = dtDept;
            cmbDept3.ValueMember   = "部门ID";
            cmbDept3.DisplayMember = "部门名称";
            cmbDept3.DataBind();
            cmbDept3.SelectedIndex = 0;

            BindOper();
        }