Пример #1
0
 public SystemFolder GetByID(int _systemFolderId)
 {
     SystemFolderDAC _systemFolderComponent = new SystemFolderDAC();
      IDataReader reader = _systemFolderComponent.GetByIDSystemFolder(_systemFolderId);
      SystemFolder _systemFolder = null;
      while(reader.Read())
      {
          _systemFolder = new SystemFolder();
          if(reader["SystemFolderId"] != DBNull.Value)
              _systemFolder.SystemFolderId = Convert.ToInt32(reader["SystemFolderId"]);
          if(reader["Name"] != DBNull.Value)
              _systemFolder.Name = Convert.ToString(reader["Name"]);
          if(reader["Path"] != DBNull.Value)
              _systemFolder.Path = Convert.ToString(reader["Path"]);
      _systemFolder.NewRecord = false;             }             reader.Close();
      return _systemFolder;
 }
Пример #2
0
 public List<SystemFolder> GetAll()
 {
     SystemFolderDAC _systemFolderComponent = new SystemFolderDAC();
      IDataReader reader =  _systemFolderComponent.GetAllSystemFolder().CreateDataReader();
      List<SystemFolder> _systemFolderList = new List<SystemFolder>();
      while(reader.Read())
      {
      if(_systemFolderList == null)
          _systemFolderList = new List<SystemFolder>();
          SystemFolder _systemFolder = new SystemFolder();
          if(reader["SystemFolderId"] != DBNull.Value)
              _systemFolder.SystemFolderId = Convert.ToInt32(reader["SystemFolderId"]);
          if(reader["Name"] != DBNull.Value)
              _systemFolder.Name = Convert.ToString(reader["Name"]);
          if(reader["Path"] != DBNull.Value)
              _systemFolder.Path = Convert.ToString(reader["Path"]);
      _systemFolder.NewRecord = false;
      _systemFolderList.Add(_systemFolder);
      }             reader.Close();
      return _systemFolderList;
 }
Пример #3
0
        public bool Insert(string Name, string Path)
        {
            // insert new content entity
             ContentEntityDAC ContentEntityComponent = new ContentEntityDAC();
             Int32 SystemFolderId = 0;
             ContentEntityComponent.InsertNewContentEntity(ref SystemFolderId, "SF", Guid.NewGuid(), DateTime.Today);

             // insert new system folder
             SystemFolderDAC systemfolderComponent = new SystemFolderDAC();
             return systemfolderComponent.InsertNewSystemFolder(SystemFolderId, Name, Path);
        }
Пример #4
0
 public bool Insert(SystemFolder systemfolder)
 {
     SystemFolderDAC systemfolderComponent = new SystemFolderDAC();
     return systemfolderComponent.InsertNewSystemFolder( systemfolder.SystemFolderId,  systemfolder.Name,  systemfolder.Path);
 }
Пример #5
0
 public void Delete(int Original_SystemFolderId)
 {
     SystemFolderDAC systemfolderComponent = new SystemFolderDAC();
     systemfolderComponent.DeleteSystemFolder(Original_SystemFolderId);
     BusinessLogicLayer.Common.ContentEntityLogic.Delete(Original_SystemFolderId);
 }
Пример #6
0
 public int UpdateDataset(System.Data.DataSet dataset)
 {
     SystemFolderDAC systemfoldercomponent = new SystemFolderDAC();
     return systemfoldercomponent.UpdateDataset(dataset);
 }
Пример #7
0
 public bool Update( int SystemFolderId,  string Name,  string Path,  int Original_SystemFolderId)
 {
     SystemFolderDAC systemfolderComponent = new SystemFolderDAC();
     return systemfolderComponent.UpdateSystemFolder( SystemFolderId,  Name,  Path,  Original_SystemFolderId);
 }
Пример #8
0
 public bool Update(SystemFolder systemfolder ,int old_systemFolderId)
 {
     SystemFolderDAC systemfolderComponent = new SystemFolderDAC();
     return systemfolderComponent.UpdateSystemFolder( systemfolder.SystemFolderId,  systemfolder.Name,  systemfolder.Path,  old_systemFolderId);
 }