Views/Forms/MicroFormApproval.ashx
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="MicroFormApproval" %>
using System;
using System.Web;
using MicroPublicHelper;
using Newtonsoft.Json.Linq;
using MicroWorkFlowHelper;
using MicroUserHelper;
using MicroFormHelper;
using MicroAuthHelper;
using MicroApprovalHelper;
using MicroNoticeHelper;
using MicroPrivateHelper;
public class MicroFormApproval : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
MicroAuth.CheckLogin();
string flag = MicroPublic.GetMsg("SaveFailed"),
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 = "BatchAgree";
//ShortTableName = "Overtime";
//ModuleID = "4";
//FormID = "5";
//FormsID = "";
//Fields = context.Server.UrlDecode("%7B%22txtNote%22:%22%22,%22txtFormsIDs%22:%2213041,13043%22,%22ckAllApproval%22:%22on%22%7D");
if (!string.IsNullOrEmpty(Action))
{
Action = Action.toStringTrim().ToLower();
try
{
if (Action == "agree" || Action == "return")
{
if (!string.IsNullOrEmpty(ShortTableName) && !string.IsNullOrEmpty(ModuleID) && !string.IsNullOrEmpty(FormID) && !string.IsNullOrEmpty(FormsID) && !string.IsNullOrEmpty(Fields))
flag = SetApproval(Action, ShortTableName, ModuleID, FormID, FormsID, Fields);
}
if (Action == "batchagree" || Action == "batchreturn")
{
if (!string.IsNullOrEmpty(ShortTableName) && !string.IsNullOrEmpty(ModuleID) && !string.IsNullOrEmpty(FormID) && !string.IsNullOrEmpty(Fields))
{
dynamic json = JToken.Parse(Fields) as dynamic;
string FormsIDs = json["txtFormsIDs"];
FormsIDs = FormsIDs.toStringTrim();
if (!string.IsNullOrEmpty(FormsIDs))
flag = SetBatchApproval(Action, ShortTableName, ModuleID, FormID, Fields, FormsIDs);
}
后面还有 187 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
