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; } }
public DataTable QueryRoleByID(ArrayList ParameterList) { try { DBO.SYS_RoleDBO Role = new SYS_RoleDBO(ref USEDB); return Role.doQueryByID(ParameterList); } catch (Exception ex) { throw ex; } }