Beispiel #1
0
 public ActionResult RegPeople(int id)
 {
     var q = from i in DbUtil.Db.RegistrationDatas
             where i.Id == id
             select i;
     if (!q.Any())
         return Content("no data");
     var q2 = new List<ConfirmTestInfo>();
     foreach (var ed in q)
     {
         try
         {
             var m = Util.DeSerialize<OnlineRegModel>(ed.Data);
             m.Datum = ed;
             var i = new ConfirmTestInfo
             {
                 ed = ed,
                 m = m
             };
             q2.Add(i);
         }
         catch (Exception)
         {
         }
     }
     return View(q2[0].m);
 }
Beispiel #2
0
 public ActionResult ConfirmTest(int? start, int? count)
 {
     IEnumerable<RegistrationDatum> q;
     q = from ed in DbUtil.Db.RegistrationDatas
         orderby ed.Stamp descending
         select ed;
     var list = q.Skip(start ?? 0).Take(count ?? 200).ToList();
     var q2 = new List<ConfirmTestInfo>();
     foreach (var ed in list)
     {
         try
         {
             var m = Util.DeSerialize<OnlineRegModel>(ed.Data);
             var i = new ConfirmTestInfo
             {
                 ed = ed,
                 m = m
             };
             q2.Add(i);
         }
         catch (Exception)
         {
         }
     }
     return View(q2);
 }
Beispiel #3
0
        public ActionResult RegPeople(int id)
        {
            var q = from i in CurrentDatabase.RegistrationDatas
                    where i.Id == id
                    select i;

            if (!q.Any())
            {
                return(Content("no data"));
            }
            var q2 = new List <ConfirmTestInfo>();

            foreach (var ed in q)
            {
                try
                {
                    var m = Util.DeSerialize <OnlineRegModel>(ed.Data);
                    m.CurrentDatabase = CurrentDatabase;
                    m.Datum           = ed;
                    var i = new ConfirmTestInfo
                    {
                        ed = ed,
                        m  = m
                    };
                    q2.Add(i);
                }
                catch (Exception)
                {
                }
            }
            return(View("Other/RegPeople", q2[0].m));
        }
Beispiel #4
0
        public ActionResult ConfirmTest(int?start, int?count)
        {
            IEnumerable <RegistrationDatum> q;

            q = from ed in CurrentDatabase.RegistrationDatas
                orderby ed.Stamp descending
                select ed;
            var list = q.Skip(start ?? 0).Take(count ?? 200).ToList();
            var q2   = new List <ConfirmTestInfo>();

            foreach (var ed in list)
            {
                try
                {
                    var m = Util.DeSerialize <OnlineRegModel>(ed.Data);
                    m.CurrentDatabase = CurrentDatabase;
                    var i = new ConfirmTestInfo
                    {
                        ed = ed,
                        m  = m
                    };
                    q2.Add(i);
                }
                catch (Exception)
                {
                }
            }
            return(View("Other/ConfirmTest", q2));
        }
Beispiel #5
0
        public ActionResult RegPeople(int id)
        {
            var q = from i in DbUtil.Db.ExtraDatas
                    where i.Id == id
                    select i;

            if (!q.Any())
            {
                return(Content("no data"));
            }
            var q2 = new List <ConfirmTestInfo>();

            foreach (var ed in q)
            {
                try
                {
                    var m = Util.DeSerialize <OnlineRegModel>(ed.Data);
                    var i = new ConfirmTestInfo
                    {
                        ed = ed,
                        m  = m
                    };
                    q2.Add(i);
                }
                catch (Exception)
                {
                }
            }
            return(View("ConfirmTest", q2));
        }
Beispiel #6
0
        public ActionResult ConfirmTest(int?start, int?count)
        {
            IEnumerable <ExtraDatum> q;

            q = from ed in DbUtil.Db.ExtraDatas
                where ed.Data.StartsWith("<?") && ed.Data.Contains("<OnlineRegModel")
                orderby ed.Stamp descending
                select ed;
            var list = q.Skip(start ?? 0).Take(count ?? 200).ToList();
            var q2   = new List <ConfirmTestInfo>();

            foreach (var ed in list)
            {
                try
                {
                    var m = Util.DeSerialize <OnlineRegModel>(ed.Data);
                    var i = new ConfirmTestInfo
                    {
                        ed = ed,
                        m  = m
                    };
                    q2.Add(i);
                }
                catch (Exception)
                {
                }
            }
            return(View(q2));
        }