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

医药行业

开发平台:

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 sda3 : DataSet {
  22.         
  23.         private _TableDataTable table_Table;
  24.         
  25.         public sda3() {
  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 sda3(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.             sda3 cln = ((sda3)(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 = "sda3";
  113.             this.Prefix = "";
  114.             this.Namespace = "http://www.tempuri.org/sda3.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.             private DataColumn column性别;
  144.             
  145.             private DataColumn column年龄;
  146.             
  147.             private DataColumn column级别;
  148.             
  149.             private DataColumn column负责人;
  150.             
  151.             private DataColumn column进出实况;
  152.             
  153.             internal _TableDataTable() : 
  154.                     base("Table") {
  155.                 this.InitClass();
  156.             }
  157.             
  158.             internal _TableDataTable(DataTable table) : 
  159.                     base(table.TableName) {
  160.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  161.                     this.CaseSensitive = table.CaseSensitive;
  162.                 }
  163.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  164.                     this.Locale = table.Locale;
  165.                 }
  166.                 if ((table.Namespace != table.DataSet.Namespace)) {
  167.                     this.Namespace = table.Namespace;
  168.                 }
  169.                 this.Prefix = table.Prefix;
  170.                 this.MinimumCapacity = table.MinimumCapacity;
  171.                 this.DisplayExpression = table.DisplayExpression;
  172.             }
  173.             
  174.             [System.ComponentModel.Browsable(false)]
  175.             public int Count {
  176.                 get {
  177.                     return this.Rows.Count;
  178.                 }
  179.             }
  180.             
  181.             internal DataColumn 挂号号码Column {
  182.                 get {
  183.                     return this.column挂号号码;
  184.                 }
  185.             }
  186.             
  187.             internal DataColumn 床号Column {
  188.                 get {
  189.                     return this.column床号;
  190.                 }
  191.             }
  192.             
  193.             internal DataColumn 姓名Column {
  194.                 get {
  195.                     return this.column姓名;
  196.                 }
  197.             }
  198.             
  199.             internal DataColumn 性别Column {
  200.                 get {
  201.                     return this.column性别;
  202.                 }
  203.             }
  204.             
  205.             internal DataColumn 年龄Column {
  206.                 get {
  207.                     return this.column年龄;
  208.                 }
  209.             }
  210.             
  211.             internal DataColumn 级别Column {
  212.                 get {
  213.                     return this.column级别;
  214.                 }
  215.             }
  216.             
  217.             internal DataColumn 负责人Column {
  218.                 get {
  219.                     return this.column负责人;
  220.                 }
  221.             }
  222.             
  223.             internal DataColumn 进出实况Column {
  224.                 get {
  225.                     return this.column进出实况;
  226.                 }
  227.             }
  228.             
  229.             public _TableRow this[int index] {
  230.                 get {
  231.                     return ((_TableRow)(this.Rows[index]));
  232.                 }
  233.             }
  234.             
  235.             public event _TableRowChangeEventHandler _TableRowChanged;
  236.             
  237.             public event _TableRowChangeEventHandler _TableRowChanging;
  238.             
  239.             public event _TableRowChangeEventHandler _TableRowDeleted;
  240.             
  241.             public event _TableRowChangeEventHandler _TableRowDeleting;
  242.             
  243.             public void Add_TableRow(_TableRow row) {
  244.                 this.Rows.Add(row);
  245.             }
  246.             
  247.             public _TableRow Add_TableRow(string 挂号号码, string 床号, string 姓名, string 性别, string 年龄, string 级别, string 负责人, string 进出实况) {
  248.                 _TableRow row_TableRow = ((_TableRow)(this.NewRow()));
  249.                 row_TableRow.ItemArray = new object[] {
  250.                         挂号号码,
  251.                         床号,
  252.                         姓名,
  253.                         性别,
  254.                         年龄,
  255.                         级别,
  256.                         负责人,
  257.                         进出实况};
  258.                 this.Rows.Add(row_TableRow);
  259.                 return row_TableRow;
  260.             }
  261.             
  262.             public _TableRow FindBy挂号号码床号(string 挂号号码, string 床号) {
  263.                 return ((_TableRow)(this.Rows.Find(new object[] {
  264.                             挂号号码,
  265.                             床号})));
  266.             }
  267.             
  268.             public System.Collections.IEnumerator GetEnumerator() {
  269.                 return this.Rows.GetEnumerator();
  270.             }
  271.             
  272.             public override DataTable Clone() {
  273.                 _TableDataTable cln = ((_TableDataTable)(base.Clone()));
  274.                 cln.InitVars();
  275.                 return cln;
  276.             }
  277.             
  278.             protected override DataTable CreateInstance() {
  279.                 return new _TableDataTable();
  280.             }
  281.             
  282.             internal void InitVars() {
  283.                 this.column挂号号码 = this.Columns["挂号号码"];
  284.                 this.column床号 = this.Columns["床号"];
  285.                 this.column姓名 = this.Columns["姓名"];
  286.                 this.column性别 = this.Columns["性别"];
  287.                 this.column年龄 = this.Columns["年龄"];
  288.                 this.column级别 = this.Columns["级别"];
  289.                 this.column负责人 = this.Columns["负责人"];
  290.                 this.column进出实况 = this.Columns["进出实况"];
  291.             }
  292.             
  293.             private void InitClass() {
  294.                 this.column挂号号码 = new DataColumn("挂号号码", typeof(string), null, System.Data.MappingType.Element);
  295.                 this.Columns.Add(this.column挂号号码);
  296.                 this.column床号 = new DataColumn("床号", typeof(string), null, System.Data.MappingType.Element);
  297.                 this.Columns.Add(this.column床号);
  298.                 this.column姓名 = new DataColumn("姓名", typeof(string), null, System.Data.MappingType.Element);
  299.                 this.Columns.Add(this.column姓名);
  300.                 this.column性别 = new DataColumn("性别", typeof(string), null, System.Data.MappingType.Element);
  301.                 this.Columns.Add(this.column性别);
  302.                 this.column年龄 = new DataColumn("年龄", typeof(string), null, System.Data.MappingType.Element);
  303.                 this.Columns.Add(this.column年龄);
  304.                 this.column级别 = new DataColumn("级别", typeof(string), null, System.Data.MappingType.Element);
  305.                 this.Columns.Add(this.column级别);
  306.                 this.column负责人 = new DataColumn("负责人", typeof(string), null, System.Data.MappingType.Element);
  307.                 this.Columns.Add(this.column负责人);
  308.                 this.column进出实况 = new DataColumn("进出实况", typeof(string), null, System.Data.MappingType.Element);
  309.                 this.Columns.Add(this.column进出实况);
  310.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  311.                                 this.column挂号号码,
  312.                                 this.column床号}, true));
  313.                 this.column挂号号码.AllowDBNull = false;
  314.                 this.column床号.AllowDBNull = false;
  315.             }
  316.             
  317.             public _TableRow New_TableRow() {
  318.                 return ((_TableRow)(this.NewRow()));
  319.             }
  320.             
  321.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  322.                 return new _TableRow(builder);
  323.             }
  324.             
  325.             protected override System.Type GetRowType() {
  326.                 return typeof(_TableRow);
  327.             }
  328.             
  329.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  330.                 base.OnRowChanged(e);
  331.                 if ((this._TableRowChanged != null)) {
  332.                     this._TableRowChanged(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
  333.                 }
  334.             }
  335.             
  336.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  337.                 base.OnRowChanging(e);
  338.                 if ((this._TableRowChanging != null)) {
  339.                     this._TableRowChanging(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
  340.                 }
  341.             }
  342.             
  343.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  344.                 base.OnRowDeleted(e);
  345.                 if ((this._TableRowDeleted != null)) {
  346.                     this._TableRowDeleted(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
  347.                 }
  348.             }
  349.             
  350.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  351.                 base.OnRowDeleting(e);
  352.                 if ((this._TableRowDeleting != null)) {
  353.                     this._TableRowDeleting(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
  354.                 }
  355.             }
  356.             
  357.             public void Remove_TableRow(_TableRow row) {
  358.                 this.Rows.Remove(row);
  359.             }
  360.         }
  361.         
  362.         [System.Diagnostics.DebuggerStepThrough()]
  363.         public class _TableRow : DataRow {
  364.             
  365.             private _TableDataTable table_Table;
  366.             
  367.             internal _TableRow(DataRowBuilder rb) : 
  368.                     base(rb) {
  369.                 this.table_Table = ((_TableDataTable)(this.Table));
  370.             }
  371.             
  372.             public string 挂号号码 {
  373.                 get {
  374.                     return ((string)(this[this.table_Table.挂号号码Column]));
  375.                 }
  376.                 set {
  377.                     this[this.table_Table.挂号号码Column] = value;
  378.                 }
  379.             }
  380.             
  381.             public string 床号 {
  382.                 get {
  383.                     return ((string)(this[this.table_Table.床号Column]));
  384.                 }
  385.                 set {
  386.                     this[this.table_Table.床号Column] = value;
  387.                 }
  388.             }
  389.             
  390.             public string 姓名 {
  391.                 get {
  392.                     try {
  393.                         return ((string)(this[this.table_Table.姓名Column]));
  394.                     }
  395.                     catch (InvalidCastException e) {
  396.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  397.                     }
  398.                 }
  399.                 set {
  400.                     this[this.table_Table.姓名Column] = value;
  401.                 }
  402.             }
  403.             
  404.             public string 性别 {
  405.                 get {
  406.                     try {
  407.                         return ((string)(this[this.table_Table.性别Column]));
  408.                     }
  409.                     catch (InvalidCastException e) {
  410.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  411.                     }
  412.                 }
  413.                 set {
  414.                     this[this.table_Table.性别Column] = value;
  415.                 }
  416.             }
  417.             
  418.             public string 年龄 {
  419.                 get {
  420.                     try {
  421.                         return ((string)(this[this.table_Table.年龄Column]));
  422.                     }
  423.                     catch (InvalidCastException e) {
  424.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  425.                     }
  426.                 }
  427.                 set {
  428.                     this[this.table_Table.年龄Column] = value;
  429.                 }
  430.             }
  431.             
  432.             public string 级别 {
  433.                 get {
  434.                     try {
  435.                         return ((string)(this[this.table_Table.级别Column]));
  436.                     }
  437.                     catch (InvalidCastException e) {
  438.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  439.                     }
  440.                 }
  441.                 set {
  442.                     this[this.table_Table.级别Column] = value;
  443.                 }
  444.             }
  445.             
  446.             public string 负责人 {
  447.                 get {
  448.                     try {
  449.                         return ((string)(this[this.table_Table.负责人Column]));
  450.                     }
  451.                     catch (InvalidCastException e) {
  452.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  453.                     }
  454.                 }
  455.                 set {
  456.                     this[this.table_Table.负责人Column] = value;
  457.                 }
  458.             }
  459.             
  460.             public string 进出实况 {
  461.                 get {
  462.                     try {
  463.                         return ((string)(this[this.table_Table.进出实况Column]));
  464.                     }
  465.                     catch (InvalidCastException e) {
  466.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  467.                     }
  468.                 }
  469.                 set {
  470.                     this[this.table_Table.进出实况Column] = value;
  471.                 }
  472.             }
  473.             
  474.             public bool Is姓名Null() {
  475.                 return this.IsNull(this.table_Table.姓名Column);
  476.             }
  477.             
  478.             public void Set姓名Null() {
  479.                 this[this.table_Table.姓名Column] = System.Convert.DBNull;
  480.             }
  481.             
  482.             public bool Is性别Null() {
  483.                 return this.IsNull(this.table_Table.性别Column);
  484.             }
  485.             
  486.             public void Set性别Null() {
  487.                 this[this.table_Table.性别Column] = System.Convert.DBNull;
  488.             }
  489.             
  490.             public bool Is年龄Null() {
  491.                 return this.IsNull(this.table_Table.年龄Column);
  492.             }
  493.             
  494.             public void Set年龄Null() {
  495.                 this[this.table_Table.年龄Column] = System.Convert.DBNull;
  496.             }
  497.             
  498.             public bool Is级别Null() {
  499.                 return this.IsNull(this.table_Table.级别Column);
  500.             }
  501.             
  502.             public void Set级别Null() {
  503.                 this[this.table_Table.级别Column] = System.Convert.DBNull;
  504.             }
  505.             
  506.             public bool Is负责人Null() {
  507.                 return this.IsNull(this.table_Table.负责人Column);
  508.             }
  509.             
  510.             public void Set负责人Null() {
  511.                 this[this.table_Table.负责人Column] = System.Convert.DBNull;
  512.             }
  513.             
  514.             public bool Is进出实况Null() {
  515.                 return this.IsNull(this.table_Table.进出实况Column);
  516.             }
  517.             
  518.             public void Set进出实况Null() {
  519.                 this[this.table_Table.进出实况Column] = System.Convert.DBNull;
  520.             }
  521.         }
  522.         
  523.         [System.Diagnostics.DebuggerStepThrough()]
  524.         public class _TableRowChangeEvent : EventArgs {
  525.             
  526.             private _TableRow eventRow;
  527.             
  528.             private DataRowAction eventAction;
  529.             
  530.             public _TableRowChangeEvent(_TableRow row, DataRowAction action) {
  531.                 this.eventRow = row;
  532.                 this.eventAction = action;
  533.             }
  534.             
  535.             public _TableRow Row {
  536.                 get {
  537.                     return this.eventRow;
  538.                 }
  539.             }
  540.             
  541.             public DataRowAction Action {
  542.                 get {
  543.                     return this.eventAction;
  544.                 }
  545.             }
  546.         }
  547.     }
  548. }