Views/Forms/HR/CtrlOvertimeFormList.ashx

(开头部分) 6KB

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

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

using System;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using MicroDBHelper;
using MicroPublicHelper;
using MicroWorkFlowHelper;
using MicroAuthHelper;


public class CtrlOvertimeFormList : 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 Fields = context.Server.UrlDecode(context.Request.Form["fields"]);

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

        //Action = "Add";
        //ShortTableName = "Overtime";
        //ModuleID = "4";
        //FormID = "5";
        //FormsID = "168";
        //IsApprovalForm = "True";
        //Fields = "%7B%22hidFormID%22:%22%22,%22txtFormNumber%22:%22HROT2021010031%22,%22txtFormState%22:%22%E5%A1%AB%E5%86%99%E7%94%B3%E8%AF%B7%5BFill%20in%5D%22,%22hidStateCode%22:%22GetFormStateCode%22,%22ApprovalNode21%22:%22362%22,%22ApprovalNode24%22:%22362%22,%22ApprovalNode25%22:%22362%22%7D";
        //Fields = context.Server.UrlDecode(Fields);

        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")
                flag = SetSubmitForm(Action, ShortTableName, ModuleID, FormID, FormsID, IsApprovalForm, Fields);

            if (Action == "modify")
                flag = SetModifyForm(Action, ShortTableName, ModuleID, FormID, FormsID, IsApprovalForm, Fields);
        }

        context.Response.Write(flag);
    }

    /// <summary>
    /// 提交表单
    /// </summary>
    /// <param name="Action"></param>
    /// <param name="ShortTableName"></param>
后面还有 100 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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