大连融科 WMS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

117 lines
3.0 KiB

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