system_max_id.cs

来自「.net 开发的基础框架」· CS 代码 · 共 65 行

CS
65
字号
using System;
using System.Collections.Generic;
using System.Text;
using Sybase.DataWindow;

namespace SPRFrame.DataType
{
    // 最大值数据集(表:System_Max_Id)
    public class System_Max_Id : Sybase.DataWindow.DataStore
    {
        public System_Max_Id()
        {
            this.LibraryList = SPRF.PbdFile;
            this.DataWindowObject = "dw_system_Max_Id";
            this.SetTransaction(SPRF.maxSQLCA);
        }

        #region 属性
        public string TABLE_NAME
        {
            get
            {
                if (this.RowCount == 0) return "";
                return this.GetItemString(this.CurrentRow, "table_name");
            }
            set
            {
                if (this.RowCount == 0) return;
                this.SetItemString(this.CurrentRow, "table_name", value);
            }
        }
        public int MAX_VALUE
        {
            get
            {
                if (this.RowCount == 0) return -2;
                return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "max_value"));
            }
            set
            {
                if (this.RowCount == 0) return;
                this.SetItemDouble(this.CurrentRow, "max_value", value);
            }
        }

        public bool IsNULL
        {
            get
            {
                if (this.RowCount == 0)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
        #endregion

    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?