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()); }
public int Upt(GoTime t) { return(dal.Upt(t)); }
public List <GoTime> GetList(GoTime t) { return(dal.GetList(t)); }
public int Add(GoTime t) { return(dal.Add(t)); }