using KGIS.Framework.Utils; using System; using System.Windows; namespace Kingo.Plugin.General.ViewDTBJK { /// /// 返外业 的交互逻辑 /// public partial class UCFWYBZ : BaseWindow { public string BZ { get; set; } public UCFWYBZ(string _bz) { InitializeComponent(); this.txtBZ.Text = _bz; } private void BtnOk_Click(object sender, RoutedEventArgs e) { try { if (string.IsNullOrWhiteSpace(txtBZ.Text)) { KGIS.Framework.Utils.Helper.MessageHelper.Show("返外业备注不能为空!"); return; } this.BZ = txtBZ.Text.Trim(); this.DialogResult = true; this.Close(); } catch (Exception ex) { LogAPI.Debug(ex); KGIS.Framework.Utils.Helper.MessageHelper.ShowError(ex.Message); } } } }