This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using System;
using BP.DA;
using BP.En;
using BP.Sys;
using System.Data;
namespace BP.WF.DTS
{
/// <summary>
/// 根据坐标排序字段
/// </summary>
public class ResetSortMapAttr : Method
{
/// <summary>
/// 根据坐标排序字段
/// </summary>
public ResetSortMapAttr()
{
this.Title = "根据坐标排序MapAttr字段-用于手机端";
this.Help = "重置MapAttr表中Idx字段,根据坐标y,x排序";
}
/// <summary>
/// 设置执行变量
/// </summary>
/// <returns></returns>
public override void Init()
{
}
/// <summary>
/// 当前的操纵员是否可以执行这个方法
/// </summary>
public override bool IsCanDo
{
get
{
return true;
}
}
/// <summary>
/// 执行
/// </summary>
/// <returns>返回执行结果</returns>
public override object Do()
{
try
{
string sql = "select NO from Sys_MapData where No not in(select No from Sys_MapDtl) and No not like '%Rpt'";