/// <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); }
/// <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); }
/// <summary> /// 插入楼层关联上下广告图 /// </summary> /// <param name="model"></param> /// <returns></returns> public int InsertSwfsIndexModuleRefPic(SWfsOperationPicture model) { return(DapperUtil.Insert <SWfsOperationPicture>(model)); }
public int Add(SWfsOperationPicture model, bool bl) { return(DapperUtil.Insert <SWfsOperationPicture>(model, bl)); }
public void Add(SWfsOperationPicture model) { DapperUtil.Insert <SWfsOperationPicture>(model); }
public bool Update(SWfsOperationPicture model) { return(DapperUtil.Update <SWfsOperationPicture>(model)); }