Meeting/Js/Ajax/getdate.ashx.cs
(开头部分) 15KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
namespace WebApplication.Js.Ajax
{
/// <summary>
/// getdate 的摘要说明
/// </summary>
public class getdate : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
try
{
DateTime nd = DateTime.Parse(DBUtility.DbHelperSQL.GetSingle("select getdate()").ToString());
if (context.Request["nowdate"] != null)
{
DateTime ptime = DateTime.Parse(context.Request["nowdate"]);
if (context.Request["type"] == "1")
{
ptime = ptime.AddMonths(1);
//nd = nd.AddMonths(1);
if (ptime.Year == nd.Year && ptime.Month == nd.Month)
{
context.Response.Write(SetRL(nd, 1, context.Request["roomid"]) + "@@@@" + ptime.ToString("yyyy年MM月"));
}
else
{
context.Response.Write(SetRL(ptime, 0, context.Request["roomid"]) + "@@@@" + ptime.ToString("yyyy年MM月"));
}
}
else if (context.Request["type"] == "2")
{
if (ptime.Year == nd.Year && ptime.Month == nd.Month)
{
context.Response.Write(SetRL(nd, 1, context.Request["roomid"]) + "@@@@" + ptime.ToString("yyyy年MM月"));
}
else
{
context.Response.Write(SetRL(ptime, 0, context.Request["roomid"]) + "@@@@" + ptime.ToString("yyyy年MM月"));
}
}
else
{
ptime = ptime.AddMonths(-1);
//nd = nd.AddMonths(-1);
if (ptime.Year == nd.Year && ptime.Month == nd.Month)
{
context.Response.Write(SetRL(nd, 1, context.Request["roomid"]) + "@@@@" + ptime.ToString("yyyy年MM月"));
}
else
{
context.Response.Write(SetRL(ptime, 0, context.Request["roomid"]) + "@@@@" + ptime.ToString("yyyy年MM月"));
后面还有 252 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
