Exemplo n.º 1
0
        public JsonResult AllFormList(string CompanyId)
        {
            RelianceController.CreateFormMaster createFormMaster = new RelianceController.CreateFormMaster();
            CreateTableDoList createTableDoList = createFormMaster.AllCreateForm(CompanyId);

            return(Json(new { Response = createTableDoList }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public JsonResult FormEdit(string eid, string formid)
        {
            RelianceController.CreateFormMaster createFormMaster = new RelianceController.CreateFormMaster();
            CreateTableDoList EditDynamicDataList = createFormMaster.EditForm(eid, formid);

            return(Json(new { Response = EditDynamicDataList }, JsonRequestBehavior.AllowGet));
            // var data = FormFieldController.GetCategory();
        }
Exemplo n.º 3
0
        public JsonResult UniqueFieldCheck(string Formid, string fieldid, string Value)
        {
            RelianceController.CreateFormMaster createFormMaster = new RelianceController.CreateFormMaster();
            var value = createFormMaster.IsValueExist(Formid, fieldid, Value);

            if (value == true)
            {
                return(Json(new { Response = "OK" }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new { Response = "" }, JsonRequestBehavior.AllowGet));
            }
        }
Exemplo n.º 4
0
 public JsonResult FormCreate(CreateFormTableDo createFormTableDo)
 {
     RelianceController.CreateFormMaster createFormMaster = new  RelianceController.CreateFormMaster();
     createFormMaster.Addform(createFormTableDo);
     return(Json(new { Response = "OnSuccess" }, JsonRequestBehavior.AllowGet));
 }