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

86 lines
2.4 KiB

6 months ago
using ESRI.ArcGIS.Controls;
using KGIS.Framework.Commands;
using KGIS.Framework.Utils.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using KUI.Windows;
using Kingo.Plugin.General.ViewDTBJK;
namespace Kingo.Plugin.General.Commands
{
/// <summary>
/// 批量导入导出
/// </summary>
public class CmdTaskExportAndImport : BaseMenuCommand
{
private UCJKResultExport ucJKResultExport = null;
private IHookHelper m_hookHelper { get; set; }
public override void OnClick()
{
try
{
if (ucJKResultExport == null)
{
ucJKResultExport = new UCJKResultExport(true)
{
hookHelper = this.m_hookHelper,
Title = "批量导入导出",
Width = 900,
Height = 450,
WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen
};
ucJKResultExport.Closed += UcJKResultExport_Closed;
ucJKResultExport.BindData();
ucJKResultExport.ShowInMainForm(false);
}
}
catch (Exception ex)
{
KGIS.Framework.Utils.LogAPI.Debug("建库成果导出界面初始化异常:" + ex.Message);
MessageHelper.ShowError("建库成果导出界面初始化异常:" + ex.Message);
}
finally
{
}
}
private void UcJKResultExport_Closed(object sender, EventArgs e)
{
try
{
if (ucJKResultExport != null)
{
ucJKResultExport.Close();
}
ucJKResultExport = null;
}
catch (Exception ex)
{
KGIS.Framework.Utils.LogAPI.Debug(ex);
}
}
public override void OnCreate(object Hook)
{
try
{
if (m_hookHelper == null)
{
m_hookHelper = new HookHelperClass
{
Hook = Hook
};
}
}
catch
{
m_hookHelper = null;
return;
}
}
}
}