using SSWMS.Common; using System.Collections; using System.Collections.Generic; namespace SSWMS.Server { public class P_SYS_MENU : P_Base_House { public IList GetListByMenuFlag(string sMenuFlag) { return this._sqlMap.QueryForList("SYS_MENU_SELECT_BY_MENU_FLAG", sMenuFlag); } public IList GetListByUser(int iUserID) { return this._sqlMap.QueryForList("SYS_MENU_SELECT_BY_USER", new Hashtable { { "USER_ID", iUserID }, { "RELATION_TYPE", SystemCode.RELATION_TYPE.Menu }, { "MENU_FLAG", SystemCode.FLAG.Enable }, { "MENU_IS_PARENT", SystemCode.FLAG.Enable }, { "MENU_PARENT_ID", SystemCode.ConstCode.CommonParentID } }); } } }