App_Handler/CtrlPublicGenService.ashx
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="CtrlPublicGenService" %>
using System;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using MicroDBHelper;
using MicroDTHelper;
using MicroUserHelper;
using MicroPublicHelper;
using MicroAuthHelper;
using MicroWorkFlowHelper;
using MicroApprovalHelper;
using MicroPrivateHelper;
public class CtrlPublicGenService : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
MicroAuth.CheckLogin();
string flag = MicroPublic.GetMsg("CtrlFailed"),
Action = context.Server.UrlDecode(context.Request.Form["action"]),
ShortTableName = context.Server.UrlDecode(context.Request.Form["stn"]),
ModuleID = context.Server.UrlDecode(context.Request.Form["mid"]),
Type = context.Server.UrlDecode(context.Request.Form["type"]),
FormID = context.Server.UrlDecode(context.Request.Form["formid"]),
PrimaryKeyValue = context.Server.UrlDecode(context.Request.Form["pkv"]),
Value = context.Server.UrlDecode(context.Request.Form["val"]);
////测试数据
//Action = "CtrlTop";
//Type = "Platform";
//ShortTableName = "Info";
//ModuleID = "27";
//PrimaryKeyValue = "1670";
//Value = "SetTop";
if (!string.IsNullOrEmpty(Action) && !string.IsNullOrEmpty(ShortTableName) && !string.IsNullOrEmpty(ModuleID) && !string.IsNullOrEmpty(Type) && !string.IsNullOrEmpty(PrimaryKeyValue))
{
//string DelNum = "4"; //系统表单用4,MicroForm用16
//if (Type == "MicroForm")
// DelNum = "16";
Boolean ApprovalPermit = MicroAuth.CheckPermit(ModuleID, "12"),
EditPermit = MicroAuth.CheckPermit(ModuleID, "3"), //修改自己
EditAllPermit = MicroAuth.CheckPermit(ModuleID, "10"); //修改所有
//DelPermit = MicroAuth.CheckPermit(ModuleID, DelNum);
if (Action == "Modify" && Type == "Approval" && ApprovalPermit)
flag = CtrlInfoState(ShortTableName, PrimaryKeyValue);
if (Action == "CtrlTop" && !string.IsNullOrEmpty(Value) && (EditPermit || EditAllPermit))
flag = CtrlPublicTop(Type, ShortTableName, PrimaryKeyValue, Value);
if (Action == "Del")
后面还有 355 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
