Exemplo n.º 1
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.º 2
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.º 3
0
        // ------------------------------------------
        //            List Documents
        // ------------------------------------------
        public void loadLinkedDocuments(Document document)
        {
            // Image list
            //
            ImageList imageList = ControllerUtils.GetImageList();

            // Binding
            tvLinkedDocuments.ImageList = imageList;

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

            var docoList = ClientDocumentLinkList.ListRelatedDocuments(
                selectedClient.UID,
                documentSetUID,
                document.UID,
                cbxLinkType.Text);

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

            root.CUID       = document.CUID;
            root.RecordType = FCMConstant.RecordType.FOLDER;
            root.UID        = document.UID;
            // root.Read();

            // root = RepDocument.Read(false, document.UID);

            // Using Business Layer
            var documentReadRequest = new DocumentReadRequest();

            documentReadRequest.UID  = document.UID;
            documentReadRequest.CUID = "";
            documentReadRequest.retrieveVoidedDocuments = false;

            var docreadresp = BUSDocument.DocumentRead(documentReadRequest);

            if (docreadresp.response.ReturnCode == 0001)
            {
                // all good
            }
            else
            {
                MessageBox.Show(docreadresp.response.Message);
                return;
            }

            root = docreadresp.document;
            //



            ControllerUtils.ListInTree(tvLinkedDocuments, docoList, root);
            tvLinkedDocuments.ExpandAll();
        }
Exemplo n.º 4
0
        private void UIGoogleDocs_Load(object sender, EventArgs e)
        {
            // Image list
            //
            ImageList imageList = ControllerUtils.GetImageList();

            tvFileList.ImageList = imageList;

            tvGoogle.ImageList = imageList;

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

            loadDocumentList();
        }
Exemplo n.º 5
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.º 6
0
        private void UIUserSettings_Load(object sender, EventArgs e)
        {
            // Image list
            //

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

            // 16 x 16
            imageList = ControllerUtils.GetImageList();
            tvUserSettings.ImageList = imageList;

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

            ListUserSettings();
        }
Exemplo n.º 7
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();
        }
Exemplo n.º 8
0
        /// <summary>
        /// Load event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UIUserAccess_Load(object sender, EventArgs e)
        {
            // Image list
            //

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

            // 16 x 16
            imageList                  = ControllerUtils.GetImageList();
            tvUserList.ImageList       = imageList;
            tvAvailableRoles.ImageList = imageList;

            // Clear nodes
            tvUserList.Nodes.Clear();
            tvAvailableRoles.Nodes.Clear();

            RefreshList();
        }
Exemplo n.º 9
0
        public UIImpactedDocuments()
        {
            InitializeComponent();

            document = new Document();

            // Image list
            //
            imageList           = new ImageList();
            imageList           = ControllerUtils.GetImageList();
            imageList.ImageSize = new Size(16, 16);

            // Binding
            tvDocumentList.ImageList = imageList;

            // Image list 32
            //
            imageList32           = new ImageList();
            imageList32           = ControllerUtils.GetImageList();
            imageList32.ImageSize = new Size(32, 32);

            // Binding
            // tvDocumentList.ImageList = imageList32;
        }