Views/Forms/Calendar/Calendar.ashx
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="Calendar" %>
using System;
using System.Web;
using System.Text;
using System.Data;
using MicroDBHelper;
using MicroUserHelper;
using MicroHRHelper;
using MicroPublicHelper;
public class Calendar : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string flag = "This tips.",
Action = context.Server.UrlDecode(context.Request.QueryString["action"]),
Type = context.Server.UrlDecode(context.Request.QueryString["type"]),
MID = context.Server.UrlDecode(context.Request.QueryString["mid"]),
StartDay = context.Server.UrlDecode(context.Request.QueryString["start"]),
EndDay = context.Server.UrlDecode(context.Request.QueryString["end"]),
Value = context.Server.UrlDecode(context.Request.QueryString["val"]);
////测试数据
//Action = "View";
//Type = "GetCalendarEvents";
//MID = "2";
//StartDay = "2021-03-01";
//EndDay = "2021-03-31";
//Value = "2021年3月";
//string d = "[{title: '实际:"+StartDay+"',start: '2020-11-02T09:30:00',end: '2020-11-02T17:30:00',color: '#1E9FFF'},{title: '实际:09:00-17:00',start: '2020-12-20T09:30:00',end: '2020-12-20T17:30:00',color: '#1E9FFF'}]";
//JToken.Parse(d)
// {"action":"View","type":"GetCalendarDays","start":"2020-11-01","end":"2020-12-05"}
if (!string.IsNullOrEmpty(StartDay) && !string.IsNullOrEmpty(EndDay))
{
StartDay = MicroPublic.GetSplitFirstStr(StartDay, 'T');
EndDay = MicroPublic.GetSplitFirstStr(EndDay, 'T');
//获取个人日历事件(含排班、加班、休假)
if (Action == "View" && Type == "GetCalendarEvents")
flag = GetCalendarEvents(StartDay, EndDay);
if (Action == "View" && Type == "GetCalendarDays")
flag = GetCalendarDays(StartDay, EndDay);
if (Action == "Modify" && (Type == "CtrlCalendarDays" || Type == "CtrlStatutoryDays"))
flag = CtrlCalendarDays(Type, StartDay, EndDay);
if (Action == "View" && Type == "GetPersonalAttendanceData" && !string.IsNullOrEmpty(Value))
flag = GetPersonalAttendanceData(Value);
}
context.Response.Write(flag);
后面还有 170 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
