Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public addressSearchResult getAddresses(ISyncWSParameter dataParam, string clientId, string customerId)
        {
            IDataReader         reader = null;
            int                 totalRows;
            addressSearchResult res = new addressSearchResult();

            Getaddresses(
                clientId,
                customerId,
                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);
        }