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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.IDAL.Inquiry;
using AbstractFactory;
using CY.Model;
 
namespace CY.BLL.Inquiry
{
    public class ReduceWorkCountSetBLL
    {
        private IReduceWorkCountSetDAL _iReduceWorkCountSetDAL = null;
 
        public ReduceWorkCountSetBLL()
        {
            _iReduceWorkCountSetDAL = Factory.GetDALByInterfaceName(DALInterface.IReduceWorkCountSetDAL) as IReduceWorkCountSetDAL;
        }
 
        /// <summary>
        /// 获取厂商优惠印刷次数设置
        /// </summary>
        /// <param name="firmId"></param>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public Inquiry_ReduceWorkCountSet GetModel(Guid firmId, Guid customerId)
        {
            return _iReduceWorkCountSetDAL.GetModel(firmId, customerId);
        }
 
        /// <summary>
        /// 保存厂商优惠印刷次数设置
        /// </summary>
        /// <param name="list"></param>
        /// <param name="firmId"></param>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public bool SaveModel(Inquiry_ReduceWorkCountSet model)
        {
            return _iReduceWorkCountSetDAL.SaveModel(model);
        }
    }
}