using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMFrameWork.Data;
using QMAPP.Entity.Sys;
using System.Data;
using QMAPP.DAL.Sys;
namespace QMAPP.BLL.Sys
{
///
/// 参数与人员组织接口
/// 创建者:郭佳伟
/// 创建日期:2013.2.7
///
public class ParaAuthorityPortManageBLL : BaseBLL
{
#region 获取参数与人员组织信息列表
///
/// 获取参数与人员组织信息列表
///
/// 条件
/// 数据页
/// 数据页
public DataPage GetList(ParaAuthorityPort condition, DataPage page)
{
try
{
return new ParaAuthorityPortManageDAL().GetList(condition, page);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 获取参数信息
///
/// 获取参数信息
///
/// 条件
/// 参数信息
public ParaAuthorityPort Get(ParaAuthorityPort user)
{
try
{
return new ParaAuthorityPortManageDAL().Get(user);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 插入参数信息
///
/// 插入参数信息
///
/// 参数基本信息
/// 插入数
public int Insert(ParaAuthorityPort pap)
{
try
{
//pap.ParaID = Guid.NewGuid().ToString();
//pap.CreateTime = DateTime.Now;
//pap.CreateUser = "";
//pap.UpdateTime = pap.CreateTime;
//pap.UpdateUser = "";
return new ParaAuthorityPortManageDAL().Insert(pap);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 删除参数信息
///
/// 删除参数信息
///
/// 参数基本信息
/// 删除个数
public int Delete(string[] paps)
{
int count = 0;
try
{
foreach (string pap in paps)
{
//count += this.Delete(new ParaAuthorityPort { ParaID = pap });
}
return count;
}
catch (Exception ex)
{
throw ex;
}
}
///
/// 删除参数信息
///
/// 参数基本信息
/// 删除个数
public int Delete(ParaAuthorityPort pap)
{
try
{
return new ParaAuthorityPortManageDAL().Delete(pap);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 更新参数信息
///
/// 更新参数信息
///
/// 参数信息
/// 更新个数
public int Update(ParaAuthorityPort pap)
{
try
{
return new ParaAuthorityPortManageDAL().Update(pap);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
}
}