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