Views/Forms/WorkFlowList.ashx

(开头部分) 5KB

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

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

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

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

    //****************
    //说明
    //根据表名返回表的内容
    //如父项和子项,主要菜单和子菜单等
    //****************

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

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

        //测试数据
        //Action = "getworkflow";
        //MID = "25";

        if (Action == "getworkflow" && !string.IsNullOrEmpty(MID))
            flag = GetWorkFlow(MID);


        context.Response.Write(flag);
    }


    private string GetWorkFlow(string MID)
    {
        string flag = string.Empty;
        string strTemp = GetStrTpl();
        int Count = 0;
        try
        {
            DataTable _dt = MicroDataTable.GetDataTable("WFlow");

            if (_dt != null && _dt.Rows.Count > 0)
            {
                DataRow[] _rows = _dt.Select("ParentID = 0 and FormID=" + MID.toInt(), "Sort");
                if (_rows.Length > 0)
                {
                    Count = _rows.Length;
                    StringBuilder sb = new StringBuilder();

                    foreach (DataRow _dr in _rows)
                    {
                        string EffectiveType = _dr["EffectiveType"].toJsonTrim(),
后面还有 84 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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