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

医药行业

开发平台:

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