public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList ) { DBO.MKT_PurchaseCardSaleAreaDBO dbo = new MKT_PurchaseCardSaleAreaDBO(ref USEDB); DataTable Dt; try { switch (QT) { case QueryType.ALL: Dt = dbo.doQueryAll(); break; case QueryType.ID: Dt = dbo.doQueryByID(ParameterList); break; case QueryType.Custom: Dt = dbo.doQueryByFind(ParameterList); break; default: Dt = new DataTable(); break; } return Dt; } catch (Exception ex) { throw ex; } }
public DataTable QueryPurchaseCardSaleAreaByID(ArrayList ParameterList) { try { DBO.MKT_PurchaseCardSaleAreaDBO dbo = new MKT_PurchaseCardSaleAreaDBO(ref USEDB); return dbo.doQueryByID(ParameterList); } catch (Exception ex) { throw ex; } }