Beispiel #1
0
        private void ShowMyControlUser(TreeViewItem ATreeViewItem, string AStrOrgID, UCTreeViewYoung AUCTreeViewYoung)
        {
            string LStrUserID              = string.Empty;
            string LStrUserAccount         = string.Empty;
            string LStrUserName            = string.Empty;
            string LStrVerificationCode104 = string.Empty;
            string LStrImagesPath          = string.Empty;

            LStrVerificationCode104 = App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104);
            LStrImagesPath          = System.IO.Path.Combine(App.GClassSessionInfo.LocalMachineInfo.StrCommonApplicationData, @"UMP.Client\Themes", App.GClassSessionInfo.ThemeInfo.Name, @"Images\S1103");
            DataRow[] LDataRowUsers = App.IDataTable11005.Select("C006 = " + AStrOrgID, "C001 ASC");
            foreach (DataRow LDataRowSingleUser in LDataRowUsers)
            {
                LStrUserID = LDataRowSingleUser["C001"].ToString();
                if (App.IDataTable11201UU.Select("C004 = " + LStrUserID).Length <= 0)
                {
                    continue;
                }
                LStrUserAccount = LDataRowSingleUser["C002"].ToString();
                LStrUserAccount = EncryptionAndDecryption.EncryptDecryptString(LStrUserAccount, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);
                LStrUserName    = LDataRowSingleUser["C003"].ToString();
                LStrUserName    = EncryptionAndDecryption.EncryptDecryptString(LStrUserName, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);

                TreeViewItem LTreeViewItemUser = AUCTreeViewYoung.AddTreeViewItem(ATreeViewItem, false, LStrImagesPath + @"\S1103005.png", LStrUserAccount + " (" + LStrUserName + ")", LStrUserID);
            }
        }
Beispiel #2
0
        private void ShowOrgUserTreeView(List <string> AListStrParentOrg)
        {
            int          LIntAllParent       = 0;
            int          LIntCurrent         = 0;
            string       LStrImagesPath      = string.Empty;
            TreeViewItem LTreeViewItemParent = null;

            GridObjectSelect.Children.Clear();
            UCTreeViewYoung LUCTreeViewYoung = new UCTreeViewYoung();

            GridObjectSelect.Children.Add(LUCTreeViewYoung);

            LStrImagesPath = System.IO.Path.Combine(App.GClassSessionInfo.LocalMachineInfo.StrCommonApplicationData, @"UMP.Client\Themes", App.GClassSessionInfo.ThemeInfo.Name, @"Images\S1103");
            LIntAllParent  = AListStrParentOrg.Count - 1;
            for (LIntCurrent = LIntAllParent; LIntCurrent >= 0; LIntCurrent--)
            {
                string[] LStrArrayOrg = AListStrParentOrg[LIntCurrent].Split(App.AscCodeToChr(27).ToCharArray());

                TreeViewItem LTreeViewItemOrg = LUCTreeViewYoung.AddTreeViewItem(LTreeViewItemParent, false, LStrImagesPath + @"\S1103004.ico", LStrArrayOrg[1], LStrArrayOrg[0]);
                LTreeViewItemParent = LTreeViewItemOrg;

                ShowMyControlUser(LTreeViewItemParent, LStrArrayOrg[0], LUCTreeViewYoung);
                LTreeViewItemParent.IsExpanded = true;
            }
        }
Beispiel #3
0
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            PFShareControls.UCTreeViewYoung LUCTreeViewYoung = new UCTreeViewYoung();
            GridTreeView.Children.Add(LUCTreeViewYoung);

            TreeViewItem LTreeViewItemRoot1 = LUCTreeViewYoung.AddTreeViewItem(null, false, @"C:\ProgramData\UMP.Client\Themes\Style04\Images\S1103\S1103000.ico", "RootItem1", 1020000000000000001);

            TreeViewItem LTreeViewItemSub101 = LUCTreeViewYoung.AddTreeViewItem(LTreeViewItemRoot1, false, @"C:\ProgramData\UMP.Client\Themes\Style04\Images\S1103\S1103000.ico", "SubItem101", 1020000000000000002);
            TreeViewItem LTreeViewItemSub102 = LUCTreeViewYoung.AddTreeViewItem(LTreeViewItemRoot1, false, @"C:\ProgramData\UMP.Client\Themes\Style04\Images\S1103\S1103000.ico", "SubItem102", 1020000000000000003);

            TreeViewItem LTreeViewItemRoot2 = LUCTreeViewYoung.AddTreeViewItem(null, false, @"C:\ProgramData\UMP.Client\Themes\Style04\Images\S1103\S1103000.ico", "RootItem1", 1020000000000000101);

            //TreeViewItem LTreeViewItemSub201 = LUCTreeViewYoung.AddTreeViewItem(LTreeViewItemRoot2, true, @"C:\ProgramData\UMP.Client\Themes\Style04\Images\S1103\S1103000.ico", "SubItem101", 1020000000000000102);
            //TreeViewItem LTreeViewItemSub202 = LUCTreeViewYoung.AddTreeViewItem(LTreeViewItemRoot2, false, @"C:\ProgramData\UMP.Client\Themes\Style04\Images\S1103\S1103000.ico", "SubItem102", 1020000000000000103);

            LUCTreeViewYoung.SetItemCheckedStatus(true, 1020000000000000003);
            LUCTreeViewYoung.SetItemCheckedStatus(true, 1020000000000000101);
        }
        private void ShowSkillGroupTreeView()
        {
            string LStrSkillID             = string.Empty;
            string LStrSkillCode           = string.Empty;
            string LStrSkillName           = string.Empty;
            string LStrVerificationCode104 = string.Empty;
            string LStrImagesPath          = string.Empty;

            LStrVerificationCode104 = App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104);
            LStrImagesPath          = System.IO.Path.Combine(App.GClassSessionInfo.LocalMachineInfo.StrCommonApplicationData, @"UMP.Client\Themes", App.GClassSessionInfo.ThemeInfo.Name, @"Images\S1100\S1100005.png");
            GridObjectSelect.Children.Clear();
            UCTreeViewYoung LUCTreeViewYoung = new UCTreeViewYoung();

            GridObjectSelect.Children.Add(LUCTreeViewYoung);
            foreach (DataRow LDataRowSingleSkillGroup in App.IDataTable11009.Rows)
            {
                LStrSkillID   = LDataRowSingleSkillGroup["C001"].ToString();
                LStrSkillCode = LDataRowSingleSkillGroup["C006"].ToString();
                LStrSkillName = LDataRowSingleSkillGroup["C008"].ToString();
                LStrSkillCode = EncryptionAndDecryption.EncryptDecryptString(LStrSkillCode, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);
                TreeViewItem LTreeViewItemSkillGroup = LUCTreeViewYoung.AddTreeViewItem(null, false, LStrImagesPath, LStrSkillCode + " (" + LStrSkillName + ")", LStrSkillID);
            }
        }