using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace SiaSun.LMS.WPFClient.TASK { public partial class StationUnlock : Window { /// /// 构造函数 /// public StationUnlock() { InitializeComponent(); } /// /// 加载窗体 /// private void Window_Loaded(object sender, RoutedEventArgs e) { } /// /// 按钮事件 /// private void WrapPanel_Click(object sender, RoutedEventArgs e) { Button btn = e.OriginalSource as Button; if (btn != null) { switch (btn.Name) { case "btnOK": this.UpdateStation(); break; } } } /// /// 站台解锁 /// private void UpdateStation() { bool bResult = false; string sResult = string.Empty; try { List lsStation = new List(); if (this.cbOne.IsChecked == true) { lsStation.Add(this.cbOne.Tag.ToString()); } if (this.cbFour.IsChecked == true) { lsStation.Add(this.cbFour.Tag.ToString()); } if (this.cbSix.IsChecked == true) { lsStation.Add(this.cbSix.Tag.ToString()); } if (lsStation.Count == 0) { MainApp._MessageDialog.Show(false, "请选择解锁站台"); return; } //bResult=MainApp._I_PDAService.StationUnlock(lsStation, MainApp._USER.USER_NAME, out sResult); MainApp._MessageDialog.Show(bResult, sResult); } catch (Exception ex) { MainApp._MessageDialog.ShowException(ex); } } } }