public static string GetElementForRowView(this Field field, DataAction dataAction, object data, string guid) { switch (dataAction) { case DataAction.Create: string pk = string.Empty; if (data != null && data is string) { pk = (string)data; } return(FieldExtentions.GetElementForCreate(field, pk, string.Empty, guid)); case DataAction.Edit: if (data != null && data is DataRow) { DataRow dataRow = (DataRow)data; return(FieldExtentions.GetElementForEdit(field, dataRow, guid)); } else { return(FieldExtentions.GetElementForEdit(field, string.Empty, string.Empty, guid)); } case DataAction.InlineAdding: return(FieldExtentions.GetElementForInlineAdding(field, guid)); default: throw new NotSupportedException(); } }
public static string GetElementForRowView(this Field field, DataAction dataAction, string pk, string value, string guid) { switch (dataAction) { case DataAction.Create: return(FieldExtentions.GetElementForCreate(field, pk, value, guid)); case DataAction.Edit: return(FieldExtentions.GetElementForEdit(field, pk, value, guid)); case DataAction.InlineAdding: return(FieldExtentions.GetElementForInlineAdding(field, guid)); default: throw new NotSupportedException(); } }
public static bool IsVisibleForRow(this Field field, DataAction dataAction) { switch (dataAction) { case DataAction.Create: return(FieldExtentions.IsVisibleForCreate(field)); case DataAction.Report: return(FieldExtentions.IsVisibleForReport(field)); case DataAction.Edit: return(FieldExtentions.IsVisibleForEdit(field)); case DataAction.InlineAdding: return(FieldExtentions.IsVisibleForCreate(field)); case DataAction.InlineEditing: return(FieldExtentions.IsVisibleForEdit(field)); default: throw new NotSupportedException(); } }
public static string GetElementForFilter(this Field field, object value, string guid) { return(FieldExtentions.GetElementForFilter(field, value, guid)); }
public static string GetElementForEdit(this Field field, string pk, string value, string guid) { return(FieldExtentions.GetElementForEdit(field, pk, value, guid)); }
public static string GetElementForEdit(this Field field, DataRow dataRow, string guid) { return(FieldExtentions.GetElementForEdit(field, dataRow, guid)); }
public static string GetElementForCreate(this Field field, string guid) { return(FieldExtentions.GetElementForCreate(field, guid)); }
public static bool IsVisibleForTable(this Field field) { return(FieldExtentions.IsVisibleForTable(field)); }
// Public Methods (30) public static string GetDataActionPrefix(this Field field, DataAction dataAction) { return(FieldExtentions.GetDataActionPrefix(field, dataAction)); }
public static bool IsHidden(this Field field) { return(FieldExtentions.GetHtmlControlType(field) == HtmlControlType.Hidden); }
public static bool IsDisableForEdit(this Field field, string guid) { return(FieldExtentions.IsDisableForEdit(field, guid)); }
public static bool IsDisableForCreate(this Field field) { return(FieldExtentions.IsDisableForCreate(field)); }
public static string GetValidationType(this Field field) { return(FieldExtentions.GetValidationType(field)); }
public static string GetValidationElements(this Field field, DataAction dataAction, string guid) { return(FieldExtentions.GetValidationElements(field, dataAction, guid)); }
public static HtmlControlType GetElementForTableView(this Field field, string guid) { return(FieldExtentions.GetHtmlControlType(field)); }
public override bool IsAllow(DataAction dataAction) { return(!FieldExtentions.IsDisable(this, dataAction, null)); }