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

50 lines
1.5 KiB

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 插入信息
/// <summary>
/// 插入信息(单表)
/// </summary>
/// <param name="">信息</param>
/// <returns>插入行数</returns>
public DataResult<int> Insert(LeakInspectRecord model)
{
DataResult<int> result = new DataResult<int>();
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
}
}