Esempio n. 1
0
 public FileBrowser()
 {
     FolderId = -1;
     InitializeComponent();
     SearchFilePanel.Visibility   = AuthenticateStatus.GetModuleVisibility("100101");
     btnCreateFolder.Visibility   = AuthenticateStatus.GetModuleVisibility("100104");
     btnNewApplication.Visibility = AuthenticateStatus.GetModuleVisibility("100105");
 }
Esempio n. 2
0
        public Browser()
        {
            InitializeComponent();
            orgContext.GetOrganizationTree((obj) =>
            {
                if (Utility.Utility.CheckInvokeOperation(obj))
                {
                    OrganizationTreeView.ItemsSource = obj.Value.Children;
                    OpenFolder(FolderId);
                }
            }, null);
            InitContextMenu();

            SearchFilePanel.Visibility = AuthenticateStatus.GetModuleVisibility("100101");
        }
Esempio n. 3
0
 private void OpenFolder(string orgId)
 {
     if (string.IsNullOrEmpty(orgId))
     {
         return;
     }
     btnCreateFolder.Visibility      = AuthenticateStatus.GetModuleVisibility("100104");
     btnCreateApplication.Visibility = AuthenticateStatus.GetModuleVisibility("100105");
     OrgId = orgId;
     BusyIndicator1.IsBusy      = true;
     BusyIndicator1.BusyContent = "正在加载...";
     documentContext.GetFileSystemEntityByOrg(orgId, AuthenticateStatus.CurrentUser.UserId, obj =>
     {
         BusyIndicator1.IsBusy = false;
         if (Utility.Utility.CheckInvokeOperation(obj))
         {
             FileEntityListBox.ItemsSource = obj.Value;
         }
     }, null);
 }
Esempio n. 4
0
 private void OpenFolder(int parentId)
 {
     FolderId = parentId;
     btnBackToParentFolder.Visibility = FolderId < 1 ? Visibility.Collapsed : Visibility.Visible;
     if (parentId < 1)
     {
         OpenFolder(OrgId);
     }
     else
     {
         btnCreateFolder.Visibility      = AuthenticateStatus.GetModuleVisibility("100104");
         btnCreateApplication.Visibility = AuthenticateStatus.GetModuleVisibility("100105");
         BusyIndicator1.IsBusy           = true;
         BusyIndicator1.BusyContent      = "正在加载...";
         documentContext.GetFileSystemEntityByFolder(parentId, AuthenticateStatus.CurrentUser.UserId, obj =>
         {
             BusyIndicator1.IsBusy = false;
             if (Utility.Utility.CheckInvokeOperation(obj))
             {
                 FileEntityListBox.ItemsSource = obj.Value;
             }
         }, null);
     }
 }