/***************************************************************************
*
* 功能: 计划列表持久层基类
* 作者: 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;
///
/// PLAN_LIST
///
public class P_PLAN_LIST : P_Base_House
{
public P_PLAN_LIST ()
{
//
// TODO: 此处添加PLAN_LIST的构造函数
//
}
///
/// 得到列表
///
public IList GetList()
{
return ExecuteQueryForList("PLAN_LIST_SELECT",null);
}
///
/// 得到列表
///
public IList GetListPlanID(int PLAN_ID )
{
return ExecuteQueryForList("PLAN_LIST_SELECT_BY_PLAN_ID", PLAN_ID);
}
///
/// 得到列表
///
public IList GetListNoComplete(int PLAN_ID)
{
return ExecuteQueryForList("PLAN_LIST_SELECT_BY_PLAN_ID_NO_COMPLETE", PLAN_ID);
}
///
/// 新建
///
public int Add(PLAN_LIST plan_list)
{
//int id = this.GetPrimaryID("PLAN_LIST","PLAN_LIST_ID");
//plan_list.PLAN_LIST_ID = id;
return ExecuteInsert("PLAN_LIST_INSERT",plan_list);
}
///
/// 修改
///
public int Update(PLAN_LIST plan_list)
{
return ExecuteUpdate("PLAN_LIST_UPDATE",plan_list);
}
///
/// 得到明细
///
///
///
public PLAN_LIST GetModel(System.Int32 PLAN_LIST_ID)
{
return ExecuteQueryForObject("PLAN_LIST_SELECT_BY_ID",PLAN_LIST_ID);
}
///
/// 删除
///
///
public int Delete(System.Int32 PLAN_LIST_ID)
{
return ExecuteDelete("PLAN_LIST_DELETE",PLAN_LIST_ID);
}
///
/// 删除
///
///
public int DeletePlanID(System.Int32 PLAN_ID)
{
return ExecuteDelete("PLAN_LIST_DELETE_BY_PLAN_ID", PLAN_ID);
}
}
}