public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList ) { DBO.PUR_PurchaseOrderDBO dbo = new PUR_PurchaseOrderDBO(ref USEDB); DataTable Dt; try { switch (QT) { //case QueryType.ALL: // Dt = dbo.doQueryAll(); // break; //case QueryType.CODE: // Dt = dbo.doQueryByCode(ParameterList); // break; case QueryType.PK: Dt = dbo.GetMasterByPK(ParameterList); break; case QueryType.Where1: Dt = dbo.GetMainByWhere1(ParameterList); break; default: Dt = new DataTable(); break; } return Dt; } catch (Exception ex) { throw ex; } }