Exemplo n.º 1
0
        public void Export(List<ShowBase> selectedItems)
        {
            RecordQuery query = new RecordQuery(GlobalConfigVars.DbPath);
            foreach (SimpleResult item in selectedItems)
            {
                var state = query.GetSampleInfoByCrvSeqNum(item.CrvSeqNum);
                if (state == null) continue;

                string filePath = string.Format(@"{0}\{1}_{2}.xml",
                    GlobalConfigVars.XmlPath,
                    item.PrimId,
                    item.CrvSeqNum);
                OjbectDataXmlSerializer.Save(state, filePath);
            }
        }
Exemplo n.º 2
0
        public List <DateTime> GetAllTestDate()
        {
            RecordQuery query = new RecordQuery(GlobalConfigVars.DbPath);

            return(query.GetAllDates().Select(r => r.StartTime.Date).Distinct().ToList());
        }
Exemplo n.º 3
0
        public List <ShowBase> GetResultByFilterDate(DateTime testDate)
        {
            RecordQuery query = new RecordQuery(GlobalConfigVars.DbPath);

            return(query.GetSampleByFilterDate(testDate));
        }
Exemplo n.º 4
0
 public List<DateTime> GetAllTestDate()
 {
     RecordQuery query = new RecordQuery(GlobalConfigVars.DbPath);
     return query.GetAllDates().Select(r => r.StartTime.Date).Distinct().ToList();
 }
Exemplo n.º 5
0
 public List<ShowBase> GetResultByFilterDate(DateTime testDate)
 {
     RecordQuery query = new RecordQuery(GlobalConfigVars.DbPath);
     return query.GetSampleByFilterDate(testDate);
 }