Views/Forms/HR/GetOvertime.ashx
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="GetOvertime" %>
using System;
using System.Web;
using Newtonsoft.Json.Linq;
using MicroAuthHelper;
using MicroHRHelper;
public class GetOvertime : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
MicroAuth.CheckLogin();
string strTemp = GetStrTpl();
string flag = string.Format(strTemp, "Flag", "2020-01-01", "00:00:00", "23:59:59");
string Action = context.Server.UrlDecode(context.Request.Form["action"]);
string ShortTableName = context.Server.UrlDecode(context.Request.Form["stn"]);
string ModuleID = context.Server.UrlDecode(context.Request.Form["mid"]);
string FormID = context.Server.UrlDecode(context.Request.Form["formid"]);
string FormsID = context.Server.UrlDecode(context.Request.Form["formsid"]);
string OvertimeDate = context.Server.UrlDecode(context.Request.Form["OvertimeDate"]);
string ShiftTypeID = context.Server.UrlDecode(context.Request.Form["ShiftTypeID"]);
//Action = "View";
//ShortTableName = "Test";
//ModuleID = "8";
//FormID = "8";
//FormsID = "8";
//OvertimeDate = "2020-01-10";
//ShiftTypeID = "8";
if (!string.IsNullOrEmpty(OvertimeDate) && !string.IsNullOrEmpty(ShiftTypeID))
{
flag = GetOTStartEndTime(OvertimeDate, ShiftTypeID);
}
flag = "{" + flag + "}";
flag = JToken.Parse(flag).ToString();
context.Response.Write(flag);
}
private string GetOTStartEndTime(string OvertimeDate, string ShiftTypeID)
{
string strTemp = GetStrTpl();
string flag = string.Format(strTemp, "Flag", "2020-01-01", "00:00:00", "23:59:59");
if (!string.IsNullOrEmpty(OvertimeDate) && !string.IsNullOrEmpty(ShiftTypeID))
{
var getOTStartEndTime = MicroHR.GetOTStartEndTime(OvertimeDate, ShiftTypeID);
flag = string.Format(strTemp, "True", getOTStartEndTime.OvertimeDate, getOTStartEndTime.OTStartTime, getOTStartEndTime.OTEndTime);
}
后面还有 19 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
