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

📄 form_catalog_list.cs

📁 .net 开发的基础框架
💻 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的为系统保留类型
    //       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 取数据的方法
        public void SetDataById(string sId)
        {
            string SqlString = this.GetSqlSelect();
            SqlString += "where id = '" + sId + "'";
            this.SetSqlSelect(SqlString);
        }
        #endregion
    }
}




⌨️ 快捷键说明

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