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

72 lines
2.1 KiB

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
{
/// <summary>
/// 设备利用率分析
/// 于子清
/// 2017-10-26
/// </summary>
public class EqueUseCountBLL : BaseBLL
{
public DataResult<List<EqueUseCountDModel>> GetAllList(EqueUseCountDModel condition)
{
DataResult<List<EqueUseCountDModel>> result = new DataResult<List<EqueUseCountDModel>>();
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<List<T_BD_MACHINEINFO>> GetSList()
{
DataResult<List<T_BD_MACHINEINFO>> result = new DataResult<List<T_BD_MACHINEINFO>>();
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<List<T_BD_MACHINEINFO>> GetMachine(string workcentercode)
{
DataResult<List<T_BD_MACHINEINFO>> result = new DataResult<List<T_BD_MACHINEINFO>>();
try
{
result.Result = new EqueUseCountDAL().GetMachine(workcentercode);
result.IsSuccess = true;
return result;
}
catch (Exception ex)
{
result.IsSuccess = false;
result.Msg = ex.ToString();
return result;
}
}
}
}