|
|
|
|
using KGIS.Framework.Views;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Kingo.PluginServiceInterface
|
|
|
|
|
{
|
|
|
|
|
public interface IAttrTableHelper
|
|
|
|
|
{
|
|
|
|
|
//List<IAttrTableView> AllView { get; set; }
|
|
|
|
|
IAttrTableView CurrentView { get; set; }
|
|
|
|
|
void InitView(string pTitle, object m_hookHelper, List<AttributeViewParameter> pViewParam);
|
|
|
|
|
void SelectRowPrevOrNextRow(string pPrevOrNext);
|
|
|
|
|
}
|
|
|
|
|
public interface IAttrTableView : IDockPanel2
|
|
|
|
|
{
|
|
|
|
|
event CustomCallbackHandler CustomCallBack;
|
|
|
|
|
void SelectNextRow();
|
|
|
|
|
void SelectPrevRow();
|
|
|
|
|
//void InitView(object featureLayer, object m_hookHelper, List<AttributeViewParameter> pViewParam);
|
|
|
|
|
void LoadData(object featureLayer, object pDataFilter);
|
|
|
|
|
}
|
|
|
|
|
public delegate void CustomCallbackHandler(AttributeViewParameter result);
|
|
|
|
|
public class AttributeViewParameter
|
|
|
|
|
{
|
|
|
|
|
public string LableInfo { get; set; }
|
|
|
|
|
public string RadioGroupName { get; set; }
|
|
|
|
|
public string Type { get; set; }
|
|
|
|
|
public object Data { get; set; }
|
|
|
|
|
public object BarItem { get; set; }
|
|
|
|
|
public object Value { get; set; }
|
|
|
|
|
public string Filterriteria { get; set; }
|
|
|
|
|
public bool IsChecked { get; set; }
|
|
|
|
|
public event CustomCallbackHandler Callback;
|
|
|
|
|
public void OnCallBack()
|
|
|
|
|
{
|
|
|
|
|
Callback?.Invoke(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|