public orderSearchResult getOpenOrders(ISyncWSParameter dataParam, System.Nullable <orderType> ot, string clientId, string orderNo, string yourCono, System.Nullable <System.DateTime> from, System.Nullable <System.DateTime> to, string mark, string ordersFromHistory, string ordersFromProduction) { IDataReader reader = null; int totalRows; orderSearchResult res = new orderSearchResult(); switch (ot) { case orderType.CO: throw new Exception("ordertype CO not supported"); case orderType.CO3PL: Getco( clientId, orderNo, yourCono, from, to, mark, ordersFromHistory, ordersFromProduction, out reader); break; case orderType.PO: Getpo( clientId, orderNo, from, to, ordersFromHistory, ordersFromProduction, out reader); break; default: throw new Exception("unknown ordertype"); } ArrayList list = ReaderHelper.Read( reader, new order(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); res.list = list.ToArray(typeof(order)) as order[]; res.SetTotalRows(totalRows); return(res); }
public orderLine[] GetOrderLines(ISyncWSParameter dataParam, System.Nullable <orderType> ot, string clientId, string coNo, string poid, Nullable <int> poSeq, string ordersFromHistory, string ordersFromProduction) { IDataReader reader = null; int totalRows; switch (ot) { case orderType.CO: throw new Exception("ordertype CO not supported"); case orderType.CO3PL: Getcoline( clientId, coNo, ordersFromHistory, ordersFromProduction, out reader); break; case orderType.PO: Getpoline( clientId, poid, poSeq, ordersFromHistory, ordersFromProduction, out reader); break; default: throw new Exception("unknown ordertype"); } ArrayList list = ReaderHelper.Read( reader, new orderLine(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); return(list.ToArray(typeof(orderLine)) as orderLine[]); }
public RouteStop[] Finddepartureroutestops(ISyncWSParameter dataParam, string DepartureIdentity) { IDataReader reader = null; int totalRows; Finddepartureroutestops( DepartureIdentity, out reader); ArrayList list = ReaderHelper.Read( reader, new RouteStop(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); return(list.ToArray(typeof(RouteStop)) as RouteStop[]); }
public vendorPartNos[] Getvendorpartno(ISyncWSParameter dataParam, string clientId, string partNo) { IDataReader reader = null; int totalRows; Getvendorpartno( clientId, partNo, out reader); ArrayList list = ReaderHelper.Read( reader, new vendorPartNos(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); return(list.ToArray(typeof(vendorPartNos)) as vendorPartNos[]); }
public barcode[] Findbarcodebyproduct(ISyncWSParameter dataParam, string clientId, string partNo) { IDataReader reader = null; int totalRows; Findbarcodebyproduct( clientId, partNo, out reader); ArrayList list = ReaderHelper.Read( reader, new barcode(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); return(list.ToArray(typeof(barcode)) as barcode[]); }
public address[] getAddresses(ISyncWSParameter dataParam, string clientId, string customerId) { IDataReader reader = null; int totalRows; Getaddresses( clientId, customerId, out reader); ArrayList list = ReaderHelper.Read( reader, new address(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); return(list.ToArray(typeof(address)) as address[]); }
public productAvails[] Getproductavail(ISyncWSParameter dataParam, string clientId, string stockNo, string partNo) { IDataReader reader = null; int totalRows; Getproductavail( clientId, stockNo, partNo, out reader); ArrayList list = ReaderHelper.Read( reader, new productAvails(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); return(list.ToArray(typeof(productAvails)) as productAvails[]); }
public addressSearchResult getPartyAddress(ISyncWSParameter dataParam, string clientId, string partyId, partyType pt) { IDataReader reader = null; int totalRows; addressSearchResult res = new addressSearchResult(); Getpartyaddress(partyId, ConvertPartyType(pt), clientId, out reader); ArrayList list = ReaderHelper.Read( reader, new address(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); res.list = list.ToArray(typeof(address)) as address[]; res.SetTotalRows(totalRows); return(res); }
public customerOrderTypeSearchResult Findcustomerordertype(ISyncWSParameter dataParam) { IDataReader reader = null; customerOrderTypeSearchResult res = new customerOrderTypeSearchResult(); int totalRows; Findcustomerordertype( out reader); ArrayList list = ReaderHelper.Read( reader, new customerOrderType(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); res.list = list.ToArray(typeof(customerOrderType)) as customerOrderType[]; res.SetTotalRows(totalRows); return(res); }
public internalFindDepartureRouteResult Finddepartureroute(ISyncWSParameter dataParam, string DepartureIdentity) { IDataReader reader = null; int totalRows; internalFindDepartureRouteResult res = new internalFindDepartureRouteResult(); Finddepartureroute( DepartureIdentity, out reader); ArrayList list = ReaderHelper.Read( reader, new Route(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); res.list = list.ToArray(typeof(Route)) as Route[]; res.SetTotalRows(totalRows); return(res); }
public partySearchResult findPartyById(ISyncWSParameter dataParam, string clientId, string partyId, partyType pt) { IDataReader reader = null; int totalRows; partySearchResult res = new partySearchResult(); string partyQualifier = ConvertPartyType(pt); Findpartybyid(partyId, partyQualifier, clientId, out reader); ArrayList list = ReaderHelper.Read( reader, new customer(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); res.list = list.ToArray(typeof(customer)) as customer[]; res.SetTotalRows(totalRows); return(res); }
public methodOfShipmentSearchResult Findmethodofshipmentbyclient(ISyncWSParameter dataParam, string clientId) { IDataReader reader = null; methodOfShipmentSearchResult res = new methodOfShipmentSearchResult(); int totalRows; Findmethodofshipmentbyclient( clientId, out reader); ArrayList list = ReaderHelper.Read( reader, new methodOfShipment(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); res.list = list.ToArray(typeof(methodOfShipment)) as methodOfShipment[]; res.SetTotalRows(totalRows); return(res); }
public warehouseSearchResult Findwarehousebyclient(ISyncWSParameter dataParam, string clientId) { IDataReader reader = null; int totalRows; warehouseSearchResult res = new warehouseSearchResult(); Findwarehousebyclient( clientId, out reader); ArrayList list = ReaderHelper.Read( reader, new warehouse(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); res.list = list.ToArray(typeof(warehouse)) as warehouse[]; res.SetTotalRows(totalRows); return(res); }
public productSearchResult Findproductbydescription(ISyncWSParameter dataParam, string clientId, string partDescr) { IDataReader reader = null; int totalRows; productSearchResult res = new productSearchResult(); Findproductbydescription( clientId, partDescr, out reader); ArrayList list = ReaderHelper.Read( reader, new product(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); res.list = list.ToArray(typeof(product)) as product[]; res.SetTotalRows(totalRows); return(res); }
public customerSearchResult findCustomerById(ISyncWSParameter dataParam, string clientId, string customerId) { IDataReader reader = null; int totalRows; customerSearchResult res = new customerSearchResult(); Findcustomersbyid( clientId, customerId, out reader); ArrayList list = ReaderHelper.Read( reader, new customer(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); res.list = list.ToArray(typeof(customer)) as customer[]; res.SetTotalRows(totalRows); return(res); }
public address[] Getpartyaddress( ISyncWSParameter dataParam, string shipFromPartyid, string shipFromPartyQualifier, string clientId) { IDataReader reader = null; int totalRows; Getpartyaddress( shipFromPartyid, shipFromPartyQualifier, clientId, out reader); ArrayList list = ReaderHelper.Read( reader, new address(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); return(list.ToArray(typeof(address)) as address[]); }