コード例 #1
0
        public ActionResult View(int id)
        {
            FormDataModel form = FormBO.GetInstance().Get(id);

            FormUIModel model = new FormUIModel();

            model.Name   = form.Name;
            model.Fields = FormdetailBO.GetInstance().GetByForm(id);

            return(View(model));
        }
コード例 #2
0
        public ActionResult ChildrenField(int id)
        {
            int count = FormdetailBO.GetInstance().GetCount(id);

            ChildrenFieldUIModel model = new ChildrenFieldUIModel()
            {
                ID        = id,
                Count     = count,
                ClassName = ""
            };

            return(View("ChildrenField", model));
        }
コード例 #3
0
        public ActionResult Create(FormdetailDataModel formdetail)
        {
            FormdetailBO.GetInstance().Create(formdetail);

            if (Session["formdetailParentID"] != null)
            {
                return(RedirectToAction("Index", new { id = Convert.ToInt32(Session["formdetailParentID"]) }));
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }
コード例 #4
0
        public ActionResult Delete(int id)
        {
            FormdetailBO.GetInstance().Delete(id);

            return(Json(new { success = true }, JsonRequestBehavior.AllowGet));
        }
コード例 #5
0
 public ActionResult Edit(int id)
 {
     return(View(FormdetailBO.GetInstance().Get(id)));
 }
コード例 #6
0
        //
        // GET: /ManageFormdetail/

        public ActionResult Index(int id = 0)
        {
            return(View(FormdetailBO.GetInstance().GetAll(id)));
        }