/// <summary> /// 加载配置 /// </summary> void LoadAppConfig() { #region 绑定语音类型 List <string> arrVoices = voiceSpeaker.GetVoices(); for (int i = 0; i < arrVoices.Count; i++) { DataItem comboitem = new DataItem(arrVoices[i]); cmbVoiceName.Items.Add(comboitem); } cmbVoiceName.SelectedIndex = 0; #endregion txtAppIdentifier.Text = commonAppConfig.AppIdentifier; txtSelfConnStr.Text = commonAppConfig.SelfConnStr; chbStartup.Checked = (commonDAO.GetAppletConfigString("开机启动") == "1"); SelectedComboBoxItem(cmbDecrition, commonDAO.GetAppletConfigString("上磅方向").ToString()); // IO控制器 SelectedComboBoxItem(cmbIocerCom, commonDAO.GetAppletConfigInt32("IO控制器_串口").ToString()); SelectedComboBoxItem(cmbIocerBandrate, commonDAO.GetAppletConfigInt32("IO控制器_波特率").ToString()); SelectedComboBoxItem(cmbIocerDataBits, commonDAO.GetAppletConfigInt32("IO控制器_数据位").ToString()); SelectedComboBoxItem(cmbIocerStopBits, commonDAO.GetAppletConfigInt32("IO控制器_停止位").ToString()); SelectedComboBoxItem(cmbIocerParity, commonDAO.GetAppletConfigInt32("IO控制器_校验位").ToString()); SelectedComboBoxItem(cmbInductorCoil1Port, commonDAO.GetAppletConfigInt32("IO控制器_地感1端口").ToString()); SelectedComboBoxItem(cmbInductorCoil2Port, commonDAO.GetAppletConfigInt32("IO控制器_地感2端口").ToString()); SelectedComboBoxItem(cmbInductorCoil3Port, commonDAO.GetAppletConfigInt32("IO控制器_地感3端口").ToString()); SelectedComboBoxItem(cmbInductorCoil4Port, commonDAO.GetAppletConfigInt32("IO控制器_地感4端口").ToString()); SelectedComboBoxItem(cmbInfraredSensor1Port, commonDAO.GetAppletConfigInt32("IO控制器_对射1端口").ToString()); SelectedComboBoxItem(cmbGate1UpPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸1升杆端口").ToString()); SelectedComboBoxItem(cmbGate1DownPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸1降杆端口").ToString()); SelectedComboBoxItem(cmbGate2UpPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸2升杆端口").ToString()); SelectedComboBoxItem(cmbGate2DownPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸2降杆端口").ToString()); SelectedComboBoxItem(cmbSignalLight1Port, commonDAO.GetAppletConfigInt32("IO控制器_信号灯1端口").ToString()); chbUseInfraredSensor.Checked = (commonDAO.GetAppletConfigString("启用对射") == "1"); // 地磅仪表 SelectedComboBoxItem(cmbWberCom, commonDAO.GetAppletConfigInt32("地磅仪表_串口").ToString()); SelectedComboBoxItem(cmbWberBandrate, commonDAO.GetAppletConfigInt32("地磅仪表_波特率").ToString()); SelectedComboBoxItem(cmbWberDataBits, commonDAO.GetAppletConfigInt32("地磅仪表_数据位").ToString()); SelectedComboBoxItem(cmbWberStopBits, commonDAO.GetAppletConfigInt32("地磅仪表_停止位").ToString()); SelectedComboBoxItem(cmbWberParity, commonDAO.GetAppletConfigInt32("地磅仪表_校验位").ToString()); dbtxtMinWeight.Value = commonDAO.GetAppletConfigDouble("地磅仪表_最小称重"); // 车号识别 iptxtRwer1.Value = commonDAO.GetAppletConfigString("车号识别1_IP地址"); iptxtRwer2.Value = commonDAO.GetAppletConfigString("车号识别2_IP地址"); // LED显示屏 iptxtLED1IP.Value = commonDAO.GetAppletConfigString("LED显示屏1_IP地址"); iptxtLED2IP.Value = commonDAO.GetAppletConfigString("LED显示屏2_IP地址"); // 语音 SelectedComboBoxItem(cmbVoiceName, commonDAO.GetAppletConfigString("语音包").ToString()); sldVoiceRate.Value = commonDAO.GetAppletConfigInt32("语速"); sldVoiceVolume.Value = commonDAO.GetAppletConfigInt32("音量"); lblVoiceRate.Text = sldVoiceRate.Value.ToString(); lblVoiceVolume.Text = sldVoiceVolume.Value.ToString(); }
/// <summary> /// 加载配置 /// </summary> void LoadAppConfig() { #region 绑定语音类型 List <string> arrVoices = voiceSpeaker.GetVoices(); for (int i = 0; i < arrVoices.Count; i++) { DataItem comboitem = new DataItem(arrVoices[i]); cmbVoiceName.Items.Add(comboitem); } cmbVoiceName.SelectedIndex = 0; #endregion txtAppIdentifier.Text = commonAppConfig.AppIdentifier; txtSelfConnStr.Text = commonAppConfig.SelfConnStr; chbStartup.Checked = (commonDAO.GetAppletConfigString("开机启动") == "1"); txtJxSamplerMachineCode.Text = commonDAO.GetAppletConfigString("采样机设备编码"); // 车号识别 iptxtRwer1.Value = commonDAO.GetAppletConfigString("车号识别1_IP地址"); // LED显示屏 iptxtLED1IP.Value = commonDAO.GetAppletConfigString("LED显示屏1_IP地址"); // 语音 SelectedComboBoxItem(cmbVoiceName, commonDAO.GetAppletConfigString("语音包").ToString()); sldVoiceRate.Value = commonDAO.GetAppletConfigInt32("语速"); sldVoiceVolume.Value = commonDAO.GetAppletConfigInt32("音量"); lblVoiceRate.Text = sldVoiceRate.Value.ToString(); lblVoiceVolume.Text = sldVoiceVolume.Value.ToString(); }
/// <summary> /// 加载配置 /// </summary> void LoadAppConfig() { #region 绑定语音类型 List <string> arrVoices = voiceSpeaker.GetVoices(); for (int i = 0; i < arrVoices.Count; i++) { DataItem comboitem = new DataItem(arrVoices[i]); cmbVoiceName.Items.Add(comboitem); } cmbVoiceName.SelectedIndex = 0; #endregion txtAppIdentifier.Text = commonAppConfig.AppIdentifier; txtSelfConnStr.Text = commonAppConfig.SelfConnStr; chbStartup.Checked = (commonDAO.GetAppletConfigString("开机启动") == "1"); chkUseRwer.Checked = (commonDAO.GetAppletConfigString("启用读卡器") == "1"); chkUseCamera.Checked = (commonDAO.GetAppletConfigString("启用识别相机") == "1"); txtJxSamplerMachineCode.Text = commonDAO.GetAppletConfigString("采样机设备编码"); // IO控制器 SelectedComboBoxItem(cmbIocerCom, commonDAO.GetAppletConfigInt32("IO控制器_串口").ToString()); SelectedComboBoxItem(cmbIocerBandrate, commonDAO.GetAppletConfigInt32("IO控制器_波特率").ToString()); SelectedComboBoxItem(cmbIocerDataBits, commonDAO.GetAppletConfigInt32("IO控制器_数据位").ToString()); SelectedComboBoxItem(cmbIocerStopBits, commonDAO.GetAppletConfigInt32("IO控制器_停止位").ToString()); SelectedComboBoxItem(cmbIocerParity, commonDAO.GetAppletConfigInt32("IO控制器_校验位").ToString()); SelectedComboBoxItem(cmbInductorCoil1Port, commonDAO.GetAppletConfigInt32("IO控制器_地感1端口").ToString()); SelectedComboBoxItem(cmbInductorCoil2Port, commonDAO.GetAppletConfigInt32("IO控制器_地感2端口").ToString()); SelectedComboBoxItem(cmbInductorCoil3Port, commonDAO.GetAppletConfigInt32("IO控制器_地感3端口").ToString()); SelectedComboBoxItem(cmbInductorCoil4Port, commonDAO.GetAppletConfigInt32("IO控制器_地感4端口").ToString()); SelectedComboBoxItem(cmbInfraredSensor1Port, commonDAO.GetAppletConfigInt32("IO控制器_对射1端口").ToString()); SelectedComboBoxItem(cmbInfraredSensor2Port, commonDAO.GetAppletConfigInt32("IO控制器_对射2端口").ToString()); SelectedComboBoxItem(cmbGate1UpPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸1升杆端口").ToString()); SelectedComboBoxItem(cmbGate1DownPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸1降杆端口").ToString()); SelectedComboBoxItem(cmbGate2UpPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸2升杆端口").ToString()); SelectedComboBoxItem(cmbGate2DownPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸2降杆端口").ToString()); SelectedComboBoxItem(cmbSignalLight1Port, commonDAO.GetAppletConfigInt32("IO控制器_信号灯1端口").ToString()); // 读卡器 txtRwer1IP.Value = commonDAO.GetAppletConfigString("读卡器1_IP地址"); SelectedComboBoxItem(cmbRwer1Port, commonDAO.GetAppletConfigInt32("读卡器1_功率").ToString()); txtRwerTagStartWith.Text = commonDAO.GetAppletConfigString("读卡器_标签过滤"); // LED显示屏 iptxtLED1IP.Value = commonDAO.GetAppletConfigString("LED显示屏1_IP地址"); // 语音 SelectedComboBoxItem(cmbVoiceName, commonDAO.GetAppletConfigString("语音包").ToString()); sldVoiceRate.Value = commonDAO.GetAppletConfigInt32("语速"); sldVoiceVolume.Value = commonDAO.GetAppletConfigInt32("音量"); lblVoiceRate.Text = sldVoiceRate.Value.ToString(); lblVoiceVolume.Text = sldVoiceVolume.Value.ToString(); }
/// <summary> /// ¼ÓÔØÅäÖà /// </summary> void LoadAppConfig() { #region °ó¶¨ÓïÒôÀàÐÍ List <string> arrVoices = voiceSpeaker.GetVoices(); for (int i = 0; i < arrVoices.Count; i++) { DataItem comboitem = new DataItem(arrVoices[i]); cmbVoiceName.Items.Add(comboitem); } cmbVoiceName.SelectedIndex = 0; #endregion txtAppIdentifier.Text = commonAppConfig.AppIdentifier; txtSelfConnStr.Text = commonAppConfig.SelfConnStr; chbStartup.Checked = (commonDAO.GetAppletConfigString("¿ª»úÆô¶¯") == "1"); // IO¿ØÖÆÆ÷ SelectedComboBoxItem(cmbIocerCom, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_´®¿Ú").ToString()); SelectedComboBoxItem(cmbIocerBandrate, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_²¨ÌØÂÊ").ToString()); SelectedComboBoxItem(cmbIocerDataBits, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_Êý¾Ýλ").ToString()); SelectedComboBoxItem(cmbIocerStopBits, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_ֹͣλ").ToString()); SelectedComboBoxItem(cmbIocerParity, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_УÑéλ").ToString()); SelectedComboBoxItem(cmbInductorCoil1Port, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_µØ¸Ð1¶Ë¿Ú").ToString()); SelectedComboBoxItem(cmbInductorCoil2Port, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_µØ¸Ð2¶Ë¿Ú").ToString()); SelectedComboBoxItem(cmbInductorCoil3Port, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_µØ¸Ð3¶Ë¿Ú").ToString()); SelectedComboBoxItem(cmbInductorCoil4Port, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_µØ¸Ð4¶Ë¿Ú").ToString()); SelectedComboBoxItem(cmbGate1UpPort, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_µÀÕ¢1Éý¸Ë¶Ë¿Ú").ToString()); SelectedComboBoxItem(cmbGate1DownPort, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_µÀÕ¢1½µ¸Ë¶Ë¿Ú").ToString()); SelectedComboBoxItem(cmbGate2UpPort, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_µÀÕ¢2Éý¸Ë¶Ë¿Ú").ToString()); SelectedComboBoxItem(cmbGate2DownPort, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_µÀÕ¢2½µ¸Ë¶Ë¿Ú").ToString()); SelectedComboBoxItem(cmbSignalLight1Port, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_ÐźŵÆ1¶Ë¿Ú").ToString()); SelectedComboBoxItem(cmbSignalLight2Port, commonDAO.GetAppletConfigInt32("IO¿ØÖÆÆ÷_ÐźŵÆ2¶Ë¿Ú").ToString()); // ¶Á¿¨Æ÷ SelectedComboBoxItem(cmbRwer1Com, commonDAO.GetAppletConfigInt32("¶Á¿¨Æ÷1_´®¿Ú").ToString()); SelectedComboBoxItem(cmbRwer2Com, commonDAO.GetAppletConfigInt32("¶Á¿¨Æ÷2_´®¿Ú").ToString()); txtRwerTagStartWith.Text = commonDAO.GetAppletConfigString("¶Á¿¨Æ÷_±êÇ©¹ýÂË"); // LEDÏÔʾÆÁ iptxtLED1IP.Value = commonDAO.GetAppletConfigString("LEDÏÔʾÆÁ1_IPµØÖ·"); iptxtLED2IP.Value = commonDAO.GetAppletConfigString("LEDÏÔʾÆÁ2_IPµØÖ·"); // ÓïÒô SelectedComboBoxItem(cmbVoiceName, commonDAO.GetAppletConfigString("ÓïÒô°ü").ToString()); sldVoiceRate.Value = commonDAO.GetAppletConfigInt32("ÓïËÙ"); sldVoiceVolume.Value = commonDAO.GetAppletConfigInt32("ÒôÁ¿"); lblVoiceRate.Text = sldVoiceRate.Value.ToString(); lblVoiceVolume.Text = sldVoiceVolume.Value.ToString(); }
/// <summary> /// 加载配置 /// </summary> void LoadAppConfig() { #region 绑定语音类型 List <string> arrVoices = voiceSpeaker.GetVoices(); for (int i = 0; i < arrVoices.Count; i++) { DataItem comboitem = new DataItem(arrVoices[i]); cmbVoiceName.Items.Add(comboitem); } cmbVoiceName.SelectedIndex = 0; #endregion txtAppIdentifier.Text = commonAppConfig.AppIdentifier; txtSelfConnStr.Text = commonAppConfig.SelfConnStr; chbStartup.Checked = (commonDAO.GetAppletConfigString("开机启动") == "1"); chkUseRwer.Checked = (commonDAO.GetAppletConfigString("启用读卡器") == "1"); chkUseCamera.Checked = (commonDAO.GetAppletConfigString("启用识别相机") == "1"); //公共配置 chkAutoPrint.Checked = (commonDAO.GetCommonAppletConfigString("自动打印磅单") == "1"); chkOnWayMonitor.Checked = (commonDAO.GetCommonAppletConfigString("启用在途监控") == "1"); dbiSampleWayCount.Value = commonDAO.GetCommonAppletConfigInt32("采样通道车数"); chkSampleWayCount.Checked = (commonDAO.GetCommonAppletConfigString("启用采样通道车数") == "1"); txtTicketDiff.Value = commonDAO.GetCommonAppletConfigDouble("净重超差限值"); chkTicketDiff.Checked = (commonDAO.GetCommonAppletConfigString("启用净重超差限值") == "1"); txtSamplerCodes.Text = commonDAO.GetCommonAppletConfigString("采样机编号"); txtWeighterCodes.Text = commonDAO.GetCommonAppletConfigString("汽车衡编号"); // IO控制器 SelectedComboBoxItem(cmbIocerCom, commonDAO.GetAppletConfigInt32("IO控制器_串口").ToString()); SelectedComboBoxItem(cmbIocerBandrate, commonDAO.GetAppletConfigInt32("IO控制器_波特率").ToString()); SelectedComboBoxItem(cmbIocerDataBits, commonDAO.GetAppletConfigInt32("IO控制器_数据位").ToString()); SelectedComboBoxItem(cmbIocerStopBits, commonDAO.GetAppletConfigInt32("IO控制器_停止位").ToString()); SelectedComboBoxItem(cmbIocerParity, commonDAO.GetAppletConfigInt32("IO控制器_校验位").ToString()); SelectedComboBoxItem(cmbInductorCoil1Port, commonDAO.GetAppletConfigInt32("IO控制器_地感1端口").ToString()); SelectedComboBoxItem(cmbInductorCoil2Port, commonDAO.GetAppletConfigInt32("IO控制器_地感2端口").ToString()); SelectedComboBoxItem(cmbInductorCoil3Port, commonDAO.GetAppletConfigInt32("IO控制器_地感3端口").ToString()); SelectedComboBoxItem(cmbInductorCoil4Port, commonDAO.GetAppletConfigInt32("IO控制器_地感4端口").ToString()); SelectedComboBoxItem(cmbGate1UpPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸1升杆端口").ToString()); SelectedComboBoxItem(cmbGate1DownPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸1降杆端口").ToString()); SelectedComboBoxItem(cmbGate2UpPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸2升杆端口").ToString()); SelectedComboBoxItem(cmbGate2DownPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸2降杆端口").ToString()); SelectedComboBoxItem(cmbSignalLight1Port, commonDAO.GetAppletConfigInt32("IO控制器_信号灯1端口").ToString()); SelectedComboBoxItem(cmbSignalLight2Port, commonDAO.GetAppletConfigInt32("IO控制器_信号灯2端口").ToString()); // 读卡器 ip_Rwer1.Value = commonDAO.GetAppletConfigString("读卡器1_IP地址"); SelectedComboBoxItem(cmbip_Rwer1Port, commonDAO.GetAppletConfigInt32("读卡器1_功率").ToString()); SelectedComboBoxItem(cmbRwer2, commonDAO.GetAppletConfigInt32("读卡器2_串口").ToString()); SelectedComboBoxItem(cmbip_Rwer2Port, commonDAO.GetAppletConfigInt32("读卡器2_功率").ToString()); txtRwerTagStartWith.Text = commonDAO.GetAppletConfigString("读卡器_标签过滤"); // LED显示屏 iptxtLED1IP.Value = commonDAO.GetAppletConfigString("LED显示屏1_IP地址"); // 语音 SelectedComboBoxItem(cmbVoiceName, commonDAO.GetAppletConfigString("语音包").ToString()); sldVoiceRate.Value = commonDAO.GetAppletConfigInt32("语速"); sldVoiceVolume.Value = commonDAO.GetAppletConfigInt32("音量"); lblVoiceRate.Text = sldVoiceRate.Value.ToString(); lblVoiceVolume.Text = sldVoiceVolume.Value.ToString(); }
/// <summary> /// 加载配置 /// </summary> void LoadAppConfig() { #region 绑定语音类型 List <string> arrVoices = voiceSpeaker.GetVoices(); for (int i = 0; i < arrVoices.Count; i++) { DataItem comboitem = new DataItem(arrVoices[i]); cmbVoiceName.Items.Add(comboitem); } cmbVoiceName.SelectedIndex = 0; #endregion txtAppIdentifier.Text = commonAppConfig.AppIdentifier; txtSelfConnStr.Text = commonAppConfig.SelfConnStr; chbStartup.Checked = (commonDAO.GetAppletConfigString("开机启动") == "1"); intPoundIndex.Value = commonDAO.GetAppletConfigInt32("磅编号"); //公共配置 chkAutoPrint.Checked = (commonDAO.GetCommonAppletConfigString("自动打印磅单") == "1"); chkITMS.Checked = (commonDAO.GetCommonAppletConfigString("启用智能调运") == "1"); chkPaperWorkPass.Checked = (commonDAO.GetCommonAppletConfigString("启用证件到期") == "1"); chkOutFactoryITMS.Checked = (commonDAO.GetCommonAppletConfigString("启用出厂天线") == "1"); dbiSampleWayCount.Value = commonDAO.GetCommonAppletConfigInt32("采样通道车数"); chkSampleWayCount.Checked = (commonDAO.GetCommonAppletConfigString("启用采样通道车数") == "1"); dbiFactoryCount.Value = commonDAO.GetCommonAppletConfigInt32("厂内总车数"); chkFactoryCount.Checked = (commonDAO.GetCommonAppletConfigString("启用厂内总车数") == "1"); txtTicketDiff.Value = commonDAO.GetCommonAppletConfigDouble("净重超差限值"); chkTicketDiff.Checked = (commonDAO.GetCommonAppletConfigString("启用净重超差限值") == "1"); txtTareCoefficient.Value = commonDAO.GetCommonAppletConfigDouble("皮重排查系数"); chkTareCoefficient.Checked = (commonDAO.GetCommonAppletConfigString("启用皮重排查系数") == "1"); // IO控制器 SelectedComboBoxItem(cmbIocerCom, commonDAO.GetAppletConfigInt32("IO控制器_串口").ToString()); SelectedComboBoxItem(cmbIocerBandrate, commonDAO.GetAppletConfigInt32("IO控制器_波特率").ToString()); SelectedComboBoxItem(cmbIocerDataBits, commonDAO.GetAppletConfigInt32("IO控制器_数据位").ToString()); SelectedComboBoxItem(cmbIocerStopBits, commonDAO.GetAppletConfigInt32("IO控制器_停止位").ToString()); SelectedComboBoxItem(cmbIocerParity, commonDAO.GetAppletConfigInt32("IO控制器_校验位").ToString()); SelectedComboBoxItem(cmbInductorCoil1Port, commonDAO.GetAppletConfigInt32("IO控制器_地感1端口").ToString()); SelectedComboBoxItem(cmbInductorCoil2Port, commonDAO.GetAppletConfigInt32("IO控制器_地感2端口").ToString()); SelectedComboBoxItem(cmbInductorCoil3Port, commonDAO.GetAppletConfigInt32("IO控制器_地感3端口").ToString()); SelectedComboBoxItem(cmbInductorCoil4Port, commonDAO.GetAppletConfigInt32("IO控制器_地感4端口").ToString()); SelectedComboBoxItem(cmbGate1UpPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸1升杆端口").ToString()); SelectedComboBoxItem(cmbGate1DownPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸1降杆端口").ToString()); SelectedComboBoxItem(cmbGate2UpPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸2升杆端口").ToString()); SelectedComboBoxItem(cmbGate2DownPort, commonDAO.GetAppletConfigInt32("IO控制器_道闸2降杆端口").ToString()); SelectedComboBoxItem(cmbSignalLight1Port, commonDAO.GetAppletConfigInt32("IO控制器_信号灯1端口").ToString()); SelectedComboBoxItem(cmbSignalLight2Port, commonDAO.GetAppletConfigInt32("IO控制器_信号灯2端口").ToString()); // 入厂读卡器 cmbRwer1Ip.Value = commonDAO.GetAppletConfigString("读卡器1_Ip"); cmbRwer1Port.Value = commonDAO.GetAppletConfigInt32("读卡器1_端口"); // 出厂读卡器 cmbRwer2Ip.Value = commonDAO.GetAppletConfigString("读卡器2_Ip"); cmbRwer2Port.Value = commonDAO.GetAppletConfigInt32("读卡器2_端口"); //室内发卡器 SelectedComboBoxItem(cmbRwer2Com, commonDAO.GetAppletConfigInt32("读卡器2_串口").ToString()); txtRwerTagStartWith.Text = commonDAO.GetAppletConfigString("读卡器_标签过滤"); // LED显示屏 iptxtLED1IP.Value = commonDAO.GetAppletConfigString("LED显示屏1_IP地址"); iptxtLED2IP.Value = commonDAO.GetAppletConfigString("LED显示屏2_IP地址"); // 语音 SelectedComboBoxItem(cmbVoiceName, commonDAO.GetAppletConfigString("语音包").ToString()); sldVoiceRate.Value = commonDAO.GetAppletConfigInt32("语速"); sldVoiceVolume.Value = commonDAO.GetAppletConfigInt32("音量"); lblVoiceRate.Text = sldVoiceRate.Value.ToString(); lblVoiceVolume.Text = sldVoiceVolume.Value.ToString(); }