示例#1
0
 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);
     }
 }
示例#2
0
 public static DateTime GetColDateTime(DataRow row, string columnName)
 {
     return(Convert.ToDateTime(BaseItem.GetColumn(row, columnName, UDate.DefaultDate)));
 }
示例#3
0
 public static object GetColumn(DataRowView row, string columnName, object deafultValue)
 {
     return(BaseItem.GetColumn(row.Row, columnName, deafultValue));
 }
示例#4
0
 public static string GetCol(DataRow row, string columnName, string deafultValue)
 {
     return(BaseItem.GetColumn(row, columnName, deafultValue).ToString());
 }
示例#5
0
 public object GetColumn(string columnName, object deafultValue)
 {
     return(BaseItem.GetColumn(DataRow, columnName, deafultValue));
 }
示例#6
0
 public Decimal GetColDecimal(string columnName, Decimal deafultValue)
 {
     return(BaseItem.ToDecimal(BaseItem.GetColumn(DataRow, columnName, deafultValue), deafultValue));
 }
示例#7
0
 public static Double GetColDouble(DataRow row, string columnName)
 {
     return(BaseItem.ToDouble(BaseItem.GetColumn(row, columnName, 0)));
 }
示例#8
0
 public static int GetColInt32(DataRow row, string columnName)
 {
     return(BaseItem.ToInt32(BaseItem.GetColumn(row, columnName, 0)));
 }
示例#9
0
 public static int GetColInt32(DataRow row, string columnName, int deafultValue)
 {
     return(BaseItem.ToInt32(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue));
 }
示例#10
0
 public static bool GetColBool(DataRow row, string columnName, bool deafultValue)
 {
     return(BaseItem.ToBool(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue));
 }
示例#11
0
 public int GetColInt32(object row, string columnName, int deafultValue)
 {
     return(BaseItem.ToInt32(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue));
 }
示例#12
0
 public static bool GetColBool(DataRow row, string columnName)
 {
     return(BaseItem.ToBool(BaseItem.GetColumn(row, columnName, false)));
 }
示例#13
0
 public bool GetColBool(object row, string columnName, bool deafultValue)
 {
     return(BaseItem.ToBool(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue));
 }
示例#14
0
 public static Double GetColDouble(DataRow row, string columnName, Double deafultValue)
 {
     return(BaseItem.ToDouble(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue));
 }
示例#15
0
 public static DateTime GetColDateTime(DataRow row, string columnName, DateTime deafultValue)
 {
     return(Convert.ToDateTime(BaseItem.GetColumn(row, columnName, deafultValue)));
 }
示例#16
0
 public string GetCol(object row, string columnName, string deafultValue)
 {
     return(BaseItem.GetColumn(row, columnName, deafultValue).ToString());
 }
示例#17
0
 public Decimal GetColDecimal(object row, string columnName, Decimal deafultValue)
 {
     return(BaseItem.ToDecimal(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue));
 }
示例#18
0
 public static string GetCol(DataRow row, string columnName)
 {
     return(BaseItem.GetColumn(row, columnName, "").ToString());
 }
示例#19
0
 public static Decimal GetColDecimal(DataRow row, string columnName)
 {
     return(BaseItem.ToDecimal(BaseItem.GetColumn(row, columnName, 0)));
 }
示例#20
0
 public Double GetColDouble(object row, string columnName, Double deafultValue)
 {
     return(BaseItem.ToDouble(BaseItem.GetColumn(row, columnName, deafultValue), deafultValue));
 }