using BLL; using BLL.Common; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Runtime.Serialization.Json; using System.Text; using System.Web; using System.Web.SessionState; namespace FineUIPro.Web.ManHours { /// /// ManHoursHandler 的摘要说明 /// public class ManHoursHandler : IHttpHandler, IRequiresSessionState { // /// /// /// public void ProcessRequest(HttpContext context) { string UserId = context.Request["UserId"].ToString(); int Year = DateTime.Now.Year; int Month = DateTime.Now.Month; string CurrentMonth = Year.ToString() + Month.ToString(); DataTable dt = BLL.PlanService.GetList(CurrentMonth, UserId); string json = JsonHelper.DataTableToJSON(dt); HttpContext.Current.Response.Write(json); HttpContext.Current.Response.End(); } public bool IsReusable { get { return false; } } } }