BLL/common/TCWL_B_UserLog.cs

(开头部分) 8KB

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

namespace BLL.common
{
    using Common;
    using DAL.common;
    using Model;
    using Model.common;
    using System;
    using System.Data;
    using System.Runtime.InteropServices;
    using System.Text.RegularExpressions;

    public class TCWL_B_UserLog
    {
        private readonly TCWL_D_Common dal = new TCWL_D_Common();

        public string FindChild(string parenid, DataTable dt, string auth, string serviceID, string userID)
        {
            DataRow[] rowArray = dt.Select("ParentID='" + parenid + "'");
            string str = "";
            if (rowArray.Length > 0)
            {
                for (int i = 0; i < rowArray.Length; i++)
                {
                    if (auth.Contains(rowArray[i]["ValueStr"].ToString()))
                    {
                        str = (str + "{" + string.Format("\"text\":\"{0}\",\"url\":\"{1}\"", rowArray[i]["textshow"].ToString(), rowArray[i]["NavigateUrl"].ToString())) + this.FindChild(rowArray[i]["Id"].ToString(), dt, auth, serviceID, userID) + "},";
                    }
                }
                if (str.Length > 1)
                {
                    str = str.Substring(0, str.Length - 1);
                }
            }
            return str;
        }

        public string getAuthoByRole(string serviceID, string userID)
        {
            return this.dal.loadByUserMenu(serviceID, userID);
        }

        public DataTable GetGongSiXinxi(string where)
        {
            return this.dal.GetGongSiXinxi(where);
        }

        public DataSet GetList(string strWhere)
        {
            return this.dal.GetList(strWhere);
        }

        public string GetListByPage2Json(string strWhere, string orderby, int startIndex, int endIndex)
        {
            int total = 0;
            DataTable dt = this.dal.GetListByPage(strWhere, orderby, startIndex, endIndex, out total);
            return string.Concat(new object[] { "{\"total\":", total, ",\"rows\":", JsonHelper.DataTableToJson(dt), "}" });
        }

        public string GetListByPage2Json(string strWhere, string orderby, int startIndex, int endIndex, string key)
        {
后面还有 168 行代码,购买后查看完整代码

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

AI 解读 AI

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

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