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

📄 dataset2.cs

📁 医院管理系统
💻 CS
📖 第 1 页 / 共 5 页
字号:
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table门诊挂号.医生Column] = value;
                }
            }
            
            public System.DateTime 时间 {
                get {
                    try {
                        return ((System.DateTime)(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;
            }
            
            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金额;
            
            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金额;
                }
            }
            
            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 金额, 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["金额"];
                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.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;
                this.column药品编号.AllowDBNull = false;
                this.column划价编号.AllowDBNull = false;
            }
            
            public 门诊划价明细Row New门诊划价明细Row() {
                return ((门诊划价明细Row)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new 门诊划价明细Row(builder);
            }
            
            protected override System.Type GetRowType() {

⌨️ 快捷键说明

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