/*************************************************************************** * * 功能: 持久层基类 * 作者: LaiHaMa * 日期: 2010-9-7 * * 修改日期: * 修改人: * 修改内容: * * *************************************************************************/ 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; /// /// LED_LIST /// public class P_LED_LIST : P_Base_House { public P_LED_LIST() { } /// /// 得到列表 /// public IList GetList() { return this.ExecuteQueryForList("LED_LIST_SELECT", null); } /// /// 得到列表,根据LED_ID /// public IList GetList(int LED_ID) { return this.ExecuteQueryForList("LED_LIST_SELECT_BY_LED_ID", LED_ID); } /// /// 得到明细,根据LED_ID,LINE_NO /// /// /// public LED_LIST GetModel(int LED_ID, int LINE_NO) { Hashtable ht = new Hashtable(); ht.Add("LED_ID", LED_ID); ht.Add("LINE_NO", LINE_NO); return this.ExecuteQueryForObject("LED_LIST_SELECT_BY_LED_ID_LINE_NO", ht); } /// /// 得到明细,根据LED_LIST_ID /// /// /// public LED_LIST GetModel(int LED_LIST_ID) { return this.ExecuteQueryForObject("LED_LIST_SELECT_BY_ID", LED_LIST_ID); } /// /// 新建 /// public void Add(LED_LIST led_list) { //int id = this.GetId("LED_LIST", "LED_LIST_ID"); //led_list.LED_LIST_ID = id; this.ExecuteInsert("LED_LIST_INSERT", led_list); } /// /// 修改 /// public void Update(LED_LIST led_list) { this.ExecuteUpdate("LED_LIST_UPDATE", led_list); } /// /// 删除 /// /// public void Delete(int LED_LIST_ID) { this.ExecuteDelete("LED_LIST_DELETE", LED_LIST_ID); } } }