BLL/CarType.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// ******************************************************************
// 文件名: Car.cs
// 主要内容 :操作车辆对象的方法的集合
// ******************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Logistics.DAL;
using Logistics.IDal;
using System.Data;
namespace Logistics.BLL
{
public class CarType
{
public const string tablename = "Logistics_Car_Type";
/// <summary>
/// 添加车辆类型
/// </summary>
/// <param name="cartype">车辆实体对象</param>
/// <param name="userid">用户ID</param>
/// <returns></returns>
public bool add(Logistics.Model.Logistics_Car_Type cartype, int userid)
{
ISessionn session =SessionFactory.createSession();
int i;
bool result;
try
{
i = session.add(cartype);
result = i > 0;
if (result)
{
Log.record(tablename, userid, "添加", userid + "添加了一个车辆类型", i);
}
}
catch
{
result = false;
}
finally
{
session.close();
session.Dispose();
}
return result;
}
/// <summary>
/// 删除某个车辆类型
/// </summary>
/// <param name="id">车辆类型ID</param>
/// <param name="userid">用户ID</param>
/// <returns></returns>
public bool delete(int id, int userid)
{
ISessionn session =SessionFactory.createSession();
Logistics.Model.Logistics_Car_Type c = new Logistics.Model.Logistics_Car_Type();
后面还有 175 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。