public ActionResult TemplateSectionList(int formID)
        {
            PermitFormScreenDesignTemplateDetailModelBE model = new PermitFormScreenDesignTemplateDetailModelBE();

            model.TemplateSectionDetail = FormLogic.FetchAllTemplateFormSection(formID);
            return(PartialView("TemplateSectionList", model));
        }
        public ActionResult EditPermitFormField(int formID, int fieldID)
        {
            PermitFormScreenDesignTemplateDetailBE model;

            model = FormLogic.FetchPermitFormScreenDesignTemplateDetail(formID, fieldID);
            if (model == null)
            {
                model = new PermitFormScreenDesignTemplateDetailBE();
            }

            ViewData["SectionList"] = FormLogic.FetchAllTemplateFormSection(formID).Select(m => new SelectListItem()
            {
                Text  = m.Section,
                Value = m.Section
            });

            return(View(model));
        }
        public ActionResult PermitFormScreenDesignTemplateDetail(int formID)
        {
            PermitFormScreenDesignTemplateDetailModelBE model = new PermitFormScreenDesignTemplateDetailModelBE();

            model.TemplateDetails = new List <PermitFormScreenDesignTemplateDetailBE>();

            PermitFormScreenDesignTemplateBE permitFormScreenDesignTemplate = FormLogic.FetchPermitFormScreenDesignTemplate(formID);

            if (permitFormScreenDesignTemplate != null)
            {
                model.FormID      = permitFormScreenDesignTemplate.FormID;
                model.Design      = permitFormScreenDesignTemplate.Design;
                model.Description = permitFormScreenDesignTemplate.Description;
                model.Active      = permitFormScreenDesignTemplate.Active;
            }
            model.TemplateSectionDetail = FormLogic.FetchAllTemplateFormSection(model.FormID);
            return(View(model));
        }
        public ActionResult FormDesignTemplateDetail(int formID)
        {
            FormDesignTemplateDetailModel model = new FormDesignTemplateDetailModel();

            model.TemplateDetails = new List <FormDesignTemplateDetailBE>();

            FormDesignTemplateBE formDesignTemplate = FormLogic.FetchFormDesignTemplate(formID);

            if (formDesignTemplate != null)
            {
                model.FormID      = formDesignTemplate.FormID;
                model.Design      = formDesignTemplate.Design;
                model.Description = formDesignTemplate.Description;
                model.Active      = formDesignTemplate.Active;
            }
            model.TemplateSectionDetail = FormLogic.FetchAllTemplateFormSection(model.FormID);
            return(View(model));
        }