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

53 lines
1.4 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.Entity.WIPManage;
using QMAPP.DAL;
using QMFrameWork.Data;
namespace QMAPP.FJC.DAL.WarehouseManage
{
/// <summary>
/// 模块编号:M13-4
/// 作 用:入库(工控机)数据层
/// 作 者:王丹丹
/// 编写日期:2015年07月15日
///</summary>
public class InWarehouseDAL : BaseDAL
{
#region 插入信息
/// <summary>
/// 插入信息(单表)
/// </summary>
/// <param name="">信息</param>
/// <returns>插入行数</returns>
public int Insert(WIPInRecorder model)
{
int count = 0;
try
{
if (this.BaseSession != null)
{
count = this.BaseSession.Insert<WIPInRecorder>(model);
}
else
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
//插入基本信息
count = session.Insert<WIPInRecorder>(model);
}
}
return count;
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
}
}