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

117 lines
2.9 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using QMAPP.Entity.Sys;
using QMFrameWork.Data;
using QMAPP.DAL.Sys;
namespace QMAPP.BLL.Sys
{
/// <summary>
/// 模块编号:
/// 作 用:在线帮助逻辑层
/// 作 者:韩磊
/// 编写日期:2014年12月22日
///</summary>
public class OnlineHelpBLL : BaseBLL
{
#region 获取字段级帮助列表
/// <summary>
/// 获取字段级帮助列表
/// </summary>
/// <param name="condition">条件</param>
/// <param name="page">数据页</param>
/// <returns>字段级帮助集合</returns>
public List<OnlineHelp> GetList(OnlineHelp condition)
{
try
{
return new OnlineHelpDAL().GetList(condition);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 获取页面级帮助信息
/// </summary>
/// <param name="helpInfo">条件</param>
/// <returns>页面级帮助</returns>
public OnlineHelp Get(OnlineHelp helpInfo)
{
try
{
return new OnlineHelpDAL().Get(helpInfo);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 在线帮助信息编辑
/// <summary>
/// 插入在线帮助信息
/// </summary>
/// <param name="helpInfo">在线帮助信息</param>
/// <returns>插入数</returns>
public int Insert(OnlineHelp helpInfo)
{
try
{
helpInfo.PID = Guid.NewGuid().ToString();
return new OnlineHelpDAL().Insert(helpInfo);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 更新在线帮助信息
/// </summary>
/// <param name="lockInfo">在线帮助信息</param>
/// <returns>更新个数</returns>
public int Update(OnlineHelp helpInfo)
{
try
{
return new OnlineHelpDAL().Update(helpInfo);
}
catch (Exception ex)
{
throw ex;
}
}
/// <summary>
/// 更新在线帮助信息
/// </summary>
/// <param name="helpInfos">在线帮助信息集合</param>
/// <returns>更新个数</returns>
public int Save( List<OnlineHelp> helpInfos)
{
try
{
return new OnlineHelpDAL().Save(helpInfos);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
}
}