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