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

📄 dataset3.cs

📁 医院门诊收费系统
💻 CS
📖 第 1 页 / 共 5 页
字号:
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table门诊划价.是否发药Column] = value;
                }
            }
            
            public System.DateTime 发药时间 {
                get {
                    return ((System.DateTime)(this[this.table门诊划价.发药时间Column]));
                }
                set {
                    this[this.table门诊划价.发药时间Column] = value;
                }
            }
            
            public string 发药员 {
                get {
                    return ((string)(this[this.table门诊划价.发药员Column]));
                }
                set {
                    this[this.table门诊划价.发药员Column] = value;
                }
            }
            
            public bool Is性别Null() {
                return this.IsNull(this.table门诊划价.性别Column);
            }
            
            public void Set性别Null() {
                this[this.table门诊划价.性别Column] = System.Convert.DBNull;
            }
            
            public bool Is编号Null() {
                return this.IsNull(this.table门诊划价.编号Column);
            }
            
            public void Set编号Null() {
                this[this.table门诊划价.编号Column] = System.Convert.DBNull;
            }
            
            public bool Is科室Null() {
                return this.IsNull(this.table门诊划价.科室Column);
            }
            
            public void Set科室Null() {
                this[this.table门诊划价.科室Column] = System.Convert.DBNull;
            }
            
            public bool Is医生Null() {
                return this.IsNull(this.table门诊划价.医生Column);
            }
            
            public void Set医生Null() {
                this[this.table门诊划价.医生Column] = System.Convert.DBNull;
            }
            
            public bool Is划价时间Null() {
                return this.IsNull(this.table门诊划价.划价时间Column);
            }
            
            public void Set划价时间Null() {
                this[this.table门诊划价.划价时间Column] = System.Convert.DBNull;
            }
            
            public bool Is划价员Null() {
                return this.IsNull(this.table门诊划价.划价员Column);
            }
            
            public void Set划价员Null() {
                this[this.table门诊划价.划价员Column] = System.Convert.DBNull;
            }
            
            public bool Is是否收费Null() {
                return this.IsNull(this.table门诊划价.是否收费Column);
            }
            
            public void Set是否收费Null() {
                this[this.table门诊划价.是否收费Column] = System.Convert.DBNull;
            }
            
            public bool Is收费时间Null() {
                return this.IsNull(this.table门诊划价.收费时间Column);
            }
            
            public void Set收费时间Null() {
                this[this.table门诊划价.收费时间Column] = System.Convert.DBNull;
            }
            
            public bool Is划价金额Null() {
                return this.IsNull(this.table门诊划价.划价金额Column);
            }
            
            public void Set划价金额Null() {
                this[this.table门诊划价.划价金额Column] = System.Convert.DBNull;
            }
            
            public bool Is是否发药Null() {
                return this.IsNull(this.table门诊划价.是否发药Column);
            }
            
            public void Set是否发药Null() {
                this[this.table门诊划价.是否发药Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 门诊划价RowChangeEvent : EventArgs {
            
            private 门诊划价Row eventRow;
            
            private DataRowAction eventAction;
            
            public 门诊划价RowChangeEvent(门诊划价Row row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public 门诊划价Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 药品库存DataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn column名称;
            
            private DataColumn column编号;
            
            private DataColumn column库房;
            
            private DataColumn column药品编号;
            
            private DataColumn column药品数量;
            
            private DataColumn column备注;
            
            internal 药品库存DataTable() : 
                    base("药品库存") {
                this.InitClass();
            }
            
            internal 药品库存DataTable(DataTable table) : 
                    base(table.TableName) {
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn 名称Column {
                get {
                    return this.column名称;
                }
            }
            
            internal DataColumn 编号Column {
                get {
                    return this.column编号;
                }
            }
            
            internal DataColumn 库房Column {
                get {
                    return this.column库房;
                }
            }
            
            internal DataColumn 药品编号Column {
                get {
                    return this.column药品编号;
                }
            }
            
            internal DataColumn 药品数量Column {
                get {
                    return this.column药品数量;
                }
            }
            
            internal DataColumn 备注Column {
                get {
                    return this.column备注;
                }
            }
            
            public 药品库存Row this[int index] {
                get {
                    return ((药品库存Row)(this.Rows[index]));
                }
            }
            
            public event 药品库存RowChangeEventHandler 药品库存RowChanged;
            
            public event 药品库存RowChangeEventHandler 药品库存RowChanging;
            
            public event 药品库存RowChangeEventHandler 药品库存RowDeleted;
            
            public event 药品库存RowChangeEventHandler 药品库存RowDeleting;
            
            public void Add药品库存Row(药品库存Row row) {
                this.Rows.Add(row);
            }
            
            public 药品库存Row Add药品库存Row(string 名称, string 库房, string 药品编号, System.Decimal 药品数量, string 备注) {
                药品库存Row row药品库存Row = ((药品库存Row)(this.NewRow()));
                row药品库存Row.ItemArray = new object[] {
                        名称,
                        null,
                        库房,
                        药品编号,
                        药品数量,
                        备注};
                this.Rows.Add(row药品库存Row);
                return row药品库存Row;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                药品库存DataTable cln = ((药品库存DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new 药品库存DataTable();
            }
            
            internal void InitVars() {
                this.column名称 = this.Columns["名称"];
                this.column编号 = this.Columns["编号"];
                this.column库房 = this.Columns["库房"];
                this.column药品编号 = this.Columns["药品编号"];
                this.column药品数量 = this.Columns["药品数量"];
                this.column备注 = this.Columns["备注"];
            }
            
            private void InitClass() {
                this.column名称 = new DataColumn("名称", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column名称);
                this.column编号 = new DataColumn("编号", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column编号);
                this.column库房 = new DataColumn("库房", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column库房);
                this.column药品编号 = new DataColumn("药品编号", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column药品编号);
                this.column药品数量 = new DataColumn("药品数量", typeof(System.Decimal), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column药品数量);
                this.column备注 = new DataColumn("备注", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column备注);
                this.column编号.AutoIncrement = true;
                this.column编号.AllowDBNull = false;
                this.column编号.ReadOnly = true;
            }
            
            public 药品库存Row New药品库存Row() {
                return ((药品库存Row)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new 药品库存Row(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(药品库存Row);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.药品库存RowChanged != null)) {
                    this.药品库存RowChanged(this, new 药品库存RowChangeEvent(((药品库存Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.药品库存RowChanging != null)) {
                    this.药品库存RowChanging(this, new 药品库存RowChangeEvent(((药品库存Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.药品库存RowDeleted != null)) {
                    this.药品库存RowDeleted(this, new 药品库存RowChangeEvent(((药品库存Row)(e.Row)), e.Action));
                }
            }
            

⌨️ 快捷键说明

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