using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMFrameWork.Data;
using QMAPP.FJC.Entity.ShipmentMonitor;
namespace QMAPP.FJC.DAL.Monitor
{
///
/// 发运看板显示设置-数据层对象
/// 作 者:李炳海
/// 编写日期:2017年09月27日
///
public class ShipMonitorSetDAL
{
///
/// 获取设置信息
///
/// 设置信息
public ShipMonitorSet Get()
{
ShipMonitorSet info = new ShipMonitorSet();
info.PID = "1";
using (IDataSession session = AppDataFactory.CreateMainSession())
{
info = session.Get(info);
}
return info;
}
///
/// 保存设置信息
///
/// 设置信息
/// 是否新增
public void Save(ShipMonitorSet info,bool isNew)
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
if (isNew)
{
session.Insert(info);
}
else
{
session.Update(info);
}
}
}
}
}