Esempio n. 1
0
        public static UploadError GetById(int id)
        {
            UploadError Result = null;

            try
            {
                UploadErrorDS DS = new UploadErrorDS();
                String objectHash = Guid.NewGuid().ToString();
                DataRow dr = DS.GetObjectById(id, objectHash);

                if (dr != null)
                {
                    Result = new UploadError();
                    ORM(Result, dr);
                }

            }
            catch (Exception ex)
            {
                throw ex;
            }

            return Result;
        }
Esempio n. 2
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. 3
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;
        }