Beispiel #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
     }));
 }
Beispiel #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
     }));
 }
Beispiel #3
0
 public static HtmlString InitRelationFieldSearchControler(this HtmlHelper helper, SearchField field)
 {
     return(HtmlControllHelper.InitRelationFieldSearchControler(field));
 }
Beispiel #4
0
 public static HtmlString InitSearchControler(this HtmlHelper helper, SearchField field)
 {
     field.ClassName = "inputText";
     return(HtmlControllHelper.InitSearchControler(field));
 }
Beispiel #5
0
 public static HtmlString GetValue(this HtmlHelper helper, int fieldid, int ID)
 {
     return(HtmlControllHelper.GetValue(fieldid, ID));
 }
Beispiel #6
0
 public static HtmlString GetText(this HtmlHelper helper, int fieldid, int ID, string defaultvalue = "")
 {
     return(HtmlControllHelper.GetText(fieldid, ID, defaultvalue));
 }
Beispiel #7
0
 public static HtmlString FormSpanControl(this HtmlHelper helper, int fieldid, int ID = 0)
 {
     return(HtmlControllHelper.FormSpanControl(fieldid, ID));
 }
Beispiel #8
0
 public static HtmlString FormHiddenControl(this HtmlHelper helper, string fieldname, int ID = 0, string EntityName = "", string defaultvalue = "")
 {
     return(HtmlControllHelper.FormHiddenControl(fieldname, ID, EntityName, defaultvalue));
 }
Beispiel #9
0
 public static HtmlString FormHiddenControl(this HtmlHelper helper, int fieldid, int ID = 0, string defaultvalue = "")
 {
     return(HtmlControllHelper.FormHiddenControl(fieldid, ID, defaultvalue));
 }
Beispiel #10
0
 public static HtmlString FormCustomizeControl(this HtmlHelper helper, FormControllerModel model)
 {
     model.IsCustomize = true;
     model.ClassName   = " CustomizeController " + model.ClassName;
     return(HtmlControllHelper.InitMetadataHtml(model));
 }
Beispiel #11
0
 public static HtmlString FormControl(this HtmlHelper helper, FormControllerModel model)
 {
     return(HtmlControllHelper.InitMetadataHtml(model));
 }