⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system_menu_list.cs

📁 .net 开发的基础框架
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using Sybase.DataWindow;

namespace SPRFrame.DataType
{
    // 系统菜单表
    public class System_Menu_List : Sybase.DataWindow.DataStore
    {
        public System_Menu_List()
        {
            this.LibraryList = SPRF.PbdFile;
            this.DataWindowObject = "dw_system_menu_list";
            this.SetTransaction(SPRF.GetDB());
        }
        #region 属性
        public string SYS_ID
        {
            get
            {
                if (this.RowCount == 0) return "NoData";
                return this.GetItemString(this.CurrentRow, "sys_id");
            }
            set
            {
                if (this.RowCount == 0) return;
                this.SetItemString(this.CurrentRow, "sys_id", value);
            }
        }
        public string MENU_TEXT
        {
            get
            {
                if (this.RowCount == 0) return "NoData";
                return this.GetItemString(this.CurrentRow, "menu_text");
            }
            set
            {
                if (this.RowCount == 0) return;
                this.SetItemString(this.CurrentRow, "menu_text", value);
            }
        }
        public string MENU_ID
        {
            get
            {
                if (this.RowCount == 0) return "NoData";
                return this.GetItemString(this.CurrentRow, "menu_id");
            }
            set
            {
                if (this.RowCount == 0) return;
                this.SetItemString(this.CurrentRow, "menu_id", value);
            }
        }
        public string MENU_TYPE
        {
            get
            {
                if (this.RowCount == 0) return "NoData";
                return this.GetItemString(this.CurrentRow, "menu_type");
            }
            set
            {
                if (this.RowCount == 0) return;
                this.SetItemString(this.CurrentRow, "menu_type", value);
            }
        }
        public string STS
        {
            get
            {
                if (this.RowCount == 0) return "NoData";
                return this.GetItemString(this.CurrentRow, "sts");
            }
            set
            {
                if (this.RowCount == 0) return;
                this.SetItemString(this.CurrentRow, "sts", value);
            }
        }
        public bool IsNULL
        {
            get
            {
                if (this.RowCount == 0)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
        #endregion

        #region 设定取得数据的方法
        public void SetDataBySysId(string sSysId)
        {
            string SqlString = this.GetSqlSelect();
            SqlString += "where sys_id = '" + sSysId + "' order by menu_id";
            this.SetSqlSelect(SqlString);
        }
        public void SetDataBySysId_MenuId(string sSysId,string sMenuId)
        {
            string SqlString = this.GetSqlSelect();
            SqlString += "where sys_id = '" + sSysId + "' and menu_id = '"+sMenuId +"'";
            this.SetSqlSelect(SqlString);
        }
        #endregion
    }
}


⌨️ 快捷键说明

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