App_Handler/GetPublicTableList.ashx

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ WebHandler Language="C#" Class="GetPublicTableList" %>

using System;
using System.Web;
using MicroPublicHelper;
using MicroDTHelper;
using MicroAuthHelper;

public class GetPublicTableList : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{

    //****************
    //说明
    //根据表名返回表的内容
    //如父项和子项,主要菜单和子菜单等
    //****************

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        MicroAuth.CheckLogin();

        string flag = MicroPublic.GetMsg("SubmitFailed"),
                    ModuleID = context.Server.UrlDecode(context.Request.QueryString["ModuleID"]),
                    Action = context.Server.UrlDecode(context.Request.QueryString["Action"]),
                    ShortTableName = context.Server.UrlDecode(context.Request.QueryString["STN"]),
                    FormID = context.Server.UrlDecode(context.Request.QueryString["FormID"]),
                    DataType = context.Server.UrlDecode(context.Request.QueryString["DataType"]),
                    QueryType = context.Server.UrlDecode(context.Request.QueryString["QueryType"]),
                    Keyword = context.Server.UrlDecode(context.Request.QueryString["Keyword"]),
                    StartDate = context.Server.UrlDecode(context.Request.QueryString["StartDate"]),
                    EndDate = context.Server.UrlDecode(context.Request.QueryString["EndDate"]),
                    Page = context.Server.UrlDecode(context.Request.QueryString["page"]),
                    Limit = context.Server.UrlDecode(context.Request.QueryString["limit"]);

        //测试数据
        //Action = "View";
        //ShortTableName = "OnDutyForm";
        //ModuleID = "4";
        //FormID = "13";
        //DataType = "GetOnDutyFormListByMeal";
        //StartDate = "2021-10-14";
        //EndDate = "2021-10-14";
        //QueryType = "DutyDate";
        //Keyword = "Location:AAAA,Keyword:GZ-3S";

        Page = string.IsNullOrEmpty(Page) == true ? "1" : Page;
        Limit = string.IsNullOrEmpty(Limit) == true ? "10" : Limit;

        if (!string.IsNullOrEmpty(Action) && !string.IsNullOrEmpty(ShortTableName))
        {
            int UID = MicroUserHelper.MicroUserInfo.GetUserInfo("UID").toInt();

            if (!string.IsNullOrEmpty(DataType))
                DataType = DataType.ToLower();

            switch (DataType)
            {
                //加班记录
                case "getovertimelist":
后面还有 94 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。