public DataTable QueryDeliveryGoodsByCode(ArrayList ParameterList) { try { DBO.PUR_PurchaseDeliveryGoodsDBO dbo = new PUR_PurchaseDeliveryGoodsDBO(ref USEDB); return dbo.doQueryByCode(ParameterList); } catch (Exception ex) { throw ex; } }
public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList ) { DBO.PUR_PurchaseDeliveryGoodsDBO dbo = new PUR_PurchaseDeliveryGoodsDBO(ref USEDB); DataTable Dt; try { switch (QT) { case QueryType.ALL: Dt = dbo.doQueryAll(); break; case QueryType.CODE: Dt = dbo.doQueryByCode(ParameterList); break; case QueryType.ID: Dt = dbo.doQueryByID(ParameterList); break; case QueryType.Custom: Dt = dbo.doQueryByID(ParameterList); break; case QueryType.QueryByFIND: Dt = dbo.doQueryByID(ParameterList); break; case QueryType.QueryByLOAD: Dt = dbo.doQueryByLoad(ParameterList); break; case QueryType.QueryByPrint: Dt = dbo.doQueryByPrint(ParameterList); break; default: Dt = new DataTable(); break; } return Dt; } catch (Exception ex) { throw ex; } }