using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using CY.IDAL;
|
using CY.Model;
|
using AbstractFactory;
|
using CY.IBaseDAL;
|
using CY.Infrastructure.DESEncrypt;
|
using CY.Infrastructure.Query;
|
|
namespace CY.BLL
|
{
|
public class OA_WageProcessBLL
|
{
|
IOA_WageProcessDAL iOA_WageProcessDAL = null;
|
|
public OA_WageProcessBLL()
|
{
|
iOA_WageProcessDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_WageProcessDAL) as IOA_WageProcessDAL;
|
}
|
|
/// <summary>
|
/// 添加
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool InsertModel(Model.OA_WageProcess model)
|
{
|
return iOA_WageProcessDAL.InserModel(model);
|
}
|
|
/// <summary>
|
/// 更新
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool UpdateModel(Model.OA_WageProcess model)
|
{
|
|
return iOA_WageProcessDAL.UpdateModel(model);
|
}
|
|
/// <summary>
|
/// 删除
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool DeleteModel(Model.OA_WageProcess model)
|
{
|
|
return iOA_WageProcessDAL.DeleteModel(model);
|
}
|
|
/// <summary>
|
/// 根据编号获得信息
|
/// </summary>
|
/// <param name="Keyid">编号</param>
|
/// <returns></returns>
|
public OA_WageProcess GetModelByKeyid(int? Keyid)
|
{
|
return iOA_WageProcessDAL.GetModelByKeyid(Keyid);
|
}
|
|
/// <summary>
|
/// 分页查询
|
/// </summary>
|
/// <param name="pagination"></param>
|
/// <returns></returns>
|
public IEnumerable<Model.OA_WageProcess> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _MemberId, string _ParType, string _ParName, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator)
|
{
|
return iOA_WageProcessDAL.SelectModelPage(pagination, _MemberId, _ParType, _ParName, _BeginLastUpdateTime, _EndLastUpdateTime, _Operator);
|
}
|
|
/// <summary>
|
/// 计件等级选择工序
|
/// </summary>
|
/// <returns></returns>
|
public IEnumerable<Model.OA_WageProcess> SelectModelList(Guid _MemberId, string _ParType)
|
{
|
return iOA_WageProcessDAL.SelectModelList(_MemberId, _ParType);
|
}
|
|
/// <summary>
|
/// 检测会员工资工序是否重复
|
/// </summary>
|
/// <param name="Name"></param>
|
/// <param name="MemberId"></param>
|
/// <param name="Keyid"></param>
|
/// <returns></returns>
|
public int IsExitsName(string Name, Guid MemberId, int? Keyid)
|
{
|
return iOA_WageProcessDAL.IsExitsName(Name, MemberId, Keyid);
|
}
|
}
|
}
|