Beispiel #1
0
        public async Task <ActionResult> EditUserFilterRule(int?jobid)
        {
            if (!jobid.HasValue)
            {
                var temp = new UserFilterRuleJob()
                {
                    JobName       = "会员筛选任务",
                    JobStatus     = JobStatus.Created,
                    Description   = "会员筛选任务",
                    CreateUser    = CurrentUser.Name,
                    ModifyUser    = CurrentUser.Name,
                    PreviewStatus = PreviewStatus.Created
                };
                var pkid = await UserFilterService.InsertUserFilterRuleJobAsync(temp);

                return(RedirectToAction("EditUserFilterRule", new { jobid = pkid }));
            }
            var configs = await UserFilterService.SelectAllUserFilterValueConfigAsync();

            var job = await Service.UserFilterService.SelectUserFilterRuleJobsAsync(jobid.Value);

            ViewBag.configs = configs;
            ViewBag.job     = job;
            ViewBag.jobid   = jobid.Value;
            return(View());
        }
Beispiel #2
0
        public async Task <ActionResult> SelectFilterRuleOutResult(int?jobid)
        {
            if (!jobid.HasValue)
            {
                var job = new UserFilterRuleJob()
                {
                    JobName       = "会员筛选任务",
                    JobStatus     = JobStatus.Created,
                    Description   = "会员筛选任务",
                    CreateUser    = CurrentUser.Name,
                    ModifyUser    = CurrentUser.Name,
                    PreviewStatus = PreviewStatus.Created
                };
                var pkid = await UserFilterService.InsertUserFilterRuleJobAsync(job);

                return(RedirectToAction("SelectFilterRuleOutResult", new { jobid = pkid }));
            }
            var userselectconfigs = await UserFilterService.SelectUserFilterResultConfigAsync(jobid.Value);

            ViewBag.userselectconfigs = userselectconfigs;
            ViewData["jobid"]         = jobid.Value;
            return(View());
        }