示例#1
0
        private void LoadData()
        {
            PerformanceDAO d   = new PerformanceDAO();
            DataSet        set = d.GetAllPerformance();

            tabData             = set.Tables[0];
            gridCtrl.DataSource = tabData;
        }
示例#2
0
        private void LoadBaseInfo()
        {
            PostDAO d   = new PostDAO();
            DataSet set = d.GetAllPost();

            tabPost = set.Tables[0];

            PerformanceDAO ado = new PerformanceDAO();

            set            = ado.GetAllPerformance();
            tabPerformance = set.Tables[0];

            BenefitDAO bd = new BenefitDAO();

            set        = bd.GetAllBenefit();
            tabBenefit = set.Tables[0];
        }
示例#3
0
        private void LoadBaseInfo()
        {
            PostDAO d   = new PostDAO();
            DataSet set = d.GetAllPost();

            tabPost = set.Tables[0];
            repositoryItemLookUpEditPost.DataSource = tabPost;

            PerformanceDAO ado = new PerformanceDAO();

            set            = ado.GetAllPerformance();
            tabPerformance = set.Tables[0];
            repositoryItemLookUpEditPerformance.DataSource = tabPerformance;

            BenefitDAO bd = new BenefitDAO();

            set        = bd.GetAllBenefit();
            tabBenefit = set.Tables[0];
            repositoryItemLookUpEditBenefit.DataSource = tabBenefit;

            //repositoryItemComboBoxPost.Items.Clear();
            //PostDAO d = new PostDAO();
            //DataSet set = d.GetAllPost();
            //tabPost = set.Tables[0];
            //foreach (DataRow r in tabPost.Rows)
            //{
            //    repositoryItemComboBoxPost.Items.Add(r["Level"].ToString());
            //}

            //repositoryItemComboBoxPerformance.Items.Clear();
            //PerformanceDAO ado = new PerformanceDAO();
            //set = ado.GetAllPerformance();
            //tabPerformance = set.Tables[0];
            //foreach (DataRow r in tabPerformance.Rows)
            //{
            //    repositoryItemComboBoxPerformance.Items.Add(r["Level"].ToString());
            //}
            //repositoryItemComboBoxBenefit.Items.Clear();
            //BenefitDAO bd = new BenefitDAO();
            //set = bd.GetAllBenefit();
            //tabBenefit = set.Tables[0];
            //foreach (DataRow r in tabBenefit.Rows)
            //{
            //    repositoryItemComboBoxBenefit.Items.Add(r["Level"].ToString());
            //}
        }