/*************************************************************************** * * 功能: 持久层基类 * 作者: Siasun * 日期: 2013/4/11 * * 修改日期: * 修改人: * 修改内容: * * *************************************************************************/ namespace SiaSun.LMS.Persistence { using System; using System.Collections; using System.Collections.Generic; using IBatisNet.Common; using IBatisNet.DataMapper; using IBatisNet.Common.Exceptions; using SiaSun.LMS.Model; /// /// STORAGE_DETAIL /// public class P_STORAGE_DETAIL : P_Base_House { public P_STORAGE_DETAIL () { // // TODO: 此处添加STORAGE_DETAIL的构造函数 // } /// /// 得到列表 /// public IList GetList() { return ExecuteQueryForList("STORAGE_DETAIL_SELECT",null); } /// /// 新建 /// public int Add(STORAGE_DETAIL storage_detail) { //int id = this.GetPrimaryID("STORAGE_DETAIL","STORAGE_DETAIL_ID"); //storage_detail.STORAGE_DETAIL_ID = id; return ExecuteInsert("STORAGE_DETAIL_INSERT",storage_detail); } /// /// 修改 /// public int Update(STORAGE_DETAIL storage_detail) { return ExecuteUpdate("STORAGE_DETAIL_UPDATE",storage_detail); } /// /// 得到明细 /// /// /// public STORAGE_DETAIL GetModel(System.Int32 STORAGE_DETAIL_ID) { return ExecuteQueryForObject("STORAGE_DETAIL_SELECT_BY_ID",STORAGE_DETAIL_ID); } /// /// 得到明细 /// /// /// public STORAGE_DETAIL GetModelGoodsBarcode(System.String GOODS_BARCODE) { return this.ExecuteQueryForObject("STORAGE_DETAIL_SELECT_BY_GOODS_BARCODE", GOODS_BARCODE); } /// /// 删除 /// /// public int Delete(System.Int32 STORAGE_DETAIL_ID) { return ExecuteDelete("STORAGE_DETAIL_DELETE",STORAGE_DETAIL_ID); } } }