예제 #1
0
 /// <summary>
 /// 更新或插入广告图
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public SWfsOperationPicture InsertOrUpdateSWfsOperationPicture(SWfsOperationPicture model)
 {
     if (model.PictureManageId <= 0)
     {
         DapperUtil.Insert <SWfsOperationPicture>(model);
     }
     else
     {
         DapperUtil.Update <SWfsOperationPicture>(model);
     }
     return(model);
 }
예제 #2
0
        /// <summary>
        /// 获取图片模型
        /// </summary>
        /// <returns></returns>
        public SWfsOperationPicture GetEmptySWfsOperationPictureModel()
        {
            SWfsOperationPicture pic = new SWfsOperationPicture();

            pic.PictureName      = "";
            pic.LinkAddress      = "";
            pic.DataState        = (short)1;
            pic.Status           = 1;
            pic.OperatorUserId   = PresentationHelper.GetPassport().UserName;
            pic.DateCreate       = DateTime.Now;
            pic.LinkAddress      = "";
            pic.PagePositionName = "";
            pic.DateBegin        = MinTime;
            pic.DateEnd          = MinTime;
            return(pic);
        }
예제 #3
0
 /// <summary>
 /// 插入楼层关联上下广告图
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int InsertSwfsIndexModuleRefPic(SWfsOperationPicture model)
 {
     return(DapperUtil.Insert <SWfsOperationPicture>(model));
 }
예제 #4
0
 public int Add(SWfsOperationPicture model, bool bl)
 {
     return(DapperUtil.Insert <SWfsOperationPicture>(model, bl));
 }
예제 #5
0
 public void Add(SWfsOperationPicture model)
 {
     DapperUtil.Insert <SWfsOperationPicture>(model);
 }
예제 #6
0
 public bool Update(SWfsOperationPicture model)
 {
     return(DapperUtil.Update <SWfsOperationPicture>(model));
 }