合并最新

This commit is contained in:
2022-12-20 09:32:32 +08:00
parent 844e9f1488
commit 1abdaa9476
654 changed files with 73563 additions and 9746 deletions
+24
View File
@@ -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>