Views/Forms/HR/OnDutyFormList.ashx
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="OnDutyFormList" %>
using System;
using System.Web;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using MicroDBHelper;
using MicroPublicHelper;
using MicroDTHelper;
using MicroAuthHelper;
public class OnDutyFormList : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
//****************
//说明
//根据表名返回表的内容
//如父项和子项,主要菜单和子菜单等
//****************
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
MicroAuth.CheckLogin();
string flag = string.Empty,
strTpl = "\"code\":{0},\"msg\":\"{1}\",\"filepath\":\"{2}\",\"title\":\"{3}\",\"cols\":\"{4}\" ,\"data\":{5}",
Action = context.Server.UrlDecode(context.Request.Form["action"]),
ModuleID = context.Server.UrlDecode(context.Request.Form["mid"]),
ShortTableName = context.Server.UrlDecode(context.Request.Form["stn"]),
FormID = context.Server.UrlDecode(context.Request.Form["formid"]),
FormsID = context.Server.UrlDecode(context.Request.Form["formsid"]);
flag = "{" + string.Format(strTpl, 0, MicroPublic.GetMsg("DenyURLError"), "", "", "", "[]") + "}";
////测试数据
//Action = "View";
//ModuleID = "4";
//ShortTableName = "OnDutyForm";
//FormID = "13";
//FormsID = "29";
if (!string.IsNullOrEmpty(Action) && !string.IsNullOrEmpty(ShortTableName) && !string.IsNullOrEmpty(FormID) && !string.IsNullOrEmpty(FormsID))
{
if (Action.ToLower() == "view" || Action.ToLower() == "modify")
flag = GetOnDutyFormList(ShortTableName, FormID, FormsID);
}
context.Response.Write(flag);
}
private string GetOnDutyFormList(string ShortTableName, string FormID, string FormsID)
{
string flag = string.Empty;
string strTpl = "\"code\":{0},\"msg\":\"{1}\",\"filepath\":\"{2}\",\"title\":\"{3}\",\"cols\":\"{4}\" ,\"data\":{5}";
int Code = 0;
后面还有 30 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
