Views/Set/System/MicroDataTableList.ashx
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="MicroDataTableList" %>
using System;
using System.Web;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Collections.Generic;
using MicroDBHelper;
using MicroPublicHelper;
using MicroAuthHelper;
using Newtonsoft.Json.Linq;
public class MicroDataTableList : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string flag = "False",
Action = context.Server.UrlDecode(context.Request.Form["action"]),
ModuleID = context.Server.UrlDecode(context.Request.Form["mid"]);
//固定值
Action = "view";
ModuleID = "13";
if (!string.IsNullOrEmpty(Action) && !string.IsNullOrEmpty(ModuleID))
{
int EditTablePermit = MicroAuth.CheckPermit(ModuleID, "11") == true ? 1 : 0;
flag = GetMain(EditTablePermit);
flag = JToken.Parse(flag).ToString();
}
context.Response.Write(flag);
}
/// <summary>
/// 获取存放在MicroTables表的表名
/// </summary>
/// <returns></returns>
protected string GetMain(int EditTablePermit)
{
string flag = "False";
string strTemp = GetStrTpl();
StringBuilder sb = new StringBuilder();
try
{
string _sql = "select * from MicroTables where Invalid=0 and Del=0 order by ParentID,Sort ";
DataTable _dt = MsSQLDbHelper.Query(_sql).Tables[0];
if (_dt != null && _dt.Rows.Count > 0)
{ //if Start
DataRow[] _rows = _dt.Select("ParentID=0", "ParentID,Sort");
后面还有 66 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
