Пример #1
0
 public ActionResult chongkaiqiandao(qiandao qd)
 {
     using (HrmDBEntities3 db = new HrmDBEntities3())
     {
         db.Entry(qd).State = EntityState.Modified;
         db.SaveChanges();
         // return Content("成功重开签到!");
         // return Content("<script>alert('成功重开签到!')</script>");
         return(Content("<script language='javascript' type='text/javascript'>alert('成功重开签到!');history.go(-1);location.reload();</script>"));
     }
 }
Пример #2
0
        public ActionResult FQQD(qiandao qd)
        {
            if (!ModelState.IsValid)
            {
                using (HrmDBEntities3 db = new HrmDBEntities3())
                {
                    qd.QDtime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));

                    db.qiandao.Add(qd);
                    db.SaveChanges();
                }
                //return Content("<script>alert('发起签到成功!')</script>");
                //return Json("发起签到成功!", JsonRequestBehavior.AllowGet);
                return(Content("<script language='javascript' type='text/javascript'>alert('发起签到成功!');history.go(-1);location.reload();</script>"));
            }
            else
            {
                return(Content("失败"));
            }
        }