public bool Add(M_ViewHistory model) { string strSql = "INSERT INTO [ZL_ViewHistory] ([InfoId],[type],[UserID],[addtime]) VALUES (@InfoId,@type,@UserID,@addtime)"; SqlParameter[] cmdParams = model.GetParameters(); return(SqlHelper.ExecuteSql(strSql, cmdParams)); }
public void ViewHistory() { if (Request["InfoId"] != null && Request["type"] != null) { B_ViewHistory vhBll = new B_ViewHistory(); M_ViewHistory vhMod = new M_ViewHistory(); vhMod.InfoId = Convert.ToInt32(Request["InfoId"]); vhMod.type = Request["type"]; vhMod.UserID = buser.GetLogin().UserID; vhMod.addtime = DateTime.Now; vhBll.Add(vhMod); } }
public bool UpdateByID(M_ViewHistory model) { return(DBCenter.UpdateByID(model, model.ID)); }
public int Insert(M_ViewHistory model) { return(DBCenter.Insert(model)); }