📄 dataset3.cs
字号:
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 挂号科室, int 人数, System.Decimal 挂号金额) {
门诊挂号Row row门诊挂号Row = ((门诊挂号Row)(this.NewRow()));
row门诊挂号Row.ItemArray = new object[] {
挂号科室,
人数,
挂号金额};
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["挂号金额"];
}
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(System.Decimal), null, System.Data.MappingType.Element);
this.Columns.Add(this.column挂号金额);
this.column人数.ReadOnly = true;
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));
}
}
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 {
try {
return ((int)(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 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() {
药品库存Data
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -