Exemplo n.º 1
0
 public static HtmlString FormControl(this HtmlHelper helper, int fieldid, int ID = 0, string defaultValue = "")
 {
     return(HtmlControllHelper.InitMetadataHtml(new FormControllerModel()
     {
         FieldID = fieldid,
         ID = ID,
         DefaultValue = defaultValue
     }));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 自定义控件
 /// </summary>
 public static HtmlString FormCustomizeControl(this HtmlHelper helper, int fieldid, int ID = 0, string className = "",
                                               string customizeFieldName = "", string defaultValue = "", string attr = "")
 {
     return(HtmlControllHelper.InitMetadataHtml(new FormControllerModel()
     {
         FieldID = fieldid,
         ID = ID,
         DefaultValue = defaultValue,
         IsCustomize = true,
         CustomizeFieldName = customizeFieldName,
         Attr = attr,
         ClassName = " CustomizeController " + className
     }));
 }
Exemplo n.º 3
0
 public static HtmlString FormCustomizeControl(this HtmlHelper helper, FormControllerModel model)
 {
     model.IsCustomize = true;
     model.ClassName   = " CustomizeController " + model.ClassName;
     return(HtmlControllHelper.InitMetadataHtml(model));
 }
Exemplo n.º 4
0
 public static HtmlString FormControl(this HtmlHelper helper, FormControllerModel model)
 {
     return(HtmlControllHelper.InitMetadataHtml(model));
 }