Ejemplo n.º 1
0
        public JsonResult DDLFilterUpdataBind(string currentFieldId, string Id)
        {
            RelianceController.FormFieldController formFieldController = new RelianceController.FormFieldController();
            DropDownValueDoList dropDownValueDoList = formFieldController.DDlFilterDataValue(currentFieldId, Id);

            return(Json(new { Responses = dropDownValueDoList }, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public JsonResult DropDownData(string FormId, string FieldId)
        {
            FormFieldController formFieldController = new FormFieldController();
            DropDownValueDoList dropdownvalue       = formFieldController.DropDownvaluebind(FormId, FieldId);

            return(Json(new { Responses = dropdownvalue }, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
        public JsonResult DropDownFunctionValue(string colloumType, string fieldName, string fieldtype, string ColloumName, string formName)
        {
            RelianceController.FormFieldController formFieldController = new RelianceController.FormFieldController();
            DropDownValueDoList dropdownvalue = formFieldController.DropDownFunctionbind(colloumType, formName, fieldtype, fieldName, ColloumName);

            return(Json(new { Responses = dropdownvalue }, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 4
0
        public JsonResult GPSVehicle(string FormId, string FieldId)
        {
            RelianceController.FormFieldController formFieldController = new  RelianceController.FormFieldController();
            DropDownValueDoList EditDynamicDataList = formFieldController.DropDownvaluebind(FormId, FieldId);

            return(Json(new { Response = EditDynamicDataList }, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 5
0
        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));
                }
            }
        }