public ActionResult List(string frmid)
 {
     FormBuilder.Model.FBForm model = new Model.FBForm();
     model = this._service.getModel(frmid);
     model.ToolBarConfig
         = Newtonsoft.Json.JsonConvert.SerializeObject(this._service.getToolBarTree(model.ID));
     model.SchemaInfo = Newtonsoft.Json.JsonConvert.SerializeObject(this._serviceModel.getModelSchemaForWeb(model.ModelID));
     return(View(model));
 }
 public ActionResult ListRequire(string frmid)
 {
     Model.FBForm model = new Model.FBForm();
     model = this._service.getModel(frmid);
     model.ToolBarConfig
         = Newtonsoft.Json.JsonConvert.SerializeObject(this._service.getToolBarTree(model.ID, true));
     model.SchemaInfo = Newtonsoft.Json.JsonConvert.SerializeObject(this._serviceModel.getModelSchemaForWeb(model.ModelID));
     model.dsSchema   = Newtonsoft.Json.JsonConvert.SerializeObject(this._service.getCustomDSSchema(frmid));
     if (!string.IsNullOrEmpty(model.ExpressInfo))
     {
         model.ExpressInfo = BASE64.DeCode(model.ExpressInfo);
     }
     return(View(model));
 }
 public ActionResult Preview(string dataid)
 {
     Model.FBForm model = new Model.FBForm();
     model = this._service.getModel(dataid);
     if (model.Type == "1")
     {
         Response.Redirect("Dict?frmid=" + dataid);
     }
     else if (model.Type == "2")
     {
         Response.Redirect("List?frmid=" + dataid);
     }
     else
     {
         Response.Redirect("Card?frmid=" + dataid);
     }
     return(View(model));
 }
Exemple #4
0
 public ActionResult FormCode(string dataid)
 {
     Model.FBForm model = this._service.getModel(dataid);
     return(View(model));
 }