using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.BLL;
using QMFrameWork.Data;
using QMAPP.Entity;
using QMFrameWork.Log;
using System.Data;
using QMAPP.MD.Entity;
using QMAPP.MD.DAL;
using QMAPP.FJC.Entity.CheckTime;
using QMAPP.FJC.DAL.CheckTime;
using QMAPP.FJC.BLL.BZD;
namespace QMAPP.FJC.BLL.CheckTime
{
///
/// 模块名称:本地库无记录的 时间验证
/// 作 者:张松男
/// 编写日期:2020年03月00日
///
public class CHECKTIMEBLL : BaseBLL
{
#region 获取信息
///
/// 获取信息
///
/// 条件
/// 信息
public DataResult Get(CHECKTIME model)
{
DataResult result = new DataResult();
try
{
result.Result = new CHECKTIMEDAL().Get(model);
}
catch (Exception ex)
{
result.IsSuccess = false;
result.Msg = Resource.SystemException;
throw ex;
}
result.IsSuccess = true;
return result;
}
#endregion
#region 获取列表(分页)
///
/// 获取列表
///
/// 条件
/// 数据页
/// 数据页
public DataResult GetList(CHECKTIME condition, DataPage page)
{
DataResult result = new DataResult();
try
{
//获取物料信息列表
DataPage dataPage = new CHECKTIMEDAL().GetList(condition, page);
result.Result = dataPage;
}
catch (Exception ex)
{
result.IsSuccess = false;
throw ex;
}
result.IsSuccess = true;
return result;
}
#endregion
#region 更新信息
///
/// 更新信息
///
/// 信息
/// 更新行数
public DataResult Update(CHECKTIME info)
{
DataResult result = new DataResult();
try
{
result.Result = new CHECKTIMEDAL().Update(info);
result.IsSuccess = true;
return result;
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
}
}