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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.IDAL;
using CY.Model;
using AbstractFactory;
using CY.IBaseDAL;
using CY.Infrastructure.DESEncrypt;
using CY.Infrastructure.Query;
namespace CY.BLL.OA
{
    public class EC_CuttingPaperSpecBLL
    {
        IEC_CuttingPaperSpecDAL idal_IEC_CuttingPaperSpecDAL = null;
 
        public EC_CuttingPaperSpecBLL()
        {
            idal_IEC_CuttingPaperSpecDAL = Factory.GetDALByInterfaceName(DALInterface.IEC_CuttingPaperSpecDAL) as IEC_CuttingPaperSpecDAL;
        }
 
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool InsertModel(Model.EC_CuttingPaperSpec model)
        {
            return idal_IEC_CuttingPaperSpecDAL.InserModel(model);
        }
 
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool UpdateModel(Model.EC_CuttingPaperSpec model)
        {
 
            return idal_IEC_CuttingPaperSpecDAL.UpdateModel(model);
        }
 
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool DeleteModel(Model.EC_CuttingPaperSpec model)
        {
 
            return idal_IEC_CuttingPaperSpecDAL.DeleteModel(model);
        }
 
        /// <summary>
        /// 根据编号获得信息
        /// </summary>
        /// <param name="Keyid">编号</param>
        /// <returns></returns>
        public EC_CuttingPaperSpec GetModelByKeyid(int? Keyid)
        {
            return idal_IEC_CuttingPaperSpecDAL.GetModelByKeyid(Keyid);
        }
 
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="pagination"></param>
        /// <param name="MemberId"></param>
        /// <param name="ParType"></param>
        /// <param name="ParName"></param>
        /// <returns></returns>
        public IEnumerable<Model.EC_CuttingPaperSpec> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid MemberId)
        {
            return idal_IEC_CuttingPaperSpecDAL.SelectModelPage(pagination, MemberId);
        }
 
        /// <summary>
        /// 根据会员编号和类型获取列表
        /// </summary>
        /// <param name="MemberId"></param>
        /// <param name="ParType"></param>
        /// <returns></returns>
        public EC_CuttingPaperSpec SelectListByMemberIdAndParType(Guid MemberId, string ParType)
        {
            return idal_IEC_CuttingPaperSpecDAL.SelectListByMemberIdAndParType(MemberId, ParType);
        }
 
        /// <summary>
        /// 设置优先级
        /// </summary>
        /// <param name="rType"></param>
        /// <returns></returns>
        public bool EditModel(int? Keyid)
        {
            try
            {
                return idal_IEC_CuttingPaperSpecDAL.EditModel(Keyid);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}