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.
49 lines
1.0 KiB
49 lines
1.0 KiB
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using QMAPP.BLL;
|
||
|
using QMAPP.FJC.Entity.Operation;
|
||
|
using QMAPP.FJC.DAL.Operation;
|
||
|
using QMAPP.KB.Entity;
|
||
|
|
||
|
namespace QMAPP.FJC.BLL.Operation
|
||
|
{
|
||
|
public class CastCounterBLL : BaseBLL
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 获取浇注设置信息
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public CastCounter Get()
|
||
|
{
|
||
|
CastCounter cast = new CastCounterDAL().Get();
|
||
|
|
||
|
return cast;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 更新浇注设置信息
|
||
|
/// </summary>
|
||
|
/// <param name="cast"></param>
|
||
|
public DataResult Update(CastCounter cast)
|
||
|
{
|
||
|
DataResult result = new DataResult();
|
||
|
result.IsSuccess = true;
|
||
|
|
||
|
try
|
||
|
{
|
||
|
new CastCounterDAL().UpdateConfig(cast);
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
|
||
|
result.IsSuccess = false;
|
||
|
}
|
||
|
|
||
|
|
||
|
return result;
|
||
|
}
|
||
|
}
|
||
|
}
|