Ejemplo n.º 1
0
        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);
     }
 }
Ejemplo n.º 3
0
 public bool UpdateByID(M_ViewHistory model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }
Ejemplo n.º 4
0
 public int Insert(M_ViewHistory model)
 {
     return(DBCenter.Insert(model));
 }