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

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
{
/// <summary>
/// 发运看板显示设置-数据层对象
/// 作 者:李炳海
/// 编写日期:2017年09月27日
/// </summary>
public class ShipMonitorSetDAL
{
/// <summary>
/// 获取设置信息
/// </summary>
/// <returns>设置信息</returns>
public ShipMonitorSet Get()
{
ShipMonitorSet info = new ShipMonitorSet();
info.PID = "1";
using (IDataSession session = AppDataFactory.CreateMainSession())
{
info = session.Get<ShipMonitorSet>(info);
}
return info;
}
/// <summary>
/// 保存设置信息
/// </summary>
/// <param name="info">设置信息</param>
/// <param name="isNew">是否新增</param>
public void Save(ShipMonitorSet info,bool isNew)
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
if (isNew)
{
session.Insert<ShipMonitorSet>(info);
}
else
{
session.Update<ShipMonitorSet>(info);
}
}
}
}
}