private string findFormByType() { string type = Request.Form["type"]; UserInfo userInfo = (UserInfo)Session["user"]; return(FormBuilderHelper.findFormByType(type, userInfo)); }
private string findFormById() { string id = Request.Form["id"]; UserInfo userInfo = (UserInfo)Session["user"]; return(FormBuilderHelper.findDetail(id, userInfo.userId.ToString())); }
private string submitForm() { UserInfo userInfo = (UserInfo)Session["user"]; string formData = Request.Form["formData"]; string formName = Request.Form["formName"]; string id = Request.Form["id"]; JObject dt = JsonHelper.Json2DtbByLQ(formData); dt.Add("Level", "1"); dt.Add("Status", "审批中"); string docCode = GenerateDocCode.getYLFormCode(formName); dt.Add("DocCode", docCode); DateTime date = System.DateTime.Now; dt.Add("CreateTime", date.ToString()); string informerJSON = Request.Form["defaultInformer"]; string processJSON = Request.Form["processJson"]; return(FormBuilderHelper.saveFormRecord(formName, dt, processJSON, informerJSON, id, userInfo, docCode)); }
private string showDraftData() { string id = Request.Form["id"]; string formName = Request.Form["formName"]; return(FormBuilderHelper.showDraftData(id, formName)); }
private string updateRight() { string visionJson = Request.Form["visionJson"].ToString(); string id = Request.Form["id"]; return(FormBuilderHelper.updateRight(visionJson, id)); }
private string updateFormTypeAndValid() { string id = Request.Form["id"]; string type = Request.Form["type"]; string valid = Request.Form["valid"]; return(FormBuilderHelper.updateFormTypeAndValid(id, type, valid)); }
private string saveForm() { string formName = Request.Form["formName"]; string formData = Request.Form["formData"]; string parameterData = Request.Form["parameterData"]; UserInfo userInfo = (UserInfo)Session["user"]; return(FormBuilderHelper.saveForm(formName, formData, parameterData, userInfo)); }
private string initDatagrid() { return(FormBuilderHelper.findAllForms()); }
private string hasUsedForm() { string formName = Request.Form["formName"]; return(FormBuilderHelper.hasUsedForm(formName)); }
private string getHasRight() { string id = Request.Form["id"]; return(FormBuilderHelper.getHasRight(id));; }
/// <summary> /// Initializes a new instance of this builder /// </summary> /// <param name="htmlHelper">HtmlHelper instance</param> /// <param name="form">form instance</param> public NgBsFormBuilder(HtmlHelper <TModel> htmlHelper, NgBsForm form) : base(htmlHelper, form) { _form = form; _buildHelper = new FormBuilderHelper(this); }