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

            if (dataTableFlag)
            {
                targetId = SortLogic.GetNextId(this.dataView, this.EntityId);
            }
            else
            {
                targetId = SortLogic.GetNextIdDyn(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.MSG0022);
                }
            }
            return(returnValue);
        }
        /// <summary>
        /// 置底
        /// </summary>
        /// <returns>影响行数</returns>
        public int SetBottom()
        {
            RowCount = RowIndex;
            int    returnValue = 0;
            string targetId    = "";

            if (dataTableFlag)
            {
                targetId = SortLogic.GetNextId(this.dataView, this.EntityId);
            }
            else
            {
                targetId = SortLogic.GetNextIdDyn(this.lstT, this.EntityId);
            }
            if (targetId.Length > 0)
            {
                RDIFrameworkService RDIFrameworkService = new RDIFrameworkService();
                string sequence = RDIFrameworkService.SequenceService.GetSequence(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.MSG0022);
                }
            }
            return(returnValue);
        }