コード例 #1
0
        public void ShowSettedData(DataSet ADataSetSource, string AStrDecID)
        {
            string LStrServerData011 = string.Empty;
            string LStrServerData012 = string.Empty;
            string LStrServerData013 = string.Empty;
            string LStrServerData014 = string.Empty;
            string LStrServerData015 = string.Empty;
            string LStrServerData016 = string.Empty;
            string LStrServerData017 = string.Empty;
            string LStrServerData018 = string.Empty;

            try
            {
                IStrCurrentDecID = AStrDecID;

                IDataTableDecServer = ADataSetSource.Tables[0];
                GridDecServer01.Children.Clear();
                GridDecServer02.Children.Clear();
                GridDecServer03.Children.Clear();
                GridDecServer04.Children.Clear();
                GridDecServer05.Children.Clear();

                DataRow[] LDataRowDECServer = IDataTableDecServer.Select("C001 = " + AStrDecID, "C002 ASC");
                LStrServerData011 = LDataRowDECServer[0]["C011"].ToString();
                LStrServerData012 = LDataRowDECServer[0]["C012"].ToString();
                LStrServerData013 = LDataRowDECServer[0]["C013"].ToString();
                LStrServerData014 = LDataRowDECServer[0]["C014"].ToString();
                LStrServerData014 = EncryptionAndDecryption.EncryptDecryptString(LStrServerData014, IStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);
                LStrServerData015 = LDataRowDECServer[0]["C015"].ToString();
                LStrServerData015 = EncryptionAndDecryption.EncryptDecryptString(LStrServerData015, IStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);
                LStrServerData016 = LDataRowDECServer[0]["C016"].ToString();
                LStrServerData016 = EncryptionAndDecryption.EncryptDecryptString(LStrServerData016, IStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);
                LStrServerData017 = LDataRowDECServer[0]["C017"].ToString();
                LStrServerData017 = EncryptionAndDecryption.EncryptDecryptString(LStrServerData017, IStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);
                LStrServerData018 = LDataRowDECServer[0]["C018"].ToString();
                LStrServerData018 = EncryptionAndDecryption.EncryptDecryptString(LStrServerData018, IStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);

                LabelDecServer.Content = LStrServerData017;

                UCTextBoxForSettedDataView LUCDataView03 = new UCTextBoxForSettedDataView();
                LUCDataView03.StrDataView = LStrServerData018;
                GridDecServer03.Children.Add(LUCDataView03);

                UCTextBoxForSettedDataView LUCDataView04 = new UCTextBoxForSettedDataView();
                LUCDataView04.StrDataView = App.GetDisplayCharater("UCResourceType212A", "SSLStatus" + LStrServerData016);
                GridDecServer04.Children.Add(LUCDataView04);

                UCTextBoxForSettedDataView LUCDataView05 = new UCTextBoxForSettedDataView();
                LUCDataView05.StrDataView = LStrServerData015;
                GridDecServer05.Children.Add(LUCDataView05);

                if (!IBoolCanEdit)
                {
                    UCTextBoxForSettedDataView LUCDataView01 = new UCTextBoxForSettedDataView();
                    LUCDataView01.StrDataView = LStrServerData017;
                    GridDecServer01.Children.Add(LUCDataView01);

                    UCTextBoxForSettedDataView LUCDataView02 = new UCTextBoxForSettedDataView();
                    LUCDataView02.StrDataView = LStrServerData014;
                    GridDecServer02.Children.Add(LUCDataView02);
                }
                else
                {
                    UCInputType203 LUCServerIPAddress = new UCInputType203();
                    LUCServerIPAddress.SetElementData(LStrServerData017);
                    LUCServerIPAddress.IOperationEvent += LUCServerIPAddress_IOperationEvent;
                    GridDecServer01.Children.Add(LUCServerIPAddress);

                    UCInputType103 LUCServerPort = new UCInputType103();
                    LUCServerPort.SetElementData(LStrServerData014);
                    LUCServerPort.SetMinMaxDefaultValue(1024, 65535, 3072);
                    GridDecServer02.Children.Add(LUCServerPort);
                }

                IBoolShowedData = true;
            }
            catch { }
        }
コード例 #2
0
        private void ShowMainServerInformation()
        {
            string LStrServerData011 = string.Empty;
            string LStrServerData012 = string.Empty;
            string LStrServerData013 = string.Empty;
            string LStrServerData014 = string.Empty;
            string LStrServerData017 = string.Empty;
            string LStrServerData018 = string.Empty;

            DataRow[] LDataRowCtiHubServer1 = IDataTableCtiHubServer.Select("C012 = '1'");

            LStrServerData011 = LDataRowCtiHubServer1[0]["C011"].ToString();
            LStrServerData012 = LDataRowCtiHubServer1[0]["C012"].ToString();
            LStrServerData013 = LDataRowCtiHubServer1[0]["C013"].ToString();
            LStrServerData014 = LDataRowCtiHubServer1[0]["C014"].ToString();
            LStrServerData014 = EncryptionAndDecryption.EncryptDecryptString(LStrServerData014, IStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);
            LStrServerData017 = LDataRowCtiHubServer1[0]["C017"].ToString();
            LStrServerData017 = EncryptionAndDecryption.EncryptDecryptString(LStrServerData017, IStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);
            LStrServerData018 = LDataRowCtiHubServer1[0]["C018"].ToString();
            LStrServerData018 = EncryptionAndDecryption.EncryptDecryptString(LStrServerData018, IStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104);

            UCTextBoxForSettedDataView LUCDataView0104 = new UCTextBoxForSettedDataView();

            LUCDataView0104.StrDataView = LStrServerData018;
            GridCtiHubServer0104.Children.Add(LUCDataView0104);

            if (!IBoolCanEdit)
            {
                UCTextBoxForSettedDataView LUCDataView0101 = new UCTextBoxForSettedDataView();
                LUCDataView0101.StrDataView = App.GetDisplayCharater("UCResourceType211", "C011V" + LStrServerData011);
                GridCtiHubServer0101.Children.Add(LUCDataView0101);

                UCTextBoxForSettedDataView LUCDataView0102 = new UCTextBoxForSettedDataView();
                LUCDataView0102.StrDataView = App.GetDisplayCharater("UCResourceType211", "C012V" + LStrServerData012);
                GridCtiHubServer0102.Children.Add(LUCDataView0102);

                UCTextBoxForSettedDataView LUCDataView0103 = new UCTextBoxForSettedDataView();
                LUCDataView0103.StrDataView = LStrServerData017;
                GridCtiHubServer0103.Children.Add(LUCDataView0103);

                UCTextBoxForSettedDataView LUCDataView0105 = new UCTextBoxForSettedDataView();
                LUCDataView0105.StrDataView = LStrServerData014;
                GridCtiHubServer0105.Children.Add(LUCDataView0105);
            }
            else
            {
                UCInputType201 LUCServerStatus = new UCInputType201();
                LUCServerStatus.StrData1 = App.GetDisplayCharater("1110011");
                LUCServerStatus.StrData0 = App.GetDisplayCharater("1110012");
                LUCServerStatus.SetElementData(LStrServerData011, "");
                LUCServerStatus.IOperationEvent += LUCServerStatus_IOperationEvent;
                GridCtiHubServer0101.Children.Add(LUCServerStatus);
                LUCServerStatus.IStrThisName = "S0101";

                UCInputType202 LUCServerMainBack = new UCInputType202();
                LUCServerMainBack.StrData1         = App.GetDisplayCharater("1110014");
                LUCServerMainBack.StrData2         = App.GetDisplayCharater("1110013");
                LUCServerMainBack.IOperationEvent += LUCServerMainBack_IOperationEvent;
                LUCServerMainBack.SetElementData(LStrServerData012, "");
                GridCtiHubServer0102.Children.Add(LUCServerMainBack);
                LUCServerMainBack.IStrThisName = "S0102";

                UCInputType203 LUCServerIPAddress = new UCInputType203();
                LUCServerIPAddress.SetElementData(LStrServerData017);
                LUCServerIPAddress.IOperationEvent += LUCServerIPAddress1IOperationEvent;
                GridCtiHubServer0103.Children.Add(LUCServerIPAddress);

                UCInputType103 LUCServerPort = new UCInputType103();
                LUCServerPort.SetElementData(LStrServerData014);
                LUCServerPort.SetMinMaxDefaultValue(1024, 65535, 3420);
                GridCtiHubServer0105.Children.Add(LUCServerPort);
            }
        }