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 { /// /// 模块编号:M13-4 /// 作 用:入库(工控机)数据层 /// 作 者:王丹丹 /// 编写日期:2015年07月15日 /// public class InWarehouseDAL : BaseDAL { #region 插入信息 /// /// 插入信息(单表) /// /// 信息 /// 插入行数 public int Insert(WIPInRecorder model) { int count = 0; try { if (this.BaseSession != null) { count = this.BaseSession.Insert(model); } else { using (IDataSession session = AppDataFactory.CreateMainSession()) { //插入基本信息 count = session.Insert(model); } } return count; } catch (Exception ex) { throw ex; } } #endregion } }