/// <summary> /// 项目近期工作和问题取得 /// Created:20170329(xuxb) /// </summary> /// <param name="PID"></param> /// <returns></returns> public DataTable GetProjectLastWorkList(string PID) { int days = 7; switch (DateTime.Now.DayOfWeek) { case DayOfWeek.Monday: days = days + 6; break; case DayOfWeek.Tuesday: days = days + 5; break; case DayOfWeek.Wednesday: days = days + 4; break; case DayOfWeek.Thursday: days = days + 3; break; case DayOfWeek.Friday: days = days + 2; break; case DayOfWeek.Saturday: days = days + 1; break; } return(dao.GetProjectLastWorkList(PID, days)); }