zhu.cs
上传用户:clhb88
上传日期:2009-09-26
资源大小:3468k
文件大小:15k
源码类别:

医药行业

开发平台:

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 zhu : DataSet {
  22.         
  23.         private _TableDataTable table_Table;
  24.         
  25.         public zhu() {
  26.             this.InitClass();
  27.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  28.             this.Tables.CollectionChanged += schemaChangedHandler;
  29.             this.Relations.CollectionChanged += schemaChangedHandler;
  30.         }
  31.         
  32.         protected zhu(SerializationInfo info, StreamingContext context) {
  33.             string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  34.             if ((strSchema != null)) {
  35.                 DataSet ds = new DataSet();
  36.                 ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
  37.                 if ((ds.Tables["Table"] != null)) {
  38.                     this.Tables.Add(new _TableDataTable(ds.Tables["Table"]));
  39.                 }
  40.                 this.DataSetName = ds.DataSetName;
  41.                 this.Prefix = ds.Prefix;
  42.                 this.Namespace = ds.Namespace;
  43.                 this.Locale = ds.Locale;
  44.                 this.CaseSensitive = ds.CaseSensitive;
  45.                 this.EnforceConstraints = ds.EnforceConstraints;
  46.                 this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  47.                 this.InitVars();
  48.             }
  49.             else {
  50.                 this.InitClass();
  51.             }
  52.             this.GetSerializationData(info, context);
  53.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  54.             this.Tables.CollectionChanged += schemaChangedHandler;
  55.             this.Relations.CollectionChanged += schemaChangedHandler;
  56.         }
  57.         
  58.         [System.ComponentModel.Browsable(false)]
  59.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  60.         public _TableDataTable _Table {
  61.             get {
  62.                 return this.table_Table;
  63.             }
  64.         }
  65.         
  66.         public override DataSet Clone() {
  67.             zhu cln = ((zhu)(base.Clone()));
  68.             cln.InitVars();
  69.             return cln;
  70.         }
  71.         
  72.         protected override bool ShouldSerializeTables() {
  73.             return false;
  74.         }
  75.         
  76.         protected override bool ShouldSerializeRelations() {
  77.             return false;
  78.         }
  79.         
  80.         protected override void ReadXmlSerializable(XmlReader reader) {
  81.             this.Reset();
  82.             DataSet ds = new DataSet();
  83.             ds.ReadXml(reader);
  84.             if ((ds.Tables["Table"] != null)) {
  85.                 this.Tables.Add(new _TableDataTable(ds.Tables["Table"]));
  86.             }
  87.             this.DataSetName = ds.DataSetName;
  88.             this.Prefix = ds.Prefix;
  89.             this.Namespace = ds.Namespace;
  90.             this.Locale = ds.Locale;
  91.             this.CaseSensitive = ds.CaseSensitive;
  92.             this.EnforceConstraints = ds.EnforceConstraints;
  93.             this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  94.             this.InitVars();
  95.         }
  96.         
  97.         protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  98.             System.IO.MemoryStream stream = new System.IO.MemoryStream();
  99.             this.WriteXmlSchema(new XmlTextWriter(stream, null));
  100.             stream.Position = 0;
  101.             return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
  102.         }
  103.         
  104.         internal void InitVars() {
  105.             this.table_Table = ((_TableDataTable)(this.Tables["Table"]));
  106.             if ((this.table_Table != null)) {
  107.                 this.table_Table.InitVars();
  108.             }
  109.         }
  110.         
  111.         private void InitClass() {
  112.             this.DataSetName = "zhu";
  113.             this.Prefix = "";
  114.             this.Namespace = "http://www.tempuri.org/zhu.xsd";
  115.             this.Locale = new System.Globalization.CultureInfo("zh-CN");
  116.             this.CaseSensitive = false;
  117.             this.EnforceConstraints = true;
  118.             this.table_Table = new _TableDataTable();
  119.             this.Tables.Add(this.table_Table);
  120.         }
  121.         
  122.         private bool ShouldSerialize_Table() {
  123.             return false;
  124.         }
  125.         
  126.         private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
  127.             if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
  128.                 this.InitVars();
  129.             }
  130.         }
  131.         
  132.         public delegate void _TableRowChangeEventHandler(object sender, _TableRowChangeEvent e);
  133.         
  134.         [System.Diagnostics.DebuggerStepThrough()]
  135.         public class _TableDataTable : DataTable, System.Collections.IEnumerable {
  136.             
  137.             private DataColumn column床号;
  138.             
  139.             private DataColumn column栋号;
  140.             
  141.             private DataColumn column进出实况;
  142.             
  143.             internal _TableDataTable() : 
  144.                     base("Table") {
  145.                 this.InitClass();
  146.             }
  147.             
  148.             internal _TableDataTable(DataTable table) : 
  149.                     base(table.TableName) {
  150.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  151.                     this.CaseSensitive = table.CaseSensitive;
  152.                 }
  153.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  154.                     this.Locale = table.Locale;
  155.                 }
  156.                 if ((table.Namespace != table.DataSet.Namespace)) {
  157.                     this.Namespace = table.Namespace;
  158.                 }
  159.                 this.Prefix = table.Prefix;
  160.                 this.MinimumCapacity = table.MinimumCapacity;
  161.                 this.DisplayExpression = table.DisplayExpression;
  162.             }
  163.             
  164.             [System.ComponentModel.Browsable(false)]
  165.             public int Count {
  166.                 get {
  167.                     return this.Rows.Count;
  168.                 }
  169.             }
  170.             
  171.             internal DataColumn 床号Column {
  172.                 get {
  173.                     return this.column床号;
  174.                 }
  175.             }
  176.             
  177.             internal DataColumn 栋号Column {
  178.                 get {
  179.                     return this.column栋号;
  180.                 }
  181.             }
  182.             
  183.             internal DataColumn 进出实况Column {
  184.                 get {
  185.                     return this.column进出实况;
  186.                 }
  187.             }
  188.             
  189.             public _TableRow this[int index] {
  190.                 get {
  191.                     return ((_TableRow)(this.Rows[index]));
  192.                 }
  193.             }
  194.             
  195.             public event _TableRowChangeEventHandler _TableRowChanged;
  196.             
  197.             public event _TableRowChangeEventHandler _TableRowChanging;
  198.             
  199.             public event _TableRowChangeEventHandler _TableRowDeleted;
  200.             
  201.             public event _TableRowChangeEventHandler _TableRowDeleting;
  202.             
  203.             public void Add_TableRow(_TableRow row) {
  204.                 this.Rows.Add(row);
  205.             }
  206.             
  207.             public _TableRow Add_TableRow(string 床号, string 栋号, string 进出实况) {
  208.                 _TableRow row_TableRow = ((_TableRow)(this.NewRow()));
  209.                 row_TableRow.ItemArray = new object[] {
  210.                         床号,
  211.                         栋号,
  212.                         进出实况};
  213.                 this.Rows.Add(row_TableRow);
  214.                 return row_TableRow;
  215.             }
  216.             
  217.             public System.Collections.IEnumerator GetEnumerator() {
  218.                 return this.Rows.GetEnumerator();
  219.             }
  220.             
  221.             public override DataTable Clone() {
  222.                 _TableDataTable cln = ((_TableDataTable)(base.Clone()));
  223.                 cln.InitVars();
  224.                 return cln;
  225.             }
  226.             
  227.             protected override DataTable CreateInstance() {
  228.                 return new _TableDataTable();
  229.             }
  230.             
  231.             internal void InitVars() {
  232.                 this.column床号 = this.Columns["床号"];
  233.                 this.column栋号 = this.Columns["栋号"];
  234.                 this.column进出实况 = this.Columns["进出实况"];
  235.             }
  236.             
  237.             private void InitClass() {
  238.                 this.column床号 = new DataColumn("床号", typeof(string), null, System.Data.MappingType.Element);
  239.                 this.Columns.Add(this.column床号);
  240.                 this.column栋号 = new DataColumn("栋号", typeof(string), null, System.Data.MappingType.Element);
  241.                 this.Columns.Add(this.column栋号);
  242.                 this.column进出实况 = new DataColumn("进出实况", typeof(string), null, System.Data.MappingType.Element);
  243.                 this.Columns.Add(this.column进出实况);
  244.             }
  245.             
  246.             public _TableRow New_TableRow() {
  247.                 return ((_TableRow)(this.NewRow()));
  248.             }
  249.             
  250.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  251.                 return new _TableRow(builder);
  252.             }
  253.             
  254.             protected override System.Type GetRowType() {
  255.                 return typeof(_TableRow);
  256.             }
  257.             
  258.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  259.                 base.OnRowChanged(e);
  260.                 if ((this._TableRowChanged != null)) {
  261.                     this._TableRowChanged(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
  262.                 }
  263.             }
  264.             
  265.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  266.                 base.OnRowChanging(e);
  267.                 if ((this._TableRowChanging != null)) {
  268.                     this._TableRowChanging(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
  269.                 }
  270.             }
  271.             
  272.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  273.                 base.OnRowDeleted(e);
  274.                 if ((this._TableRowDeleted != null)) {
  275.                     this._TableRowDeleted(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
  276.                 }
  277.             }
  278.             
  279.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  280.                 base.OnRowDeleting(e);
  281.                 if ((this._TableRowDeleting != null)) {
  282.                     this._TableRowDeleting(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
  283.                 }
  284.             }
  285.             
  286.             public void Remove_TableRow(_TableRow row) {
  287.                 this.Rows.Remove(row);
  288.             }
  289.         }
  290.         
  291.         [System.Diagnostics.DebuggerStepThrough()]
  292.         public class _TableRow : DataRow {
  293.             
  294.             private _TableDataTable table_Table;
  295.             
  296.             internal _TableRow(DataRowBuilder rb) : 
  297.                     base(rb) {
  298.                 this.table_Table = ((_TableDataTable)(this.Table));
  299.             }
  300.             
  301.             public string 床号 {
  302.                 get {
  303.                     try {
  304.                         return ((string)(this[this.table_Table.床号Column]));
  305.                     }
  306.                     catch (InvalidCastException e) {
  307.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  308.                     }
  309.                 }
  310.                 set {
  311.                     this[this.table_Table.床号Column] = value;
  312.                 }
  313.             }
  314.             
  315.             public string 栋号 {
  316.                 get {
  317.                     try {
  318.                         return ((string)(this[this.table_Table.栋号Column]));
  319.                     }
  320.                     catch (InvalidCastException e) {
  321.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  322.                     }
  323.                 }
  324.                 set {
  325.                     this[this.table_Table.栋号Column] = value;
  326.                 }
  327.             }
  328.             
  329.             public string 进出实况 {
  330.                 get {
  331.                     try {
  332.                         return ((string)(this[this.table_Table.进出实况Column]));
  333.                     }
  334.                     catch (InvalidCastException e) {
  335.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  336.                     }
  337.                 }
  338.                 set {
  339.                     this[this.table_Table.进出实况Column] = value;
  340.                 }
  341.             }
  342.             
  343.             public bool Is床号Null() {
  344.                 return this.IsNull(this.table_Table.床号Column);
  345.             }
  346.             
  347.             public void Set床号Null() {
  348.                 this[this.table_Table.床号Column] = System.Convert.DBNull;
  349.             }
  350.             
  351.             public bool Is栋号Null() {
  352.                 return this.IsNull(this.table_Table.栋号Column);
  353.             }
  354.             
  355.             public void Set栋号Null() {
  356.                 this[this.table_Table.栋号Column] = System.Convert.DBNull;
  357.             }
  358.             
  359.             public bool Is进出实况Null() {
  360.                 return this.IsNull(this.table_Table.进出实况Column);
  361.             }
  362.             
  363.             public void Set进出实况Null() {
  364.                 this[this.table_Table.进出实况Column] = System.Convert.DBNull;
  365.             }
  366.         }
  367.         
  368.         [System.Diagnostics.DebuggerStepThrough()]
  369.         public class _TableRowChangeEvent : EventArgs {
  370.             
  371.             private _TableRow eventRow;
  372.             
  373.             private DataRowAction eventAction;
  374.             
  375.             public _TableRowChangeEvent(_TableRow row, DataRowAction action) {
  376.                 this.eventRow = row;
  377.                 this.eventAction = action;
  378.             }
  379.             
  380.             public _TableRow Row {
  381.                 get {
  382.                     return this.eventRow;
  383.                 }
  384.             }
  385.             
  386.             public DataRowAction Action {
  387.                 get {
  388.                     return this.eventAction;
  389.                 }
  390.             }
  391.         }
  392.     }
  393. }