public static object GetColumn(object row, string columnName, object deafultValue) { if (row is DataRow) { return(BaseItem.GetColumn((DataRow)row, columnName, deafultValue)); } if (row is DataRowView) { return(BaseItem.GetColumn((DataRowView)row, columnName, deafultValue)); } else { return(deafultValue); } }
public static DateTime GetColDateTime(DataRow row, string columnName) { return(Convert.ToDateTime(BaseItem.GetColumn(row, columnName, UDate.DefaultDate))); }
public static object GetColumn(DataRowView row, string columnName, object deafultValue) { return(BaseItem.GetColumn(row.Row, columnName, deafultValue)); }
public static string GetCol(DataRow row, string columnName, string deafultValue) { return(BaseItem.GetColumn(row, columnName, deafultValue).ToString()); }
public object GetColumn(string columnName, object deafultValue) { return(BaseItem.GetColumn(DataRow, columnName, deafultValue)); }
public Decimal GetColDecimal(string columnName, Decimal deafultValue) { return(BaseItem.ToDecimal(BaseItem.GetColumn(DataRow, columnName, deafultValue), deafultValue)); }
public static Double GetColDouble(DataRow row, string columnName) { return(BaseItem.ToDouble(BaseItem.GetColumn(row, columnName, 0))); }
public static int GetColInt32(DataRow row, string columnName) { return(BaseItem.ToInt32(BaseItem.GetColumn(row, columnName, 0))); }
public static int GetColInt32(DataRow row, string columnName, int deafultValue) { return(BaseItem.ToInt32(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue)); }
public static bool GetColBool(DataRow row, string columnName, bool deafultValue) { return(BaseItem.ToBool(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue)); }
public int GetColInt32(object row, string columnName, int deafultValue) { return(BaseItem.ToInt32(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue)); }
public static bool GetColBool(DataRow row, string columnName) { return(BaseItem.ToBool(BaseItem.GetColumn(row, columnName, false))); }
public bool GetColBool(object row, string columnName, bool deafultValue) { return(BaseItem.ToBool(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue)); }
public static Double GetColDouble(DataRow row, string columnName, Double deafultValue) { return(BaseItem.ToDouble(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue)); }
public static DateTime GetColDateTime(DataRow row, string columnName, DateTime deafultValue) { return(Convert.ToDateTime(BaseItem.GetColumn(row, columnName, deafultValue))); }
public string GetCol(object row, string columnName, string deafultValue) { return(BaseItem.GetColumn(row, columnName, deafultValue).ToString()); }
public Decimal GetColDecimal(object row, string columnName, Decimal deafultValue) { return(BaseItem.ToDecimal(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue)); }
public static string GetCol(DataRow row, string columnName) { return(BaseItem.GetColumn(row, columnName, "").ToString()); }
public static Decimal GetColDecimal(DataRow row, string columnName) { return(BaseItem.ToDecimal(BaseItem.GetColumn(row, columnName, 0))); }
public Double GetColDouble(object row, string columnName, Double deafultValue) { return(BaseItem.ToDouble(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue)); }