Exemplo n.º 1
0
        public DataTable QuerySwitch(QueryType QT,
                                     ArrayList ParameterList
                                     )
        {
            DBO.SYS_RoleDBO Role = new SYS_RoleDBO(ref USEDB);
            DataTable Dt;

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

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
 public DataTable QueryRoleByCode(ArrayList ParameterList)
 {
     try
     {
         DBO.SYS_RoleDBO Role = new SYS_RoleDBO(ref USEDB);
         return Role.doQueryByCode(ParameterList);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }