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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.IDAL.Inquiry;
using AbstractFactory;
using CY.Model;
using CY.Model.Inquiry;
 
namespace CY.BLL.Inquiry
{
    /// <summary>
    /// 货运费业务类
    /// </summary>
    public class CargageBLL
    {
        ICargageDAL _iCargageDAL = null;
 
        public CargageBLL()
        {
            _iCargageDAL = Factory.GetDALByInterfaceName(DALInterface.ICargageDAL) as ICargageDAL;
        }
 
        /// <summary>
        /// 获取货运费实体
        /// </summary>
        /// <param name="firmId"></param>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public Inquiry_Cargage GetModel(Guid inquiryId,int cargateTypeId)
        {
            return _iCargageDAL.GetModel(inquiryId, cargateTypeId);
        }
 
 
        /// <summary>
        /// 保存实体
        /// </summary>
        /// <param name="?"></param>
        /// <param name="firmId"></param>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public bool SaveModel(Inquiry_Cargage model,InquiryCondition inquiryCondition)
        {
            return _iCargageDAL.SaveModel(model,inquiryCondition);
        }
    }
}