public ISyncWSResult find(ISyncWSParameter dataParameter) { warehouseSearchResult res = new warehouseSearchResult(); ArrayList list = ReaderHelper.MakeTestData(10, new warehouse()); res.list = list.ToArray(typeof(warehouse)) as warehouse[]; res.totalHits = res.list.GetLength(0); return((searchResult)res); }
public ISyncWSResult findByClient(Database database, ISyncWSParameter dataParameter) { warehouseSearchParameters warehouseSearchParameters = (warehouseSearchParameters)dataParameter; WebServices3pl pkg = new WebServices3pl(database); warehouseSearchResult res = pkg.Findwarehousebyclient(dataParameter, warehouseSearchParameters.clientId); return((searchResult)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); }