using System;
using System.Data;
using System.Collections.Generic;
using QMFrameWork.Data;
using QMAPP.Entity.Sys;
namespace QMAPP.DAL.Sys
{
///
/// 个行设置数据层对象
/// 创建者:李炳海
/// 创建日期:2015.2.25
///
public class PersnalSetDAL:BaseDAL
{
#region 获取个性设置信息
///
/// 获取个性设置信息
///
/// 用户主键
/// 个性设置信息
public PersnalSet Get(string userID)
{
PersnalSet info = null;
try
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
info = session.Get(new PersnalSet {USERID=userID });
}
return info;
}
catch (Exception ex)
{
throw;
}
}
#endregion
#region 保存个性设置信息
///
/// 保存个性设置信息
///
/// 个性设置信息
public void Save(PersnalSet info)
{
try
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
session.OpenTs();
session.Delete(info);
session.Insert(info);
session.CommitTs();
}
}
catch (Exception ex)
{
throw;
}
}
#endregion
}
}