//******************************************************************New************************************************************* public IList DeptRequestReportMultiple(string code, int pMonth, int cMonth, string status) { context = new Team4_ADEntities(); if (status == "ALL") { var list = context.sp_DeptReqReport(code, pMonth, cMonth).ToList(); return list; } else { var slist = context.sp_DeptReqReportByStatus(code, pMonth, cMonth, status).ToList(); return slist; } }
//********************************************************************************************************************************* public List<sp_DeptReqReport_Result> DeptRequestReport(string code, int pMonth, int cMonth) { context = new Team4_ADEntities(); var list = context.sp_DeptReqReport(code, pMonth, cMonth).ToList(); return list; }