public ActionResult MasterFormcreates(string formName, string FormWorkFlow_1, FormCollection form)
        {
            var appSettings = form.AllKeys.Where(k => k.StartsWith("AppSettings.")).ToDictionary(k => k, k => form[k]);
            Dictionary <string, object> forma = new Dictionary <string, object>(); form.CopyTo(forma);

            TextBoxList textList = new TextBoxList();

            foreach (String key in form.AllKeys)
            {
                if (key != "FormWorkFlow_1")
                {
                    TextBoxViewModel textBoxList1 = new TextBoxViewModel();
                    textBoxList1.FieldId = key;
                    textBoxList1.Value   = form[key];
                    textList.Add(textBoxList1);
                }
            }
            RelianceController.FormFieldController formFieldController = new RelianceController.FormFieldController();
            TextBoxViewModel textBoxList      = formFieldController.InsertMetada(formName, "", textList);
            MasterDocumentDo masterDocumentDo = new MasterDocumentDo();

            masterDocumentDo.Formid = Convert.ToInt32(TempData["Dataid"]);
            if (FormWorkFlow_1 != "0")
            {
                masterDocumentDo.docid    = textBoxList.IdentityId;
                masterDocumentDo.Formid   = Convert.ToInt32(TempData["Dataid"]);
                masterDocumentDo.UserId   = Convert.ToInt32(Session["LOGGED_UserId"]);
                masterDocumentDo.RoleId   = Convert.ToInt32(Session["LOGGED_ROLE"]);
                masterDocumentDo.FormName = formName;
                MasterDocumentController masterDocumentController = new MasterDocumentController();
                masterDocumentController.AddMasterDocument(masterDocumentDo);
            }
            return(RedirectToAction("MasterFormcreate", "FormMaster", new { LinKType = masterDocumentDo.Formid }));
        }
        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));
        }
        public JsonResult LooKUpdataBind(string currentFieldId, string Id)
        {
            RelianceController.FormFieldController formFieldController = new RelianceController.FormFieldController();
            ListLooKup listLooKup = formFieldController.LookUpDataValue(currentFieldId, Id);

            return(Json(new { Responses = listLooKup }, JsonRequestBehavior.AllowGet));
        }
        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));
        }
        public JsonResult AddFormField(FormsFields formsroledo)
        {
            RelianceController.FormFieldController formFieldController = new RelianceController.FormFieldController();
            formFieldController.AddFormField(formsroledo);

            return(Json(new { Response = formsroledo.Display_name }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult InvoiceTicketData(string formids, string Docid)
        {
            RelianceController.FormFieldController formFieldController = new RelianceController.FormFieldController();
            EditDynamicDataList EditDynamicDataList = formFieldController.EditDynamicData(formids, Docid);

            return(Json(new { Response = EditDynamicDataList }, JsonRequestBehavior.AllowGet));
        }
Exemple #7
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));
        }
        public JsonResult FieldEdit(string formid, string Id)
        {
            RelianceController.FormFieldController formFieldController = new RelianceController.FormFieldController();
            EditDynamicDataList EditDynamicDataList = formFieldController.EditDynamicData(formid, Id);

            return(Json(new { Response = EditDynamicDataList }, JsonRequestBehavior.AllowGet));
            // var data = FormFieldController.GetCategory();
        }
        public ActionResult UpdateFields(string formName, string id, FormCollection form)
        {
            TextBoxList textList = new TextBoxList();

            foreach (String key in form.AllKeys)
            {
                TextBoxViewModel textBoxList1 = new TextBoxViewModel();
                textBoxList1.FieldId = key;
                textBoxList1.Value   = form[key];
                if (key == "id")
                {
                    // textList.Add(textBoxList1);
                }
                else
                {
                    textList.Add(textBoxList1);
                }
            }
            RelianceController.FormFieldController formFieldController = new RelianceController.FormFieldController();
            formFieldController.UpdateMasterField(formName, id, "", textList);
            return(RedirectToAction("MasterFormcreate", "FormMaster", new { LinKType = Convert.ToInt32(TempData["Dataid"]) }));
        }