using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using wcftest.EnumDefine;
|
using wcftest.EnumDefine.Sys;
|
using wcftest.orm;
|
using wcftest.Utils.AuthFacotry.Default;
|
|
namespace wcftest.Utils.AuthFacotry
|
{
|
public class AuthFactory
|
{
|
public static AuthHandler GetHandle(dbModel _mod, roleMenu _ROLEid, Menu_IdEnum _menu_IdEnum)
|
{
|
AuthHandler handle = null;
|
switch (_menu_IdEnum)
|
{
|
case Menu_IdEnum.过期库存预警:
|
handle = new OverTimeStoreWaringHandler(_mod,_ROLEid,_menu_IdEnum);
|
break;
|
case Menu_IdEnum.库存明细查询:
|
handle = new StoreDetailQueryHandler(_mod, _ROLEid, _menu_IdEnum);
|
break;
|
}
|
return handle;
|
}
|
}
|
}
|