yangle
21 小时以前 9643928dccb5656708d0c7d5567e4185abf54928
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
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
 
namespace BLL  //逻辑层
{
    public class ClsIF_Process_View
    {
        /// <summary>
        /// 根据过滤条件返回工序列表
        /// </summary>
        /// <param name="sWhere">过滤条件</param>
        /// <param name="sErr">错误信息</param>
        /// <returns></returns>
        public DataSet GetList(string sWhere, ref string sErr)
        {
            try
            {
                DAL.ClsIF_Process_View dal = new DAL.ClsIF_Process_View();
                return dal.GetList(sWhere);
            }
            catch (Exception e)
            {
                sErr = sErr + "," + e.Message;
                return null;
            }
        }
 
        /// <summary>
        /// 根据内码返回工序信息
        /// </summary>
        /// <param name="sWhere">内码</param>
        /// <param name="sErr">错误信息</param>
        /// <returns></returns>
        public Model.ClsGy_Process_Model GetInfoByID(long sWhere, ref string sErr)
        {
            try
            {
                DAL.ClsIF_Process_View dal = new DAL.ClsIF_Process_View();
                if (dal.GetInfoByID(sWhere))
                {
                    return dal.omodel;
                }
                else
                {
                    return null;
                }
            }
            catch (Exception e)
            {
                sErr = sErr + "," + e.Message;
                return null;
            }
        }
 
 
    }
}