年度变更建库软件5.0版本
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.
 
 

57 lines
2.1 KiB

using KGIS.Framework.Utils;
using KGIS.Framework.Utils.ExtensionMethod;
using KGIS.Framework.Utils.Helper;
using Kingo.Plugin.DataCheck.Helper;
using System;
using System.Windows;
using System.Windows.Controls;
namespace Kingo.Plugin.DataCheck.View.V_Repair
{
/// <summary>
/// FrmBachRepair.xaml 的交互逻辑
/// </summary>
public partial class FrmBachRepair : BaseWindow
{
private DataCheckHelper checkHelper = null;
public FrmBachRepair(DataCheckHelper param)
{
InitializeComponent();
checkHelper = param;
}
private void BtnOK_Click(object sender, RoutedEventArgs e)
{
double mj = txtMJ.Text.ToDouble(2);
if (mj == 0)
{
MessageHelper.Show("输入面积必须大于0,且为数字类型!");
return;
}
if (checkHelper == null) return;
if (MessageHelper.ShowYesNoAndTips(string.Format("是否确定将灭失面积大于{0} 平方米的图斑全部提取为变更图斑?此操作不可恢复,请谨慎操作!", mj)) == System.Windows.Forms.DialogResult.Yes)
{
checkHelper.StartRepair(mj);
MessageHelper.Show("批量修复完成。");
}
this.Close();
}
private void BtnCancel_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
private void TxtMJ_TextChanged(object sender, TextChangedEventArgs e)
{
double mj = txtMJ.Text.ToDouble(2);
if (mj == 0)
{
MessageHelper.Show("输入面积必须大于0,且为数字类型!");
return;
}
if (txtTip != null)
txtTip.Text = string.Format("注:请逐条核对检查结果,是否属于本年度正常灭失,如属于正常灭失,请标记【例外】处理!否则此功能会将城镇村灭失面积大于 {0} 平方米的图斑,提取为变更图斑并标记20X属性,请谨慎操作!", mj);
}
}
}