Views/Forms/FlowList.ashx

(开头部分) 7KB

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

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

using System;
using System.Web;
using System.Text;
using System.Data;
using MicroPublicHelper;
using MicroDTHelper;
using MicroAuthHelper;

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

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

        string flag = MicroPublic.GetMsg("ModifyFailed"),
                    Action = context.Server.UrlDecode(context.Request.Form["action"]),
                    MID = context.Server.UrlDecode(context.Request.Form["mid"]),
                    WFID= context.Server.UrlDecode(context.Request.Form["wfid"]);

        //测试数据
        //Action = "getflownode";
        //WFID = "52";

        if (Action == "getflownode" && !string.IsNullOrEmpty(WFID))
            flag = GetFlowNode(WFID);

        context.Response.Write(flag);
    }

    /// <summary>
    /// 获取流程节点
    /// </summary>
    /// <param name="WFID"></param>
    /// <returns></returns>
    private string GetFlowNode(string WFID)
    {
        string flag = string.Empty;
        string strTpl = GetStrTpl();
        int Count = 0;
        try
        {
            DataTable _dt = MicroDataTable.GetDataTable("WFlow");

            if (_dt != null && _dt.Rows.Count > 0)
            {

                string FixedNode = " and FixedNode = 0";
                FixedNode = "";

                DataRow[] _rows = _dt.Select("ParentID = " + WFID.toInt() + FixedNode, "Sort");
                if (_rows.Length > 0)
                {
                    Count = _rows.Length;
                    StringBuilder sb = new StringBuilder();

                    foreach (DataRow _dr in _rows)
后面还有 100 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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