/// <summary> /// /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { T_LayoutPicture target = obj as T_LayoutPicture; if (target == null) { return(false); } if (target.LayoutPictureID == LayoutPictureID && target.Title + "" == Title + "" && target.Message + "" == Message + "" && target.PicUrl + "" == PicUrl + "" && target.PicWidth + "" == PicWidth + "" && target.PicHeight + "" == PicHeight + "" && target.State == State && target.XPostion == XPostion && target.YPostion == YPostion && target.Remark + "" == Remark + "") { return(true); } return(false); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(MesWeb.Model.T_LayoutPicture model) { return(dal.Add(model)); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(MesWeb.Model.T_LayoutPicture model) { return(dal.Update(model)); }
public ActionResult WorkshopLayout() { updateLayoutState(); MesWeb.Model.T_LayoutPicture workshopLayout = (MesWeb.Model.T_LayoutPicture)TempData["workshopLayout"]; return(View(GetLayoutInfo(workshopLayout))); }