天津投入产出系统后端
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.

49 lines
1.0 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.BLL;
using QMAPP.FJC.Entity.Basic;
using QMAPP.FJC.DAL.Basic;
using QMFrameWork.Data;
namespace QMAPP.FJC.BLL.Basic
{
public class MoldSetBLL : BaseBLL
{
public List<MoldSet> GetList()
{
List<MoldSet> list = new List<MoldSet>();
list = new MoldSetDAL().GetList();
return list;
}
/// <summary>
/// 更新
/// </summary>
/// <param name="list"></param>
public void SaveMoldSet(List<MoldSet> list)
{
MoldSetDAL moldSetDal = new MoldSetDAL();
using (IDataSession session = AppDataFactory.CreateMainSession())
{
moldSetDal.BaseSession = session;
session.OpenTs();
foreach (var mSet in list)
{
moldSetDal.Update(mSet);
}
session.CommitTs();
};
}
}
}