예제 #1
0
        public void TinhDiem()
        {
            List <congty> listCongty = DatabaseUtility.GetAllCty();
            Dictionary <string, List <bctc> > bctcDic = DatabaseUtility.GetAllBctc();
            int count = listCongty.Count;

            for (int i = 0; i < count; i++)
            {
                ScoreItemViewModel item = new ScoreItemViewModel();
                item.MaCK = listCongty[i].mack;
                TinhToanDiem(bctcDic[listCongty[i].mack], item);
                ListScoreItemVM.Add(item);
            }
            SapXep();
        }
예제 #2
0
        public void KiemTraDuLieu()
        {
            List <congty> listCongty = DatabaseUtility.GetAllCty();
            Dictionary <string, List <bctc> > bctcDic = DatabaseUtility.GetAllBctc();
            int count  = listCongty.Count;
            int number = 1;

            for (int i = 0; i < count; i++)
            {
                bool result = CheckBaoCao(bctcDic[listCongty[i].mack]);
                if (!result)
                {
                    Console.WriteLine("{0} Ma chung khoan: {1}", number, listCongty[i].mack);
                    number++;
                }
            }
        }