48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// ManHoursHandler 的摘要说明
|
|
/// </summary>
|
|
public class ManHoursHandler : IHttpHandler, IRequiresSessionState
|
|
{
|
|
|
|
// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="context"></param>
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
} |