Exemple #1
0
        public ActionResult Upd(string amH, string amM, string comH, string comM, string pmH, string pmM, string comP, string comPP)
        {
            GoTime g = new GoTime();
            var    p = DateTime.Now.ToString("yyyy/MM/dd");

            g.AMGoTime   = Convert.ToDateTime(p + " " + amH + ":" + amM);
            g.AMComeTime = Convert.ToDateTime(p + " " + comH + ":" + comM);
            g.PMGoTime   = Convert.ToDateTime(p + " " + pmH + ":" + pmM);
            g.PMComeTime = Convert.ToDateTime(p + " " + comP + ":" + comPP);
            if (bll.Upt(g) > 0)
            {
                Response.Write("<script>alert('修改成功');location.href='/GoTime/Index';</script>");
            }
            else
            {
                Response.Write("<script>alert('修改失败')</script>");
            }
            return(View());
        }
Exemple #2
0
 public int Upt(GoTime t)
 {
     return(dal.Upt(t));
 }
Exemple #3
0
 public List <GoTime> GetList(GoTime t)
 {
     return(dal.GetList(t));
 }
Exemple #4
0
 public int Add(GoTime t)
 {
     return(dal.Add(t));
 }