DataSet2.cs
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:85k
源码类别:

企业管理

开发平台:

C#

  1. //------------------------------------------------------------------------------
  2. // <autogenerated>
  3. //     This code was generated by a tool.
  4. //     Runtime Version: 1.1.4322.573
  5. //
  6. //     Changes to this file may cause incorrect behavior and will be lost if 
  7. //     the code is regenerated.
  8. // </autogenerated>
  9. //------------------------------------------------------------------------------
  10. namespace 医院管理系统 {
  11.     using System;
  12.     using System.Data;
  13.     using System.Xml;
  14.     using System.Runtime.Serialization;
  15.     
  16.     
  17.     [Serializable()]
  18.     [System.ComponentModel.DesignerCategoryAttribute("code")]
  19.     [System.Diagnostics.DebuggerStepThrough()]
  20.     [System.ComponentModel.ToolboxItem(true)]
  21.     public class DataSet2 : DataSet {
  22.         
  23.         private v收费项目及药品DataTable tablev收费项目及药品;
  24.         
  25.         private 门诊挂号DataTable table门诊挂号;
  26.         
  27.         private 门诊划价明细DataTable table门诊划价明细;
  28.         
  29.         private 门诊划价DataTable table门诊划价;
  30.         
  31.         public DataSet2() {
  32.             this.InitClass();
  33.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  34.             this.Tables.CollectionChanged += schemaChangedHandler;
  35.             this.Relations.CollectionChanged += schemaChangedHandler;
  36.         }
  37.         
  38.         protected DataSet2(SerializationInfo info, StreamingContext context) {
  39.             string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  40.             if ((strSchema != null)) {
  41.                 DataSet ds = new DataSet();
  42.                 ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
  43.                 if ((ds.Tables["v收费项目及药品"] != null)) {
  44.                     this.Tables.Add(new v收费项目及药品DataTable(ds.Tables["v收费项目及药品"]));
  45.                 }
  46.                 if ((ds.Tables["门诊挂号"] != null)) {
  47.                     this.Tables.Add(new 门诊挂号DataTable(ds.Tables["门诊挂号"]));
  48.                 }
  49.                 if ((ds.Tables["门诊划价明细"] != null)) {
  50.                     this.Tables.Add(new 门诊划价明细DataTable(ds.Tables["门诊划价明细"]));
  51.                 }
  52.                 if ((ds.Tables["门诊划价"] != null)) {
  53.                     this.Tables.Add(new 门诊划价DataTable(ds.Tables["门诊划价"]));
  54.                 }
  55.                 this.DataSetName = ds.DataSetName;
  56.                 this.Prefix = ds.Prefix;
  57.                 this.Namespace = ds.Namespace;
  58.                 this.Locale = ds.Locale;
  59.                 this.CaseSensitive = ds.CaseSensitive;
  60.                 this.EnforceConstraints = ds.EnforceConstraints;
  61.                 this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  62.                 this.InitVars();
  63.             }
  64.             else {
  65.                 this.InitClass();
  66.             }
  67.             this.GetSerializationData(info, context);
  68.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  69.             this.Tables.CollectionChanged += schemaChangedHandler;
  70.             this.Relations.CollectionChanged += schemaChangedHandler;
  71.         }
  72.         
  73.         [System.ComponentModel.Browsable(false)]
  74.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  75.         public v收费项目及药品DataTable v收费项目及药品 {
  76.             get {
  77.                 return this.tablev收费项目及药品;
  78.             }
  79.         }
  80.         
  81.         [System.ComponentModel.Browsable(false)]
  82.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  83.         public 门诊挂号DataTable 门诊挂号 {
  84.             get {
  85.                 return this.table门诊挂号;
  86.             }
  87.         }
  88.         
  89.         [System.ComponentModel.Browsable(false)]
  90.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  91.         public 门诊划价明细DataTable 门诊划价明细 {
  92.             get {
  93.                 return this.table门诊划价明细;
  94.             }
  95.         }
  96.         
  97.         [System.ComponentModel.Browsable(false)]
  98.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  99.         public 门诊划价DataTable 门诊划价 {
  100.             get {
  101.                 return this.table门诊划价;
  102.             }
  103.         }
  104.         
  105.         public override DataSet Clone() {
  106.             DataSet2 cln = ((DataSet2)(base.Clone()));
  107.             cln.InitVars();
  108.             return cln;
  109.         }
  110.         
  111.         protected override bool ShouldSerializeTables() {
  112.             return false;
  113.         }
  114.         
  115.         protected override bool ShouldSerializeRelations() {
  116.             return false;
  117.         }
  118.         
  119.         protected override void ReadXmlSerializable(XmlReader reader) {
  120.             this.Reset();
  121.             DataSet ds = new DataSet();
  122.             ds.ReadXml(reader);
  123.             if ((ds.Tables["v收费项目及药品"] != null)) {
  124.                 this.Tables.Add(new v收费项目及药品DataTable(ds.Tables["v收费项目及药品"]));
  125.             }
  126.             if ((ds.Tables["门诊挂号"] != null)) {
  127.                 this.Tables.Add(new 门诊挂号DataTable(ds.Tables["门诊挂号"]));
  128.             }
  129.             if ((ds.Tables["门诊划价明细"] != null)) {
  130.                 this.Tables.Add(new 门诊划价明细DataTable(ds.Tables["门诊划价明细"]));
  131.             }
  132.             if ((ds.Tables["门诊划价"] != null)) {
  133.                 this.Tables.Add(new 门诊划价DataTable(ds.Tables["门诊划价"]));
  134.             }
  135.             this.DataSetName = ds.DataSetName;
  136.             this.Prefix = ds.Prefix;
  137.             this.Namespace = ds.Namespace;
  138.             this.Locale = ds.Locale;
  139.             this.CaseSensitive = ds.CaseSensitive;
  140.             this.EnforceConstraints = ds.EnforceConstraints;
  141.             this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  142.             this.InitVars();
  143.         }
  144.         
  145.         protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  146.             System.IO.MemoryStream stream = new System.IO.MemoryStream();
  147.             this.WriteXmlSchema(new XmlTextWriter(stream, null));
  148.             stream.Position = 0;
  149.             return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
  150.         }
  151.         
  152.         internal void InitVars() {
  153.             this.tablev收费项目及药品 = ((v收费项目及药品DataTable)(this.Tables["v收费项目及药品"]));
  154.             if ((this.tablev收费项目及药品 != null)) {
  155.                 this.tablev收费项目及药品.InitVars();
  156.             }
  157.             this.table门诊挂号 = ((门诊挂号DataTable)(this.Tables["门诊挂号"]));
  158.             if ((this.table门诊挂号 != null)) {
  159.                 this.table门诊挂号.InitVars();
  160.             }
  161.             this.table门诊划价明细 = ((门诊划价明细DataTable)(this.Tables["门诊划价明细"]));
  162.             if ((this.table门诊划价明细 != null)) {
  163.                 this.table门诊划价明细.InitVars();
  164.             }
  165.             this.table门诊划价 = ((门诊划价DataTable)(this.Tables["门诊划价"]));
  166.             if ((this.table门诊划价 != null)) {
  167.                 this.table门诊划价.InitVars();
  168.             }
  169.         }
  170.         
  171.         private void InitClass() {
  172.             this.DataSetName = "DataSet2";
  173.             this.Prefix = "";
  174.             this.Namespace = "http://www.tempuri.org/DataSet2.xsd";
  175.             this.Locale = new System.Globalization.CultureInfo("zh-CN");
  176.             this.CaseSensitive = false;
  177.             this.EnforceConstraints = true;
  178.             this.tablev收费项目及药品 = new v收费项目及药品DataTable();
  179.             this.Tables.Add(this.tablev收费项目及药品);
  180.             this.table门诊挂号 = new 门诊挂号DataTable();
  181.             this.Tables.Add(this.table门诊挂号);
  182.             this.table门诊划价明细 = new 门诊划价明细DataTable();
  183.             this.Tables.Add(this.table门诊划价明细);
  184.             this.table门诊划价 = new 门诊划价DataTable();
  185.             this.Tables.Add(this.table门诊划价);
  186.         }
  187.         
  188.         private bool ShouldSerializev收费项目及药品() {
  189.             return false;
  190.         }
  191.         
  192.         private bool ShouldSerialize门诊挂号() {
  193.             return false;
  194.         }
  195.         
  196.         private bool ShouldSerialize门诊划价明细() {
  197.             return false;
  198.         }
  199.         
  200.         private bool ShouldSerialize门诊划价() {
  201.             return false;
  202.         }
  203.         
  204.         private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
  205.             if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
  206.                 this.InitVars();
  207.             }
  208.         }
  209.         
  210.         public delegate void v收费项目及药品RowChangeEventHandler(object sender, v收费项目及药品RowChangeEvent e);
  211.         
  212.         public delegate void 门诊挂号RowChangeEventHandler(object sender, 门诊挂号RowChangeEvent e);
  213.         
  214.         public delegate void 门诊划价明细RowChangeEventHandler(object sender, 门诊划价明细RowChangeEvent e);
  215.         
  216.         public delegate void 门诊划价RowChangeEventHandler(object sender, 门诊划价RowChangeEvent e);
  217.         
  218.         [System.Diagnostics.DebuggerStepThrough()]
  219.         public class v收费项目及药品DataTable : DataTable, System.Collections.IEnumerable {
  220.             
  221.             private DataColumn column编号;
  222.             
  223.             private DataColumn column名称;
  224.             
  225.             private DataColumn column规格;
  226.             
  227.             private DataColumn column单位;
  228.             
  229.             private DataColumn column单价;
  230.             
  231.             private DataColumn column拼音码;
  232.             
  233.             internal v收费项目及药品DataTable() : 
  234.                     base("v收费项目及药品") {
  235.                 this.InitClass();
  236.             }
  237.             
  238.             internal v收费项目及药品DataTable(DataTable table) : 
  239.                     base(table.TableName) {
  240.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  241.                     this.CaseSensitive = table.CaseSensitive;
  242.                 }
  243.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  244.                     this.Locale = table.Locale;
  245.                 }
  246.                 if ((table.Namespace != table.DataSet.Namespace)) {
  247.                     this.Namespace = table.Namespace;
  248.                 }
  249.                 this.Prefix = table.Prefix;
  250.                 this.MinimumCapacity = table.MinimumCapacity;
  251.                 this.DisplayExpression = table.DisplayExpression;
  252.             }
  253.             
  254.             [System.ComponentModel.Browsable(false)]
  255.             public int Count {
  256.                 get {
  257.                     return this.Rows.Count;
  258.                 }
  259.             }
  260.             
  261.             internal DataColumn 编号Column {
  262.                 get {
  263.                     return this.column编号;
  264.                 }
  265.             }
  266.             
  267.             internal DataColumn 名称Column {
  268.                 get {
  269.                     return this.column名称;
  270.                 }
  271.             }
  272.             
  273.             internal DataColumn 规格Column {
  274.                 get {
  275.                     return this.column规格;
  276.                 }
  277.             }
  278.             
  279.             internal DataColumn 单位Column {
  280.                 get {
  281.                     return this.column单位;
  282.                 }
  283.             }
  284.             
  285.             internal DataColumn 单价Column {
  286.                 get {
  287.                     return this.column单价;
  288.                 }
  289.             }
  290.             
  291.             internal DataColumn 拼音码Column {
  292.                 get {
  293.                     return this.column拼音码;
  294.                 }
  295.             }
  296.             
  297.             public v收费项目及药品Row this[int index] {
  298.                 get {
  299.                     return ((v收费项目及药品Row)(this.Rows[index]));
  300.                 }
  301.             }
  302.             
  303.             public event v收费项目及药品RowChangeEventHandler v收费项目及药品RowChanged;
  304.             
  305.             public event v收费项目及药品RowChangeEventHandler v收费项目及药品RowChanging;
  306.             
  307.             public event v收费项目及药品RowChangeEventHandler v收费项目及药品RowDeleted;
  308.             
  309.             public event v收费项目及药品RowChangeEventHandler v收费项目及药品RowDeleting;
  310.             
  311.             public void Addv收费项目及药品Row(v收费项目及药品Row row) {
  312.                 this.Rows.Add(row);
  313.             }
  314.             
  315.             public v收费项目及药品Row Addv收费项目及药品Row(string 编号, string 名称, string 规格, string 单位, System.Decimal 单价, string 拼音码) {
  316.                 v收费项目及药品Row rowv收费项目及药品Row = ((v收费项目及药品Row)(this.NewRow()));
  317.                 rowv收费项目及药品Row.ItemArray = new object[] {
  318.                         编号,
  319.                         名称,
  320.                         规格,
  321.                         单位,
  322.                         单价,
  323.                         拼音码};
  324.                 this.Rows.Add(rowv收费项目及药品Row);
  325.                 return rowv收费项目及药品Row;
  326.             }
  327.             
  328.             public System.Collections.IEnumerator GetEnumerator() {
  329.                 return this.Rows.GetEnumerator();
  330.             }
  331.             
  332.             public override DataTable Clone() {
  333.                 v收费项目及药品DataTable cln = ((v收费项目及药品DataTable)(base.Clone()));
  334.                 cln.InitVars();
  335.                 return cln;
  336.             }
  337.             
  338.             protected override DataTable CreateInstance() {
  339.                 return new v收费项目及药品DataTable();
  340.             }
  341.             
  342.             internal void InitVars() {
  343.                 this.column编号 = this.Columns["编号"];
  344.                 this.column名称 = this.Columns["名称"];
  345.                 this.column规格 = this.Columns["规格"];
  346.                 this.column单位 = this.Columns["单位"];
  347.                 this.column单价 = this.Columns["单价"];
  348.                 this.column拼音码 = this.Columns["拼音码"];
  349.             }
  350.             
  351.             private void InitClass() {
  352.                 this.column编号 = new DataColumn("编号", typeof(string), null, System.Data.MappingType.Element);
  353.                 this.Columns.Add(this.column编号);
  354.                 this.column名称 = new DataColumn("名称", typeof(string), null, System.Data.MappingType.Element);
  355.                 this.Columns.Add(this.column名称);
  356.                 this.column规格 = new DataColumn("规格", typeof(string), null, System.Data.MappingType.Element);
  357.                 this.Columns.Add(this.column规格);
  358.                 this.column单位 = new DataColumn("单位", typeof(string), null, System.Data.MappingType.Element);
  359.                 this.Columns.Add(this.column单位);
  360.                 this.column单价 = new DataColumn("单价", typeof(System.Decimal), null, System.Data.MappingType.Element);
  361.                 this.Columns.Add(this.column单价);
  362.                 this.column拼音码 = new DataColumn("拼音码", typeof(string), null, System.Data.MappingType.Element);
  363.                 this.Columns.Add(this.column拼音码);
  364.                 this.column编号.AllowDBNull = false;
  365.             }
  366.             
  367.             public v收费项目及药品Row Newv收费项目及药品Row() {
  368.                 return ((v收费项目及药品Row)(this.NewRow()));
  369.             }
  370.             
  371.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  372.                 return new v收费项目及药品Row(builder);
  373.             }
  374.             
  375.             protected override System.Type GetRowType() {
  376.                 return typeof(v收费项目及药品Row);
  377.             }
  378.             
  379.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  380.                 base.OnRowChanged(e);
  381.                 if ((this.v收费项目及药品RowChanged != null)) {
  382.                     this.v收费项目及药品RowChanged(this, new v收费项目及药品RowChangeEvent(((v收费项目及药品Row)(e.Row)), e.Action));
  383.                 }
  384.             }
  385.             
  386.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  387.                 base.OnRowChanging(e);
  388.                 if ((this.v收费项目及药品RowChanging != null)) {
  389.                     this.v收费项目及药品RowChanging(this, new v收费项目及药品RowChangeEvent(((v收费项目及药品Row)(e.Row)), e.Action));
  390.                 }
  391.             }
  392.             
  393.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  394.                 base.OnRowDeleted(e);
  395.                 if ((this.v收费项目及药品RowDeleted != null)) {
  396.                     this.v收费项目及药品RowDeleted(this, new v收费项目及药品RowChangeEvent(((v收费项目及药品Row)(e.Row)), e.Action));
  397.                 }
  398.             }
  399.             
  400.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  401.                 base.OnRowDeleting(e);
  402.                 if ((this.v收费项目及药品RowDeleting != null)) {
  403.                     this.v收费项目及药品RowDeleting(this, new v收费项目及药品RowChangeEvent(((v收费项目及药品Row)(e.Row)), e.Action));
  404.                 }
  405.             }
  406.             
  407.             public void Removev收费项目及药品Row(v收费项目及药品Row row) {
  408.                 this.Rows.Remove(row);
  409.             }
  410.         }
  411.         
  412.         [System.Diagnostics.DebuggerStepThrough()]
  413.         public class v收费项目及药品Row : DataRow {
  414.             
  415.             private v收费项目及药品DataTable tablev收费项目及药品;
  416.             
  417.             internal v收费项目及药品Row(DataRowBuilder rb) : 
  418.                     base(rb) {
  419.                 this.tablev收费项目及药品 = ((v收费项目及药品DataTable)(this.Table));
  420.             }
  421.             
  422.             public string 编号 {
  423.                 get {
  424.                     return ((string)(this[this.tablev收费项目及药品.编号Column]));
  425.                 }
  426.                 set {
  427.                     this[this.tablev收费项目及药品.编号Column] = value;
  428.                 }
  429.             }
  430.             
  431.             public string 名称 {
  432.                 get {
  433.                     try {
  434.                         return ((string)(this[this.tablev收费项目及药品.名称Column]));
  435.                     }
  436.                     catch (InvalidCastException e) {
  437.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  438.                     }
  439.                 }
  440.                 set {
  441.                     this[this.tablev收费项目及药品.名称Column] = value;
  442.                 }
  443.             }
  444.             
  445.             public string 规格 {
  446.                 get {
  447.                     try {
  448.                         return ((string)(this[this.tablev收费项目及药品.规格Column]));
  449.                     }
  450.                     catch (InvalidCastException e) {
  451.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  452.                     }
  453.                 }
  454.                 set {
  455.                     this[this.tablev收费项目及药品.规格Column] = value;
  456.                 }
  457.             }
  458.             
  459.             public string 单位 {
  460.                 get {
  461.                     try {
  462.                         return ((string)(this[this.tablev收费项目及药品.单位Column]));
  463.                     }
  464.                     catch (InvalidCastException e) {
  465.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  466.                     }
  467.                 }
  468.                 set {
  469.                     this[this.tablev收费项目及药品.单位Column] = value;
  470.                 }
  471.             }
  472.             
  473.             public System.Decimal 单价 {
  474.                 get {
  475.                     try {
  476.                         return ((System.Decimal)(this[this.tablev收费项目及药品.单价Column]));
  477.                     }
  478.                     catch (InvalidCastException e) {
  479.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  480.                     }
  481.                 }
  482.                 set {
  483.                     this[this.tablev收费项目及药品.单价Column] = value;
  484.                 }
  485.             }
  486.             
  487.             public string 拼音码 {
  488.                 get {
  489.                     try {
  490.                         return ((string)(this[this.tablev收费项目及药品.拼音码Column]));
  491.                     }
  492.                     catch (InvalidCastException e) {
  493.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  494.                     }
  495.                 }
  496.                 set {
  497.                     this[this.tablev收费项目及药品.拼音码Column] = value;
  498.                 }
  499.             }
  500.             
  501.             public bool Is名称Null() {
  502.                 return this.IsNull(this.tablev收费项目及药品.名称Column);
  503.             }
  504.             
  505.             public void Set名称Null() {
  506.                 this[this.tablev收费项目及药品.名称Column] = System.Convert.DBNull;
  507.             }
  508.             
  509.             public bool Is规格Null() {
  510.                 return this.IsNull(this.tablev收费项目及药品.规格Column);
  511.             }
  512.             
  513.             public void Set规格Null() {
  514.                 this[this.tablev收费项目及药品.规格Column] = System.Convert.DBNull;
  515.             }
  516.             
  517.             public bool Is单位Null() {
  518.                 return this.IsNull(this.tablev收费项目及药品.单位Column);
  519.             }
  520.             
  521.             public void Set单位Null() {
  522.                 this[this.tablev收费项目及药品.单位Column] = System.Convert.DBNull;
  523.             }
  524.             
  525.             public bool Is单价Null() {
  526.                 return this.IsNull(this.tablev收费项目及药品.单价Column);
  527.             }
  528.             
  529.             public void Set单价Null() {
  530.                 this[this.tablev收费项目及药品.单价Column] = System.Convert.DBNull;
  531.             }
  532.             
  533.             public bool Is拼音码Null() {
  534.                 return this.IsNull(this.tablev收费项目及药品.拼音码Column);
  535.             }
  536.             
  537.             public void Set拼音码Null() {
  538.                 this[this.tablev收费项目及药品.拼音码Column] = System.Convert.DBNull;
  539.             }
  540.         }
  541.         
  542.         [System.Diagnostics.DebuggerStepThrough()]
  543.         public class v收费项目及药品RowChangeEvent : EventArgs {
  544.             
  545.             private v收费项目及药品Row eventRow;
  546.             
  547.             private DataRowAction eventAction;
  548.             
  549.             public v收费项目及药品RowChangeEvent(v收费项目及药品Row row, DataRowAction action) {
  550.                 this.eventRow = row;
  551.                 this.eventAction = action;
  552.             }
  553.             
  554.             public v收费项目及药品Row Row {
  555.                 get {
  556.                     return this.eventRow;
  557.                 }
  558.             }
  559.             
  560.             public DataRowAction Action {
  561.                 get {
  562.                     return this.eventAction;
  563.                 }
  564.             }
  565.         }
  566.         
  567.         [System.Diagnostics.DebuggerStepThrough()]
  568.         public class 门诊挂号DataTable : DataTable, System.Collections.IEnumerable {
  569.             
  570.             private DataColumn column编号;
  571.             
  572.             private DataColumn column病人编号;
  573.             
  574.             private DataColumn column姓名;
  575.             
  576.             private DataColumn column性别;
  577.             
  578.             private DataColumn column挂号科室;
  579.             
  580.             private DataColumn column费用类型;
  581.             
  582.             private DataColumn column挂号类型;
  583.             
  584.             private DataColumn column挂号费用;
  585.             
  586.             private DataColumn column医生;
  587.             
  588.             private DataColumn column时间;
  589.             
  590.             private DataColumn column是否已划价;
  591.             
  592.             internal 门诊挂号DataTable() : 
  593.                     base("门诊挂号") {
  594.                 this.InitClass();
  595.             }
  596.             
  597.             internal 门诊挂号DataTable(DataTable table) : 
  598.                     base(table.TableName) {
  599.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  600.                     this.CaseSensitive = table.CaseSensitive;
  601.                 }
  602.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  603.                     this.Locale = table.Locale;
  604.                 }
  605.                 if ((table.Namespace != table.DataSet.Namespace)) {
  606.                     this.Namespace = table.Namespace;
  607.                 }
  608.                 this.Prefix = table.Prefix;
  609.                 this.MinimumCapacity = table.MinimumCapacity;
  610.                 this.DisplayExpression = table.DisplayExpression;
  611.             }
  612.             
  613.             [System.ComponentModel.Browsable(false)]
  614.             public int Count {
  615.                 get {
  616.                     return this.Rows.Count;
  617.                 }
  618.             }
  619.             
  620.             internal DataColumn 编号Column {
  621.                 get {
  622.                     return this.column编号;
  623.                 }
  624.             }
  625.             
  626.             internal DataColumn 病人编号Column {
  627.                 get {
  628.                     return this.column病人编号;
  629.                 }
  630.             }
  631.             
  632.             internal DataColumn 姓名Column {
  633.                 get {
  634.                     return this.column姓名;
  635.                 }
  636.             }
  637.             
  638.             internal DataColumn 性别Column {
  639.                 get {
  640.                     return this.column性别;
  641.                 }
  642.             }
  643.             
  644.             internal DataColumn 挂号科室Column {
  645.                 get {
  646.                     return this.column挂号科室;
  647.                 }
  648.             }
  649.             
  650.             internal DataColumn 费用类型Column {
  651.                 get {
  652.                     return this.column费用类型;
  653.                 }
  654.             }
  655.             
  656.             internal DataColumn 挂号类型Column {
  657.                 get {
  658.                     return this.column挂号类型;
  659.                 }
  660.             }
  661.             
  662.             internal DataColumn 挂号费用Column {
  663.                 get {
  664.                     return this.column挂号费用;
  665.                 }
  666.             }
  667.             
  668.             internal DataColumn 医生Column {
  669.                 get {
  670.                     return this.column医生;
  671.                 }
  672.             }
  673.             
  674.             internal DataColumn 时间Column {
  675.                 get {
  676.                     return this.column时间;
  677.                 }
  678.             }
  679.             
  680.             internal DataColumn 是否已划价Column {
  681.                 get {
  682.                     return this.column是否已划价;
  683.                 }
  684.             }
  685.             
  686.             public 门诊挂号Row this[int index] {
  687.                 get {
  688.                     return ((门诊挂号Row)(this.Rows[index]));
  689.                 }
  690.             }
  691.             
  692.             public event 门诊挂号RowChangeEventHandler 门诊挂号RowChanged;
  693.             
  694.             public event 门诊挂号RowChangeEventHandler 门诊挂号RowChanging;
  695.             
  696.             public event 门诊挂号RowChangeEventHandler 门诊挂号RowDeleted;
  697.             
  698.             public event 门诊挂号RowChangeEventHandler 门诊挂号RowDeleting;
  699.             
  700.             public void Add门诊挂号Row(门诊挂号Row row) {
  701.                 this.Rows.Add(row);
  702.             }
  703.             
  704.             public 门诊挂号Row Add门诊挂号Row(string 编号, string 病人编号, string 姓名, string 性别, string 挂号科室, string 费用类型, string 挂号类型, System.Decimal 挂号费用, string 医生, System.DateTime 时间, string 是否已划价) {
  705.                 门诊挂号Row row门诊挂号Row = ((门诊挂号Row)(this.NewRow()));
  706.                 row门诊挂号Row.ItemArray = new object[] {
  707.                         编号,
  708.                         病人编号,
  709.                         姓名,
  710.                         性别,
  711.                         挂号科室,
  712.                         费用类型,
  713.                         挂号类型,
  714.                         挂号费用,
  715.                         医生,
  716.                         时间,
  717.                         是否已划价};
  718.                 this.Rows.Add(row门诊挂号Row);
  719.                 return row门诊挂号Row;
  720.             }
  721.             
  722.             public 门诊挂号Row FindBy编号(string 编号) {
  723.                 return ((门诊挂号Row)(this.Rows.Find(new object[] {
  724.                             编号})));
  725.             }
  726.             
  727.             public System.Collections.IEnumerator GetEnumerator() {
  728.                 return this.Rows.GetEnumerator();
  729.             }
  730.             
  731.             public override DataTable Clone() {
  732.                 门诊挂号DataTable cln = ((门诊挂号DataTable)(base.Clone()));
  733.                 cln.InitVars();
  734.                 return cln;
  735.             }
  736.             
  737.             protected override DataTable CreateInstance() {
  738.                 return new 门诊挂号DataTable();
  739.             }
  740.             
  741.             internal void InitVars() {
  742.                 this.column编号 = this.Columns["编号"];
  743.                 this.column病人编号 = this.Columns["病人编号"];
  744.                 this.column姓名 = this.Columns["姓名"];
  745.                 this.column性别 = this.Columns["性别"];
  746.                 this.column挂号科室 = this.Columns["挂号科室"];
  747.                 this.column费用类型 = this.Columns["费用类型"];
  748.                 this.column挂号类型 = this.Columns["挂号类型"];
  749.                 this.column挂号费用 = this.Columns["挂号费用"];
  750.                 this.column医生 = this.Columns["医生"];
  751.                 this.column时间 = this.Columns["时间"];
  752.                 this.column是否已划价 = this.Columns["是否已划价"];
  753.             }
  754.             
  755.             private void InitClass() {
  756.                 this.column编号 = new DataColumn("编号", typeof(string), null, System.Data.MappingType.Element);
  757.                 this.Columns.Add(this.column编号);
  758.                 this.column病人编号 = new DataColumn("病人编号", typeof(string), null, System.Data.MappingType.Element);
  759.                 this.Columns.Add(this.column病人编号);
  760.                 this.column姓名 = new DataColumn("姓名", typeof(string), null, System.Data.MappingType.Element);
  761.                 this.Columns.Add(this.column姓名);
  762.                 this.column性别 = new DataColumn("性别", typeof(string), null, System.Data.MappingType.Element);
  763.                 this.Columns.Add(this.column性别);
  764.                 this.column挂号科室 = new DataColumn("挂号科室", typeof(string), null, System.Data.MappingType.Element);
  765.                 this.Columns.Add(this.column挂号科室);
  766.                 this.column费用类型 = new DataColumn("费用类型", typeof(string), null, System.Data.MappingType.Element);
  767.                 this.Columns.Add(this.column费用类型);
  768.                 this.column挂号类型 = new DataColumn("挂号类型", typeof(string), null, System.Data.MappingType.Element);
  769.                 this.Columns.Add(this.column挂号类型);
  770.                 this.column挂号费用 = new DataColumn("挂号费用", typeof(System.Decimal), null, System.Data.MappingType.Element);
  771.                 this.Columns.Add(this.column挂号费用);
  772.                 this.column医生 = new DataColumn("医生", typeof(string), null, System.Data.MappingType.Element);
  773.                 this.Columns.Add(this.column医生);
  774.                 this.column时间 = new DataColumn("时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  775.                 this.Columns.Add(this.column时间);
  776.                 this.column是否已划价 = new DataColumn("是否已划价", typeof(string), null, System.Data.MappingType.Element);
  777.                 this.Columns.Add(this.column是否已划价);
  778.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  779.                                 this.column编号}, true));
  780.                 this.column编号.AllowDBNull = false;
  781.                 this.column编号.Unique = true;
  782.             }
  783.             
  784.             public 门诊挂号Row New门诊挂号Row() {
  785.                 return ((门诊挂号Row)(this.NewRow()));
  786.             }
  787.             
  788.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  789.                 return new 门诊挂号Row(builder);
  790.             }
  791.             
  792.             protected override System.Type GetRowType() {
  793.                 return typeof(门诊挂号Row);
  794.             }
  795.             
  796.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  797.                 base.OnRowChanged(e);
  798.                 if ((this.门诊挂号RowChanged != null)) {
  799.                     this.门诊挂号RowChanged(this, new 门诊挂号RowChangeEvent(((门诊挂号Row)(e.Row)), e.Action));
  800.                 }
  801.             }
  802.             
  803.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  804.                 base.OnRowChanging(e);
  805.                 if ((this.门诊挂号RowChanging != null)) {
  806.                     this.门诊挂号RowChanging(this, new 门诊挂号RowChangeEvent(((门诊挂号Row)(e.Row)), e.Action));
  807.                 }
  808.             }
  809.             
  810.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  811.                 base.OnRowDeleted(e);
  812.                 if ((this.门诊挂号RowDeleted != null)) {
  813.                     this.门诊挂号RowDeleted(this, new 门诊挂号RowChangeEvent(((门诊挂号Row)(e.Row)), e.Action));
  814.                 }
  815.             }
  816.             
  817.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  818.                 base.OnRowDeleting(e);
  819.                 if ((this.门诊挂号RowDeleting != null)) {
  820.                     this.门诊挂号RowDeleting(this, new 门诊挂号RowChangeEvent(((门诊挂号Row)(e.Row)), e.Action));
  821.                 }
  822.             }
  823.             
  824.             public void Remove门诊挂号Row(门诊挂号Row row) {
  825.                 this.Rows.Remove(row);
  826.             }
  827.         }
  828.         
  829.         [System.Diagnostics.DebuggerStepThrough()]
  830.         public class 门诊挂号Row : DataRow {
  831.             
  832.             private 门诊挂号DataTable table门诊挂号;
  833.             
  834.             internal 门诊挂号Row(DataRowBuilder rb) : 
  835.                     base(rb) {
  836.                 this.table门诊挂号 = ((门诊挂号DataTable)(this.Table));
  837.             }
  838.             
  839.             public string 编号 {
  840.                 get {
  841.                     return ((string)(this[this.table门诊挂号.编号Column]));
  842.                 }
  843.                 set {
  844.                     this[this.table门诊挂号.编号Column] = value;
  845.                 }
  846.             }
  847.             
  848.             public string 病人编号 {
  849.                 get {
  850.                     try {
  851.                         return ((string)(this[this.table门诊挂号.病人编号Column]));
  852.                     }
  853.                     catch (InvalidCastException e) {
  854.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  855.                     }
  856.                 }
  857.                 set {
  858.                     this[this.table门诊挂号.病人编号Column] = value;
  859.                 }
  860.             }
  861.             
  862.             public string 姓名 {
  863.                 get {
  864.                     try {
  865.                         return ((string)(this[this.table门诊挂号.姓名Column]));
  866.                     }
  867.                     catch (InvalidCastException e) {
  868.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  869.                     }
  870.                 }
  871.                 set {
  872.                     this[this.table门诊挂号.姓名Column] = value;
  873.                 }
  874.             }
  875.             
  876.             public string 性别 {
  877.                 get {
  878.                     try {
  879.                         return ((string)(this[this.table门诊挂号.性别Column]));
  880.                     }
  881.                     catch (InvalidCastException e) {
  882.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  883.                     }
  884.                 }
  885.                 set {
  886.                     this[this.table门诊挂号.性别Column] = value;
  887.                 }
  888.             }
  889.             
  890.             public string 挂号科室 {
  891.                 get {
  892.                     try {
  893.                         return ((string)(this[this.table门诊挂号.挂号科室Column]));
  894.                     }
  895.                     catch (InvalidCastException e) {
  896.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  897.                     }
  898.                 }
  899.                 set {
  900.                     this[this.table门诊挂号.挂号科室Column] = value;
  901.                 }
  902.             }
  903.             
  904.             public string 费用类型 {
  905.                 get {
  906.                     try {
  907.                         return ((string)(this[this.table门诊挂号.费用类型Column]));
  908.                     }
  909.                     catch (InvalidCastException e) {
  910.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  911.                     }
  912.                 }
  913.                 set {
  914.                     this[this.table门诊挂号.费用类型Column] = value;
  915.                 }
  916.             }
  917.             
  918.             public string 挂号类型 {
  919.                 get {
  920.                     try {
  921.                         return ((string)(this[this.table门诊挂号.挂号类型Column]));
  922.                     }
  923.                     catch (InvalidCastException e) {
  924.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  925.                     }
  926.                 }
  927.                 set {
  928.                     this[this.table门诊挂号.挂号类型Column] = value;
  929.                 }
  930.             }
  931.             
  932.             public System.Decimal 挂号费用 {
  933.                 get {
  934.                     try {
  935.                         return ((System.Decimal)(this[this.table门诊挂号.挂号费用Column]));
  936.                     }
  937.                     catch (InvalidCastException e) {
  938.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  939.                     }
  940.                 }
  941.                 set {
  942.                     this[this.table门诊挂号.挂号费用Column] = value;
  943.                 }
  944.             }
  945.             
  946.             public string 医生 {
  947.                 get {
  948.                     try {
  949.                         return ((string)(this[this.table门诊挂号.医生Column]));
  950.                     }
  951.                     catch (InvalidCastException e) {
  952.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  953.                     }
  954.                 }
  955.                 set {
  956.                     this[this.table门诊挂号.医生Column] = value;
  957.                 }
  958.             }
  959.             
  960.             public System.DateTime 时间 {
  961.                 get {
  962.                     try {
  963.                         return ((System.DateTime)(this[this.table门诊挂号.时间Column]));
  964.                     }
  965.                     catch (InvalidCastException e) {
  966.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  967.                     }
  968.                 }
  969.                 set {
  970.                     this[this.table门诊挂号.时间Column] = value;
  971.                 }
  972.             }
  973.             
  974.             public string 是否已划价 {
  975.                 get {
  976.                     try {
  977.                         return ((string)(this[this.table门诊挂号.是否已划价Column]));
  978.                     }
  979.                     catch (InvalidCastException e) {
  980.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  981.                     }
  982.                 }
  983.                 set {
  984.                     this[this.table门诊挂号.是否已划价Column] = value;
  985.                 }
  986.             }
  987.             
  988.             public bool Is病人编号Null() {
  989.                 return this.IsNull(this.table门诊挂号.病人编号Column);
  990.             }
  991.             
  992.             public void Set病人编号Null() {
  993.                 this[this.table门诊挂号.病人编号Column] = System.Convert.DBNull;
  994.             }
  995.             
  996.             public bool Is姓名Null() {
  997.                 return this.IsNull(this.table门诊挂号.姓名Column);
  998.             }
  999.             
  1000.             public void Set姓名Null() {
  1001.                 this[this.table门诊挂号.姓名Column] = System.Convert.DBNull;
  1002.             }
  1003.             
  1004.             public bool Is性别Null() {
  1005.                 return this.IsNull(this.table门诊挂号.性别Column);
  1006.             }
  1007.             
  1008.             public void Set性别Null() {
  1009.                 this[this.table门诊挂号.性别Column] = System.Convert.DBNull;
  1010.             }
  1011.             
  1012.             public bool Is挂号科室Null() {
  1013.                 return this.IsNull(this.table门诊挂号.挂号科室Column);
  1014.             }
  1015.             
  1016.             public void Set挂号科室Null() {
  1017.                 this[this.table门诊挂号.挂号科室Column] = System.Convert.DBNull;
  1018.             }
  1019.             
  1020.             public bool Is费用类型Null() {
  1021.                 return this.IsNull(this.table门诊挂号.费用类型Column);
  1022.             }
  1023.             
  1024.             public void Set费用类型Null() {
  1025.                 this[this.table门诊挂号.费用类型Column] = System.Convert.DBNull;
  1026.             }
  1027.             
  1028.             public bool Is挂号类型Null() {
  1029.                 return this.IsNull(this.table门诊挂号.挂号类型Column);
  1030.             }
  1031.             
  1032.             public void Set挂号类型Null() {
  1033.                 this[this.table门诊挂号.挂号类型Column] = System.Convert.DBNull;
  1034.             }
  1035.             
  1036.             public bool Is挂号费用Null() {
  1037.                 return this.IsNull(this.table门诊挂号.挂号费用Column);
  1038.             }
  1039.             
  1040.             public void Set挂号费用Null() {
  1041.                 this[this.table门诊挂号.挂号费用Column] = System.Convert.DBNull;
  1042.             }
  1043.             
  1044.             public bool Is医生Null() {
  1045.                 return this.IsNull(this.table门诊挂号.医生Column);
  1046.             }
  1047.             
  1048.             public void Set医生Null() {
  1049.                 this[this.table门诊挂号.医生Column] = System.Convert.DBNull;
  1050.             }
  1051.             
  1052.             public bool Is时间Null() {
  1053.                 return this.IsNull(this.table门诊挂号.时间Column);
  1054.             }
  1055.             
  1056.             public void Set时间Null() {
  1057.                 this[this.table门诊挂号.时间Column] = System.Convert.DBNull;
  1058.             }
  1059.             
  1060.             public bool Is是否已划价Null() {
  1061.                 return this.IsNull(this.table门诊挂号.是否已划价Column);
  1062.             }
  1063.             
  1064.             public void Set是否已划价Null() {
  1065.                 this[this.table门诊挂号.是否已划价Column] = System.Convert.DBNull;
  1066.             }
  1067.         }
  1068.         
  1069.         [System.Diagnostics.DebuggerStepThrough()]
  1070.         public class 门诊挂号RowChangeEvent : EventArgs {
  1071.             
  1072.             private 门诊挂号Row eventRow;
  1073.             
  1074.             private DataRowAction eventAction;
  1075.             
  1076.             public 门诊挂号RowChangeEvent(门诊挂号Row row, DataRowAction action) {
  1077.                 this.eventRow = row;
  1078.                 this.eventAction = action;
  1079.             }
  1080.             
  1081.             public 门诊挂号Row Row {
  1082.                 get {
  1083.                     return this.eventRow;
  1084.                 }
  1085.             }
  1086.             
  1087.             public DataRowAction Action {
  1088.                 get {
  1089.                     return this.eventAction;
  1090.                 }
  1091.             }
  1092.         }
  1093.         
  1094.         [System.Diagnostics.DebuggerStepThrough()]
  1095.         public class 门诊划价明细DataTable : DataTable, System.Collections.IEnumerable {
  1096.             
  1097.             private DataColumn column编号;
  1098.             
  1099.             private DataColumn column药品编号;
  1100.             
  1101.             private DataColumn column名称;
  1102.             
  1103.             private DataColumn column单价;
  1104.             
  1105.             private DataColumn column数量;
  1106.             
  1107.             private DataColumn column金额;
  1108.             
  1109.             private DataColumn column划价编号;
  1110.             
  1111.             internal 门诊划价明细DataTable() : 
  1112.                     base("门诊划价明细") {
  1113.                 this.InitClass();
  1114.             }
  1115.             
  1116.             internal 门诊划价明细DataTable(DataTable table) : 
  1117.                     base(table.TableName) {
  1118.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1119.                     this.CaseSensitive = table.CaseSensitive;
  1120.                 }
  1121.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1122.                     this.Locale = table.Locale;
  1123.                 }
  1124.                 if ((table.Namespace != table.DataSet.Namespace)) {
  1125.                     this.Namespace = table.Namespace;
  1126.                 }
  1127.                 this.Prefix = table.Prefix;
  1128.                 this.MinimumCapacity = table.MinimumCapacity;
  1129.                 this.DisplayExpression = table.DisplayExpression;
  1130.             }
  1131.             
  1132.             [System.ComponentModel.Browsable(false)]
  1133.             public int Count {
  1134.                 get {
  1135.                     return this.Rows.Count;
  1136.                 }
  1137.             }
  1138.             
  1139.             internal DataColumn 编号Column {
  1140.                 get {
  1141.                     return this.column编号;
  1142.                 }
  1143.             }
  1144.             
  1145.             internal DataColumn 药品编号Column {
  1146.                 get {
  1147.                     return this.column药品编号;
  1148.                 }
  1149.             }
  1150.             
  1151.             internal DataColumn 名称Column {
  1152.                 get {
  1153.                     return this.column名称;
  1154.                 }
  1155.             }
  1156.             
  1157.             internal DataColumn 单价Column {
  1158.                 get {
  1159.                     return this.column单价;
  1160.                 }
  1161.             }
  1162.             
  1163.             internal DataColumn 数量Column {
  1164.                 get {
  1165.                     return this.column数量;
  1166.                 }
  1167.             }
  1168.             
  1169.             internal DataColumn 金额Column {
  1170.                 get {
  1171.                     return this.column金额;
  1172.                 }
  1173.             }
  1174.             
  1175.             internal DataColumn 划价编号Column {
  1176.                 get {
  1177.                     return this.column划价编号;
  1178.                 }
  1179.             }
  1180.             
  1181.             public 门诊划价明细Row this[int index] {
  1182.                 get {
  1183.                     return ((门诊划价明细Row)(this.Rows[index]));
  1184.                 }
  1185.             }
  1186.             
  1187.             public event 门诊划价明细RowChangeEventHandler 门诊划价明细RowChanged;
  1188.             
  1189.             public event 门诊划价明细RowChangeEventHandler 门诊划价明细RowChanging;
  1190.             
  1191.             public event 门诊划价明细RowChangeEventHandler 门诊划价明细RowDeleted;
  1192.             
  1193.             public event 门诊划价明细RowChangeEventHandler 门诊划价明细RowDeleting;
  1194.             
  1195.             public void Add门诊划价明细Row(门诊划价明细Row row) {
  1196.                 this.Rows.Add(row);
  1197.             }
  1198.             
  1199.             public 门诊划价明细Row Add门诊划价明细Row(string 药品编号, string 名称, System.Decimal 单价, System.Decimal 数量, System.Decimal 金额, string 划价编号) {
  1200.                 门诊划价明细Row row门诊划价明细Row = ((门诊划价明细Row)(this.NewRow()));
  1201.                 row门诊划价明细Row.ItemArray = new object[] {
  1202.                         null,
  1203.                         药品编号,
  1204.                         名称,
  1205.                         单价,
  1206.                         数量,
  1207.                         金额,
  1208.                         划价编号};
  1209.                 this.Rows.Add(row门诊划价明细Row);
  1210.                 return row门诊划价明细Row;
  1211.             }
  1212.             
  1213.             public System.Collections.IEnumerator GetEnumerator() {
  1214.                 return this.Rows.GetEnumerator();
  1215.             }
  1216.             
  1217.             public override DataTable Clone() {
  1218.                 门诊划价明细DataTable cln = ((门诊划价明细DataTable)(base.Clone()));
  1219.                 cln.InitVars();
  1220.                 return cln;
  1221.             }
  1222.             
  1223.             protected override DataTable CreateInstance() {
  1224.                 return new 门诊划价明细DataTable();
  1225.             }
  1226.             
  1227.             internal void InitVars() {
  1228.                 this.column编号 = this.Columns["编号"];
  1229.                 this.column药品编号 = this.Columns["药品编号"];
  1230.                 this.column名称 = this.Columns["名称"];
  1231.                 this.column单价 = this.Columns["单价"];
  1232.                 this.column数量 = this.Columns["数量"];
  1233.                 this.column金额 = this.Columns["金额"];
  1234.                 this.column划价编号 = this.Columns["划价编号"];
  1235.             }
  1236.             
  1237.             private void InitClass() {
  1238.                 this.column编号 = new DataColumn("编号", typeof(int), null, System.Data.MappingType.Element);
  1239.                 this.Columns.Add(this.column编号);
  1240.                 this.column药品编号 = new DataColumn("药品编号", typeof(string), null, System.Data.MappingType.Element);
  1241.                 this.Columns.Add(this.column药品编号);
  1242.                 this.column名称 = new DataColumn("名称", typeof(string), null, System.Data.MappingType.Element);
  1243.                 this.Columns.Add(this.column名称);
  1244.                 this.column单价 = new DataColumn("单价", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1245.                 this.Columns.Add(this.column单价);
  1246.                 this.column数量 = new DataColumn("数量", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1247.                 this.Columns.Add(this.column数量);
  1248.                 this.column金额 = new DataColumn("金额", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1249.                 this.Columns.Add(this.column金额);
  1250.                 this.column划价编号 = new DataColumn("划价编号", typeof(string), null, System.Data.MappingType.Element);
  1251.                 this.Columns.Add(this.column划价编号);
  1252.                 this.column编号.AutoIncrement = true;
  1253.                 this.column编号.AllowDBNull = false;
  1254.                 this.column编号.ReadOnly = true;
  1255.                 this.column药品编号.AllowDBNull = false;
  1256.                 this.column划价编号.AllowDBNull = false;
  1257.             }
  1258.             
  1259.             public 门诊划价明细Row New门诊划价明细Row() {
  1260.                 return ((门诊划价明细Row)(this.NewRow()));
  1261.             }
  1262.             
  1263.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  1264.                 return new 门诊划价明细Row(builder);
  1265.             }
  1266.             
  1267.             protected override System.Type GetRowType() {
  1268.                 return typeof(门诊划价明细Row);
  1269.             }
  1270.             
  1271.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  1272.                 base.OnRowChanged(e);
  1273.                 if ((this.门诊划价明细RowChanged != null)) {
  1274.                     this.门诊划价明细RowChanged(this, new 门诊划价明细RowChangeEvent(((门诊划价明细Row)(e.Row)), e.Action));
  1275.                 }
  1276.             }
  1277.             
  1278.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  1279.                 base.OnRowChanging(e);
  1280.                 if ((this.门诊划价明细RowChanging != null)) {
  1281.                     this.门诊划价明细RowChanging(this, new 门诊划价明细RowChangeEvent(((门诊划价明细Row)(e.Row)), e.Action));
  1282.                 }
  1283.             }
  1284.             
  1285.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  1286.                 base.OnRowDeleted(e);
  1287.                 if ((this.门诊划价明细RowDeleted != null)) {
  1288.                     this.门诊划价明细RowDeleted(this, new 门诊划价明细RowChangeEvent(((门诊划价明细Row)(e.Row)), e.Action));
  1289.                 }
  1290.             }
  1291.             
  1292.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  1293.                 base.OnRowDeleting(e);
  1294.                 if ((this.门诊划价明细RowDeleting != null)) {
  1295.                     this.门诊划价明细RowDeleting(this, new 门诊划价明细RowChangeEvent(((门诊划价明细Row)(e.Row)), e.Action));
  1296.                 }
  1297.             }
  1298.             
  1299.             public void Remove门诊划价明细Row(门诊划价明细Row row) {
  1300.                 this.Rows.Remove(row);
  1301.             }
  1302.         }
  1303.         
  1304.         [System.Diagnostics.DebuggerStepThrough()]
  1305.         public class 门诊划价明细Row : DataRow {
  1306.             
  1307.             private 门诊划价明细DataTable table门诊划价明细;
  1308.             
  1309.             internal 门诊划价明细Row(DataRowBuilder rb) : 
  1310.                     base(rb) {
  1311.                 this.table门诊划价明细 = ((门诊划价明细DataTable)(this.Table));
  1312.             }
  1313.             
  1314.             public int 编号 {
  1315.                 get {
  1316.                     return ((int)(this[this.table门诊划价明细.编号Column]));
  1317.                 }
  1318.                 set {
  1319.                     this[this.table门诊划价明细.编号Column] = value;
  1320.                 }
  1321.             }
  1322.             
  1323.             public string 药品编号 {
  1324.                 get {
  1325.                     return ((string)(this[this.table门诊划价明细.药品编号Column]));
  1326.                 }
  1327.                 set {
  1328.                     this[this.table门诊划价明细.药品编号Column] = value;
  1329.                 }
  1330.             }
  1331.             
  1332.             public string 名称 {
  1333.                 get {
  1334.                     try {
  1335.                         return ((string)(this[this.table门诊划价明细.名称Column]));
  1336.                     }
  1337.                     catch (InvalidCastException e) {
  1338.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1339.                     }
  1340.                 }
  1341.                 set {
  1342.                     this[this.table门诊划价明细.名称Column] = value;
  1343.                 }
  1344.             }
  1345.             
  1346.             public System.Decimal 单价 {
  1347.                 get {
  1348.                     try {
  1349.                         return ((System.Decimal)(this[this.table门诊划价明细.单价Column]));
  1350.                     }
  1351.                     catch (InvalidCastException e) {
  1352.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1353.                     }
  1354.                 }
  1355.                 set {
  1356.                     this[this.table门诊划价明细.单价Column] = value;
  1357.                 }
  1358.             }
  1359.             
  1360.             public System.Decimal 数量 {
  1361.                 get {
  1362.                     try {
  1363.                         return ((System.Decimal)(this[this.table门诊划价明细.数量Column]));
  1364.                     }
  1365.                     catch (InvalidCastException e) {
  1366.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1367.                     }
  1368.                 }
  1369.                 set {
  1370.                     this[this.table门诊划价明细.数量Column] = value;
  1371.                 }
  1372.             }
  1373.             
  1374.             public System.Decimal 金额 {
  1375.                 get {
  1376.                     try {
  1377.                         return ((System.Decimal)(this[this.table门诊划价明细.金额Column]));
  1378.                     }
  1379.                     catch (InvalidCastException e) {
  1380.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1381.                     }
  1382.                 }
  1383.                 set {
  1384.                     this[this.table门诊划价明细.金额Column] = value;
  1385.                 }
  1386.             }
  1387.             
  1388.             public string 划价编号 {
  1389.                 get {
  1390.                     return ((string)(this[this.table门诊划价明细.划价编号Column]));
  1391.                 }
  1392.                 set {
  1393.                     this[this.table门诊划价明细.划价编号Column] = value;
  1394.                 }
  1395.             }
  1396.             
  1397.             public bool Is名称Null() {
  1398.                 return this.IsNull(this.table门诊划价明细.名称Column);
  1399.             }
  1400.             
  1401.             public void Set名称Null() {
  1402.                 this[this.table门诊划价明细.名称Column] = System.Convert.DBNull;
  1403.             }
  1404.             
  1405.             public bool Is单价Null() {
  1406.                 return this.IsNull(this.table门诊划价明细.单价Column);
  1407.             }
  1408.             
  1409.             public void Set单价Null() {
  1410.                 this[this.table门诊划价明细.单价Column] = System.Convert.DBNull;
  1411.             }
  1412.             
  1413.             public bool Is数量Null() {
  1414.                 return this.IsNull(this.table门诊划价明细.数量Column);
  1415.             }
  1416.             
  1417.             public void Set数量Null() {
  1418.                 this[this.table门诊划价明细.数量Column] = System.Convert.DBNull;
  1419.             }
  1420.             
  1421.             public bool Is金额Null() {
  1422.                 return this.IsNull(this.table门诊划价明细.金额Column);
  1423.             }
  1424.             
  1425.             public void Set金额Null() {
  1426.                 this[this.table门诊划价明细.金额Column] = System.Convert.DBNull;
  1427.             }
  1428.         }
  1429.         
  1430.         [System.Diagnostics.DebuggerStepThrough()]
  1431.         public class 门诊划价明细RowChangeEvent : EventArgs {
  1432.             
  1433.             private 门诊划价明细Row eventRow;
  1434.             
  1435.             private DataRowAction eventAction;
  1436.             
  1437.             public 门诊划价明细RowChangeEvent(门诊划价明细Row row, DataRowAction action) {
  1438.                 this.eventRow = row;
  1439.                 this.eventAction = action;
  1440.             }
  1441.             
  1442.             public 门诊划价明细Row Row {
  1443.                 get {
  1444.                     return this.eventRow;
  1445.                 }
  1446.             }
  1447.             
  1448.             public DataRowAction Action {
  1449.                 get {
  1450.                     return this.eventAction;
  1451.                 }
  1452.             }
  1453.         }
  1454.         
  1455.         [System.Diagnostics.DebuggerStepThrough()]
  1456.         public class 门诊划价DataTable : DataTable, System.Collections.IEnumerable {
  1457.             
  1458.             private DataColumn column姓名;
  1459.             
  1460.             private DataColumn column性别;
  1461.             
  1462.             private DataColumn column编号;
  1463.             
  1464.             private DataColumn column科室;
  1465.             
  1466.             private DataColumn column挂号编号;
  1467.             
  1468.             private DataColumn column医生;
  1469.             
  1470.             private DataColumn column划价时间;
  1471.             
  1472.             private DataColumn column划价员;
  1473.             
  1474.             private DataColumn column是否收费;
  1475.             
  1476.             private DataColumn column收费员;
  1477.             
  1478.             private DataColumn column收费时间;
  1479.             
  1480.             private DataColumn column划价金额;
  1481.             
  1482.             private DataColumn column是否发药;
  1483.             
  1484.             private DataColumn column发药时间;
  1485.             
  1486.             private DataColumn column发药员;
  1487.             
  1488.             internal 门诊划价DataTable() : 
  1489.                     base("门诊划价") {
  1490.                 this.InitClass();
  1491.             }
  1492.             
  1493.             internal 门诊划价DataTable(DataTable table) : 
  1494.                     base(table.TableName) {
  1495.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1496.                     this.CaseSensitive = table.CaseSensitive;
  1497.                 }
  1498.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1499.                     this.Locale = table.Locale;
  1500.                 }
  1501.                 if ((table.Namespace != table.DataSet.Namespace)) {
  1502.                     this.Namespace = table.Namespace;
  1503.                 }
  1504.                 this.Prefix = table.Prefix;
  1505.                 this.MinimumCapacity = table.MinimumCapacity;
  1506.                 this.DisplayExpression = table.DisplayExpression;
  1507.             }
  1508.             
  1509.             [System.ComponentModel.Browsable(false)]
  1510.             public int Count {
  1511.                 get {
  1512.                     return this.Rows.Count;
  1513.                 }
  1514.             }
  1515.             
  1516.             internal DataColumn 姓名Column {
  1517.                 get {
  1518.                     return this.column姓名;
  1519.                 }
  1520.             }
  1521.             
  1522.             internal DataColumn 性别Column {
  1523.                 get {
  1524.                     return this.column性别;
  1525.                 }
  1526.             }
  1527.             
  1528.             internal DataColumn 编号Column {
  1529.                 get {
  1530.                     return this.column编号;
  1531.                 }
  1532.             }
  1533.             
  1534.             internal DataColumn 科室Column {
  1535.                 get {
  1536.                     return this.column科室;
  1537.                 }
  1538.             }
  1539.             
  1540.             internal DataColumn 挂号编号Column {
  1541.                 get {
  1542.                     return this.column挂号编号;
  1543.                 }
  1544.             }
  1545.             
  1546.             internal DataColumn 医生Column {
  1547.                 get {
  1548.                     return this.column医生;
  1549.                 }
  1550.             }
  1551.             
  1552.             internal DataColumn 划价时间Column {
  1553.                 get {
  1554.                     return this.column划价时间;
  1555.                 }
  1556.             }
  1557.             
  1558.             internal DataColumn 划价员Column {
  1559.                 get {
  1560.                     return this.column划价员;
  1561.                 }
  1562.             }
  1563.             
  1564.             internal DataColumn 是否收费Column {
  1565.                 get {
  1566.                     return this.column是否收费;
  1567.                 }
  1568.             }
  1569.             
  1570.             internal DataColumn 收费员Column {
  1571.                 get {
  1572.                     return this.column收费员;
  1573.                 }
  1574.             }
  1575.             
  1576.             internal DataColumn 收费时间Column {
  1577.                 get {
  1578.                     return this.column收费时间;
  1579.                 }
  1580.             }
  1581.             
  1582.             internal DataColumn 划价金额Column {
  1583.                 get {
  1584.                     return this.column划价金额;
  1585.                 }
  1586.             }
  1587.             
  1588.             internal DataColumn 是否发药Column {
  1589.                 get {
  1590.                     return this.column是否发药;
  1591.                 }
  1592.             }
  1593.             
  1594.             internal DataColumn 发药时间Column {
  1595.                 get {
  1596.                     return this.column发药时间;
  1597.                 }
  1598.             }
  1599.             
  1600.             internal DataColumn 发药员Column {
  1601.                 get {
  1602.                     return this.column发药员;
  1603.                 }
  1604.             }
  1605.             
  1606.             public 门诊划价Row this[int index] {
  1607.                 get {
  1608.                     return ((门诊划价Row)(this.Rows[index]));
  1609.                 }
  1610.             }
  1611.             
  1612.             public event 门诊划价RowChangeEventHandler 门诊划价RowChanged;
  1613.             
  1614.             public event 门诊划价RowChangeEventHandler 门诊划价RowChanging;
  1615.             
  1616.             public event 门诊划价RowChangeEventHandler 门诊划价RowDeleted;
  1617.             
  1618.             public event 门诊划价RowChangeEventHandler 门诊划价RowDeleting;
  1619.             
  1620.             public void Add门诊划价Row(门诊划价Row row) {
  1621.                 this.Rows.Add(row);
  1622.             }
  1623.             
  1624.             public 门诊划价Row Add门诊划价Row(string 姓名, string 性别, string 编号, string 科室, string 挂号编号, string 医生, System.DateTime 划价时间, string 划价员, string 是否收费, string 收费员, System.DateTime 收费时间, System.Decimal 划价金额, string 是否发药, System.DateTime 发药时间, string 发药员) {
  1625.                 门诊划价Row row门诊划价Row = ((门诊划价Row)(this.NewRow()));
  1626.                 row门诊划价Row.ItemArray = new object[] {
  1627.                         姓名,
  1628.                         性别,
  1629.                         编号,
  1630.                         科室,
  1631.                         挂号编号,
  1632.                         医生,
  1633.                         划价时间,
  1634.                         划价员,
  1635.                         是否收费,
  1636.                         收费员,
  1637.                         收费时间,
  1638.                         划价金额,
  1639.                         是否发药,
  1640.                         发药时间,
  1641.                         发药员};
  1642.                 this.Rows.Add(row门诊划价Row);
  1643.                 return row门诊划价Row;
  1644.             }
  1645.             
  1646.             public System.Collections.IEnumerator GetEnumerator() {
  1647.                 return this.Rows.GetEnumerator();
  1648.             }
  1649.             
  1650.             public override DataTable Clone() {
  1651.                 门诊划价DataTable cln = ((门诊划价DataTable)(base.Clone()));
  1652.                 cln.InitVars();
  1653.                 return cln;
  1654.             }
  1655.             
  1656.             protected override DataTable CreateInstance() {
  1657.                 return new 门诊划价DataTable();
  1658.             }
  1659.             
  1660.             internal void InitVars() {
  1661.                 this.column姓名 = this.Columns["姓名"];
  1662.                 this.column性别 = this.Columns["性别"];
  1663.                 this.column编号 = this.Columns["编号"];
  1664.                 this.column科室 = this.Columns["科室"];
  1665.                 this.column挂号编号 = this.Columns["挂号编号"];
  1666.                 this.column医生 = this.Columns["医生"];
  1667.                 this.column划价时间 = this.Columns["划价时间"];
  1668.                 this.column划价员 = this.Columns["划价员"];
  1669.                 this.column是否收费 = this.Columns["是否收费"];
  1670.                 this.column收费员 = this.Columns["收费员"];
  1671.                 this.column收费时间 = this.Columns["收费时间"];
  1672.                 this.column划价金额 = this.Columns["划价金额"];
  1673.                 this.column是否发药 = this.Columns["是否发药"];
  1674.                 this.column发药时间 = this.Columns["发药时间"];
  1675.                 this.column发药员 = this.Columns["发药员"];
  1676.             }
  1677.             
  1678.             private void InitClass() {
  1679.                 this.column姓名 = new DataColumn("姓名", typeof(string), null, System.Data.MappingType.Element);
  1680.                 this.Columns.Add(this.column姓名);
  1681.                 this.column性别 = new DataColumn("性别", typeof(string), null, System.Data.MappingType.Element);
  1682.                 this.Columns.Add(this.column性别);
  1683.                 this.column编号 = new DataColumn("编号", typeof(string), null, System.Data.MappingType.Element);
  1684.                 this.Columns.Add(this.column编号);
  1685.                 this.column科室 = new DataColumn("科室", typeof(string), null, System.Data.MappingType.Element);
  1686.                 this.Columns.Add(this.column科室);
  1687.                 this.column挂号编号 = new DataColumn("挂号编号", typeof(string), null, System.Data.MappingType.Element);
  1688.                 this.Columns.Add(this.column挂号编号);
  1689.                 this.column医生 = new DataColumn("医生", typeof(string), null, System.Data.MappingType.Element);
  1690.                 this.Columns.Add(this.column医生);
  1691.                 this.column划价时间 = new DataColumn("划价时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  1692.                 this.Columns.Add(this.column划价时间);
  1693.                 this.column划价员 = new DataColumn("划价员", typeof(string), null, System.Data.MappingType.Element);
  1694.                 this.Columns.Add(this.column划价员);
  1695.                 this.column是否收费 = new DataColumn("是否收费", typeof(string), null, System.Data.MappingType.Element);
  1696.                 this.Columns.Add(this.column是否收费);
  1697.                 this.column收费员 = new DataColumn("收费员", typeof(string), null, System.Data.MappingType.Element);
  1698.                 this.Columns.Add(this.column收费员);
  1699.                 this.column收费时间 = new DataColumn("收费时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  1700.                 this.Columns.Add(this.column收费时间);
  1701.                 this.column划价金额 = new DataColumn("划价金额", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1702.                 this.Columns.Add(this.column划价金额);
  1703.                 this.column是否发药 = new DataColumn("是否发药", typeof(string), null, System.Data.MappingType.Element);
  1704.                 this.Columns.Add(this.column是否发药);
  1705.                 this.column发药时间 = new DataColumn("发药时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  1706.                 this.Columns.Add(this.column发药时间);
  1707.                 this.column发药员 = new DataColumn("发药员", typeof(string), null, System.Data.MappingType.Element);
  1708.                 this.Columns.Add(this.column发药员);
  1709.                 this.column编号.AllowDBNull = false;
  1710.                 this.column划价时间.AllowDBNull = false;
  1711.                 this.column划价金额.AllowDBNull = false;
  1712.             }
  1713.             
  1714.             public 门诊划价Row New门诊划价Row() {
  1715.                 return ((门诊划价Row)(this.NewRow()));
  1716.             }
  1717.             
  1718.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  1719.                 return new 门诊划价Row(builder);
  1720.             }
  1721.             
  1722.             protected override System.Type GetRowType() {
  1723.                 return typeof(门诊划价Row);
  1724.             }
  1725.             
  1726.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  1727.                 base.OnRowChanged(e);
  1728.                 if ((this.门诊划价RowChanged != null)) {
  1729.                     this.门诊划价RowChanged(this, new 门诊划价RowChangeEvent(((门诊划价Row)(e.Row)), e.Action));
  1730.                 }
  1731.             }
  1732.             
  1733.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  1734.                 base.OnRowChanging(e);
  1735.                 if ((this.门诊划价RowChanging != null)) {
  1736.                     this.门诊划价RowChanging(this, new 门诊划价RowChangeEvent(((门诊划价Row)(e.Row)), e.Action));
  1737.                 }
  1738.             }
  1739.             
  1740.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  1741.                 base.OnRowDeleted(e);
  1742.                 if ((this.门诊划价RowDeleted != null)) {
  1743.                     this.门诊划价RowDeleted(this, new 门诊划价RowChangeEvent(((门诊划价Row)(e.Row)), e.Action));
  1744.                 }
  1745.             }
  1746.             
  1747.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  1748.                 base.OnRowDeleting(e);
  1749.                 if ((this.门诊划价RowDeleting != null)) {
  1750.                     this.门诊划价RowDeleting(this, new 门诊划价RowChangeEvent(((门诊划价Row)(e.Row)), e.Action));
  1751.                 }
  1752.             }
  1753.             
  1754.             public void Remove门诊划价Row(门诊划价Row row) {
  1755.                 this.Rows.Remove(row);
  1756.             }
  1757.         }
  1758.         
  1759.         [System.Diagnostics.DebuggerStepThrough()]
  1760.         public class 门诊划价Row : DataRow {
  1761.             
  1762.             private 门诊划价DataTable table门诊划价;
  1763.             
  1764.             internal 门诊划价Row(DataRowBuilder rb) : 
  1765.                     base(rb) {
  1766.                 this.table门诊划价 = ((门诊划价DataTable)(this.Table));
  1767.             }
  1768.             
  1769.             public string 姓名 {
  1770.                 get {
  1771.                     try {
  1772.                         return ((string)(this[this.table门诊划价.姓名Column]));
  1773.                     }
  1774.                     catch (InvalidCastException e) {
  1775.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1776.                     }
  1777.                 }
  1778.                 set {
  1779.                     this[this.table门诊划价.姓名Column] = value;
  1780.                 }
  1781.             }
  1782.             
  1783.             public string 性别 {
  1784.                 get {
  1785.                     try {
  1786.                         return ((string)(this[this.table门诊划价.性别Column]));
  1787.                     }
  1788.                     catch (InvalidCastException e) {
  1789.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1790.                     }
  1791.                 }
  1792.                 set {
  1793.                     this[this.table门诊划价.性别Column] = value;
  1794.                 }
  1795.             }
  1796.             
  1797.             public string 编号 {
  1798.                 get {
  1799.                     return ((string)(this[this.table门诊划价.编号Column]));
  1800.                 }
  1801.                 set {
  1802.                     this[this.table门诊划价.编号Column] = value;
  1803.                 }
  1804.             }
  1805.             
  1806.             public string 科室 {
  1807.                 get {
  1808.                     try {
  1809.                         return ((string)(this[this.table门诊划价.科室Column]));
  1810.                     }
  1811.                     catch (InvalidCastException e) {
  1812.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1813.                     }
  1814.                 }
  1815.                 set {
  1816.                     this[this.table门诊划价.科室Column] = value;
  1817.                 }
  1818.             }
  1819.             
  1820.             public string 挂号编号 {
  1821.                 get {
  1822.                     try {
  1823.                         return ((string)(this[this.table门诊划价.挂号编号Column]));
  1824.                     }
  1825.                     catch (InvalidCastException e) {
  1826.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1827.                     }
  1828.                 }
  1829.                 set {
  1830.                     this[this.table门诊划价.挂号编号Column] = value;
  1831.                 }
  1832.             }
  1833.             
  1834.             public string 医生 {
  1835.                 get {
  1836.                     try {
  1837.                         return ((string)(this[this.table门诊划价.医生Column]));
  1838.                     }
  1839.                     catch (InvalidCastException e) {
  1840.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1841.                     }
  1842.                 }
  1843.                 set {
  1844.                     this[this.table门诊划价.医生Column] = value;
  1845.                 }
  1846.             }
  1847.             
  1848.             public System.DateTime 划价时间 {
  1849.                 get {
  1850.                     return ((System.DateTime)(this[this.table门诊划价.划价时间Column]));
  1851.                 }
  1852.                 set {
  1853.                     this[this.table门诊划价.划价时间Column] = value;
  1854.                 }
  1855.             }
  1856.             
  1857.             public string 划价员 {
  1858.                 get {
  1859.                     try {
  1860.                         return ((string)(this[this.table门诊划价.划价员Column]));
  1861.                     }
  1862.                     catch (InvalidCastException e) {
  1863.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1864.                     }
  1865.                 }
  1866.                 set {
  1867.                     this[this.table门诊划价.划价员Column] = value;
  1868.                 }
  1869.             }
  1870.             
  1871.             public string 是否收费 {
  1872.                 get {
  1873.                     try {
  1874.                         return ((string)(this[this.table门诊划价.是否收费Column]));
  1875.                     }
  1876.                     catch (InvalidCastException e) {
  1877.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1878.                     }
  1879.                 }
  1880.                 set {
  1881.                     this[this.table门诊划价.是否收费Column] = value;
  1882.                 }
  1883.             }
  1884.             
  1885.             public string 收费员 {
  1886.                 get {
  1887.                     try {
  1888.                         return ((string)(this[this.table门诊划价.收费员Column]));
  1889.                     }
  1890.                     catch (InvalidCastException e) {
  1891.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1892.                     }
  1893.                 }
  1894.                 set {
  1895.                     this[this.table门诊划价.收费员Column] = value;
  1896.                 }
  1897.             }
  1898.             
  1899.             public System.DateTime 收费时间 {
  1900.                 get {
  1901.                     try {
  1902.                         return ((System.DateTime)(this[this.table门诊划价.收费时间Column]));
  1903.                     }
  1904.                     catch (InvalidCastException e) {
  1905.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1906.                     }
  1907.                 }
  1908.                 set {
  1909.                     this[this.table门诊划价.收费时间Column] = value;
  1910.                 }
  1911.             }
  1912.             
  1913.             public System.Decimal 划价金额 {
  1914.                 get {
  1915.                     return ((System.Decimal)(this[this.table门诊划价.划价金额Column]));
  1916.                 }
  1917.                 set {
  1918.                     this[this.table门诊划价.划价金额Column] = value;
  1919.                 }
  1920.             }
  1921.             
  1922.             public string 是否发药 {
  1923.                 get {
  1924.                     try {
  1925.                         return ((string)(this[this.table门诊划价.是否发药Column]));
  1926.                     }
  1927.                     catch (InvalidCastException e) {
  1928.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1929.                     }
  1930.                 }
  1931.                 set {
  1932.                     this[this.table门诊划价.是否发药Column] = value;
  1933.                 }
  1934.             }
  1935.             
  1936.             public System.DateTime 发药时间 {
  1937.                 get {
  1938.                     try {
  1939.                         return ((System.DateTime)(this[this.table门诊划价.发药时间Column]));
  1940.                     }
  1941.                     catch (InvalidCastException e) {
  1942.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1943.                     }
  1944.                 }
  1945.                 set {
  1946.                     this[this.table门诊划价.发药时间Column] = value;
  1947.                 }
  1948.             }
  1949.             
  1950.             public string 发药员 {
  1951.                 get {
  1952.                     try {
  1953.                         return ((string)(this[this.table门诊划价.发药员Column]));
  1954.                     }
  1955.                     catch (InvalidCastException e) {
  1956.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1957.                     }
  1958.                 }
  1959.                 set {
  1960.                     this[this.table门诊划价.发药员Column] = value;
  1961.                 }
  1962.             }
  1963.             
  1964.             public bool Is姓名Null() {
  1965.                 return this.IsNull(this.table门诊划价.姓名Column);
  1966.             }
  1967.             
  1968.             public void Set姓名Null() {
  1969.                 this[this.table门诊划价.姓名Column] = System.Convert.DBNull;
  1970.             }
  1971.             
  1972.             public bool Is性别Null() {
  1973.                 return this.IsNull(this.table门诊划价.性别Column);
  1974.             }
  1975.             
  1976.             public void Set性别Null() {
  1977.                 this[this.table门诊划价.性别Column] = System.Convert.DBNull;
  1978.             }
  1979.             
  1980.             public bool Is科室Null() {
  1981.                 return this.IsNull(this.table门诊划价.科室Column);
  1982.             }
  1983.             
  1984.             public void Set科室Null() {
  1985.                 this[this.table门诊划价.科室Column] = System.Convert.DBNull;
  1986.             }
  1987.             
  1988.             public bool Is挂号编号Null() {
  1989.                 return this.IsNull(this.table门诊划价.挂号编号Column);
  1990.             }
  1991.             
  1992.             public void Set挂号编号Null() {
  1993.                 this[this.table门诊划价.挂号编号Column] = System.Convert.DBNull;
  1994.             }
  1995.             
  1996.             public bool Is医生Null() {
  1997.                 return this.IsNull(this.table门诊划价.医生Column);
  1998.             }
  1999.             
  2000.             public void Set医生Null() {
  2001.                 this[this.table门诊划价.医生Column] = System.Convert.DBNull;
  2002.             }
  2003.             
  2004.             public bool Is划价员Null() {
  2005.                 return this.IsNull(this.table门诊划价.划价员Column);
  2006.             }
  2007.             
  2008.             public void Set划价员Null() {
  2009.                 this[this.table门诊划价.划价员Column] = System.Convert.DBNull;
  2010.             }
  2011.             
  2012.             public bool Is是否收费Null() {
  2013.                 return this.IsNull(this.table门诊划价.是否收费Column);
  2014.             }
  2015.             
  2016.             public void Set是否收费Null() {
  2017.                 this[this.table门诊划价.是否收费Column] = System.Convert.DBNull;
  2018.             }
  2019.             
  2020.             public bool Is收费员Null() {
  2021.                 return this.IsNull(this.table门诊划价.收费员Column);
  2022.             }
  2023.             
  2024.             public void Set收费员Null() {
  2025.                 this[this.table门诊划价.收费员Column] = System.Convert.DBNull;
  2026.             }
  2027.             
  2028.             public bool Is收费时间Null() {
  2029.                 return this.IsNull(this.table门诊划价.收费时间Column);
  2030.             }
  2031.             
  2032.             public void Set收费时间Null() {
  2033.                 this[this.table门诊划价.收费时间Column] = System.Convert.DBNull;
  2034.             }
  2035.             
  2036.             public bool Is是否发药Null() {
  2037.                 return this.IsNull(this.table门诊划价.是否发药Column);
  2038.             }
  2039.             
  2040.             public void Set是否发药Null() {
  2041.                 this[this.table门诊划价.是否发药Column] = System.Convert.DBNull;
  2042.             }
  2043.             
  2044.             public bool Is发药时间Null() {
  2045.                 return this.IsNull(this.table门诊划价.发药时间Column);
  2046.             }
  2047.             
  2048.             public void Set发药时间Null() {
  2049.                 this[this.table门诊划价.发药时间Column] = System.Convert.DBNull;
  2050.             }
  2051.             
  2052.             public bool Is发药员Null() {
  2053.                 return this.IsNull(this.table门诊划价.发药员Column);
  2054.             }
  2055.             
  2056.             public void Set发药员Null() {
  2057.                 this[this.table门诊划价.发药员Column] = System.Convert.DBNull;
  2058.             }
  2059.         }
  2060.         
  2061.         [System.Diagnostics.DebuggerStepThrough()]
  2062.         public class 门诊划价RowChangeEvent : EventArgs {
  2063.             
  2064.             private 门诊划价Row eventRow;
  2065.             
  2066.             private DataRowAction eventAction;
  2067.             
  2068.             public 门诊划价RowChangeEvent(门诊划价Row row, DataRowAction action) {
  2069.                 this.eventRow = row;
  2070.                 this.eventAction = action;
  2071.             }
  2072.             
  2073.             public 门诊划价Row Row {
  2074.                 get {
  2075.                     return this.eventRow;
  2076.                 }
  2077.             }
  2078.             
  2079.             public DataRowAction Action {
  2080.                 get {
  2081.                     return this.eventAction;
  2082.                 }
  2083.             }
  2084.         }
  2085.     }
  2086. }