Пример #1
0
    private string findFormByType()
    {
        string   type     = Request.Form["type"];
        UserInfo userInfo = (UserInfo)Session["user"];

        return(FormBuilderHelper.findFormByType(type, userInfo));
    }
Пример #2
0
    private string findFormById()
    {
        string   id       = Request.Form["id"];
        UserInfo userInfo = (UserInfo)Session["user"];

        return(FormBuilderHelper.findDetail(id, userInfo.userId.ToString()));
    }
Пример #3
0
    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));
    }
Пример #4
0
    private string showDraftData()
    {
        string id       = Request.Form["id"];
        string formName = Request.Form["formName"];

        return(FormBuilderHelper.showDraftData(id, formName));
    }
Пример #5
0
    private string updateRight()
    {
        string visionJson = Request.Form["visionJson"].ToString();
        string id         = Request.Form["id"];

        return(FormBuilderHelper.updateRight(visionJson, id));
    }
Пример #6
0
    private string updateFormTypeAndValid()
    {
        string id    = Request.Form["id"];
        string type  = Request.Form["type"];
        string valid = Request.Form["valid"];

        return(FormBuilderHelper.updateFormTypeAndValid(id, type, valid));
    }
Пример #7
0
    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));
    }
Пример #8
0
 private string initDatagrid()
 {
     return(FormBuilderHelper.findAllForms());
 }
Пример #9
0
    private string hasUsedForm()
    {
        string formName = Request.Form["formName"];

        return(FormBuilderHelper.hasUsedForm(formName));
    }
Пример #10
0
    private string getHasRight()
    {
        string id = Request.Form["id"];

        return(FormBuilderHelper.getHasRight(id));;
    }
Пример #11
0
 /// <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);
 }