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

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

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 public DataTable QueryDataAuthTypeByALL()
 {
     try
     {
         DBO.SYS_DataAuthTypeDBO User = new SYS_DataAuthTypeDBO(ref USEDB);
         return User.doQueryAll();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }