BLL/Company.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// ******************************************************************
// 文件名: Company.cs
// 主要内容 :操作公司对象的方法的集合
// ******************************************************************
using System;
using System.Collections.Generic;
using System.Text;
using Logistics.DAL;
using Logistics.IDal;
using Logistics.Model;
using System.Data;
namespace Logistics.BLL
{
/// <summary>
/// 公司业务逻辑
/// </summary>
public class Company
{
/// <summary>
/// 业务逻辑层公司的摘要说明
/// </summary>
//private const string tablename = "Logistics_Company";
bool b_result;
/// <summary>
/// 添加一个公司
/// </summary>
/// <param name="lc">公司对象</param>
/// <returns></returns>
public bool add(Logistics_Company lc)
{
ISessionn session = SessionFactory.createSession();
try
{
b_result = session.add(lc)>0;
}
catch
{
b_result = false;
}
session.Dispose();
return b_result;
}
/// <summary>
/// 通过条件获取公司信息
/// </summary>
/// <param name="where"></param>
/// <returns></returns>
public DataTable getCompanyListByWhere(string where)
{
ISessionn session = SessionFactory.createSession(); ;
DataTable dt;
try
{
dt = session.getModelListByWhere<Logistics.Model.Logistics_Company>(where);
}
后面还有 118 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。