合并最新
This commit is contained in:
@@ -804,6 +804,13 @@ namespace BLL
|
||||
return month;
|
||||
}
|
||||
|
||||
public static Int32 ConvertDateTimeToInt32(DateTime dtime)
|
||||
{
|
||||
string dt = string.Format("{0:yyyy-MM-dd HH:mm:ss}", dtime);
|
||||
DateTime dt1 = new DateTime(1970, 1, 1, 8, 0, 0);
|
||||
DateTime dt2 = Convert.ToDateTime(dt);
|
||||
return Convert.ToInt32((dt2 - dt1).TotalSeconds);
|
||||
}
|
||||
|
||||
public static DateTime GetQuarterlyMonths(string year, string quarterly)
|
||||
{
|
||||
@@ -995,6 +1002,23 @@ namespace BLL
|
||||
return str;
|
||||
}
|
||||
|
||||
public static bool? getBoolByString(string strValue)
|
||||
{
|
||||
bool? returnV = null;
|
||||
try
|
||||
{
|
||||
if (!string.IsNullOrEmpty(strValue))
|
||||
{
|
||||
returnV = Convert.ToBoolean(strValue);
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
return returnV;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 将IEnumerable<T>类型的集合转换为DataTable类型
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user