Ejemplo n.º 1
0
        /// <summary>
        /// 删除文件夹
        /// </summary>
        /// <param name="keyValue">主键</param>
        public void RemoveForm(string keyValue)
        {
            FileFolderEntity fileFolderEntity = new FileFolderEntity();

            fileFolderEntity.Modify(keyValue);
            fileFolderEntity.F_DeleteMark = 1;
            this.BaseRepository().Update(fileFolderEntity);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 共享文件夹
        /// </summary>
        /// <param name="keyValue">主键</param>
        /// <param name="IsShare">是否共享:1-共享 0取消共享</param>
        public void ShareFolder(string keyValue, int IsShare)
        {
            FileFolderEntity fileFolderEntity = new FileFolderEntity();

            fileFolderEntity.F_FolderId  = keyValue;
            fileFolderEntity.F_IsShare   = IsShare;
            fileFolderEntity.F_ShareTime = DateTime.Now;
            this.BaseRepository().Update(fileFolderEntity);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 保存文件夹表单(新增、修改)
 /// </summary>
 /// <param name="keyValue">主键值</param>
 /// <param name="fileFolderEntity">文件夹实体</param>
 /// <returns></returns>
 public void SaveForm(string keyValue, FileFolderEntity fileFolderEntity)
 {
     try
     {
         service.SaveForm(keyValue, fileFolderEntity);
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 保存文件夹表单(新增、修改)
 /// </summary>
 /// <param name="keyValue">主键值</param>
 /// <param name="fileFolderEntity">文件夹实体</param>
 /// <returns></returns>
 public void SaveForm(string keyValue, FileFolderEntity fileFolderEntity)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         fileFolderEntity.Modify(keyValue);
         this.BaseRepository().Update(fileFolderEntity);
     }
     else
     {
         fileFolderEntity.Create();
         this.BaseRepository().Insert(fileFolderEntity);
     }
 }