public JsonResult DropDownData(string FormId, string FieldId) { FormFieldController formFieldController = new FormFieldController(); DropDownValueDoList dropdownvalue = formFieldController.DropDownvaluebind(FormId, FieldId); return(Json(new { Responses = dropdownvalue }, JsonRequestBehavior.AllowGet)); }
public JsonResult DropDownDataIsRoleAssignMent(string FormId, string FieldId, string UserId, string RoleId, string Form) { IsRoleAssignmentController isRoleAssignmentController = new IsRoleAssignmentController(); IsROleAssignmentDo lsROleAssignmentDo = isRoleAssignmentController.IsROleAssignment(FormId, FieldId, UserId, RoleId, Form); if (lsROleAssignmentDo.DocumentDataid == "") { FormFieldController formFieldController = new FormFieldController(); DropDownValueDoList dropdownvalue = formFieldController.DropDownvaluebind(FormId, FieldId); return(Json(new { Responses = dropdownvalue }, JsonRequestBehavior.AllowGet)); } else { if (lsROleAssignmentDo.IsEdit == 1 && lsROleAssignmentDo.IsCreate == 1 & lsROleAssignmentDo.Userid == Convert.ToInt32(Session["LOGGED_UserId"])) { FormFieldController formFieldController = new FormFieldController(); DropDownValueDoList dropdownvalue = formFieldController.DropDownvaluewithRole(FormId, FieldId, lsROleAssignmentDo.DocumentDataid); return(Json(new { Responses = dropdownvalue }, JsonRequestBehavior.AllowGet)); } if (lsROleAssignmentDo.IsCreate == 1 & lsROleAssignmentDo.Userid == Convert.ToInt32(Session["LOGGED_UserId"])) { FormFieldController formFieldController = new FormFieldController(); DropDownValueDoList dropdownvalue = formFieldController.DropDownvaluewithRole(FormId, FieldId, lsROleAssignmentDo.DocumentDataid); return(Json(new { Responses = dropdownvalue }, JsonRequestBehavior.AllowGet)); } if (lsROleAssignmentDo.IsEdit == 1 & lsROleAssignmentDo.Userid == Convert.ToInt32(Session["LOGGED_UserId"])) { FormFieldController formFieldController = new FormFieldController(); DropDownValueDoList dropdownvalue = formFieldController.DropDownvaluewithRole(FormId, FieldId, lsROleAssignmentDo.DocumentDataid); return(Json(new { Responses = dropdownvalue }, JsonRequestBehavior.AllowGet)); } else { FormFieldController formFieldController = new FormFieldController(); DropDownValueDoList dropdownvalue = formFieldController.DropDownvaluebind(FormId, FieldId); return(Json(new { Responses = dropdownvalue }, JsonRequestBehavior.AllowGet)); } } }