Exemple #1
0
        public VMEmpSelection GetStepOne(VMLoggedUser LoggedInUser)
        {
            VMEmpSelection obj = new VMEmpSelection();

            obj.Company            = DDService.GetCompany(LoggedInUser).OrderBy(aa => aa.CompanyName).ToList();
            obj.OUCommon           = DDService.GetOUCommon(LoggedInUser).OrderBy(aa => aa.OUCommonName).ToList();
            obj.OrganizationalUnit = DDService.GetOU(LoggedInUser).OrderBy(aa => aa.OUName).ToList();
            obj.EmploymentType     = DDService.GetEmploymentType(LoggedInUser).OrderBy(aa => aa.EmploymentTypeName).ToList();
            obj.Location           = DDService.GetLocation(LoggedInUser).OrderBy(aa => aa.LocationName).ToList();
            obj.Grade       = DDService.GetGrade(LoggedInUser).OrderBy(aa => aa.GradeName).ToList();
            obj.JobTitle    = DDService.GetJobTitle(LoggedInUser).OrderBy(aa => aa.JobTitleName).ToList();
            obj.Designation = DDService.GetDesignation(LoggedInUser).OrderBy(aa => aa.DesignationName).ToList();
            obj.Crew        = DDService.GetCrew(LoggedInUser).OrderBy(aa => aa.CrewName).ToList();
            obj.Shift       = DDService.GetShift(LoggedInUser).OrderBy(aa => aa.ShiftName).ToList();
            return(obj);
        }
        public ActionResult Company()
        {
            List <VMFilterAttribute> vm           = new List <VMFilterAttribute>();
            VMSelectedFilter         vmf          = Session["FiltersModel"] as VMSelectedFilter;
            VMLoggedUser             LoggedInUser = Session["LoggedInUser"] as VMLoggedUser;

            foreach (var item in DDService.GetCompany(LoggedInUser).ToList())
            {
                VMFilterAttribute obj = new VMFilterAttribute();
                obj.FilterID   = item.PCompanyID;
                obj.FilterName = item.CompanyName;
                obj.IsSlected  = vmf.SelectedCompany.Where(aa => aa.FilterID == obj.FilterID).Count() > 0 ? true : false;
                vm.Add(obj);
            }
            return(View(vm));
        }