/// <summary>
        /// 上移
        /// </summary>
        /// <returns>影响行数</returns>
        public int SetUp()
        {
            RowCount = RowIndex;
            int    returnValue = 0;
            string targetId    = "";

            if (dataTableFlag)
            {
                targetId = SortLogic.GetPreviousId(this.dataView, this.EntityId);
            }
            else
            {
                targetId = SortLogic.GetPreviousIdDyn(this.lstT, this.EntityId);
            }
            if (targetId.Length > 0)
            {
                if (dataTableFlag)
                {
                    returnValue = SortLogic.Swap(this.dataView.Table, this.EntityId, targetId);
                }
                else
                {
                    returnValue = SortLogic.SwapDyn(this.lstT, this.EntityId, targetId);
                    SetCRow();
                }
            }
            else
            {
                if (SystemInfo.ShowInformation)
                {
                    MessageBoxHelper.ShowInformationMsg(RDIFrameworkMessage.MSG0021);
                }
            }
            return(returnValue);
        }
        /// <summary>
        /// 置顶
        /// </summary>
        /// <returns>影响行数</returns>
        public int SetTop()
        {
            RowCount = RowIndex;
            int    returnValue = 0;
            string targetId    = "";

            if (dataTableFlag)
            {
                targetId = SortLogic.GetPreviousId(this.dataView, this.EntityId);
            }
            else
            {
                targetId = SortLogic.GetPreviousIdDyn(lstT, this.EntityId);
            }
            if (targetId.Length > 0)
            {
                RDIFrameworkService RDIFrameworkService = new RDIFrameworkService();
                string sequence = RDIFrameworkService.SequenceService.GetReduction(UserInfo, dataTableFlag ? this.dataView.Table.TableName : tabelName);
                if (RDIFrameworkService.SequenceService is ICommunicationObject)
                {
                    ((ICommunicationObject)RDIFrameworkService.SequenceService).Close();
                }
                if (dataTableFlag)
                {
                    returnValue = BusinessLogic.SetProperty(this.dataView.Table, this.EntityId, BusinessLogic.FieldSortCode, sequence);
                }
                else
                {
                    returnValue = BusinessLogic.SetPropertyDyn(this.lstT, this.EntityId, BusinessLogic.FieldSortCode, sequence);
                    SetCRow();
                }
            }
            else
            {
                if (SystemInfo.ShowInformation)
                {
                    MessageBoxHelper.ShowInformationMsg(RDIFrameworkMessage.MSG0021);
                }
            }
            return(returnValue);
        }