Views/Forms/HR/CtrlOnDutyFormList.ashx

(开头部分) 44KB

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

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

using System;
using System.IO;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using MicroDBHelper;
using MicroDTHelper;
using MicroPublicHelper;
using MicroWorkFlowHelper;
using MicroAuthHelper;
using MicroUserHelper;
using MicroPrivateHelper;
using Newtonsoft.Json.Linq;

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

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

        string flag = MicroPublic.GetMsg("SubmitURLError");

        string Action = context.Server.UrlDecode(context.Request.Form["action"]);
        string ShortTableName = context.Server.UrlDecode(context.Request.Form["stn"]);
        string ModuleID = context.Server.UrlDecode(context.Request.Form["mid"]);
        string FormID = context.Server.UrlDecode(context.Request.Form["formid"]);
        string FormsID = context.Server.UrlDecode(context.Request.Form["formsid"]);
        string IsApprovalForm = context.Server.UrlDecode(context.Request.Form["isapprovalform"]);
        string FilePath = context.Server.UrlDecode(context.Request.Form["filepath"]);
        string Fields = context.Server.UrlDecode(context.Request.Form["fields"]);

        FormID = IsApprovalForm.toBoolean() == false ? "0" : FormID;

        ////测试数据
        //Action = "Add";
        //ShortTableName = "OnDutyForm";
        //ModuleID = "4";
        //FormID = "13";
        //FormsID = "";
        //IsApprovalForm = "True";
        //Fields = "%7B%22hidFormID%22:%22%22,%22txtFormNumber%22:%22GetFormNumber%22,%22txtFormState%22:%22%E5%A1%AB%E5%86%99%E7%94%B3%E8%AF%B7%5BFill%20in%5D%22,%22hidStateCode%22:%22GetFormStateCode%22,%22file%22:%22%22,%22ApprovalNode222%22:%22236%22%7D";
        //Fields = context.Server.UrlDecode(Fields);
        //FilePath = "/Resource/UploadFiles/Forms/HROnDuty/Admin_20210930171158884_OnDuty_20210831.xlsx";

        if (!string.IsNullOrEmpty(Action) && !string.IsNullOrEmpty(ShortTableName) && !string.IsNullOrEmpty(ModuleID) && !string.IsNullOrEmpty(FormID) && !string.IsNullOrEmpty(IsApprovalForm) && !string.IsNullOrEmpty(Fields))
        {
            Action = Action.ToLower();

            if (Action == "add")
            {
                //如果FormsID不为空且FilePatch为空时,代表是手动添加的内容
                if (!string.IsNullOrEmpty(FormsID) && string.IsNullOrEmpty(FilePath))
                    flag = SetSubmitForm(Action, ShortTableName, ModuleID, FormID, FormsID, IsApprovalForm, Fields);

                //否则如果FormsID为空且FilePath不为空时,代表的是通过Excel导入的内容
                else if (string.IsNullOrEmpty(FormsID) && !string.IsNullOrEmpty(FilePath))
后面还有 740 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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