码迷,mamicode.com
首页 > 其他好文 > 详细

逻辑层

时间:2018-11-22 18:11:26      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:display   关于   xpl   explain   namespace   system   int   div   class   

技术分享图片
 1 using System;
 2 using System.Collections.Generic;
 3 using System.Linq;
 4 using System.Text;
 5 using System.Threading.Tasks;
 6 
 7 namespace VacationOA.BLL
 8 {
 9     using MODEL;
10     using DAL;
11     public class CheckBLL
12     {
13         TCheckDAL dal = new TCheckDAL();
14         /// <summary>
15         /// 添加审核清单
16         /// </summary>
17         /// <param name="tcheck"></param>
18         /// <returns></returns>
19         public int AddTcheck(TCheck tcheck)
20         {
21             return dal.AddTcheck(tcheck);
22         }
23         /// <summary>
24         /// 根据假条id查询是否有关于这个假条审核通过的审核单
25         /// </summary>
26         /// <param name="id"></param>
27         /// <returns></returns>
28         public int GetCheckbyid(int id)
29         {
30             return dal.GetCheckbyid(id);
31 
32         } 
33          /// <summary>
34           /// 根据id获取对应请假单的审核历史
35           /// </summary>
36           /// <returns></returns>
37         public List<TCheck> GetChecks(int id)
38         {
39             return dal.GetChecks(id);
40         }
41     }
42 }
CheckBLL
技术分享图片
 1 using System;
 2 using System.Collections.Generic;
 3 using System.Linq;
 4 using System.Text;
 5 using System.Threading.Tasks;
 6 
 7 namespace VacationOA.BLL
 8 {
 9     using MODEL;
10     using DAL;
11   public  class LeaveBLL
12     {
13         LeaveDAL dal = new LeaveDAL();
14         /// <summary>
15         /// 添加请假单
16         /// </summary>
17         /// <param name="l"></param>
18         /// <returns></returns>
19         public int AddLeave(Leave l)
20         {
21             return dal.AddLeave(l);
22         }
23         /// <summary>
24         /// 修改请假单
25         /// </summary>
26         /// <param name="l"></param>
27         /// <returns></returns>
28         public int updateleave(Leave l)
29         {
30             return dal.updateleave(l);
31         }
32         /// <summary>
33         /// 获取请假单
34         /// </summary>
35         /// <returns></returns>
36         public List<Leave> GetLeaves()
37         {
38             return dal.GetLeaves();
39         }
40         /// <summary>
41         /// 修改请假单的状态,审核时间,说明,
42         /// </summary>
43         /// <param name="l"></param>
44         /// <returns></returns>
45         public int updateleaveState(int id, DateTime checktime, string explain, string state)
46         {
47             return dal.updateleaveState(id, checktime, explain, state);
48         }
49         /// <summary>
50         /// 获取请假单 我的审核列表
51         /// </summary>
52         /// <returns></returns>
53         public List<Leave> GetLeavesCheck()
54         {
55             return dal.GetLeavesCheck();
56         }
57     }
58 }
LeaveBLL
技术分享图片
 1 using System;
 2 using System.Collections.Generic;
 3 using System.Linq;
 4 using System.Text;
 5 using System.Threading.Tasks;
 6 
 7 namespace VacationOA.BLL
 8 {
 9     using MODEL;
10     using DAL;
11     public class StaffBLL
12     {
13         StaffDAL dal = new StaffDAL();
14         public Staff LoginStaff(string name, string department)
15         {
16             return dal.LoginStaff(name, department);
17         }
18     }
19 }
StaffBLL

 

逻辑层

标签:display   关于   xpl   explain   namespace   system   int   div   class   

原文地址:https://www.cnblogs.com/xcleowong/p/10002479.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!