public void ShowParameterEditStyle(DataRow ADataRowParamInfo) { string LStr11001003 = string.Empty; //参数编码 string LStrVerificationCode104 = string.Empty; string LStrParameterValueDB = string.Empty; try { IDataRowCurrent = ADataRowParamInfo; if (IPageParent != null) { IPageParent.IOperationEvent += IPageParent_IOperationEvent; } LStr11001003 = ADataRowParamInfo["C003"].ToString(); LoadThisDataEnumeration(LStr11001003); LStrVerificationCode104 = S1106App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = ADataRowParamInfo["C006"].ToString(); LStrParameterValueDB = EncryptionAndDecryption.EncryptDecryptString(LStrParameterValueDB, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = LStrParameterValueDB.Substring(8); foreach (RadioButton LRadioButtonSingleItem in StackPanelDataEnumeration.Children) { if (LRadioButtonSingleItem.DataContext.ToString() == LStrParameterValueDB) { LRadioButtonSingleItem.IsChecked = true; break; } } IPageParent.IChangeLanguageEvent += IPageParent_IChangeLanguageEvent; } catch { } }
public void ShowGroupParameters(DataTable ADataTable11001, string AStrGroupID) { string LStr11001003 = string.Empty; try { IStrGroupID = AStrGroupID; StrGroupName = S1106App.GetDisplayCharater("UCGroupParameter", "G" + IStrGroupID); DataRow[] LDataRowAllParameters = ADataTable11001.Select("C004 = " + IStrGroupID, "C005 ASC"); foreach (DataRow LDataRowSingleParameter in LDataRowAllParameters) { LStr11001003 = LDataRowSingleParameter["C003"].ToString(); if (LStr11001003 == "11020104") { continue; } if (LStr11001003 == "11030103") { continue; } if (LStr11001003 == "11010401") { continue; } UCSingleParameter LUCSingleParameter = new UCSingleParameter(LDataRowSingleParameter); LUCSingleParameter.CurrentApp = CurrentApp; LUCSingleParameter.IPageParent = this.IPageParent; LUCSingleParameter.IOperationEvent += LUCSingleParameter_IOperationEvent; LUCSingleParameter.ShowParameterSettedInfo(); LUCSingleParameter.Margin = new Thickness(0, 1, 0, 1); StackPanelContainsParameters.Children.Add(LUCSingleParameter); } } catch { } }
public void ShowParameterEditStyle(DataRow ADataRowParamInfo) { string LStr11001003 = string.Empty; //参数编码 string LStrVerificationCode104 = string.Empty; string LStrParameterValueDB = string.Empty; int LIntMinValue = 0, LIntMaxValue = 0, LIntDefValue = 0; try { IDataRowCurrent = ADataRowParamInfo; if (IPageParent != null) { IPageParent.IOperationEvent += IPageParent_IOperationEvent; } LStr11001003 = ADataRowParamInfo["C003"].ToString(); LStrVerificationCode104 = S1106App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = ADataRowParamInfo["C006"].ToString(); LStrParameterValueDB = EncryptionAndDecryption.EncryptDecryptString(LStrParameterValueDB, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = LStrParameterValueDB.Substring(8); if (S1106App.GetParameterMinMaxDefValue(LStr11001003, ref LIntMinValue, ref LIntMaxValue, ref LIntDefValue)) { TextBoxPositiveInteger.SetMinMaxDefaultValue(LIntMinValue, LIntMaxValue, LIntDefValue); } TextBoxPositiveInteger.SetElementData(LStrParameterValueDB); IPageParent.IChangeLanguageEvent += IPageParent_IChangeLanguageEvent; } catch { } }
public void ShowParameterEditStyle(DataRow ADataRowParamInfo) { string LStr11001003 = string.Empty; //参数编码 string LStrVerificationCode104 = string.Empty; string LStrParameterValueDB = string.Empty; try { IDataRowCurrent = ADataRowParamInfo; if (IPageParent != null) { IPageParent.IOperationEvent += IPageParent_IOperationEvent; } LStr11001003 = ADataRowParamInfo["C003"].ToString(); LStrVerificationCode104 = S1106App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104); RadioButtonValue1.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V1"); RadioButtonValue0.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V0"); LStrParameterValueDB = ADataRowParamInfo["C006"].ToString(); LStrParameterValueDB = EncryptionAndDecryption.EncryptDecryptString(LStrParameterValueDB, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = LStrParameterValueDB.Substring(8); if (LStrParameterValueDB == "1") { RadioButtonValue1.IsChecked = true; } else { RadioButtonValue0.IsChecked = true; } IPageParent.IChangeLanguageEvent += IPageParent_IChangeLanguageEvent; } catch { } }
private void IPageParent_IChangeLanguageEvent(object sender, OperationEventArgs e) { string LStr11001003 = string.Empty; //参数编码 LStr11001003 = IDataRowCurrent["C003"].ToString(); RadioButtonValueX.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "VX"); RadioButtonValue0.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V0"); }
private void IPageParent_IChangeLanguageEvent(object sender, OperationEventArgs e) { string LStr11001003 = string.Empty; //参数编码 LStr11001003 = IDataRowCurrent["C003"].ToString(); CheckBoxExtension.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "VE"); CheckBoxAgentID.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "VA"); CheckRealExtension.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "VR"); }
public void ShowParameterSettedInfo() { string LStr11001003 = string.Empty; //参数编码 string LStr11001009 = string.Empty; //显示格式转换 string LStrVerificationCode104 = string.Empty; string LStrParameterValueDB = string.Empty; try { LStrVerificationCode104 = S1106App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104); LStr11001003 = IDataRow11001["C003"].ToString(); StrParameterName = S1106App.GetDisplayCharater("UCSingleParameter", "P" + LStr11001003); LStrParameterValueDB = IDataRow11001["C006"].ToString(); StrParameterValue = IPageParent.ActValue2Display(IDataRow11001); } catch { } }
public void ShowParameterEditStyle(DataRow ADataRowParamInfo) { string LStr11001003 = string.Empty; //参数编码 string LStrVerificationCode104 = string.Empty; string LStrParameterValueDB = string.Empty; int LIntMinValue = 0, LIntMaxValue = 0, LIntDefValue = 0; try { IDataRowCurrent = ADataRowParamInfo; if (IPageParent != null) { IPageParent.IOperationEvent += IPageParent_IOperationEvent; } LStr11001003 = ADataRowParamInfo["C003"].ToString(); LStrVerificationCode104 = S1106App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104); RadioButtonValueX.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "VX"); RadioButtonValue0.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V0"); LStrParameterValueDB = ADataRowParamInfo["C006"].ToString(); LStrParameterValueDB = EncryptionAndDecryption.EncryptDecryptString(LStrParameterValueDB, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = LStrParameterValueDB.Substring(8); if (S1106App.GetParameterMinMaxDefValue(LStr11001003, ref LIntMinValue, ref LIntMaxValue, ref LIntDefValue)) { TextBoxPositiveInteger.SetMinMaxDefaultValue(LIntMinValue, LIntMaxValue, LIntDefValue); } if (LStrParameterValueDB != "0") { RadioButtonValueX.IsChecked = true; TextBoxPositiveInteger.SetElementData(LStrParameterValueDB); } else { RadioButtonValue0.IsChecked = true; TextBoxPositiveInteger.SetElementData(LIntDefValue.ToString()); } IPageParent.IChangeLanguageEvent += IPageParent_IChangeLanguageEvent; } catch { } }
public void ShowParameterEditStyle(DataRow ADataRowParamInfo) { string LStr11001003 = string.Empty; //参数编码 string LStrVerificationCode104 = string.Empty; string LStrParameterValueDB = string.Empty; try { IDataRowCurrent = ADataRowParamInfo; if (IPageParent != null) { IPageParent.IOperationEvent += IPageParent_IOperationEvent; } CheckBoxExtension.IsChecked = false; CheckBoxAgentID.IsChecked = false; LStr11001003 = ADataRowParamInfo["C003"].ToString(); LStrVerificationCode104 = S1106App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104); CheckBoxExtension.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "VE"); CheckBoxAgentID.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "VA"); CheckRealExtension.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "VR"); LStrParameterValueDB = ADataRowParamInfo["C006"].ToString(); LStrParameterValueDB = EncryptionAndDecryption.EncryptDecryptString(LStrParameterValueDB, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = LStrParameterValueDB.Substring(8); string[] LStrGroupType = LStrParameterValueDB.Split(IPageParent.IStrSpliterChar.ToCharArray()); foreach (string LStrType in LStrGroupType) { if (LStrType == "E") { CheckBoxExtension.IsChecked = true; continue; } if (LStrType == "A") { CheckBoxAgentID.IsChecked = true; continue; } if (LStrType == "R") { CheckRealExtension.IsChecked = true; continue; } } IPageParent.IChangeLanguageEvent += IPageParent_IChangeLanguageEvent; } catch { } }
public void ShowParameterEditStyle(DataRow ADataRowParamInfo) { string LStr11001003 = string.Empty; //参数编码 string LStrVerificationCode104 = string.Empty; string LStrParameterValueDB = string.Empty; try { IDataRowCurrent = ADataRowParamInfo; if (IPageParent != null) { IPageParent.IOperationEvent += IPageParent_IOperationEvent; } LStr11001003 = ADataRowParamInfo["C003"].ToString(); LStrVerificationCode104 = S1106App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104); RadioButtonValueX.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "VX"); RadioButtonValue1.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V1"); LStrParameterValueDB = ADataRowParamInfo["C006"].ToString(); LStrParameterValueDB = EncryptionAndDecryption.EncryptDecryptString(LStrParameterValueDB, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = LStrParameterValueDB.Substring(8); if (LStrParameterValueDB != "1") { RadioButtonValueX.IsChecked = true; foreach (ComboBoxItem LComboBoxItemSingle in ComboBoxFirstDay.Items) { if (LComboBoxItemSingle.DataContext.ToString() == LStrParameterValueDB) { LComboBoxItemSingle.IsSelected = true; break; } } } else { RadioButtonValue1.IsChecked = true; } IPageParent.IChangeLanguageEvent += IPageParent_IChangeLanguageEvent; } catch { } }
public void ShowParameterEditStyle(DataRow ADataRowParamInfo) { string LStr11001003 = string.Empty; //参数编码 string LStrVerificationCode104 = string.Empty; string LStrParameterValueDB = string.Empty; try { if (IPageParent != null) { IPageParent.IOperationEvent += IPageParent_IOperationEvent; } LStr11001003 = ADataRowParamInfo["C003"].ToString(); LStrVerificationCode104 = S1106App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = ADataRowParamInfo["C006"].ToString(); LStrParameterValueDB = EncryptionAndDecryption.EncryptDecryptString(LStrParameterValueDB, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = LStrParameterValueDB.Substring(8); TextBoxValueInput.Text = LStrParameterValueDB; IPageParent.IChangeLanguageEvent += IPageParent_IChangeLanguageEvent; } catch { } }
public void ShowParameterEditStyle(DataRow ADataRowParamInfo) { string LStr11001003 = string.Empty; //参数编码 string LStrVerificationCode104 = string.Empty; string LStrParameterValueDB = string.Empty; try { IDataRowCurrent = ADataRowParamInfo; if (IPageParent != null) { IPageParent.IOperationEvent += IPageParent_IOperationEvent; } LStr11001003 = ADataRowParamInfo["C003"].ToString(); LStrVerificationCode104 = S1106App.CreateVerificationCode(EncryptionAndDecryption.UMPKeyAndIVType.M104); RadioButtonValue0.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V0"); RadioButtonValue1.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V1"); RadioButtonValue2.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V2"); RadioButtonValue3.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V3"); RadioButtonValue4.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V4"); RadioButtonValue5.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V5"); RadioButtonValue6.Content = S1106App.GetDisplayCharater("Page00000A", "Act" + LStr11001003 + "V6"); LStrParameterValueDB = ADataRowParamInfo["C006"].ToString(); LStrParameterValueDB = EncryptionAndDecryption.EncryptDecryptString(LStrParameterValueDB, LStrVerificationCode104, EncryptionAndDecryption.UMPKeyAndIVType.M104); LStrParameterValueDB = LStrParameterValueDB.Substring(8); switch (LStrParameterValueDB) { case "0": RadioButtonValue0.IsChecked = true; break; case "1": RadioButtonValue1.IsChecked = true; break; case "2": RadioButtonValue2.IsChecked = true; break; case "3": RadioButtonValue3.IsChecked = true; break; case "4": RadioButtonValue4.IsChecked = true; break; case "5": RadioButtonValue5.IsChecked = true; break; case "6": RadioButtonValue6.IsChecked = true; break; default: break; } IPageParent.IChangeLanguageEvent += IPageParent_IChangeLanguageEvent; } catch { } }