CB2-20200827ONU\Administrator
2021-09-22 4d584101e46ff34b2694e88af706b9b2e92364bc
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.IDAL.Inquiry;
using CY.Model;
 
namespace CY.SQLDAL
{
    public class PrintingMachineDAL : IPrintingMachineDAL
    {
        private Database _dataBase = null;
 
        public PrintingMachineDAL()
        {
            _dataBase = new Database();
        }
 
        public Model.SysInquiry_PrintingMachine GetModelByKeyId(int keyId)
        {
            string condition = string.Empty;
            condition = " KeyId=" + keyId;
            IList<SysInquiry_PrintingMachine> result = _dataBase.SelectModel<SysInquiry_PrintingMachine>(" * ", "SysInquiry_PrintingMachine", condition);
            return null == result || result.Count == 0 ? null : result[0];
        }
    }
}