📄 dataset3.cs
字号:
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() {
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 int 编号 {
get {
return ((int)(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 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 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;
}
}
[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划价时间;
private DataColumn column划价员;
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 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -