WELOA.BLL/WEL/LS_Permission.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WELOA.Model;
using LSDAL_SQL;

namespace LSBLL
{
public class LS_Permission
{
    
    private LS_Departmentandpost departmentBLL = new LS_Departmentandpost();
    private DateSetInformation dsinfo = new DateSetInformation();
    private ls_permissionDAO permissionDAO = new ls_permissionDAO();
    private Polytechnic trinfo = new Polytechnic();

    
    public DateSetInformation postPrivileges()
    {
        bool flag;
        int num2;
        Polytechnic Polytechnic;
        bool flag2;
        DateSetInformation DateSetInformation = this.permissionDAO.selectDepartment();
        DateSetInformation DateSetInformation2 = this.departmentBLL.selectdepartment();
        int num = 0;
        while (num < DateSetInformation2.ds.Tables[0].Rows.Count)
        {
            flag = false;
            for (num2 = 0; num2 < DateSetInformation.ds.Tables[0].Rows.Count; num2++)
            {
                if (DateSetInformation2.ds.Tables[0].Rows[num][0].ToString() == DateSetInformation.ds.Tables[0].Rows[num2][0].ToString())
                {
                    flag = true;
                }
            }
            if (!flag)
            {
                Polytechnic = this.permissionDAO.insDepartment(DateSetInformation2.ds.Tables[0].Rows[num][0].ToString());
                if (Polytechnic.nException > 0)
                {
                    this.dsinfo.nException = Polytechnic.nException;
                    return this.dsinfo;
                }
            }
            num++;
        }
        num2 = 0;
        while (num2 < DateSetInformation.ds.Tables[0].Rows.Count)
        {
            flag = false;
            for (num = 0; num < DateSetInformation2.ds.Tables[0].Rows.Count; num++)
            {
                if (DateSetInformation.ds.Tables[0].Rows[num2][0].ToString() == DateSetInformation2.ds.Tables[0].Rows[num][0].ToString())
                {
                    flag = true;
                }
            }
            if (!flag)
后面还有 85 行代码,解锁后查看完整代码

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

AI 解读

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

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