// GET: SysAdmin
        public ActionResult Index(int?Org, int?Prcs, int?Act)
        {
            SysAdminViewModel SysadminObj = new SysAdminViewModel();

            SysadminObj.OrgArray              = DMLObj.GetOrgList(Org);
            SysadminObj.ProcessArray          = DMLObj.GetProcessList(Prcs);
            SysadminObj.ProcessTypeArray      = DMLObj.GetAllProcessTypes();
            SysadminObj.ActivityTypeArray     = DMLObj.GetAllActivityTypes();
            SysadminObj.ActivityItemTypeArray = DMLObj.GetAllActivityItemTypes();
            SysadminObj.UserTypeArray         = DMLObj.GetUserTypeList();
            SysadminObj.AccessArray           = DMLObj.GetAccessList();
            SysadminObj.QualityIndexArray     = DMLObj.GetQualityIndexList();

            SysadminObj.CurrentOrgId       = Org;
            SysadminObj.CurrentOrgParentId = DMLObj.GetParentOrgId(Org);
            SysadminObj.CurrentProcessId   = Prcs;
            SysadminObj.CurrentActId       = Act;
            return(View(SysadminObj));
        }
示例#2
0
        public ActionResult Add()
        {
            var OrgsObj = DMLObj.GetOrganizationList();

            ViewBag.AllOrganizations = AutoMapper.Mapper.Map <IEnumerable <AMOrganization>, IEnumerable <JsonOrganizationViewModel> >(OrgsObj);
            ViewBag.ActivityTypes    = DMLObj.GetAllActivityTypes();

            var ProcessObj = DMLObj.GetProcessList();

            ViewBag.AllProcesses = AutoMapper.Mapper.Map <IEnumerable <AMProcess>, IEnumerable <JsonProcessViewModel> >(ProcessObj);

            return(View());
        }