📄 system_role_list.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using Sybase.DataWindow;
namespace SPRFrame.DataType
{
// 系统角色集(表:System_Role)
public class System_Role_List : Sybase.DataWindow.DataStore
{
public System_Role_List()
{
this.LibraryList = SPRF.PbdFile;
this.DataWindowObject = "dw_system_role_list";
this.SetTransaction(SPRF.GetDB());
}
#region 属性
public int ROLE_ID
{
get
{
if (this.RowCount == 0) return -2;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "role_id"));
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "role_id", value);
}
}
public string ROLE_NAME
{
get
{
if (this.RowCount == 0) return "NoData";
return this.GetItemString(this.CurrentRow, "role_name");
}
set
{
if (this.RowCount == 0) return;
this.SetItemString(this.CurrentRow, "role_name", value);
}
}
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 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 SetDataByRoleId(int iRoleId)
{
string SqlString = this.GetSqlSelect();
SqlString += "where role_id = " + iRoleId.ToString();
this.SetSqlSelect(SqlString);
}
public void SetDataBySysId(string sSysId)
{
string SqlString = this.GetSqlSelect();
SqlString += "where sys_id = '" + sSysId + "'";
this.SetSqlSelect(SqlString);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -