Esempio n. 1
0
        public static List<UploadError> List(Int64 idUpload)
        {
            List<UploadError> resultList = new List<UploadError>();

            int rCount = 0;
            FiltroUploadError f = new FiltroUploadError();
            f.ID_UPLOAD = idUpload;
            try
            {
                UploadErrorDS dataservice = new UploadErrorDS();
                DataSet ds = dataservice.List(f, out rCount);

                if (ds.Tables.Count > 0)

                    foreach (DataRow r in ds.Tables[0].Rows)
                    {
                        UploadError a = new UploadError();
                        ORM(a, r);
                        resultList.Add(a);
                    }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return resultList;
        }
Esempio n. 2
0
        public static List<UploadError> List(FiltroUpload f, out int RecordCount)
        {
            List<UploadError> resultList = new List<UploadError>();

            try
            {
                UploadErrorDS dataservice = new UploadErrorDS();
                DataSet ds = dataservice.List(f, out RecordCount);

                if (ds.Tables.Count > 0)

                    foreach (DataRow r in ds.Tables[0].Rows)
                    {
                        UploadError a = new UploadError();
                        ORM(a, r);
                        resultList.Add(a);
                    }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return resultList;
        }