Ejemplo n.º 1
0
        public static List <ModificationRow> GetModificationRows(string apFileName, string apFileType)
        {
            string pathToModificationsReportFile = System.Web.HttpContext.Current.Request.MapPath(string.Format("~/Uploads/{0}.{1}", apFileName, apFileType));
            List <ModificationRow> modRows       = ExcelDataReader.GetModificationRows(pathToModificationsReportFile);

            return(modRows);
        }
Ejemplo n.º 2
0
        private bool ValidateMDFile(string fpath)
        {
            bool valid = true;

            try
            {
                List <ModificationRow> rows = ExcelDataReader.GetModificationRows(fpath);

                int zeroRecords = rows.Count(r => r.InterviewRecordID == 0);

                valid = (zeroRecords != 0);
            }
            catch
            {
                valid = false;
            }

            return(valid);
        }