| 123456789101112131415161718192021222324252627282930313233 |
- <%@ WebHandler Language="C#" Class="Get_HG5010_DateTime" %>
- using System;
- using System.Web;
- using System.Web.SessionState;
- using System.Collections.Generic;
- using System.Configuration;
- using System.Data;
- using Curtain.DataAccess;
- using Curtain.Log;
- using DK.XuWei.WebMes;
- public class Get_HG5010_DateTime : IHttpHandler,IRequiresSessionState
- {
- public void ProcessRequest(HttpContext context)
- {
- string time = DateTime.Now.ToString("yyyy年MM月dd日 HH:mm ");
- string week = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(DateTime.Now.DayOfWeek);
- Dictionary<string, string> d = new Dictionary<string, string>();
- d["时间"] = time + week;
- d["date"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
- context.Response.Write(new JsonResult() { success = true, message = "操作成功!", rows = d, total = 0 }.ToJson());
- }
- public bool IsReusable
- {
- get
- {
- return false;
- }
- }
- }
|