?? dataset2.cs
字號:
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 + -