Views/Forms/MicroFormWithdrawal.ashx
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="MicroFormWithdrawal" %>
using System;
using System.Web;
using System.Data;
using MicroPublicHelper;
using MicroWorkFlowHelper;
using MicroUserHelper;
using MicroFormHelper;
using MicroAuthHelper;
using MicroApprovalHelper;
using MicroNoticeHelper;
using MicroPrivateHelper;
using Newtonsoft.Json.Linq;
public class MicroFormWithdrawal : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
MicroAuth.CheckLogin();
string flag = MicroPublic.GetMsg("SaveURLError"),
Action = context.Server.UrlDecode(context.Request.Form["action"]),
ShortTableName = context.Server.UrlDecode(context.Request.Form["stn"]),
ModuleID = context.Server.UrlDecode(context.Request.Form["mid"]),
FormID = context.Server.UrlDecode(context.Request.Form["formid"]),
FormsID = context.Server.UrlDecode(context.Request.Form["pkv"]),
Fields = context.Server.UrlDecode(context.Request.Form["fields"]);
//测试数据
//Action = "View";
//ShortTableName = "ITPermsForm";
//ModuleID = "4";
//FormID = "3";
//FormsID = "117";
//Fields = context.Server.UrlDecode("%7B%22txtNote%22:%22%E5%8F%97%E7%90%86%E6%B5%8B%E8%AF%95%E6%92%A4%E5%9B%9E%22%7D");
if (!string.IsNullOrEmpty(Action) && !string.IsNullOrEmpty(ShortTableName) && !string.IsNullOrEmpty(ModuleID) && !string.IsNullOrEmpty(FormID) && !string.IsNullOrEmpty(FormsID) && !string.IsNullOrEmpty(Fields))
flag = SetWithdrawal(Action, ShortTableName, ModuleID, FormID, FormsID, Fields);
context.Response.Write(flag);
}
private string SetWithdrawal(string Action, string ShortTableName, string ModuleID, string FormID, string FormsID, string Fields)
{
string flag = MicroPublic.GetMsg("WithdrawalFailed");
var getApproval = MicroApproval.GetApproval(Action, ShortTableName, ModuleID, FormID, FormsID);
Boolean isWithdrawal = getApproval.Withdrawal;
if (isWithdrawal)
{
string UID = MicroUserInfo.GetUserInfo("UID"),
DisplayName = MicroUserInfo.GetUserInfo("DisplayName");
dynamic json = JToken.Parse(Fields) as dynamic;
后面还有 147 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
