Merge branch 'master' of https://gitee.com/frane-yang/SGGL_SeDin_New
This commit is contained in:
@@ -1420,6 +1420,53 @@ namespace BLL
|
||||
IRestResponse response = client.Execute(request);
|
||||
return response.Content;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据星期几返回值
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string GetWeekDay(string value)
|
||||
{
|
||||
if (!String.IsNullOrEmpty(value))
|
||||
{
|
||||
if (value == "Sunday")
|
||||
{
|
||||
return "日";
|
||||
}
|
||||
else if (value == "Monday")
|
||||
{
|
||||
return "一";
|
||||
}
|
||||
else if (value == "Tuesday")
|
||||
{
|
||||
return "二";
|
||||
}
|
||||
else if (value == "Wednesday")
|
||||
{
|
||||
return "三";
|
||||
}
|
||||
else if (value == "Thursday")
|
||||
{
|
||||
return "四";
|
||||
}
|
||||
else if (value == "Friday")
|
||||
{
|
||||
return "五";
|
||||
}
|
||||
else if (value == "Saturday")
|
||||
{
|
||||
return "六";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user