Beispiel #1
0
        private void LoadDropdowns()
        {
            List <MemberLookupDto> lstMemberDto = _memberService.LookUp(GroupInfo.GroupID);
            SelectList             lstmember    = new SelectList(lstMemberDto, "MemberID", "MemberName");

            ViewBag.MemberNames = lstmember;

            List <SelectListDto> lstProjects = _projectService.GetProjectSelectList();
            SelectList           slProjects  = new SelectList(lstProjects, "ID", "Text");

            ViewBag.projects = slProjects;

            List <LoanPurposeLookupDto> lstLoanpurposeDto = _loanpurposeService.Lookup();
            SelectList lstloanpurpose = new SelectList(lstLoanpurposeDto, "LoanPurposeID", "Purpose");

            ViewBag.LoanPurposeName = lstloanpurpose;

            List <GroupMeetingDto> lstGroupMeetings = _groupOtherReceiptService.GetGroupOpenMeetingDates(GroupInfo.GroupID);

            ViewBag.MonthMeetings = new SelectList(lstGroupMeetings, "DisplayMeetingDate", "DisplayMeetingDate");

            InterestService      _interestService = new InterestService();
            List <SelectListDto> slistInterestDto = _interestService.GetInterestsSelectList(GroupInfo.GroupID);

            ViewBag.Interest = new SelectList(slistInterestDto, "ID", "Text");

            List <SelectListDto> modes = GetMasterDropDownDto("MEETING_FREQUENCY");

            ViewBag.Modes = new SelectList(modes, "ID", "Text", modes.Find(l => l.Code == "MONTH").ID);

            ViewBag.MeetingDueDay = GroupInfo.MeetingDay;

            ViewBag.RoleCode = UserInfo.RoleCode;
        }
Beispiel #2
0
        public void LoadOtherReceiptDropDowns()
        {
            TypeQueryResult lst = _masterService.GetTypeQueryResult("GROUP_GL_ACCOUNT_HEADS", "G,B,M");

            ViewBag.lstGLAcHeads = new SelectList(lst.OrderBy(a => a.Name).Where(b => b.Name.Split(new string[] { "::" }, StringSplitOptions.None)[1].StartsWith("1") || b.Name.Split(new string[] { "::" }, StringSplitOptions.None)[1].StartsWith("2") || b.Name.Split(new string[] { "::" }, StringSplitOptions.None)[1].StartsWith("4")), "Id", "Name");

            TypeQueryResult lstBankAh = _masterService.GetTypeQueryResult("GROUP_OR_BANK_AH", GroupInfo.GroupID.ToString());

            ViewBag.slBankAh = new SelectList(lstBankAh.OrderBy(a => a.Name), "Id", "Name");

            TypeQueryResult lstEmp = _masterService.GetTypeQueryResult("ACT_EMPLOYEES", GroupInfo.GroupID.ToString());

            ViewBag.slEmp = new SelectList(lstEmp, "Id", "Name", UserInfo.UserID);

            List <GroupMeetingDto> lstGroupMeetings = _groupOtherReceiptService.GetGroupOpenMeetingDates(GroupInfo.GroupID);

            ViewBag.MonthMeetings = new SelectList(lstGroupMeetings, "DisplayMeetingDate", "DisplayMeetingDate");
        }
        public void LoadMemberReceiptDropDowns()
        {
            TypeQueryResult lstBankAh = _masterService.GetTypeQueryResult("GROUP_OR_BANK_AH", GroupInfo.GroupID.ToString());

            ViewBag.slBankAh = new SelectList(lstBankAh.OrderBy(a => a.Name), "Id", "Name");

            TypeQueryResult lstEmp = _masterService.GetTypeQueryResult("ACT_EMPLOYEES", GroupInfo.GroupID.ToString());

            ViewBag.slEmp = new SelectList(lstEmp, "Id", "Name", UserInfo.UserID);

            List <MemberDto> lstMembers = _groupMemberReceiptService.GetMembersByGroupId(GroupInfo.GroupID);

            ViewBag.grpMembers = new SelectList(lstMembers, "MemberId", "MemberName", "Select Member");

            List <GroupMeetingDto> lstGroupMeetings = _groupOtherReceiptService.GetGroupOpenMeetingDates(GroupInfo.GroupID);

            ViewBag.MonthMeetings = new SelectList(lstGroupMeetings, "DisplayMeetingDate", "DisplayMeetingDate");
        }