1
yhj
2024-07-24 5e5d945e91568b973faa27d8ab0bcef99fc4a6c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#region
 
using System.Data;
using CSFrameworkV5.Core;
using CSFrameworkV5.DataAccess;
using CSFrameworkV5.Models;
 
#endregion
 
/*===================================================================
 *   程序说明: Reports的业务逻辑层源码
 *   作者资料: 孙中吕
 *   创建日期: 2020-10-13 02:36:58
 *   最后修改: 2020-10-13 02:36:58
 *
 *   注: 本文件由代码生成器(Code Generator)自动生成。
 *   (此源码文件请放置在 YourProject.Business 模块)
 *   版权所有 Copyright 2006~2020, C/S框架网(www.cscode.net)
 *===================================================================*/
 
namespace CSFrameworkV5.Business
{
    /// <summary>
    ///     BLL业务逻辑层:bllReports
    /// </summary>
    public class bllReports : bllBaseDataDict
    {
        private dalReports _DAL; //自定义策略接口(桥接层)
 
        public bllReports()
        {
            _KeyFieldName = sys_Reports.__KeyName; //主键字段
            _SummaryTableName = sys_Reports.__TableName; //表名
            _WriteDataLog = false; //是否保存数据操作日志
            _DataDictBridge = DALFactory.CreateDalByORM(Loginer.CurrentUser,
                typeof(sys_Reports)); //数据字典通用桥接层实例
            _DAL = new dalReports(Loginer
                .CurrentUser); //如业务层要扩展方法,创建自定义策略接口(桥接层)实例
        }
 
        public byte[] GetReportData(string ReportID)
        {
            return _DAL.GetReportData(ReportID);
        }
 
        public DataTable Query(string ReportID, string ReportTitle)
        {
            var dt = _DAL.Query(ReportID, ReportTitle);
            _SummaryTable = dt;
            return dt;
        }
    }
}