Esempio n. 1
0
        protected void _cliMatDetails_MatterChanged(object sender, EventArgs e)
        {
            try
            {
                _lblError.Text = "";

                Session["SelectedFolder"] = null;

                DocumentFolders.ReloadFolders();
                DocumentFiles1.Rebind();

                if (Session[SessionName.ProjectId] == null)
                {
                    DocumentImport1.SetButtonEnabled(false);
                    NewFolder1.EnableNewFolder           = false;
                    _searchDocFiles.EnableSearchDocument = false;
                    _btnDelFolder.Enabled = false;
                    ScriptManager.RegisterStartupScript(this, GetType(), "test1", "$('#" + _searchDocFiles.SearchForDocumentButtonClientID + "').attr('disabled', true);", true);

                    if (_cliMatDetails.Message != null)
                    {
                        if (_cliMatDetails.Message.Trim().Length > 0)
                        {
                            _lblError.Text = _cliMatDetails.Message;
                            return;
                        }
                    }
                }
                else
                {
                    _searchDocFiles.EnableSearchDocument = true;
                    DocumentImport1.SetButtonEnabled(true);
                    _btnDelFolder.Enabled      = true;
                    NewFolder1.EnableNewFolder = true;
                    ScriptManager.RegisterStartupScript(this, GetType(), "test1", "$('#" + _searchDocFiles.SearchForDocumentButtonClientID + "').attr('disabled', false);", true);
                }
            }
            catch (Exception ex)
            {
                _lblError.Text = ex.Message;
            }
        }
Esempio n. 2
0
 protected void _btnRefresh_Click(object sender, EventArgs e)
 {
     //Rebind TreeView and DocGrid
     DocumentFolders.ReloadFolders();
     DocumentFiles1.Rebind();
 }
Esempio n. 3
0
 protected void NewFolder1_MatterFolderAdded(object sender, EventArgs e)
 {
     DocumentFolders.ReloadFolders();
 }
Esempio n. 4
0
 protected void DocumentImport1_ItemChanged(object sender, EventArgs e)
 {
     DocumentFolders.ReloadFolders();
     DocumentFiles1.Rebind();
 }