using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.BLL;
using QMAPP.Entity;
using QMAPP.FJC.Entity.InterfaceData;
using QMAPP.FJC.DAL.InterfaceData;
using QMFrameWork.Log;
namespace QMAPP.FJC.BLL.InterfaceData
{
public class LeakInspectRecordBLL : BaseBLL
{
#region 插入信息
///
/// 插入信息(单表)
///
/// 信息
/// 插入行数
public DataResult Insert(LeakInspectRecord model)
{
DataResult result = new DataResult();
try
{
//基本信息
model.PID = Guid.NewGuid().ToString();
model.CREATEDATE = DateTime.Now;
LeakInspectRecordDAL cmdDAL = new LeakInspectRecordDAL();
result.Result = cmdDAL.Insert(model);
result.IsSuccess = true;
result.Msg = QMAPP.FJC.Entity.Resource.MsgSuccess;
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo()
{
ErrorInfo = ex,
Tag = ex.StackTrace,
Info = "漏装检测记录-插入信息"
});
result.IsSuccess = false;
result.Msg = QMAPP.FJC.Entity.Resource.SystemException;
}
return result;
}
#endregion
}
}