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

            Dictionary <string, string> StatusList;

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

            Dictionary <string, string> VideoCategory;

            VideoCategory         = ConstantRepository.GetConstantByCategory("Video Category");
            ViewBag.VideoCategory = new SelectList(VideoCategory, "Key", "Value", id);

            Dictionary <int, string> MinistryList;

            if (ministryID > 0)
            {
                MinistryList = new Dictionary <int, string>();
                string MinistryName = MinistryRepository.GetMinistryByID(ministryID).MinistryName;
                MinistryList.Add(ministryID, MinistryName);
            }
            else
            {
                MinistryList = MinistryRepository.GetMinistryList();
            }
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);

            Dictionary <int, string> VideoList;

            VideoList         = VideoRepository.GetVideoList(ministryID);
            ViewBag.VideoList = new SelectList(VideoList, "Key", "Value", id);
        }
Example #2
0
        public void GetData()
        {
            int id = 0;

            Dictionary <string, string> StatusList;

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

            Dictionary <int, string> PropertyCategoryList;

            PropertyCategoryList         = ConstantRepository.GetConstantByCategoryID("Property Category");
            ViewBag.PropertyCategoryList = new SelectList(PropertyCategoryList, "Key", "Value", id);

            Dictionary <int, string> MemberList;

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

            Dictionary <string, string> PledgeList;

            PledgeList         = ConstantRepository.GetConstantByCategory("Pledge");
            ViewBag.PledgeList = new SelectList(PledgeList, "Key", "Value", id);

            Dictionary <string, string> MemberContributionList;

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

            Dictionary <int, string> MinistryList;

            MinistryList         = MinistryRepository.GetMinistryList();
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);
        }
Example #3
0
        public void GetData()
        {
            int id = 0;

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

            Dictionary<int, string> MinistryList;
            MinistryList = MinistryRepository.GetMinistryList();
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);

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

            Dictionary<int, string> PublicMinistryList;
            PublicMinistryList = MinistryRepository.GetPublicMinistryList();
            ViewBag.PublicMinistryList = new SelectList(PublicMinistryList, "Key", "Value", id);

            Dictionary<string, string> DefaultMemberType;
            DefaultMemberType = ConstantRepository.GetConstantByCategory("Member Category");
            ViewBag.DefaultMemberType = new SelectList(DefaultMemberType, "Key", "Value", id);

            Dictionary<int, string> MinistryPageStyle;
            MinistryPageStyle = ConstantRepository.GetConstantByCategoryID("Ministry Page Style");
            ViewBag.MinistryPageStyle = new SelectList(MinistryPageStyle, "Key", "Value", id);

            Dictionary<int, string> GroupMinistryList;
            GroupMinistryList = MinistryRepository.GetGroupMinistryList();
            ViewBag.GroupMinistryList = new SelectList(GroupMinistryList, "Key", "Value", id);

        }
Example #4
0
        public void GetData(int ministryID = 0)
        {
            int id = 0;

            if (ministryID > 0)
            {
                Dictionary <int, string> MinistryMemberList;
                MinistryMemberList         = MinistryMemberRepository.GetMinistryMemberList(ministryID);
                ViewBag.MinistryMemberList = new SelectList(MinistryMemberList, "Key", "Value", id);
            }

            Dictionary <string, string> StatusList;

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

            Dictionary <int, string> MinistryList;

            if (ministryID > 0)
            {
                MinistryList = new Dictionary <int, string>();
                string MinistryName = MinistryRepository.GetMinistryByID(ministryID).MinistryName;
                MinistryList.Add(ministryID, MinistryName);
            }
            else
            {
                MinistryList = MinistryRepository.GetMinistryList();
            }
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);

/*
 *          Dictionary<int, string> MeetingList;
 *          MeetingList = MeetingRepository.GetMeetingList();
 *          ViewBag.MeetingList = new SelectList(MeetingList, "Key", "Value", id);
 */
            Dictionary <string, string> MeetingVenueList;

            MeetingVenueList = ConstantRepository.GetConstantByCategory("Church Venue");
            // MeetingVenueList.Add("Conference Call","Conference Call");
            ViewBag.MeetingVenueList = new SelectList(MeetingVenueList, "Key", "Value", id);

            Dictionary <string, string> timeIntervals = new Dictionary <string, string>();
            TimeSpan startTime = new TimeSpan(0, 0, 0);
            DateTime startDate = new DateTime(DateTime.MinValue.Ticks); // Date to be used to get shortTime format.

            for (int i = 0; i < 48; i++)
            {
                int      minutesToBeAdded = 30 * i; // Increasing minutes by 30 minutes interval
                TimeSpan timeToBeAdded    = new TimeSpan(0, minutesToBeAdded, 0);
                TimeSpan t      = startTime.Add(timeToBeAdded);
                DateTime result = startDate + t;
                timeIntervals.Add(result.ToShortTimeString(), result.ToShortTimeString());      // Use Date.ToShortTimeString() method to get the desired format
            }
            ViewBag.TimeIncrementList = new SelectList(timeIntervals, "Key", "Value", id);
        }
Example #5
0
        public void GetData(int ministryID = 0)
        {
            int id = 0;

            Dictionary <string, string> StatusList;

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

            Dictionary <string, string> GoalTypeList;

            GoalTypeList         = ConstantRepository.GetConstantByCategory("Goal Type");
            ViewBag.GoalTypeList = new SelectList(GoalTypeList, "Key", "Value", id);

            Dictionary <int, string> MinistryList;

            MinistryList         = MinistryRepository.GetMinistryList();
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);

            if (ministryID > 0)
            {
                Dictionary <int, string> MinistryMemberList;
                MinistryMemberList         = MinistryMemberRepository.GetMinistryMemberList(ministryID);
                ViewBag.MinistryMemberList = new SelectList(MinistryMemberList, "Key", "Value", id);
            }

            string ratio;
            Dictionary <string, string> CompletionRatioList = new Dictionary <string, string>();

            for (int i = 0; i <= 100; i += 5)
            {
                ratio = string.Format("{0}", i);
                CompletionRatioList.Add(ratio, ratio);
            }
            ViewBag.CompletionRatioList = new SelectList(CompletionRatioList, "Key", "Value", id);

            Dictionary <string, string> CompletionRatioList2 = new Dictionary <string, string>();
            string Quarter  = "Less than Quarter";
            string Half     = "Less than Half";
            string Thirds   = "Less than Third";
            string Full     = "Less than Full";
            string Complete = "Fully Complete";

            CompletionRatioList2.Add(Quarter, Quarter);
            CompletionRatioList2.Add(Half, Half);
            CompletionRatioList2.Add(Thirds, Thirds);
            CompletionRatioList2.Add(Full, Full);
            CompletionRatioList2.Add(Complete, Complete);
            ViewBag.CompletionRatioList2 = new SelectList(CompletionRatioList2, "Key", "Value", id);
        }
Example #6
0
        public void GetData()
        {
            int id = 0;

            Dictionary <string, string> StatusList;

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

            Dictionary <int, string> MinistryList;

            MinistryList         = MinistryRepository.GetMinistryList();
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);
        }
Example #7
0
        public void GetData(int ministryID = 0)
        {
            int id = 0;

            Dictionary <string, string> StatusList;

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

            Dictionary <int, string> MinistryMemberList;

            MinistryMemberList         = MinistryMemberRepository.GetMinistryMemberList(ministryID);
            ViewBag.MinistryMemberList = new SelectList(MinistryMemberList, "Key", "Value", id);

            Dictionary <int, string> ProgramEventList;

            ProgramEventList         = ProgramEventRepository.GetEventList();
            ViewBag.ProgramEventList = new SelectList(ProgramEventList, "Key", "Value", id);

            Dictionary <int, string> CalendarList;

            CalendarList         = CalendarRepository.GetCalendarList();
            ViewBag.CalendarList = new SelectList(CalendarList, "Key", "Value", id);

            Dictionary <int, string> MinistryList;

            MinistryList         = MinistryRepository.GetMinistryList();
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);

            Dictionary <string, string> MeetingVenueList;

            MeetingVenueList         = ConstantRepository.GetConstantByCategory("Church Venue");
            ViewBag.MeetingVenueList = new SelectList(MeetingVenueList, "Key", "Value", id);

            Dictionary <string, string> timeIntervals = new Dictionary <string, string>();
            TimeSpan startTime = new TimeSpan(0, 0, 0);
            DateTime startDate = new DateTime(DateTime.MinValue.Ticks); // Date to be used to get shortTime format.

            for (int i = 0; i < 48; i++)
            {
                int      minutesToBeAdded = 30 * i; // Increasing minutes by 30 minutes interval
                TimeSpan timeToBeAdded    = new TimeSpan(0, minutesToBeAdded, 0);
                TimeSpan t      = startTime.Add(timeToBeAdded);
                DateTime result = startDate + t;
                timeIntervals.Add(result.ToShortTimeString(), result.ToShortTimeString());      // Use Date.ToShortTimeString() method to get the desired format
            }
            ViewBag.TimeIncrementList = new SelectList(timeIntervals, "Key", "Value", id);
        }
Example #8
0
        public void GetData(int ministryID = 0)
        {
            int id = 0;

            Dictionary <string, string> StatusList;

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

            Dictionary <int, string> MinistryList;

            MinistryList         = MinistryRepository.GetMinistryList();
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);

            Dictionary <int, string> ListTypeTable;

            ListTypeTable         = ListTableRepository.GetList(ministryID);
            ViewBag.ListTypeTable = new SelectList(ListTypeTable, "Key", "Value", id);
        }
Example #9
0
        public void GetData(int ministryID = 0)
        {
            int id = 0;

            Dictionary <string, string> StatusList;

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

            Dictionary <int, string> MinistryList;

            MinistryList         = MinistryRepository.GetMinistryList();
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);

            Dictionary <int, string> SubCategoryList;

            SubCategoryList         = ConstantRepository.GetConstantByMinistryIncomeType(ministryID);
            ViewBag.SubCategoryList = new SelectList(SubCategoryList, "Key", "Value", id);
            ViewBag.MinistryCode    = string.Format("{0}&I", ministryID);
        }
Example #10
0
        public void GetData(int meetingID = 0)
        {
            int id = 0;

            Dictionary <string, string> StatusList;

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

            Dictionary <int, string> MinistryList;

            MinistryList         = MinistryRepository.GetMinistryList();
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);

            Dictionary <int, string> MinistryMeetingList;

            MinistryMeetingList         = MeetingRepository.GetMinistryMeetingList(meetingID);
            ViewBag.MinistryMeetingList = new SelectList(MinistryMeetingList, "Key", "Value", id);

            Dictionary <int, string> MeetingAgenda;

            MeetingAgenda         = MeetingAgendaRepository.GetAgendaList(meetingID);
            ViewBag.MeetingAgenda = new SelectList(MeetingAgenda, "Key", "Value", id);
        }
Example #11
0
        public void GetData()
        {
            int id = 0;

            Dictionary <string, string> StatusList;

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

            Dictionary <int, string> EventBudgetList;

            EventBudgetList         = ProgramEventBudgetRepository.GetEventBudgetList("Active");
            ViewBag.EventBudgetList = new SelectList(EventBudgetList, "Key", "Value", id);

            Dictionary <int, string> ProgramEventList;

            ProgramEventList         = ProgramEventRepository.GetEventList();
            ViewBag.ProgramEventList = new SelectList(ProgramEventList, "Key", "Value", id);

            Dictionary <int, string> MinistryList;

            MinistryList         = MinistryRepository.GetMinistryList();
            ViewBag.MinistryList = new SelectList(MinistryList, "Key", "Value", id);
        }