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

54 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-3
/// 作 用:出库(工控机)数据层
/// 作 者:王丹丹
/// 编写日期:2015年07月13日
///</summary>
public class OutWarehouseDAL : BaseDAL
{
#region 插入信息
/// <summary>
/// 插入信息(单表)
/// </summary>
/// <param name="">信息</param>
/// <returns>插入行数</returns>
public int Insert(WIPOutRecorder model)
{
int count = 0;
try
{
if (this.BaseSession != null)
{
count = this.BaseSession.Insert<WIPOutRecorder>(model);
}
else
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
//插入基本信息
count = session.Insert<WIPOutRecorder>(model);
}
}
return count;
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
}
}