Exemplo n.º 1
0
        // ------------------------------------------
        //            List Documents
        // ------------------------------------------
        public void loadDocumentList()
        {
            // Image list
            //
            ImageList imageList = ControllerUtils.GetImageList();

            // Binding
            tvProjectPlanDoco.ImageList = imageList;

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

            var docoList = new DocumentList();

            docoList.List();

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

            root.CUID       = "ROOT";
            root.RecordType = FCMConstant.RecordType.FOLDER;
            root.UID        = 0;
            // root.Read();

            // root = RepDocument.Read(false, 0, "ROOT");

            // Using Business Layer

            root = BUSDocument.GetRootDocument();

            DocumentList.ListInTree(tvProjectPlanDoco, docoList, root);
            tvProjectPlanDoco.ExpandAll();
        }
Exemplo n.º 2
0
        public void loadDocumentList(int documentSetUID = 0)
        {
            // Image list
            //
            ImageList imageList = ControllerUtils.GetImageList();

            // Binding
            tvFileList.ImageList = imageList;

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

            var docoList = new DocumentList();

            docoList.ListDocSet(documentSetUID);

            // Load document in the treeview
            //
            Document root = new Document();

            root.CUID       = "ROOT";
            root.RecordType = FCMConstant.RecordType.FOLDER;
            root.UID        = 0;
            // root.Read();

            //root = RepDocument.Read(false, 0, "ROOT");
            root = BUSDocument.GetRootDocument();

            DocumentList.ListInTree(tvFileList, docoList, root);
            tvFileList.Nodes[0].Expand();
        }
Exemplo n.º 3
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();
        }
Exemplo n.º 4
0
        // -------------------------------------------------------
        //  Load Event
        // -------------------------------------------------------
        private void UIClientDocumentLink_Load(object sender, EventArgs e)
        {
            // Get client list from background and load into the list
            // -------------------------------------------------------
            foreach (Client c in Utils.ClientList)
            {
                cbxClient.Items.Add(c.UID + "; " + c.Name);
            }

            // Get selected client from the background
            // -------------------------------------------------------
            // cbxClient.SelectedIndex = Utils.ClientIndex;

            // Load document in the treeview
            // -------------------------------------------------------
            Document root = new Document();

            root.CUID       = "ROOT";
            root.Name       = "FCM Documents";
            root.RecordType = FCMConstant.RecordType.FOLDER;
            root.UID        = 0;
            // root.Read();

            // root = RepDocument.Read(false, 0, "ROOT");

            // Using Business Layer

            root = BUSDocument.GetRootDocument();


            // Populate document list
            // -------------------------------------------------------
            PopulateDocumentCombo('N');

            // List Available Documents
            // -------------------------------------------------------
            loadDocumentList();

            // List Documents Linked to selected document
            // -------------------------------------------------------
            loadLinkedDocuments(parentDocument);
        }
Exemplo n.º 5
0
        // ----------------------------------------------------------------------
        // List documents available for selection in list box tvListOfDocuments
        // ----------------------------------------------------------------------
        public void loadDocumentList()
        {
            // Image list
            //
            ImageList imageList = ControllerUtils.GetImageList();

            // Binding
            tvListOfDocuments.ImageList = imageList;

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

            var docoList = new ClientDocument();

            // docoList.List(Utils.ClientID, Utils.ClientSetID);

            var cdlr = new BUSClientDocument.ClientDocumentListRequest();

            cdlr.clientUID            = Utils.ClientID;
            cdlr.clientDocumentSetUID = Utils.ClientSetID;

            var response = BUSClientDocument.List(cdlr);

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

            root.CUID       = "ROOT";
            root.RecordType = FCMConstant.RecordType.FOLDER;
            root.UID        = 0;
            // root.Read();

            // root = RepDocument.Read(false, 0, "ROOT");
            root = BUSDocument.GetRootDocument();

            // docoList.ListInTree(tvListOfDocuments, "CLIENT");

            BUSClientDocument.ListInTree(docoList, tvListOfDocuments, "CLIENT");

            tvListOfDocuments.ExpandAll();
        }