巨石化纤
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.

52 lines
1.8 KiB

using System.Collections;
using System.Collections.Generic;
using SSWMS.Common;
namespace SSWMS.Server
{
public class P_MANAGE_MAIN : P_Base_House<MANAGE_MAIN>
{
public MANAGE_MAIN GetModelByStockBarcode(string sStockBarcode)
{
return this._sqlMap.QueryForObject<MANAGE_MAIN>("MANAGE_MAIN_SELECT_BY_STOCK_BARCODE", sStockBarcode);
}
public MANAGE_MAIN GetModelByStorageID(int iStorageID)
{
return this._sqlMap.QueryForObject<MANAGE_MAIN>("MANAGE_MAIN_SELECT_BY_STORAGE_ID", iStorageID);
}
public MANAGE_MAIN GetModelByInSend(string sStartDeviceCode)
{
return this._sqlMap.QueryForObject<MANAGE_MAIN>("MANAGE_MAIN_SELECT_BY_IN_SEND", new Hashtable()
{
{ "START_CELL_CODE", sStartDeviceCode },
{ "MANAGE_STATUS", SystemCode.MANAGE_STATUS.Send }
});
}
public IList<MANAGE_MAIN> GetListByPlanID(int iPlanID)
{
return this._sqlMap.QueryForList<MANAGE_MAIN>("MANAGE_MAIN_SELECT_BY_PLAN_ID", iPlanID);
}
public IList<MANAGE_MAIN> GetListByPlanOut(int iPlanID, string sEndDeviceCode)
{
return this._sqlMap.QueryForList<MANAGE_MAIN>("MANAGE_MAIN_SELECT_BY_PLAN_OUT", new Hashtable()
{
{ "PLAN_ID", iPlanID },
{ "END_CELL_CODE", sEndDeviceCode }
});
}
public IList<MANAGE_MAIN> GetListByPlanOut(string sEndDeviceCode)
{
return this._sqlMap.QueryForList<MANAGE_MAIN>("MANAGE_MAIN_SELECT_BY_END_DEVICE_CODE", sEndDeviceCode);
}
public IList<MANAGE_MAIN> GetListByStatus(string sManageStatus)
{
return this._sqlMap.QueryForList<MANAGE_MAIN>("MANAGE_MAIN_SELECT_BY_STATUS", sManageStatus);
}
}
}