逻辑层,项目名称:FBBLL
BLHTHuiFu
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using IClass;
using System.Data;
namespace FBBLL
{
public class BLHTHuiFu
{
private readonly DAL.DLHTHuiFu dal = new DAL.DLHTHuiFu();
#region 成员方法
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(int HfId)
{
return dal.Exists(HfId);
}
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(HTHuiFu model)
{
return dal.Add(model);
}
/// <summary>
/// 更新一条数据
/// </summary>
public void Update(HTHuiFu model)
{
dal.Update(model);
}
/// <summary>
/// 删除一条数据
/// </summary>
public void Delete(int HfId)
{
dal.Delete(HfId);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public HTHuiFu GetModel(int HfId)
{
return dal.GetModel(HfId);
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetList(string strWhere)
{
return dal.GetList(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public List<HTHuiFu> GetModelList(string strWhere)
{
DataSet ds = dal.GetList(strWhere);
List<HTHuiFu> modelList = new List<HTHuiFu>();
int rowsCount = ds.Tables[0].Rows.Count;
if (rowsCount > 0)
{
HTHuiFu model;
for (int n = 0; n < rowsCount; n++)
{
model = new HTHuiFu();
if (ds.Tables[0].Rows[n]["HfId"].ToString() != "")
{
model.HfId1 = int.Parse(ds.Tables[0].Rows[n]["HfId"].ToString());
}
model.FBRenName1 = ds.Tables[0].Rows[n]["FBRenName"].ToString();
model.FanKuiNeiRong1 = ds.Tables[0].Rows[n]["FanKuiNeiRong"].ToString();
model.HTId1 = Convert.ToInt32(ds.Tables[0].Rows[n]["HTId"].ToString());
modelList.Add(model);
}
}
return modelList;
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetAllList()
{
return GetList("");
}
/// <summary>
/// 获得数据列表
/// </summary>
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
//{
//return dal.GetList(PageSize,PageIndex,strWhere);
//}
#endregion 成员方法
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using IClass;
using System.Data;
namespace FBBLL
{
public class BLHTHuiFu
{
private readonly DAL.DLHTHuiFu dal = new DAL.DLHTHuiFu();
#region 成员方法
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(int HfId)
{
return dal.Exists(HfId);
}
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(HTHuiFu model)
{
return dal.Add(model);
}
/// <summary>
/// 更新一条数据
/// </summary>
public void Update(HTHuiFu model)
{
dal.Update(model);
}
/// <summary>
/// 删除一条数据
/// </summary>
public void Delete(int HfId)
{
dal.Delete(HfId);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public HTHuiFu GetModel(int HfId)
{
return dal.GetModel(HfId);
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetList(string strWhere)
{
return dal.GetList(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public List<HTHuiFu> GetModelList(string strWhere)
{
DataSet ds = dal.GetList(strWhere);
List<HTHuiFu> modelList = new List<HTHuiFu>();
int rowsCount = ds.Tables[0].Rows.Count;
if (rowsCount > 0)
{
HTHuiFu model;
for (int n = 0; n < rowsCount; n++)
{
model = new HTHuiFu();
if (ds.Tables[0].Rows[n]["HfId"].ToString() != "")
{
model.HfId1 = int.Parse(ds.Tables[0].Rows[n]["HfId"].ToString());
}
model.FBRenName1 = ds.Tables[0].Rows[n]["FBRenName"].ToString();
model.FanKuiNeiRong1 = ds.Tables[0].Rows[n]["FanKuiNeiRong"].ToString();
model.HTId1 = Convert.ToInt32(ds.Tables[0].Rows[n]["HTId"].ToString());
modelList.Add(model);
}
}
return modelList;
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetAllList()
{
return GetList("");
}
/// <summary>
/// 获得数据列表
/// </summary>
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
//{
//return dal.GetList(PageSize,PageIndex,strWhere);
//}
#endregion 成员方法
}
}
BLHuaTi
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IClass;
using DAL;
using System.Data;
namespace FBBLL
{
public class BLHuaTi
{
private readonly DAL.DLHuaTi dal = new DAL.DLHuaTi();
#region 成员方法
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(int HTID)
{
return dal.Exists(HTID);
}
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(HuaTi model)
{
return dal.Add(model);
}
/// <summary>
/// 更新一条数据
/// </summary>
public void Update(HuaTi model)
{
dal.Update(model);
}
/// <summary>
/// 删除一条数据
/// </summary>
public void Delete(int HTID)
{
dal.Delete(HTID);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public HuaTi GetModel(int HTID)
{
return dal.GetModel(HTID);
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetList(string strWhere)
{
return dal.GetList(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public List<HuaTi> GetModelList(string strWhere)
{
DataSet ds = dal.GetList(strWhere);
List<HuaTi> modelList = new List<HuaTi>();
int rowsCount = ds.Tables[0].Rows.Count;
if (rowsCount > 0)
{
HuaTi model;
for (int n = 0; n < rowsCount; n++)
{
model = new HuaTi();
if (ds.Tables[0].Rows[n]["HTID"].ToString() != "")
{
model.HTID1 = int.Parse(ds.Tables[0].Rows[n]["HTID"].ToString());
}
model.HTName1 = ds.Tables[0].Rows[n]["HTName"].ToString();
model.HTNeiRong1 = ds.Tables[0].Rows[n]["HTNeiRong"].ToString();
if (ds.Tables[0].Rows[n]["State"].ToString() != "")
{
model.State1 = int.Parse(ds.Tables[0].Rows[n]["State"].ToString());
}
if (ds.Tables[0].Rows[n]["dt"].ToString() != "")
{
model.Dt = DateTime.Parse(ds.Tables[0].Rows[n]["dt"].ToString());
}
modelList.Add(model);
}
}
return modelList;
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetAllList()
{
return GetList("");
}
/// <summary>
/// 获得数据列表
/// </summary>
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
//{
//return dal.GetList(PageSize,PageIndex,strWhere);
//}
#endregion 成员方法
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IClass;
using DAL;
using System.Data;
namespace FBBLL
{
public class BLHuaTi
{
private readonly DAL.DLHuaTi dal = new DAL.DLHuaTi();
#region 成员方法
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(int HTID)
{
return dal.Exists(HTID);
}
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(HuaTi model)
{
return dal.Add(model);
}
/// <summary>
/// 更新一条数据
/// </summary>
public void Update(HuaTi model)
{
dal.Update(model);
}
/// <summary>
/// 删除一条数据
/// </summary>
public void Delete(int HTID)
{
dal.Delete(HTID);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public HuaTi GetModel(int HTID)
{
return dal.GetModel(HTID);
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetList(string strWhere)
{
return dal.GetList(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public List<HuaTi> GetModelList(string strWhere)
{
DataSet ds = dal.GetList(strWhere);
List<HuaTi> modelList = new List<HuaTi>();
int rowsCount = ds.Tables[0].Rows.Count;
if (rowsCount > 0)
{
HuaTi model;
for (int n = 0; n < rowsCount; n++)
{
model = new HuaTi();
if (ds.Tables[0].Rows[n]["HTID"].ToString() != "")
{
model.HTID1 = int.Parse(ds.Tables[0].Rows[n]["HTID"].ToString());
}
model.HTName1 = ds.Tables[0].Rows[n]["HTName"].ToString();
model.HTNeiRong1 = ds.Tables[0].Rows[n]["HTNeiRong"].ToString();
if (ds.Tables[0].Rows[n]["State"].ToString() != "")
{
model.State1 = int.Parse(ds.Tables[0].Rows[n]["State"].ToString());
}
if (ds.Tables[0].Rows[n]["dt"].ToString() != "")
{
model.Dt = DateTime.Parse(ds.Tables[0].Rows[n]["dt"].ToString());
}
modelList.Add(model);
}
}
return modelList;
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetAllList()
{
return GetList("");
}
/// <summary>
/// 获得数据列表
/// </summary>
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
//{
//return dal.GetList(PageSize,PageIndex,strWhere);
//}
#endregion 成员方法
}
}
Master
using System;
using System.Data;
using System.Collections.Generic;
using IClass;
using FBBLL;
namespace FBBLL
{
/// <summary>
/// 业务逻辑类Master 的摘要说明。
/// </summary>
public class Master
{
private readonly DAL.DLMaster dal = new DAL.DLMaster();
public Master()
{ }
#region 成员方法
/// <summary>
/// 增加一条数据
/// </summary>
public void Add(IClass.Master model)
{
dal.Add(model);
}
/// <summary>
/// 删除一条数据
/// </summary>
public void Delete(string id)
{
dal.Delete(id);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public IClass.Master GetModel(string id)
{
return dal.GetModel(id);
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetList(string strWhere)
{
return dal.GetList(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public List<IClass.Master> GetModelList(string strWhere)
{
DataSet ds = dal.GetList(strWhere);
List<IClass.Master> modelList = new List<IClass.Master>();
int rowsCount = ds.Tables[0].Rows.Count;
if (rowsCount > 0)
{
IClass.Master model;
for (int n = 0; n < rowsCount; n++)
{
model = new IClass.Master();
model.Id = ds.Tables[0].Rows[n]["id"].ToString();
model.Bl = Convert.ToBoolean(ds.Tables[0].Rows[n]["bl"].ToString());
model.Flage = ds.Tables[0].Rows[n]["flage"].ToString();
modelList.Add(model);
}
}
return modelList;
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetAllList()
{
return GetList("");
}
/// <summary>
/// 获得数据列表
/// </summary>
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
//{
//return dal.GetList(PageSize,PageIndex,strWhere);
//}
#endregion 成员方法
}
}
using System;
using System.Data;
using System.Collections.Generic;
using IClass;
using FBBLL;
namespace FBBLL
{
/// <summary>
/// 业务逻辑类Master 的摘要说明。
/// </summary>
public class Master
{
private readonly DAL.DLMaster dal = new DAL.DLMaster();
public Master()
{ }
#region 成员方法
/// <summary>
/// 增加一条数据
/// </summary>
public void Add(IClass.Master model)
{
dal.Add(model);
}
/// <summary>
/// 删除一条数据
/// </summary>
public void Delete(string id)
{
dal.Delete(id);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public IClass.Master GetModel(string id)
{
return dal.GetModel(id);
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetList(string strWhere)
{
return dal.GetList(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public List<IClass.Master> GetModelList(string strWhere)
{
DataSet ds = dal.GetList(strWhere);
List<IClass.Master> modelList = new List<IClass.Master>();
int rowsCount = ds.Tables[0].Rows.Count;
if (rowsCount > 0)
{
IClass.Master model;
for (int n = 0; n < rowsCount; n++)
{
model = new IClass.Master();
model.Id = ds.Tables[0].Rows[n]["id"].ToString();
model.Bl = Convert.ToBoolean(ds.Tables[0].Rows[n]["bl"].ToString());
model.Flage = ds.Tables[0].Rows[n]["flage"].ToString();
modelList.Add(model);
}
}
return modelList;
}
/// <summary>
/// 获得数据列表
/// </summary>
public DataSet GetAllList()
{
return GetList("");
}
/// <summary>
/// 获得数据列表
/// </summary>
//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
//{
//return dal.GetList(PageSize,PageIndex,strWhere);
//}
#endregion 成员方法
}
}
基于WF的意见征集1(浅析)
基于WF的意见征集2(浅析)
基于WF的意见征集3(浅析)
基于WF的意见征集4(浅析)
基于WF的意见征集5(浅析)
基于WF的意见征集7(浅析)