using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.MESReport.Entity.LineQTY;
using QMAPP.MESReport.DAL.LineQTY;
using QMAPP.BLL;
using QMFrameWork.Data;
using QMAPP.Entity;
using System.Data;
using QMAPP.MESReport.Entity.Tables;
namespace QMAPP.MESReport.BLL.LineQTY
{
///
/// 设备利用率分析
/// 于子清
/// 2017-10-26
///
public class EqueUseCountBLL : BaseBLL
{
public DataResult> GetAllList(EqueUseCountDModel condition)
{
DataResult> result = new DataResult>();
try
{
result.Result = new EqueUseCountDAL().GetAllList(condition);
result.IsSuccess = true;
return result;
}
catch (Exception ex)
{
result.IsSuccess = false;
result.Msg = ex.ToString();
return result;
}
}
public DataResult> GetSList()
{
DataResult> result = new DataResult>();
try
{
result.Result = new EqueUseCountDAL().GetSList();
result.IsSuccess = true;
return result;
}
catch (Exception ex)
{
result.IsSuccess = false;
result.Msg = ex.ToString();
return result;
}
}
public DataResult> GetMachine(string workcentercode)
{
DataResult> result = new DataResult>();
try
{
result.Result = new EqueUseCountDAL().GetMachine(workcentercode);
result.IsSuccess = true;
return result;
}
catch (Exception ex)
{
result.IsSuccess = false;
result.Msg = ex.ToString();
return result;
}
}
}
}