Medical/Admin/Ajax/mydate.ashx.cs
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
namespace WebApplication.Admin.Ajax
{
/// <summary>
/// mydate 的摘要说明
/// </summary>
public class mydate : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
if (context.Request["date"] != null)
{
string where = context.Request["qx"];
DateTime dt = DateTime.Parse(context.Request["date"].ToString());
string rhtml = ChinaMonth(dt.Month);
rhtml += "$$$" + dt.Year.ToString();
DateTime nd = DateTime.Parse(DBUtility.DbHelperSQL.GetSingle("select getdate()").ToString());
if (nd >= dt)
{
if (nd.Month > dt.Month)
{
rhtml += "$$$" + SetRL(dt, -1, nd,where);
}
else if (nd.Month == dt.Month)
{
if (nd.Year == dt.Year)
{
rhtml += "$$$" + SetRL(nd, 1, nd,where);
}
else
{
rhtml += "$$$" + SetRL(dt, -1, nd,where);
}
}
else
{
rhtml += "$$$" + SetRL(dt, -1, nd,where);
}
}
else
{
rhtml += "$$$" + SetRL(dt, 0, nd,where);
}
rhtml += "$$$" + dt.Year + "/" + dt.Month + "/1";
context.Response.Write(rhtml);
}
}
public string SetRL(DateTime nd, int thismonth, DateTime nownd,string qx)
{
int day = int.Parse(DateTime.Parse(nd.Year + "-" + nd.Month + "-" + 1).DayOfWeek.ToString("d"));
int dayCount = DateTime.DaysInMonth(nd.Year, nd.Month);
后面还有 262 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
