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.
26 lines
868 B
26 lines
868 B
using SSWMS.Common;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SSWMS.Server
|
|
{
|
|
public class P_SYS_MENU : P_Base_House<SYS_MENU>
|
|
{
|
|
public IList<SYS_MENU> GetListByMenuFlag(string sMenuFlag)
|
|
{
|
|
return this._sqlMap.QueryForList<SYS_MENU>("SYS_MENU_SELECT_BY_MENU_FLAG", sMenuFlag);
|
|
}
|
|
|
|
public IList<SYS_MENU> GetListByUser(int iUserID)
|
|
{
|
|
return this._sqlMap.QueryForList<SYS_MENU>("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 }
|
|
});
|
|
}
|
|
}
|
|
}
|