Esempio n. 1
0
        private void GetSharedFileFolder(int folderId)
        {
            using (IDataReader reader = DBSharedFiles.GetSharedFileFolder(folderId))
            {
                if (reader.Read())
                {
                    this.folderID   = Convert.ToInt32(reader["FolderID"]);
                    this.moduleID   = Convert.ToInt32(reader["ModuleID"]);
                    this.folderName = reader["FolderName"].ToString();
                    this.parentID   = Convert.ToInt32(reader["ParentID"]);

                    this.folderGuid = new Guid(reader["FolderGuid"].ToString());
                    this.moduleGuid = new Guid(reader["ModuleGuid"].ToString());

                    string p = reader["ParentGuid"].ToString();
                    if (p.Length == 36)
                    {
                        this.parentGuid = new Guid(p);
                    }
                }
            }
        }