/***************************************************************************
*
* 功能: 持久层基类
* 作者: 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;
///
/// FLOW_NODE
///
public class P_FLOW_NODE : P_Base_House
{
public P_FLOW_NODE ()
{
//
// TODO: 此处添加FLOW_NODE的构造函数
//
}
///
/// 得到列表
///
public IList GetList()
{
return ExecuteQueryForList("FLOW_NODE_SELECT",null);
}
///
/// 新建
///
public int Add(FLOW_NODE flow_node)
{
//int id = this.GetPrimaryID("FLOW_NODE","FLOW_NODE_ID");
//flow_node.FLOW_NODE_ID = id;
return ExecuteInsert("FLOW_NODE_INSERT",flow_node);
}
///
/// 修改
///
public int Update(FLOW_NODE flow_node)
{
return ExecuteUpdate("FLOW_NODE_UPDATE",flow_node);
}
///
/// 得到明细
///
///
///
public FLOW_NODE GetModel(System.Int32 FLOW_NODE_ID)
{
return ExecuteQueryForObject("FLOW_NODE_SELECT_BY_ID",FLOW_NODE_ID);
}
///
/// 删除
///
///
public int Delete(System.Int32 FLOW_NODE_ID)
{
return ExecuteDelete("FLOW_NODE_DELETE",FLOW_NODE_ID);
}
}
}