Exemple #1
0
        //
        // GET: /WorkflowSettings/GetMapping/5
        public ActionResult GetMapping(int formid, int?stateid)
        {
            WorkflowMappingDetails model;

            if (stateid.HasValue && stateid.Value > 0)
            {
                var wfstate = _workflowSettingBLL.GetAllById(stateid.Value);
                var page    = _pageBLL.GetPageByID(formid);
                model         = new WorkflowMappingDetails();
                model.Form_Id = page.PAGE_ID;
                model.Modul   = page.MENU_NAME;
                //model.StateMappingId = wfstate.ACTION_ID.ToString();
                //model.State = wfstate.ACTION_NAME;
                model.ListUser = AutoMapper.Mapper.Map <List <WorkflowUsers> >(wfstate.WORKFLOW_STATE_USERS.ToList());
                //model.
                //model.
            }
            else
            {
                model = new WorkflowMappingDetails();
                var page = _pageBLL.GetPageByID(formid);
                model.Form_Id = page.PAGE_ID;
                model.Modul   = page.MENU_NAME;
            }

            model.UserSelectList    = new SelectList(_userBLL.GetUsers(), "EMAIL", "USER_ID");
            model.EmailTemplateList = new SelectList(_emailTemplateBLL.getAllEmailTemplates(), "EMAIL_TEMPLATE_ID", "TEMPLATE_NAME");
            return(PartialView("GetMappingPartial", model));
        }
Exemple #2
0
        //
        // GET: /EmailTemplate/
        public ActionResult Index()
        {
            var model = new EmailTemplateIndexModel();

            model.Details  = AutoMapper.Mapper.Map <List <EmailTemplateModel> >(_emailTemplateBll.getAllEmailTemplates());
            model.MainMenu = _mainMenu;
            return(View("Index", model));
        }