/// <summary> /// 弹窗显示提示信息 /// </summary> /// <param name="msg"></param> /// <param name="title"></param> protected void ShowMsg(string msg, string title) { if (IsShowMsg) { Task.Factory.StartNew(() => DHelper.ShowMsg(msg, title)).Wait(); } }
private void BtnOK_Click(object sender, RoutedEventArgs e) { if (MgtZWPZLX.SelectedItem == null) { DHelper.ShowMsg("请至少选择一个凭证类型"); } else { DialogResult = true; } }
private void BtnOK_Click(object sender, RoutedEventArgs e) { if (VIT == null) { DHelper.ShowMsg("请选择一个导入模板"); } else { DialogResult = true; } }
private void BtnOK_Click(object sender, RoutedEventArgs e) { LoginInfo.SqlConn = ComboSetConn.SelectedItem as SqlConn; if (LoginInfo.SqlConn == null) { DHelper.ShowMsg("请选择账套"); } else { LoginInfo.LoginDate = DpDate.SelectedDate.Value; DialogResult = true; } }
/// <summary> /// 构造 /// </summary> public UcMgtZWPZK() { InitializeComponent(); MgtZWPZK = new MgtZWPZK(); MgtZWPZK.OnEntityChanged += t => { PanelPZK.DataContext = null; PanelPZK.DataContext = t; DgPZFL.ItemsSource = null; DgPZFL.ItemsSource = t.ListZWPZFL; DgFZYS.ItemsSource = null; }; BtnAdd_Click(null, null); if (string.IsNullOrEmpty(LoginInfo.LoginName)) { DHelper.ShowMsg("业务人员为空,请在界面左下角填写业务人员"); } }
private void BtnImport_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(LoginInfo.LoginName)) { DHelper.ShowMsg("业务人员为空,请在界面左下角填写业务人员"); return; } Wins.WinPZKImport win = new Wins.WinPZKImport(); if (win.ShowDialog() == true) { MgtZWPZK.ImportBuffer = win.ImportBuffer; if (MgtZWPZK.Import(win.VIT)) { PanelPZK.DataContext = null; PanelPZK.DataContext = MgtZWPZK.Entity; DgPZFL.ItemsSource = null; DgPZFL.ItemsSource = MgtZWPZK.Entity.ListZWPZFL; DgPZFL.Items.Refresh(); DgFZYS.ItemsSource = null; DgFZYS.Items.Refresh(); } } }