You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.4 KiB
92 lines
2.4 KiB
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
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public StationUnlock()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 加载窗体
|
|
/// </summary>
|
|
private void Window_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 按钮事件
|
|
/// </summary>
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 站台解锁
|
|
/// </summary>
|
|
private void UpdateStation()
|
|
{
|
|
bool bResult = false;
|
|
string sResult = string.Empty;
|
|
try
|
|
{
|
|
List<string> lsStation = new List<string>();
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
}
|