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

📄 dataset1.cs

📁 医院门诊收费系统
💻 CS
📖 第 1 页 / 共 4 页
字号:
            }
            
            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 规格, string 整量单位, string 散量单位, System.Decimal 入库单价, System.Decimal 出库单价, System.Decimal 批发价, System.Decimal 整散比, string 分类, string 费用归类, string 拼音码, int 效期, System.Decimal 上限, System.Decimal 下限) {
                药品资料Row row药品资料Row = ((药品资料Row)(this.NewRow()));
                row药品资料Row.ItemArray = new object[] {
                        编号,
                        名称,
                        规格,
                        整量单位,
                        散量单位,
                        入库单价,
                        出库单价,
                        批发价,
                        整散比,
                        分类,
                        费用归类,
                        拼音码,
                        效期,
                        上限,
                        下限};
                this.Rows.Add(row药品资料Row);
                return row药品资料Row;
            }
            
            public 药品资料Row FindBy编号(string 编号) {
                return ((药品资料Row)(this.Rows.Find(new object[] {
                            编号})));
            }
            
            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["出库单价"];
                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["上限"];
                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(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(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(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费用归类 = 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(int), 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.Constraints.Add(new UniqueConstraint("DataSet1Key1", new DataColumn[] {
                                this.column编号}, true));
                this.column编号.AllowDBNull = false;
                this.column编号.Unique = 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));
                }
            }
            
            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 {
                    return ((string)(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 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 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 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 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);

⌨️ 快捷键说明

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