PSI.BLL/UnitTypeBLL.cs

(开头部分) 5KB

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

using PSI.DAL;
using PSI.Models.DModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PSI.BLL
{
        public class UnitTypeBLL:BaseBLL<UnitTypeInfoModel>
        {
                private UnitTypeDAL utDAL = new UnitTypeDAL();
                private UnitDAL unitDAL = new UnitDAL();
                /// <summary>
                /// 获取所有的往来单位类别列表(绑定下拉框)
                /// </summary>
                /// <returns></returns>
                public List<UnitTypeInfoModel> LoadAllDrpUnitTypes()
                {
                        return utDAL.LoadAllDrpUnitTypes();
                }

                /// <summary>
                /// 获取所有的往来单位类别列表(绑定TreeView)
                /// </summary>
                /// <returns></returns>
                public List<UnitTypeInfoModel> LoadAllTVUnitTypes()
                {
                        return utDAL.LoadAllTVUnitTypes();
                }

                /// <summary>
                /// 获取指定的子类别列表
                /// </summary>
                /// <param name="typeName"></param>
                /// <returns></returns>
                public List<UnitTypeInfoModel> GetAllUnitTypes(string typeName)
                {
                        return utDAL.GetChildTypes(typeName);
                }

                /// <summary>
                /// 条件查询往来单位列表
                /// </summary>
                /// <param name="keywords"></param>
                /// <param name="isDeleted"></param>
                /// <returns></returns>
                public List<UnitTypeInfoModel> LoadUnitTypeList(string keywords, bool blShowDel)
                {
                        int isDeleted = blShowDel ? 1 : 0;
                        if (string.IsNullOrEmpty(keywords))
                                return utDAL.LoadUnitTypeList(null, isDeleted);
                        else
                                return utDAL.LoadUnitTypeList(keywords, isDeleted);
                }

                /// <summary>
                /// 获取指定的类别信息实体
                /// </summary>
后面还有 81 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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