system_file_list.cs
来自「.net 开发的基础框架」· CS 代码 · 共 46 行
CS
46 行
using System;
using System.Collections.Generic;
using System.Text;
using Sybase.DataWindow;
namespace SPRFrame.DataType
{
// 程序文件表
public class System_File_List : Sybase.DataWindow.DataStore
{
public System_File_List()
{
this.LibraryList = SPRF.PbdFile;
this.DataWindowObject = "dw_system_file_list";
this.SetTransaction(SPRF.GetDB());
}
#region 属性
public string FILE_NAME
{
get
{
if (this.RowCount == 0) return "NoData";
return this.GetItemString(this.CurrentRow, "file_name");
}
}
public int FILE_BUILD
{
get
{
if (this.RowCount == 0) return -2;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "file_build"));
}
}
#endregion
#region 设定取得数据的方法
public void SetDataByFileName(string sFileName)
{
string SqlString = this.GetSqlSelect();
SqlString += "where file_name = '" + sFileName + "'";
this.SetSqlSelect(SqlString);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?