public DataTable QuerySwitch(QueryType QT,
                                     ArrayList ParameterList
                                     )
        {
            DBO.SYS_USERPROGAUTHRELDBO RoleProgauthrel = new SYS_USERPROGAUTHRELDBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.ALL:
                        Dt = RoleProgauthrel.doQueryAll();
                        break;
                    case QueryType.CODE:
                        Dt = RoleProgauthrel.doQueryByCode(ParameterList);
                        break;
                    case QueryType.ID:
                        Dt = RoleProgauthrel.doQueryByID(ParameterList);
                        break;
                    case QueryType.Custom:
                        Dt = RoleProgauthrel.doQueryByFind(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 /// <summary>
 /// 抓取使用者及群組CRUD權限
 /// </summary>
 /// <param name="ParameterList">傳入參數</param>
 /// <returns>回傳權限</returns>
 public DataTable QueryUserprogauthrelByID(ArrayList ParameterList)
 {
     try
     {
         DBO.SYS_USERPROGAUTHRELDBO RoleProgauthrel = new SYS_USERPROGAUTHRELDBO(ref USEDB);
         return RoleProgauthrel.doQueryByID(ParameterList);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }