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

📄 dataset3.cs

📁 医院门诊收费系统
💻 CS
📖 第 1 页 / 共 5 页
字号:
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.药品库存RowDeleting != null)) {
                    this.药品库存RowDeleting(this, new 药品库存RowChangeEvent(((药品库存Row)(e.Row)), e.Action));
                }
            }
            
            public void Remove药品库存Row(药品库存Row row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 药品库存Row : DataRow {
            
            private 药品库存DataTable table药品库存;
            
            internal 药品库存Row(DataRowBuilder rb) : 
                    base(rb) {
                this.table药品库存 = ((药品库存DataTable)(this.Table));
            }
            
            public string 名称 {
                get {
                    try {
                        return ((string)(this[this.table药品库存.名称Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table药品库存.名称Column] = value;
                }
            }
            
            public int 编号 {
                get {
                    return ((int)(this[this.table药品库存.编号Column]));
                }
                set {
                    this[this.table药品库存.编号Column] = value;
                }
            }
            
            public string 库房 {
                get {
                    try {
                        return ((string)(this[this.table药品库存.库房Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table药品库存.库房Column] = value;
                }
            }
            
            public string 药品编号 {
                get {
                    try {
                        return ((string)(this[this.table药品库存.药品编号Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table药品库存.药品编号Column] = value;
                }
            }
            
            public System.Decimal 药品数量 {
                get {
                    try {
                        return ((System.Decimal)(this[this.table药品库存.药品数量Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table药品库存.药品数量Column] = value;
                }
            }
            
            public string 备注 {
                get {
                    try {
                        return ((string)(this[this.table药品库存.备注Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                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;
            }
        }
        
        [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 药品编号, System.Decimal 单价, System.Decimal 数量, System.Decimal 金额) {
                门诊划价明细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(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(System.Decimal), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column数量);
                this.column金额 = new DataColumn("金额", typeof(System.Decimal), null, System.Data.MappingType.Element);
                this.

⌨️ 快捷键说明

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