/*************************************************************************** * * 功能: 管理任务持久层基类 * 作者: 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; /// /// MANAGE_MAIN /// public class P_MES_INTERFACE : P_Base_House { public P_MES_INTERFACE() { // // TODO: 此处添加MANAGE_MAIN的构造函数 // } /// /// 得到列表 /// public IList GetList() { return ExecuteQueryForList("MES_INTERFACE_SELECT", null); } /// /// 得到列表 /// public IList GetListID(int ID) { return ExecuteQueryForList("MES_INTERFACE_SELECT_BY_ID", ID); } /// /// 新建 /// public int Add(MES_INTERFACE mes_interface) { //int id = this.GetPrimaryID("MANAGE_MAIN","MANAGE_MAIN_ID"); //manage_main.MANAGE_ID = id; return ExecuteInsert("MES_INTERFACE_INSERT", mes_interface); } /// /// 修改 /// public int Update(MES_INTERFACE mes_interface) { return ExecuteUpdate("MES_INTERFACE_UPDATE", mes_interface); } /// /// 得到明细 /// /// /// public MES_INTERFACE GetModel(System.Int32 ID) { return ExecuteQueryForObject("MES_INTERFACE_SELECT_BY_ID", ID); } /// /// 得到明细 /// /// /// public MES_INTERFACE GetModelPartNo(string PART_NO) { return ExecuteQueryForObject("MES_INTERFACE_SELECT_BY_PART_NO", PART_NO); } /// /// 得到明细 /// /// /// public MES_INTERFACE GetModelGoodsCode(string GOODS_CODE) { return ExecuteQueryForObject("MES_INTERFACE_SELECT_BY_GOODS_CODE", GOODS_CODE); } /// /// 得到明细 /// /// /// public MES_INTERFACE GetModelStockbarcode(string STOCK_BARCODE) { return ExecuteQueryForObject("MES_INTERFACE_SELECT_BY_GOODS_CODE", STOCK_BARCODE); } /// /// 删除 /// /// public int Delete(System.Int32 ID) { return ExecuteDelete("MES_INTERFACE_DELETE", ID); } } }