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

企业管理

开发平台:

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 组织机构编码表DataTable table组织机构编码表;
  24.         
  25.         public DataSet2() {
  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 DataSet2(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["组织机构编码表"] != null)) {
  38.                     this.Tables.Add(new 组织机构编码表DataTable(ds.Tables["组织机构编码表"]));
  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 组织机构编码表DataTable 组织机构编码表 {
  61.             get {
  62.                 return this.table组织机构编码表;
  63.             }
  64.         }
  65.         
  66.         public override DataSet Clone() {
  67.             DataSet2 cln = ((DataSet2)(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["组织机构编码表"] != null)) {
  85.                 this.Tables.Add(new 组织机构编码表DataTable(ds.Tables["组织机构编码表"]));
  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组织机构编码表 = ((组织机构编码表DataTable)(this.Tables["组织机构编码表"]));
  106.             if ((this.table组织机构编码表 != null)) {
  107.                 this.table组织机构编码表.InitVars();
  108.             }
  109.         }
  110.         
  111.         private void InitClass() {
  112.             this.DataSetName = "DataSet2";
  113.             this.Prefix = "";
  114.             this.Namespace = "http://www.tempuri.org/DataSet2.xsd";
  115.             this.Locale = new System.Globalization.CultureInfo("zh-CN");
  116.             this.CaseSensitive = false;
  117.             this.EnforceConstraints = true;
  118.             this.table组织机构编码表 = new 组织机构编码表DataTable();
  119.             this.Tables.Add(this.table组织机构编码表);
  120.         }
  121.         
  122.         private bool ShouldSerialize组织机构编码表() {
  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 组织机构编码表RowChangeEventHandler(object sender, 组织机构编码表RowChangeEvent e);
  133.         
  134.         [System.Diagnostics.DebuggerStepThrough()]
  135.         public class 组织机构编码表DataTable : 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 组织机构编码表DataTable() : 
  154.                     base("组织机构编码表") {
  155.                 this.InitClass();
  156.             }
  157.             
  158.             internal 组织机构编码表DataTable(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 组织机构编码表Row this[int index] {
  230.                 get {
  231.                     return ((组织机构编码表Row)(this.Rows[index]));
  232.                 }
  233.             }
  234.             
  235.             public event 组织机构编码表RowChangeEventHandler 组织机构编码表RowChanged;
  236.             
  237.             public event 组织机构编码表RowChangeEventHandler 组织机构编码表RowChanging;
  238.             
  239.             public event 组织机构编码表RowChangeEventHandler 组织机构编码表RowDeleted;
  240.             
  241.             public event 组织机构编码表RowChangeEventHandler 组织机构编码表RowDeleting;
  242.             
  243.             public void Add组织机构编码表Row(组织机构编码表Row row) {
  244.                 this.Rows.Add(row);
  245.             }
  246.             
  247.             public 组织机构编码表Row Add组织机构编码表Row(string 单位名称, string 拼音编码, string 单位地址, string 单位电话号码, string 开户银行, string 帐号, string 开户全称, string 单位编号) {
  248.                 组织机构编码表Row row组织机构编码表Row = ((组织机构编码表Row)(this.NewRow()));
  249.                 row组织机构编码表Row.ItemArray = new object[] {
  250.                         单位名称,
  251.                         拼音编码,
  252.                         单位地址,
  253.                         单位电话号码,
  254.                         开户银行,
  255.                         帐号,
  256.                         开户全称,
  257.                         单位编号};
  258.                 this.Rows.Add(row组织机构编码表Row);
  259.                 return row组织机构编码表Row;
  260.             }
  261.             
  262.             public 组织机构编码表Row FindBy单位编号(string 单位编号) {
  263.                 return ((组织机构编码表Row)(this.Rows.Find(new object[] {
  264.                             单位编号})));
  265.             }
  266.             
  267.             public System.Collections.IEnumerator GetEnumerator() {
  268.                 return this.Rows.GetEnumerator();
  269.             }
  270.             
  271.             public override DataTable Clone() {
  272.                 组织机构编码表DataTable cln = ((组织机构编码表DataTable)(base.Clone()));
  273.                 cln.InitVars();
  274.                 return cln;
  275.             }
  276.             
  277.             protected override DataTable CreateInstance() {
  278.                 return new 组织机构编码表DataTable();
  279.             }
  280.             
  281.             internal void InitVars() {
  282.                 this.column单位名称 = this.Columns["单位名称"];
  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.             }
  291.             
  292.             private void InitClass() {
  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.column单位地址 = new DataColumn("单位地址", typeof(string), null, System.Data.MappingType.Element);
  298.                 this.Columns.Add(this.column单位地址);
  299.                 this.column单位电话号码 = new DataColumn("单位电话号码", typeof(string), null, System.Data.MappingType.Element);
  300.                 this.Columns.Add(this.column单位电话号码);
  301.                 this.column开户银行 = new DataColumn("开户银行", typeof(string), null, System.Data.MappingType.Element);
  302.                 this.Columns.Add(this.column开户银行);
  303.                 this.column帐号 = new DataColumn("帐号", typeof(string), null, System.Data.MappingType.Element);
  304.                 this.Columns.Add(this.column帐号);
  305.                 this.column开户全称 = new DataColumn("开户全称", typeof(string), null, System.Data.MappingType.Element);
  306.                 this.Columns.Add(this.column开户全称);
  307.                 this.column单位编号 = new DataColumn("单位编号", typeof(string), null, System.Data.MappingType.Element);
  308.                 this.Columns.Add(this.column单位编号);
  309.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  310.                                 this.column单位编号}, true));
  311.                 this.column单位编号.AllowDBNull = false;
  312.                 this.column单位编号.Unique = true;
  313.             }
  314.             
  315.             public 组织机构编码表Row New组织机构编码表Row() {
  316.                 return ((组织机构编码表Row)(this.NewRow()));
  317.             }
  318.             
  319.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  320.                 return new 组织机构编码表Row(builder);
  321.             }
  322.             
  323.             protected override System.Type GetRowType() {
  324.                 return typeof(组织机构编码表Row);
  325.             }
  326.             
  327.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  328.                 base.OnRowChanged(e);
  329.                 if ((this.组织机构编码表RowChanged != null)) {
  330.                     this.组织机构编码表RowChanged(this, new 组织机构编码表RowChangeEvent(((组织机构编码表Row)(e.Row)), e.Action));
  331.                 }
  332.             }
  333.             
  334.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  335.                 base.OnRowChanging(e);
  336.                 if ((this.组织机构编码表RowChanging != null)) {
  337.                     this.组织机构编码表RowChanging(this, new 组织机构编码表RowChangeEvent(((组织机构编码表Row)(e.Row)), e.Action));
  338.                 }
  339.             }
  340.             
  341.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  342.                 base.OnRowDeleted(e);
  343.                 if ((this.组织机构编码表RowDeleted != null)) {
  344.                     this.组织机构编码表RowDeleted(this, new 组织机构编码表RowChangeEvent(((组织机构编码表Row)(e.Row)), e.Action));
  345.                 }
  346.             }
  347.             
  348.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  349.                 base.OnRowDeleting(e);
  350.                 if ((this.组织机构编码表RowDeleting != null)) {
  351.                     this.组织机构编码表RowDeleting(this, new 组织机构编码表RowChangeEvent(((组织机构编码表Row)(e.Row)), e.Action));
  352.                 }
  353.             }
  354.             
  355.             public void Remove组织机构编码表Row(组织机构编码表Row row) {
  356.                 this.Rows.Remove(row);
  357.             }
  358.         }
  359.         
  360.         [System.Diagnostics.DebuggerStepThrough()]
  361.         public class 组织机构编码表Row : DataRow {
  362.             
  363.             private 组织机构编码表DataTable table组织机构编码表;
  364.             
  365.             internal 组织机构编码表Row(DataRowBuilder rb) : 
  366.                     base(rb) {
  367.                 this.table组织机构编码表 = ((组织机构编码表DataTable)(this.Table));
  368.             }
  369.             
  370.             public string 单位名称 {
  371.                 get {
  372.                     try {
  373.                         return ((string)(this[this.table组织机构编码表.单位名称Column]));
  374.                     }
  375.                     catch (InvalidCastException e) {
  376.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  377.                     }
  378.                 }
  379.                 set {
  380.                     this[this.table组织机构编码表.单位名称Column] = value;
  381.                 }
  382.             }
  383.             
  384.             public string 拼音编码 {
  385.                 get {
  386.                     try {
  387.                         return ((string)(this[this.table组织机构编码表.拼音编码Column]));
  388.                     }
  389.                     catch (InvalidCastException e) {
  390.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  391.                     }
  392.                 }
  393.                 set {
  394.                     this[this.table组织机构编码表.拼音编码Column] = value;
  395.                 }
  396.             }
  397.             
  398.             public string 单位地址 {
  399.                 get {
  400.                     try {
  401.                         return ((string)(this[this.table组织机构编码表.单位地址Column]));
  402.                     }
  403.                     catch (InvalidCastException e) {
  404.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  405.                     }
  406.                 }
  407.                 set {
  408.                     this[this.table组织机构编码表.单位地址Column] = value;
  409.                 }
  410.             }
  411.             
  412.             public string 单位电话号码 {
  413.                 get {
  414.                     try {
  415.                         return ((string)(this[this.table组织机构编码表.单位电话号码Column]));
  416.                     }
  417.                     catch (InvalidCastException e) {
  418.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  419.                     }
  420.                 }
  421.                 set {
  422.                     this[this.table组织机构编码表.单位电话号码Column] = value;
  423.                 }
  424.             }
  425.             
  426.             public string 开户银行 {
  427.                 get {
  428.                     try {
  429.                         return ((string)(this[this.table组织机构编码表.开户银行Column]));
  430.                     }
  431.                     catch (InvalidCastException e) {
  432.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  433.                     }
  434.                 }
  435.                 set {
  436.                     this[this.table组织机构编码表.开户银行Column] = value;
  437.                 }
  438.             }
  439.             
  440.             public string 帐号 {
  441.                 get {
  442.                     try {
  443.                         return ((string)(this[this.table组织机构编码表.帐号Column]));
  444.                     }
  445.                     catch (InvalidCastException e) {
  446.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  447.                     }
  448.                 }
  449.                 set {
  450.                     this[this.table组织机构编码表.帐号Column] = value;
  451.                 }
  452.             }
  453.             
  454.             public string 开户全称 {
  455.                 get {
  456.                     try {
  457.                         return ((string)(this[this.table组织机构编码表.开户全称Column]));
  458.                     }
  459.                     catch (InvalidCastException e) {
  460.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  461.                     }
  462.                 }
  463.                 set {
  464.                     this[this.table组织机构编码表.开户全称Column] = value;
  465.                 }
  466.             }
  467.             
  468.             public string 单位编号 {
  469.                 get {
  470.                     return ((string)(this[this.table组织机构编码表.单位编号Column]));
  471.                 }
  472.                 set {
  473.                     this[this.table组织机构编码表.单位编号Column] = value;
  474.                 }
  475.             }
  476.             
  477.             public bool Is单位名称Null() {
  478.                 return this.IsNull(this.table组织机构编码表.单位名称Column);
  479.             }
  480.             
  481.             public void Set单位名称Null() {
  482.                 this[this.table组织机构编码表.单位名称Column] = System.Convert.DBNull;
  483.             }
  484.             
  485.             public bool Is拼音编码Null() {
  486.                 return this.IsNull(this.table组织机构编码表.拼音编码Column);
  487.             }
  488.             
  489.             public void Set拼音编码Null() {
  490.                 this[this.table组织机构编码表.拼音编码Column] = System.Convert.DBNull;
  491.             }
  492.             
  493.             public bool Is单位地址Null() {
  494.                 return this.IsNull(this.table组织机构编码表.单位地址Column);
  495.             }
  496.             
  497.             public void Set单位地址Null() {
  498.                 this[this.table组织机构编码表.单位地址Column] = System.Convert.DBNull;
  499.             }
  500.             
  501.             public bool Is单位电话号码Null() {
  502.                 return this.IsNull(this.table组织机构编码表.单位电话号码Column);
  503.             }
  504.             
  505.             public void Set单位电话号码Null() {
  506.                 this[this.table组织机构编码表.单位电话号码Column] = System.Convert.DBNull;
  507.             }
  508.             
  509.             public bool Is开户银行Null() {
  510.                 return this.IsNull(this.table组织机构编码表.开户银行Column);
  511.             }
  512.             
  513.             public void Set开户银行Null() {
  514.                 this[this.table组织机构编码表.开户银行Column] = System.Convert.DBNull;
  515.             }
  516.             
  517.             public bool Is帐号Null() {
  518.                 return this.IsNull(this.table组织机构编码表.帐号Column);
  519.             }
  520.             
  521.             public void Set帐号Null() {
  522.                 this[this.table组织机构编码表.帐号Column] = System.Convert.DBNull;
  523.             }
  524.             
  525.             public bool Is开户全称Null() {
  526.                 return this.IsNull(this.table组织机构编码表.开户全称Column);
  527.             }
  528.             
  529.             public void Set开户全称Null() {
  530.                 this[this.table组织机构编码表.开户全称Column] = System.Convert.DBNull;
  531.             }
  532.         }
  533.         
  534.         [System.Diagnostics.DebuggerStepThrough()]
  535.         public class 组织机构编码表RowChangeEvent : EventArgs {
  536.             
  537.             private 组织机构编码表Row eventRow;
  538.             
  539.             private DataRowAction eventAction;
  540.             
  541.             public 组织机构编码表RowChangeEvent(组织机构编码表Row row, DataRowAction action) {
  542.                 this.eventRow = row;
  543.                 this.eventAction = action;
  544.             }
  545.             
  546.             public 组织机构编码表Row Row {
  547.                 get {
  548.                     return this.eventRow;
  549.                 }
  550.             }
  551.             
  552.             public DataRowAction Action {
  553.                 get {
  554.                     return this.eventAction;
  555.                 }
  556.             }
  557.         }
  558.     }
  559. }