?? form_catalog_list.cs
字號:
using System;
using System.Collections.Generic;
using System.Text;
using Sybase.DataWindow;
using SPRFrame;
using HPIResource;
namespace HPIResource.HisForm
{
// 申請單類型表
// 6位字符串,如 010001,前2位表示大的類型
// 特別:前2位為00的為系統(tǒng)保留類型
// 000001 掛號單
// 000002 門診收費單
public class Form_Catalog_List : Sybase.DataWindow.DataStore
{
string strSql = "";
public Form_Catalog_List()
{
this.LibraryList = HPIR.PbdFile;
this.DataWindowObject = "dw_form_catalog";
this.SetTransaction(SPRF.GetDB());
strSql = this.GetSqlSelect();
}
public void ResetSQL()
{
this.SetSqlSelect(strSql);
}
#region 屬性
public string ID
{
get
{
if (this.RowCount == 0) return "NoData";
return this.GetItemString(this.CurrentRow, "id");
}
set
{
if (this.RowCount == 0) return;
this.SetItemString(this.CurrentRow, "id", value);
}
}
public string CAPTION
{
get
{
if (this.RowCount == 0) return "NoData";
return this.GetItemString(this.CurrentRow, "caption");
}
set
{
if (this.RowCount == 0) return;
this.SetItemString(this.CurrentRow, "caption", value);
}
}
#endregion
#region 取數(shù)據(jù)的方法
public void SetDataById(string sId)
{
string SqlString = this.GetSqlSelect();
SqlString += "where id = '" + sId + "'";
this.SetSqlSelect(SqlString);
}
#endregion
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -