BLL/driver.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Logistics.IDal;
using Logistics.Model;
using System.Data;
using Logistics.DAL;

namespace Logistics.BLL
{
    public class driver 
    {
        

        
        /// <summary>
        /// 添加驾驶员
        /// </summary>
        /// <param name="driver"></param>
        /// <param name="userid"></param>
        /// <returns></returns>
        public bool AddDriver(Logistics_Driver driver, int userid)
        {

            ISessionn session = SessionFactory.createSession();
            if (session.add(driver)>0)
            {
                  Log.record("Logistics_Driver", userid, "add", "新增一个驾驶员", driver.Driver_ID);
                  session.Dispose();
                return true;
            }
            else
            {
                return false;
            }


        }
       
        /// <summary>
        /// 修改驾驶员信息
        /// </summary>
        /// <param name="driver"></param>
        /// <param name="userid"></param>
        /// <returns></returns>
        public bool UpdetaDriver(Logistics_Driver driver, int userid)
        {
            ISessionn session = SessionFactory.createSession();
            if (session.update(driver))
            {
                Log.record("Logistics_Driver", userid, "updata", "新增一个驾驶员", driver.Driver_ID);
                session.Dispose();
                return true;
            }
            else
            {
                return false;
            }

后面还有 54 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。