/// <summary> /// 加载窗体 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Window_Loaded(object sender, RoutedEventArgs e) { tbMenuTitle.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Payment_Title"); AdvanCfg_Menu_Cancel.Content = PubHelper.p_LangOper.GetStringBundle("Pub_Btn_Cancel"); AdvanCfg_Menu_IcCard.Content = PubHelper.ConvertIcCardPayName();// PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_Title"); AdvanCfg_Menu_Cash.Content = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Cash_Title"); AdvanCfg_Menu_OnlineEntityCard.Content = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_OnlineEntityCard_Title"); AdvanCfg_Menu_WeChatCode.Content = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_WeChatCode_Title"); AdvanCfg_Menu_AliPayCode.Content = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_AliPayCode_Title"); AdvanCfg_Menu_BestPayCode.Content = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_BestPayCode_Title"); AdvanCfg_Menu_KimmaOnlineCard.Content = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_KimmaOnlineCard_Title"); AdvanCfg_Menu_UnionPay.Content = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_UnionPay_Title"); #region 检测各支付方式是否允许 if (!PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.Cash)) { AdvanCfg_Menu_Cash.IsEnabled = false; } if (!PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.IcCard)) { AdvanCfg_Menu_IcCard.IsEnabled = false; } if (!PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.Online_EntityCard)) { AdvanCfg_Menu_OnlineEntityCard.IsEnabled = false; } if (!PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.KimmaOnLineCard)) { AdvanCfg_Menu_KimmaOnlineCard.IsEnabled = false; } if (!PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.WeChatCode)) { AdvanCfg_Menu_WeChatCode.IsEnabled = false; } if (!PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.AliPay_Code)) { AdvanCfg_Menu_AliPayCode.IsEnabled = false; } if (!PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.BestPay_Code)) { AdvanCfg_Menu_BestPayCode.IsEnabled = false; } if (!PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.QuickPass)) { AdvanCfg_Menu_UnionPay.IsEnabled = false; } #endregion }
private void InitForm() { tbTitle.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_Diagnose_Payment"); tbCashTitle.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Cash_Title"); tbPosTitle.Text = PubHelper.ConvertIcCardPayName();// PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_Title"); tbOnlineEntityCardTitle.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_OnlineEntityCard_Title"); tbWeChatCodeTitle.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_WeChatCode_Title"); tbAliPayCodeTitle.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_AliPayCode_Title"); tbBestPayCodeTitle.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_BestPayCode_Title"); tbUnionPayTitle.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_UnionPay_Title"); tbQRTitle.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_QrCode_Title"); btnCancel.Content = PubHelper.p_LangOper.GetStringBundle("Pub_Btn_Cancel"); }
private void InitForm() { #region 初始化界面资源 string strPosTypeName = string.Empty; switch (PubHelper.p_BusinOper.ConfigInfo.PosBusiType) { case Business.Enum.BusinessEnum.PosBusiType.BeiJingDiKe: strPosTypeName = "迪科POS终端"; break; case Business.Enum.BusinessEnum.PosBusiType.KMT: strPosTypeName = "金码标准一卡通终端"; break; case Business.Enum.BusinessEnum.PosBusiType.SZDS: strPosTypeName = "达实POS终端"; break; case Business.Enum.BusinessEnum.PosBusiType.WuHanTong: strPosTypeName = "武汉通POS终端"; break; case Business.Enum.BusinessEnum.PosBusiType.XiAnTong_NoNet: strPosTypeName = "长安通POS终端"; break; case Business.Enum.BusinessEnum.PosBusiType.Other: break; } tbTitle.Text = PubHelper.ConvertIcCardPayName() + "【" + strPosTypeName + "】";// PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_Title"); tbControlSwitch.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Payment_Control"); tbIcQuerySwitch.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_IcQuerySwitch"); tbIcPort.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_IcPort"); tbShowCardInfoTime.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_ShowCardInfoTime"); tbPayShow.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_PayShow"); tbHideCardNum.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_HideCardNum"); btnSave.Content = PubHelper.p_LangOper.GetStringBundle("Pub_Btn_Save"); btnCancel.Content = PubHelper.p_LangOper.GetStringBundle("Pub_Btn_Cancel"); rdbControlSwitch_Run.Content = rdbIcQuerySwitch_Run.Content = rdbPayShow_Run.Content = rdbHideCardNum_Run.Content = PubHelper.p_LangOper.GetStringBundle("Pub_Run"); rdbControlSwitch_Stop.Content = rdbIcQuerySwitch_Stop.Content = rdbPayShow_Stop.Content = rdbHideCardNum_Stop.Content = PubHelper.p_LangOper.GetStringBundle("Pub_Stop"); tbIcBusiModel.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_IcBusiModel"); string strSecond = PubHelper.p_LangOper.GetStringBundle("Pub_Second"); for (int i = 2; i < 16; i++) { cmbShowCardInfoTime.Items.Add(i.ToString() + strSecond); } for (int i = 1; i < 21; i++) { cmbIcPort.Items.Add("COM" + i.ToString()); } string strIcBusiModel_QueryPay = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_IcBusiModel_QueryPay"); string strIcBusiModel_Pay = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_IcBusiModel_Pay"); #endregion #region 加载数据 string strIcQuerySwitch = PubHelper.p_BusinOper.SysCfgOper.GetSysCfgValue("IcQuerySwitch"); if (strIcQuerySwitch == "0") { rdbIcQuerySwitch_Stop.IsChecked = true; } else { rdbIcQuerySwitch_Run.IsChecked = true; } cmbShowCardInfoTime.Text = PubHelper.p_BusinOper.SysCfgOper.GetSysCfgValue("ShowCardInfoTime") + strSecond; cmbIcPort.Text = "COM" + PubHelper.p_BusinOper.SysCfgOper.GetSysCfgValue("IcPort"); string strControlSwitch = PubHelper.p_BusinOper.SysCfgOper.GetSysCfgValue("IcControlSwitch"); if (strControlSwitch == "0") { rdbControlSwitch_Stop.IsChecked = true; rdbIcQuerySwitch_Run.IsEnabled = rdbIcQuerySwitch_Stop.IsEnabled = cmbIcPort.IsEnabled = cmbShowCardInfoTime.IsEnabled = rdbPayShow_Run.IsEnabled = rdbPayShow_Stop.IsEnabled = rdbHideCardNum_Run.IsEnabled = rdbHideCardNum_Stop.IsEnabled = false; } else { rdbControlSwitch_Run.IsChecked = true; rdbIcQuerySwitch_Run.IsEnabled = rdbIcQuerySwitch_Stop.IsEnabled = cmbIcPort.IsEnabled = cmbShowCardInfoTime.IsEnabled = rdbPayShow_Run.IsEnabled = rdbPayShow_Stop.IsEnabled = rdbHideCardNum_Run.IsEnabled = rdbHideCardNum_Stop.IsEnabled = true; } if (PubHelper.p_BusinOper.ConfigInfo.IcPayShowSwitch == Business.Enum.BusinessEnum.ControlSwitch.Stop) { rdbPayShow_Stop.IsChecked = true; } else { rdbPayShow_Run.IsChecked = true; } if (PubHelper.p_BusinOper.ConfigInfo.IcBusiModel == "0") { tbIcBusiModel_Value.Text = strIcBusiModel_QueryPay; } else { tbIcBusiModel_Value.Text = strIcBusiModel_Pay; } if (PubHelper.p_BusinOper.ConfigInfo.IcCardNumHide == Business.Enum.BusinessEnum.ControlSwitch.Stop) { rdbHideCardNum_Stop.IsChecked = true; } else { rdbHideCardNum_Run.IsChecked = true; } #endregion m_IsInit = false; }
private void LoadData() { try { AfreshMonOutTime(); string strRunTitle = PubHelper.p_LangOper.GetStringBundle("Pub_Run"); string strStopTitle = PubHelper.p_LangOper.GetStringBundle("Pub_Stop"); #region 正常及故障的颜色定义 SolidColorBrush brush_Ok = new SolidColorBrush(); brush_Ok.Color = Colors.White; SolidColorBrush brush_Err = new SolidColorBrush(); brush_Err.Color = Colors.Red; #endregion #region 门及温度数据 // 谷霖 2016-11-09 此处需要修改完善 string strDoorStatus = PubHelper.p_BusinOper.GetDoorStatus();// PubHelper.p_BusinOper.AsileOper.VendBoxList[0].DoorStatus; tbDoor_Value.Text = DictionaryHelper.Dictionary_Door(0, strDoorStatus, true); if ((strDoorStatus != "00") && (strDoorStatus != "01")) { tbDoor_Value.Foreground = brush_Err;// Brushes.Red; } else { tbDoor_Value.Foreground = brush_Ok; } tbTmpType_Value.Text = DictionaryHelper.Dictionary_TmpType(0); tbNowTmp_Value.Text = DictionaryHelper.Dictionary_NowTmp(0, true); if (PubHelper.p_BusinOper.AsileOper.VendBoxList[0].TmpStatus == "00") { tbNowTmp_Value.Foreground = brush_Ok; } else { tbNowTmp_Value.Foreground = brush_Err; } tbTarTmp_Value.Text = PubHelper.p_BusinOper.AsileOper.VendBoxList[0].TargetTmp + PubHelper.TMP_UNIT;// if (PubHelper.p_BusinOper.AsileOper.VendBoxList.Count > 1) { btnTmp_More.Visibility = System.Windows.Visibility.Visible; } else { btnTmp_More.Visibility = System.Windows.Visibility.Hidden; } //PubHelper.p_BusinOper.SysCfgOper.GetSysCfgValue("TargetTmp1") + PubHelper.TMP_UNIT; #endregion #region 网络 PubHelper.p_BusinOper.GetNetStatus(); tbNetKind_Value.Text = DictionaryHelper.Dictionary_NetStatus(); if (PubHelper.p_BusinOper.DeviceInfo.NetStatus == Business.Enum.BusinessEnum.NetStatus.OnLine) { // 联机 tbNetKind_Value.Foreground = brush_Ok; } else { // 离线 tbNetKind_Value.Foreground = brush_Err; } tbNetNum_Value.Text = PubHelper.p_BusinOper.GetWaitNetDataNum().ToString(); switch (PubHelper.p_BusinOper.SysCfgOper.GetSysCfgValue("NetSwitch")) { case "0": // 关闭 tbNetSwitch_Value.Text = strStopTitle; break; case "1": // 开启 tbNetSwitch_Value.Text = strRunTitle; break; } string strNetType = PubHelper.p_BusinOper.SysCfgOper.GetSysCfgValue("NetType");// 网络通信类型 switch (strNetType) { case "0": // DTU方式 tbNetType_Value.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Net_NetType_DTU"); break; default: tbNetType_Value.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Net_NetType_Other"); break; } tbNetSoftName_Value.Text = PubHelper.p_BusinOper.DeviceInfo.NetSoftVer; #endregion #region 其它设备状态 tbRef_Value.Text = DictionaryHelper.Dictionary_DeviceStatus(PubHelper.p_BusinOper.AsileOper.VendBoxList[0].RefControl.ControlStatus.ToString()); tbLight_Value.Text = DictionaryHelper.Dictionary_DeviceStatus(PubHelper.p_BusinOper.AsileOper.VendBoxList[0].LightControl.ControlStatus.ToString()); tbAdvertLamp_Value.Text = DictionaryHelper.Dictionary_DeviceStatus(PubHelper.p_BusinOper.AsileOper.VendBoxList[0].AdvertLightControl.ControlStatus.ToString()); #endregion #region 货道状态 int intAsileCount = PubHelper.p_BusinOper.AsileOper.AsileList.Count; int intErrAsile = 0; string strAsileCode = string.Empty; string strAsileStatus = string.Empty; string strAsileInfo = string.Empty; for (int i = 0; i < intAsileCount; i++) { if (PubHelper.p_BusinOper.AsileOper.AsileList[i].PaStatus != "02") { // 货道状态异常 intErrAsile++; strAsileCode = PubHelper.p_BusinOper.AsileOper.AsileList[i].PaCode; strAsileStatus = PubHelper.p_BusinOper.AsileOper.AsileList[i].PaStatus; strAsileInfo = DictionaryHelper.Dictionary_AsileStatus(strAsileStatus); if (intErrAsile == 1) { tbAsileCode_Text_1.Visibility = tbAsileCode_Value_1.Visibility = System.Windows.Visibility.Visible; tbAsileCode_Text_1.Text = strAsileCode; tbAsileCode_Value_1.Text = strAsileStatus + " " + strAsileInfo; tbAsileCode_Text_1.Foreground = tbAsileCode_Value_1.Foreground = brush_Err; } if (intErrAsile == 2) { tbAsileCode_Text_2.Visibility = tbAsileCode_Value_2.Visibility = System.Windows.Visibility.Visible; tbAsileCode_Text_2.Text = strAsileCode; tbAsileCode_Value_2.Text = strAsileStatus + " " + strAsileInfo; tbAsileCode_Text_2.Foreground = tbAsileCode_Value_2.Foreground = brush_Err; } if (intErrAsile == 3) { tbAsileCode_Text_3.Visibility = tbAsileCode_Value_3.Visibility = System.Windows.Visibility.Visible; tbAsileCode_Text_3.Text = strAsileCode; tbAsileCode_Value_3.Text = strAsileStatus + " " + strAsileInfo; tbAsileCode_Text_3.Foreground = tbAsileCode_Value_3.Foreground = brush_Err; } if (intErrAsile == 3) { // 超过4个,显示更多 btnAsile_More.Visibility = System.Windows.Visibility.Visible; break; } } } if (intErrAsile == 0) { // 货道正常 tbAsileCode_Text_1.Visibility = System.Windows.Visibility.Visible; tbAsileCode_Text_1.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Normal"); tbAsileCode_Text_1.Foreground = brush_Ok; } #endregion #region 支付方式 tbCashControl_Text.Text = tbCash_Text.Text = tbCoin_Text.Text = tbCashControl_Value.Text = tbCash_Value.Text = tbCoin_Value.Text = string.Empty; // 获取当前支付方式数量 int intEnablePayNum = PubHelper.p_BusinOper.PaymentOper.GetOpenPayNum(); switch (intEnablePayNum) { case 0: // 没有支付方式 btnPayment_More.Visibility = System.Windows.Visibility.Hidden; tbCashControl_Text.Visibility = tbCash_Text.Visibility = tbCoin_Text.Visibility = tbCashControl_Value.Visibility = tbCash_Value.Visibility = tbCoin_Value.Visibility = System.Windows.Visibility.Hidden; break; case 1: // 只有一种支付方式 btnPayment_More.Visibility = System.Windows.Visibility.Hidden; // 隐藏更多按钮 break; default: // 多种支付方式 btnPayment_More.Visibility = System.Windows.Visibility.Visible; // 显示更多按钮 break; } if (intEnablePayNum == 0) { return; } #region 现金支付 if (PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.Cash)) { // 如果现金支付方式开启,则界面上默认显示现金支付方式的相关信息 tbCashControl_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Cash_Title"); tbCash_Text.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Device_Bill"); tbCoin_Text.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Device_Coin"); switch (PubHelper.p_BusinOper.PaymentOper.PaymentList.Cash.ControlSwitch) { case Business.Enum.BusinessEnum.ControlSwitch.Stop: // 关闭 tbCashControl_Value.Text = strStopTitle; break; case Business.Enum.BusinessEnum.ControlSwitch.Run: // 开启 tbCashControl_Value.Text = strRunTitle; break; } tbCash_Value.Text = DictionaryHelper.Dictionary_CashStatus(); tbCoin_Value.Text = DictionaryHelper.Dictionary_CoinStatus(); return; } #endregion #region 储值卡支付 if (PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.IcCard)) { // 如果储值卡支付方式开启,则界面上默认显示储值卡支付方式的相关信息 tbCashControl_Text.Text = PubHelper.ConvertIcCardPayName(); // PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_Title"); tbCash_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_Card_Soft"); // 组件版本 tbCoin_Text.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Device_Ic"); // 设备状态 switch (PubHelper.p_BusinOper.PaymentOper.PaymentList.IC.ControlSwitch) { case Business.Enum.BusinessEnum.ControlSwitch.Stop: // 关闭 tbCashControl_Value.Text = strStopTitle; break; case Business.Enum.BusinessEnum.ControlSwitch.Run: // 开启 tbCashControl_Value.Text = strRunTitle; break; } tbCash_Value.Text = PubHelper.p_BusinOper.DeviceInfo.ICSoftVer; // 组件版本值 tbCoin_Value.Text = DictionaryHelper.Dictionary_ICStatus(); // 设备状态值 return; } #endregion #region 在线会员实体卡 if (PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.Online_EntityCard)) { // 如果支付方式开启,则界面上默认显示支付方式的相关信息 tbCashControl_Text.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Payment_OnlineCard"); tbCash_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_NoFeeCard_Soft"); // 组件版本 tbCoin_Text.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Device_NoFeeCard"); // 设备状态 switch (PubHelper.p_BusinOper.PaymentOper.PaymentList.Online_EntityCard.ControlSwitch) { case Business.Enum.BusinessEnum.ControlSwitch.Stop: // 关闭 tbCashControl_Value.Text = strStopTitle; break; case Business.Enum.BusinessEnum.ControlSwitch.Run: // 开启 tbCashControl_Value.Text = strRunTitle; break; } tbCash_Value.Text = PubHelper.p_BusinOper.DeviceInfo.OnlineEntityCardSoftVer; // 组件版本值 tbCoin_Value.Text = DictionaryHelper.Dictionary_OnlineEntityCardStatus(); // 设备状态值 return; } #endregion #region 银联支付 if (PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.QuickPass)) { // 如果支付方式开启,则界面上默认显示支付方式的相关信息 tbCashControl_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_UnionPay_Title"); tbCash_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_UnionPay_Soft"); // 组件版本 tbCoin_Text.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Device_UnionPay"); // 设备状态 switch (PubHelper.p_BusinOper.PaymentOper.PaymentList.UnionPay.ControlSwitch) { case Business.Enum.BusinessEnum.ControlSwitch.Stop: // 关闭 tbCashControl_Value.Text = strStopTitle; break; case Business.Enum.BusinessEnum.ControlSwitch.Run: // 开启 tbCashControl_Value.Text = strRunTitle; break; } tbCash_Value.Text = PubHelper.p_BusinOper.DeviceInfo.UnionPaySoftVer; // 组件版本值 tbCoin_Value.Text = DictionaryHelper.Dictionary_UnionPayStatus(); // 设备状态值 return; } #endregion #region 二维码支付 if (PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.KimmaOnLineCard)) { // 如果支付方式开启,则界面上默认显示支付方式的相关信息 tbCashControl_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_QrCode_Title"); tbCash_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_QrCode_Soft"); // 组件版本 tbCoin_Text.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Device_QRCode"); // 设备状态 switch (PubHelper.p_BusinOper.PaymentOper.PaymentList.KimmaOnLineCard.ControlSwitch) { case Business.Enum.BusinessEnum.ControlSwitch.Stop: // 关闭 tbCashControl_Value.Text = strStopTitle; break; case Business.Enum.BusinessEnum.ControlSwitch.Run: // 开启 tbCashControl_Value.Text = strRunTitle; break; } tbCash_Value.Text = PubHelper.p_BusinOper.DeviceInfo.QrSoftVer; // 组件版本值 tbCoin_Value.Text = DictionaryHelper.Dictionary_QRCodeStatus(); // 设备状态值 return; } #endregion #region 微信扫码支付 if (PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.WeChatCode)) { // 如果支付方式开启,则界面上默认显示支付方式的相关信息 tbCashControl_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_WeChatCode_Title"); tbCash_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_WeChatCode_Soft"); // 组件版本 tbCoin_Text.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Device_QRCode"); // 设备状态 switch (PubHelper.p_BusinOper.PaymentOper.PaymentList.WeChatCode.ControlSwitch) { case Business.Enum.BusinessEnum.ControlSwitch.Stop: // 关闭 tbCashControl_Value.Text = strStopTitle; break; case Business.Enum.BusinessEnum.ControlSwitch.Run: // 开启 tbCashControl_Value.Text = strRunTitle; break; } tbCash_Value.Text = PubHelper.p_BusinOper.DeviceInfo.AliPayWaveSoftVer;// 组件版本值 tbCoin_Text.Visibility = tbCoin_Value.Visibility = System.Windows.Visibility.Hidden; ////tbCoin_Value.Text = DictionaryHelper.Dictionary_AliPayWaveStatus();// 设备状态值 return; } #endregion #region 支付宝扫码支付 if (PubHelper.p_BusinOper.PaymentOper.CheckPaymentIsExist(Business.Enum.BusinessEnum.PayMent.AliPay_Code)) { // 如果支付方式开启,则界面上默认显示支付方式的相关信息 tbCashControl_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_AliPayCode_Title"); tbCash_Text.Text = PubHelper.p_LangOper.GetStringBundle("SysCfg_Menu_AdvanCfg_AliPayCode_Soft"); // 组件版本 tbCoin_Text.Text = PubHelper.p_LangOper.GetStringBundle("Pub_Device_QRCode"); // 设备状态 switch (PubHelper.p_BusinOper.PaymentOper.PaymentList.AliPay_Code.ControlSwitch) { case Business.Enum.BusinessEnum.ControlSwitch.Stop: // 关闭 tbCashControl_Value.Text = strStopTitle; break; case Business.Enum.BusinessEnum.ControlSwitch.Run: // 开启 tbCashControl_Value.Text = strRunTitle; break; } tbCash_Value.Text = PubHelper.p_BusinOper.DeviceInfo.AliPayWaveSoftVer;// 组件版本值 ////tbCoin_Value.Text = DictionaryHelper.Dictionary_AliPayWaveStatus();// 设备状态值 tbCoin_Text.Visibility = tbCoin_Value.Visibility = System.Windows.Visibility.Hidden; return; } #endregion #endregion } catch (Exception ex) { PubHelper.ShowMsgInfo(PubHelper.p_LangOper.GetStringBundle("Err_OtherErr").Replace("{N}", ex.Message), PubHelper.MsgType.Ok); } }