日期:2014-05-18 浏览次数:20853 次
string dateToYear = Convert.ToDateTime(Date).Year.ToString(); //工资结算日期的年份 string dateToMonth = Convert.ToDateTime(Date).Month.ToString(); //工资结算日期的月份 List<奖惩表> obj1 = (from a2 in reward.SelectRecordAll() where ( (a2.员工编号 == Eid) && (Convert.ToDateTime(a2.日期).Year.ToString() == dateToYear) && (Convert.ToDateTime(a2.日期).Month.ToString() == dateToMonth) ) select a2).ToList();