Exemplo n.º 1
0
        private void UnderlineTab(string pageCaller)
        {
            Fascicolo prj = UIManager.ProjectManager.getProjectInSession();

            string language             = UIManager.UserManager.GetUserLanguage();
            string attachment           = Utils.Languages.GetLabelFromCode("DocumentTabAttachment", language);
            string classificationScheme = Utils.Languages.GetLabelFromCode("DocumentTabClassification", language);
            string transmissions        = Utils.Languages.GetLabelFromCode("DocumentTabTransmission", language);
            string deletedVisibility    = Utils.Languages.GetLabelFromCode("DeletedVisibilityTooltip", language);

            DocsPaWR.Tab tab = null;

            if (prj != null && !string.IsNullOrEmpty(prj.systemID))
            {
                tab = UIManager.ProjectManager.GetProjectTab(prj.systemID, UIManager.UserManager.GetInfoUser());

                if (tab != null && !tab.TransmissionsNumber.Equals("0"))
                {
                    this.LinkTransmissions.ToolTip = tab.TransmissionsNumber + " " + transmissions;
                    this.LiTransmissions.Attributes.Remove("class");
                    if (pageCaller.Equals("TRANSMISSIONS"))
                    {
                        this.LiTransmissions.Attributes.Add("class", "prjIAmProfileUnderline");
                    }
                    else
                    {
                        this.LiTransmissions.Attributes.Add("class", "prjOtherUnderline");
                    }
                }
                else
                {
                    this.LinkTransmissions.ToolTip = "0" + " " + transmissions;
                }

                if (tab != null && tab.DeletedSecurity)
                {
                    this.LinkVisibility.ToolTip = deletedVisibility;
                    this.LiVisibility.Attributes.Remove("class");
                    if (pageCaller.Equals("VISIBILITY"))
                    {
                        this.LiVisibility.Attributes.Add("class", "docIAmProfileUnderline");
                    }
                    else
                    {
                        this.LiVisibility.Attributes.Add("class", "docOtherUnderline");
                    }
                }
            }
        }
Exemplo n.º 2
0
        private void UnderlineTab(string pageCaller)
        {
            SchedaDocumento doc = UIManager.DocumentManager.getSelectedRecord();

            string language             = UIManager.UserManager.GetUserLanguage();
            string attachment           = Utils.Languages.GetLabelFromCode("DocumentTabAttachment", language);
            string classificationScheme = Utils.Languages.GetLabelFromCode("DocumentTabClassification2", language);
            string transmissions        = Utils.Languages.GetLabelFromCode("DocumentTabTransmission", language);
            string deletedVisibility    = Utils.Languages.GetLabelFromCode("DeletedVisibilityTooltip", language);

            DocsPaWR.Tab tab = null;

            if (doc != null && !string.IsNullOrEmpty(doc.systemId))
            {
                tab = UIManager.DocumentManager.GetDocumentTab(doc.systemId, UIManager.UserManager.GetInfoUser());

                if (tab != null && tab.ClassificationsNumber != "0")
                {
                    this.LinkClassificationSchemes.ToolTip = tab.ClassificationsNumber + " " + classificationScheme;
                    this.LiClassificationSchemes.Attributes.Remove("class");

                    if (pageCaller.Equals("CLASSIFICATIONS"))
                    {
                        this.LiClassificationSchemes.Attributes.Add("class", "docIAmProfileUnderline");
                    }
                    else
                    {
                        this.LiClassificationSchemes.Attributes.Add("class", "docOtherUnderline");
                    }
                }
                else
                {
                    this.LinkClassificationSchemes.ToolTip = "0" + " " + classificationScheme;
                }


                if (doc.allegati != null && doc.allegati.Length > 0)
                {
                    this.LinkAttachedFiles.ToolTip = doc.allegati.Length.ToString() + " " + attachment;
                    this.LiAttachedFiles.Attributes.Remove("class");
                    if (pageCaller.Equals("ATTACHMENTS"))
                    {
                        this.LiAttachedFiles.Attributes.Add("class", "docIAmProfileUnderline");
                    }
                    else
                    {
                        this.LiAttachedFiles.Attributes.Add("class", "docOtherUnderline");
                    }
                }
                else
                {
                    this.LinkAttachedFiles.ToolTip = "0" + " " + attachment;
                }

                if (tab != null && !tab.TransmissionsNumber.Equals("0"))
                {
                    this.LinkTransmissions.ToolTip = tab.TransmissionsNumber + " " + transmissions;
                    this.LiTransmissions.Attributes.Remove("class");
                    if (pageCaller.Equals("TRANSMISSIONS"))
                    {
                        this.LiTransmissions.Attributes.Add("class", "docIAmProfileUnderline");
                    }
                    else
                    {
                        this.LiTransmissions.Attributes.Add("class", "docOtherUnderline");
                    }
                }
                else
                {
                    this.LinkTransmissions.ToolTip = "0" + " " + transmissions;
                }

                if (tab != null && tab.DeletedSecurity)
                {
                    this.LinkVisibility.ToolTip = deletedVisibility;
                    this.LiVisibility.Attributes.Remove("class");
                    if (pageCaller.Equals("VISIBILITY"))
                    {
                        this.LiVisibility.Attributes.Add("class", "docIAmProfileUnderline");
                    }
                    else
                    {
                        this.LiVisibility.Attributes.Add("class", "docOtherUnderline");
                    }
                }
            }
        }