Beispiel #1
0
        public void GetData()
        {
            int id = 0;

            Dictionary <string, string> ConstantList;

            ConstantList         = ConstantRepository.GetConstantByCategory("Status");
            ViewBag.ConstantList = new SelectList(ConstantList, "Key", "Value", id);

            Dictionary <int, string> MemberList;

            MemberList         = MemberRepository.GetMemberList();
            ViewBag.MemberList = new SelectList(MemberList, "Key", "Value", id);

            Dictionary <int, string> FamilyList;

            FamilyList         = FamilyRepository.GetFamilyList();
            ViewBag.FamilyList = new SelectList(FamilyList, "Key", "Value", id);

            Dictionary <int, string> MemberContrubutionFundList;

            MemberContrubutionFundList         = ConstantRepository.GetConstantByCategoryID("Member Contribution");
            ViewBag.MemberContrubutionFundList = new SelectList(MemberContrubutionFundList, "Key", "Value", id);

            Dictionary <string, string> TaxReportYear = new Dictionary <string, string>();
            int byear = DateTime.Now.Year;

            for (int i = byear - 1; i <= byear + 1; i += 1)
            {
                TaxReportYear.Add(i.ToString(), i.ToString());
            }
            ViewBag.TaxReportYear = new SelectList(TaxReportYear, "Key", "Value", id);
        }
Beispiel #2
0
        public void GetData()
        {
            int id = 0;

            Dictionary<string, string> ConstantList;
            ConstantList = ConstantRepository.GetConstantByCategory("Status");
            ViewBag.ConstantList = new SelectList(ConstantList, "Key", "Value", id);

            Dictionary<int, string> MemberList;
            MemberList = MemberRepository.GetMemberList();
            ViewBag.MemberList = new SelectList(MemberList, "Key", "Value", id);

            Dictionary<int, string> FamilyList;
            FamilyList = FamilyRepository.GetFamilyList();
            ViewBag.FamilyList = new SelectList(FamilyList, "Key", "Value", id);

            Dictionary<int, string> MemberContrubutionFundList;
            MemberContrubutionFundList = ConstantRepository.GetConstantByCategoryID("Member Contribution");
            ViewBag.MemberContrubutionFundList = new SelectList(MemberContrubutionFundList, "Key", "Value", id);
        }
Beispiel #3
0
        public void GetData()
        {
            int id = 0;

            Dictionary <string, string> ConstantList;

            ConstantList       = ConstantRepository.GetConstantByCategory("Status");
            ViewBag.StatusList = new SelectList(ConstantList, "Key", "Value", id);

            Dictionary <int, string> MemberList;

            MemberList         = MemberRepository.GetMemberList();
            ViewBag.MemberList = new SelectList(MemberList, "Key", "Value", id);

            Dictionary <int, string> FamilyList;

            FamilyList         = FamilyRepository.GetFamilyList();
            ViewBag.FamilyList = new SelectList(FamilyList, "Key", "Value", id);

            Dictionary <string, string> ChurchTitleList;

            ChurchTitleList         = ConstantRepository.GetConstantByCategory("Church Title");
            ViewBag.ChurchTitleList = new SelectList(ChurchTitleList, "Key", "Value", id);
        }