Exemplo n.º 1
0
        public ISyncWSResult getMethodOfShipments(Database database, ISyncWSParameter dataParameter)
        {
            methodOfShipmentSearchParameters methodOfShipmentSearchParameters = (methodOfShipmentSearchParameters)dataParameter;

            WebServices3pl pkg = new WebServices3pl(database);

            methodOfShipmentSearchResult res = (methodOfShipmentSearchResult)pkg.Findmethodofshipmentbyclient(dataParameter,
                                                                                                              methodOfShipmentSearchParameters.clientId);

            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);
        }