You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.3 KiB
54 lines
1.3 KiB
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using QMAPP.FJC.Entity.Basic;
|
||
|
using QMFrameWork.Data;
|
||
|
using QMAPP.DAL;
|
||
|
|
||
|
namespace QMAPP.FJC.DAL.Basic
|
||
|
{
|
||
|
public class MoldSetDAL : BaseDAL
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 获取所有的模腔号设置
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public List<MoldSet> GetList()
|
||
|
{
|
||
|
List<MoldSet> list = new List<MoldSet>();
|
||
|
|
||
|
string sql = "select * from T_BD_MOLDSET";
|
||
|
|
||
|
using (IDataSession session = AppDataFactory.CreateMainSession())
|
||
|
{
|
||
|
list = session.GetList<MoldSet>(sql, new List<DataParameter>().ToArray()).ToList<MoldSet>();
|
||
|
}
|
||
|
|
||
|
return list;
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 更新模腔号信息
|
||
|
/// </summary>
|
||
|
/// <param name="entity"></param>
|
||
|
public void Update(MoldSet entity)
|
||
|
{
|
||
|
|
||
|
if (this.BaseSession != null)
|
||
|
{
|
||
|
BaseSession.Update<MoldSet>(entity);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
using (IDataSession session = AppDataFactory.CreateMainSession())
|
||
|
{
|
||
|
session.Update<MoldSet>(entity);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|