DataSet2.cs
资源名称:VCSDB.rar [点击查看]
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:24k
源码类别:
企业管理
开发平台:
C#
- //------------------------------------------------------------------------------
- // <autogenerated>
- // This code was generated by a tool.
- // Runtime Version: 1.1.4322.573
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </autogenerated>
- //------------------------------------------------------------------------------
- namespace 人力资源管理系统 {
- using System;
- using System.Data;
- using System.Xml;
- using System.Runtime.Serialization;
- [Serializable()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- [System.Diagnostics.DebuggerStepThrough()]
- [System.ComponentModel.ToolboxItem(true)]
- public class DataSet2 : DataSet {
- private 组织机构编码表DataTable table组织机构编码表;
- public DataSet2() {
- this.InitClass();
- System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- this.Tables.CollectionChanged += schemaChangedHandler;
- this.Relations.CollectionChanged += schemaChangedHandler;
- }
- protected DataSet2(SerializationInfo info, StreamingContext context) {
- string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
- if ((strSchema != null)) {
- DataSet ds = new DataSet();
- ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
- if ((ds.Tables["组织机构编码表"] != null)) {
- this.Tables.Add(new 组织机构编码表DataTable(ds.Tables["组织机构编码表"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- else {
- this.InitClass();
- }
- this.GetSerializationData(info, context);
- System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- this.Tables.CollectionChanged += schemaChangedHandler;
- this.Relations.CollectionChanged += schemaChangedHandler;
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 组织机构编码表DataTable 组织机构编码表 {
- get {
- return this.table组织机构编码表;
- }
- }
- public override DataSet Clone() {
- DataSet2 cln = ((DataSet2)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override bool ShouldSerializeTables() {
- return false;
- }
- protected override bool ShouldSerializeRelations() {
- return false;
- }
- protected override void ReadXmlSerializable(XmlReader reader) {
- this.Reset();
- DataSet ds = new DataSet();
- ds.ReadXml(reader);
- if ((ds.Tables["组织机构编码表"] != null)) {
- this.Tables.Add(new 组织机构编码表DataTable(ds.Tables["组织机构编码表"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
- System.IO.MemoryStream stream = new System.IO.MemoryStream();
- this.WriteXmlSchema(new XmlTextWriter(stream, null));
- stream.Position = 0;
- return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
- }
- internal void InitVars() {
- this.table组织机构编码表 = ((组织机构编码表DataTable)(this.Tables["组织机构编码表"]));
- if ((this.table组织机构编码表 != null)) {
- this.table组织机构编码表.InitVars();
- }
- }
- private void InitClass() {
- this.DataSetName = "DataSet2";
- this.Prefix = "";
- this.Namespace = "http://www.tempuri.org/DataSet2.xsd";
- this.Locale = new System.Globalization.CultureInfo("zh-CN");
- this.CaseSensitive = false;
- this.EnforceConstraints = true;
- this.table组织机构编码表 = new 组织机构编码表DataTable();
- this.Tables.Add(this.table组织机构编码表);
- }
- private bool ShouldSerialize组织机构编码表() {
- return false;
- }
- private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
- if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
- this.InitVars();
- }
- }
- public delegate void 组织机构编码表RowChangeEventHandler(object sender, 组织机构编码表RowChangeEvent e);
- [System.Diagnostics.DebuggerStepThrough()]
- public class 组织机构编码表DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column单位名称;
- private DataColumn column拼音编码;
- private DataColumn column单位地址;
- private DataColumn column单位电话号码;
- private DataColumn column开户银行;
- private DataColumn column帐号;
- private DataColumn column开户全称;
- private DataColumn column单位编号;
- internal 组织机构编码表DataTable() :
- base("组织机构编码表") {
- this.InitClass();
- }
- internal 组织机构编码表DataTable(DataTable table) :
- base(table.TableName) {
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- this.DisplayExpression = table.DisplayExpression;
- }
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- internal DataColumn 单位名称Column {
- get {
- return this.column单位名称;
- }
- }
- internal DataColumn 拼音编码Column {
- get {
- return this.column拼音编码;
- }
- }
- internal DataColumn 单位地址Column {
- get {
- return this.column单位地址;
- }
- }
- internal DataColumn 单位电话号码Column {
- get {
- return this.column单位电话号码;
- }
- }
- internal DataColumn 开户银行Column {
- get {
- return this.column开户银行;
- }
- }
- internal DataColumn 帐号Column {
- get {
- return this.column帐号;
- }
- }
- internal DataColumn 开户全称Column {
- get {
- return this.column开户全称;
- }
- }
- internal DataColumn 单位编号Column {
- get {
- return this.column单位编号;
- }
- }
- public 组织机构编码表Row this[int index] {
- get {
- return ((组织机构编码表Row)(this.Rows[index]));
- }
- }
- public event 组织机构编码表RowChangeEventHandler 组织机构编码表RowChanged;
- public event 组织机构编码表RowChangeEventHandler 组织机构编码表RowChanging;
- public event 组织机构编码表RowChangeEventHandler 组织机构编码表RowDeleted;
- public event 组织机构编码表RowChangeEventHandler 组织机构编码表RowDeleting;
- public void Add组织机构编码表Row(组织机构编码表Row row) {
- this.Rows.Add(row);
- }
- public 组织机构编码表Row Add组织机构编码表Row(string 单位名称, string 拼音编码, string 单位地址, string 单位电话号码, string 开户银行, string 帐号, string 开户全称, string 单位编号) {
- 组织机构编码表Row row组织机构编码表Row = ((组织机构编码表Row)(this.NewRow()));
- row组织机构编码表Row.ItemArray = new object[] {
- 单位名称,
- 拼音编码,
- 单位地址,
- 单位电话号码,
- 开户银行,
- 帐号,
- 开户全称,
- 单位编号};
- this.Rows.Add(row组织机构编码表Row);
- return row组织机构编码表Row;
- }
- public 组织机构编码表Row FindBy单位编号(string 单位编号) {
- return ((组织机构编码表Row)(this.Rows.Find(new object[] {
- 单位编号})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 组织机构编码表DataTable cln = ((组织机构编码表DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 组织机构编码表DataTable();
- }
- internal void InitVars() {
- this.column单位名称 = this.Columns["单位名称"];
- this.column拼音编码 = this.Columns["拼音编码"];
- this.column单位地址 = this.Columns["单位地址"];
- this.column单位电话号码 = this.Columns["单位电话号码"];
- this.column开户银行 = this.Columns["开户银行"];
- this.column帐号 = this.Columns["帐号"];
- this.column开户全称 = this.Columns["开户全称"];
- this.column单位编号 = this.Columns["单位编号"];
- }
- private void InitClass() {
- this.column单位名称 = new DataColumn("单位名称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column单位名称);
- this.column拼音编码 = new DataColumn("拼音编码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column拼音编码);
- this.column单位地址 = new DataColumn("单位地址", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column单位地址);
- this.column单位电话号码 = new DataColumn("单位电话号码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column单位电话号码);
- this.column开户银行 = new DataColumn("开户银行", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column开户银行);
- this.column帐号 = new DataColumn("帐号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column帐号);
- this.column开户全称 = new DataColumn("开户全称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column开户全称);
- this.column单位编号 = new DataColumn("单位编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column单位编号);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column单位编号}, true));
- this.column单位编号.AllowDBNull = false;
- this.column单位编号.Unique = true;
- }
- public 组织机构编码表Row New组织机构编码表Row() {
- return ((组织机构编码表Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 组织机构编码表Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(组织机构编码表Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.组织机构编码表RowChanged != null)) {
- this.组织机构编码表RowChanged(this, new 组织机构编码表RowChangeEvent(((组织机构编码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.组织机构编码表RowChanging != null)) {
- this.组织机构编码表RowChanging(this, new 组织机构编码表RowChangeEvent(((组织机构编码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.组织机构编码表RowDeleted != null)) {
- this.组织机构编码表RowDeleted(this, new 组织机构编码表RowChangeEvent(((组织机构编码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.组织机构编码表RowDeleting != null)) {
- this.组织机构编码表RowDeleting(this, new 组织机构编码表RowChangeEvent(((组织机构编码表Row)(e.Row)), e.Action));
- }
- }
- public void Remove组织机构编码表Row(组织机构编码表Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 组织机构编码表Row : DataRow {
- private 组织机构编码表DataTable table组织机构编码表;
- internal 组织机构编码表Row(DataRowBuilder rb) :
- base(rb) {
- this.table组织机构编码表 = ((组织机构编码表DataTable)(this.Table));
- }
- public string 单位名称 {
- get {
- try {
- return ((string)(this[this.table组织机构编码表.单位名称Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table组织机构编码表.单位名称Column] = value;
- }
- }
- public string 拼音编码 {
- get {
- try {
- return ((string)(this[this.table组织机构编码表.拼音编码Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table组织机构编码表.拼音编码Column] = value;
- }
- }
- public string 单位地址 {
- get {
- try {
- return ((string)(this[this.table组织机构编码表.单位地址Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table组织机构编码表.单位地址Column] = value;
- }
- }
- public string 单位电话号码 {
- get {
- try {
- return ((string)(this[this.table组织机构编码表.单位电话号码Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table组织机构编码表.单位电话号码Column] = value;
- }
- }
- public string 开户银行 {
- get {
- try {
- return ((string)(this[this.table组织机构编码表.开户银行Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table组织机构编码表.开户银行Column] = value;
- }
- }
- public string 帐号 {
- get {
- try {
- return ((string)(this[this.table组织机构编码表.帐号Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table组织机构编码表.帐号Column] = value;
- }
- }
- public string 开户全称 {
- get {
- try {
- return ((string)(this[this.table组织机构编码表.开户全称Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table组织机构编码表.开户全称Column] = value;
- }
- }
- public string 单位编号 {
- get {
- return ((string)(this[this.table组织机构编码表.单位编号Column]));
- }
- set {
- this[this.table组织机构编码表.单位编号Column] = value;
- }
- }
- public bool Is单位名称Null() {
- return this.IsNull(this.table组织机构编码表.单位名称Column);
- }
- public void Set单位名称Null() {
- this[this.table组织机构编码表.单位名称Column] = System.Convert.DBNull;
- }
- public bool Is拼音编码Null() {
- return this.IsNull(this.table组织机构编码表.拼音编码Column);
- }
- public void Set拼音编码Null() {
- this[this.table组织机构编码表.拼音编码Column] = System.Convert.DBNull;
- }
- public bool Is单位地址Null() {
- return this.IsNull(this.table组织机构编码表.单位地址Column);
- }
- public void Set单位地址Null() {
- this[this.table组织机构编码表.单位地址Column] = System.Convert.DBNull;
- }
- public bool Is单位电话号码Null() {
- return this.IsNull(this.table组织机构编码表.单位电话号码Column);
- }
- public void Set单位电话号码Null() {
- this[this.table组织机构编码表.单位电话号码Column] = System.Convert.DBNull;
- }
- public bool Is开户银行Null() {
- return this.IsNull(this.table组织机构编码表.开户银行Column);
- }
- public void Set开户银行Null() {
- this[this.table组织机构编码表.开户银行Column] = System.Convert.DBNull;
- }
- public bool Is帐号Null() {
- return this.IsNull(this.table组织机构编码表.帐号Column);
- }
- public void Set帐号Null() {
- this[this.table组织机构编码表.帐号Column] = System.Convert.DBNull;
- }
- public bool Is开户全称Null() {
- return this.IsNull(this.table组织机构编码表.开户全称Column);
- }
- public void Set开户全称Null() {
- this[this.table组织机构编码表.开户全称Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 组织机构编码表RowChangeEvent : EventArgs {
- private 组织机构编码表Row eventRow;
- private DataRowAction eventAction;
- public 组织机构编码表RowChangeEvent(组织机构编码表Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 组织机构编码表Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- }
- }