Пример #1
0
        private void fillpost()
        {
            JEOrganizationChart tmpJEOrganizationChart = new JEOrganizationChart();

            LbPost.DisplayMember = "title";
            LbPost.ValueMember   = "Code";
            LbPost.DataSource    = tmpJEOrganizationChart.GetUserPostsByUser_code(JMainFrame.CurrentPersonCode);
            LbPost.SelectedItem  = 1;
        }
Пример #2
0
        private void FillPost()
        {
            JEOrganizationChart tmpJEOrganizationChart = new JEOrganizationChart();

            LbPost.DisplayMember = "title";
            LbPost.ValueMember   = "Code";
            LbPost.DataSource    = tmpJEOrganizationChart.GetUserPostsByUser_code(_user_code);
            LbPost.SelectedItem  = 1;
            _user_post_code      = Convert.ToInt32(((DataRowView)(LbPost.SelectedItem))["code"]);
        }