Ejemplo n.º 1
0
        // ------------------------------------------
        //            List Documents
        // ------------------------------------------
        public void loadDocumentList(HeaderInfo headerInfo)
        {
            // Image list
            //
            imageList16           = ControllerUtils.GetImageList();
            imageList16.ImageSize = new Size(16, 16);

            imageList32           = ControllerUtils.GetImageList();
            imageList32.ImageSize = new Size(32, 32);

            // Binding
            tvFileList.ImageList = imageList16;

            // Clear nodes
            tvFileList.Nodes.Clear();

            var docoList = new DocumentList();

            if (cbxType.Text == "FCM")
            {
                docoList.List();
            }
            else
            {
                docoList.ListClient(Utils.ClientID);
            }

            // Load document in the treeview
            //
            // docoList.ListInTree(tvFileList);
            Document root = new Document();

            // root.GetRoot(headerInfo);

            //root = RepDocument.GetRoot(HeaderInfo.Instance);

            root = BUSDocument.GetRootDocument();

            DocumentList.ListInTree(tvFileList, docoList, root);
            tvFileList.Nodes[0].Expand();

            GetValuesFromCache();

            tvFileList.Refresh();
        }