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

153 lines
3.8 KiB

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
{
/// <summary>
/// 参数与人员组织接口
/// 创建者:郭佳伟
/// 创建日期:2013.2.7
/// </summary>
public class ParaAuthorityPortManageBLL : BaseBLL
{
#region 获取参数与人员组织信息列表
/// <summary>
/// 获取参数与人员组织信息列表
/// </summary>
/// <param name="condition">条件</param>
/// <param name="page">数据页</param>
/// <returns>数据页</returns>
public DataPage GetList(ParaAuthorityPort condition, DataPage page)
{
try
{
return new ParaAuthorityPortManageDAL().GetList(condition, page);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 获取参数信息
/// <summary>
/// 获取参数信息
/// </summary>
/// <param name="user">条件</param>
/// <returns>参数信息</returns>
public ParaAuthorityPort Get(ParaAuthorityPort user)
{
try
{
return new ParaAuthorityPortManageDAL().Get(user);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 插入参数信息
/// <summary>
/// 插入参数信息
/// </summary>
/// <param name="ParaAuthorityPort">参数基本信息</param>
/// <returns>插入数</returns>
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 删除参数信息
/// <summary>
/// 删除参数信息
/// </summary>
/// <param name="user">参数基本信息</param>
/// <returns>删除个数</returns>
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;
}
}
/// <summary>
/// 删除参数信息
/// </summary>
/// <param name="ParaAuthorityPort">参数基本信息</param>
/// <returns>删除个数</returns>
public int Delete(ParaAuthorityPort pap)
{
try
{
return new ParaAuthorityPortManageDAL().Delete(pap);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 更新参数信息
/// <summary>
/// 更新参数信息
/// </summary>
/// <param name="ParaAuthorityPort">参数信息</param>
/// <returns>更新个数</returns>
public int Update(ParaAuthorityPort pap)
{
try
{
return new ParaAuthorityPortManageDAL().Update(pap);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
}
}