コード例 #1
0
        /// <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);
        }
コード例 #2
0
ファイル: T_LayoutPicture.cs プロジェクト: icprog/MesCable
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(MesWeb.Model.T_LayoutPicture model)
 {
     return(dal.Add(model));
 }
コード例 #3
0
ファイル: T_LayoutPicture.cs プロジェクト: icprog/MesCable
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(MesWeb.Model.T_LayoutPicture model)
 {
     return(dal.Update(model));
 }
コード例 #4
0
 public ActionResult WorkshopLayout()
 {
     updateLayoutState();
     MesWeb.Model.T_LayoutPicture workshopLayout = (MesWeb.Model.T_LayoutPicture)TempData["workshopLayout"];
     return(View(GetLayoutInfo(workshopLayout)));
 }