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

企业管理

开发平台:

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 DataSet11 : DataSet {
  22.         
  23.         private 个人所得税表DataTable table个人所得税表;
  24.         
  25.         private 职员奖励表DataTable table职员奖励表;
  26.         
  27.         public DataSet11() {
  28.             this.InitClass();
  29.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  30.             this.Tables.CollectionChanged += schemaChangedHandler;
  31.             this.Relations.CollectionChanged += schemaChangedHandler;
  32.         }
  33.         
  34.         protected DataSet11(SerializationInfo info, StreamingContext context) {
  35.             string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  36.             if ((strSchema != null)) {
  37.                 DataSet ds = new DataSet();
  38.                 ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
  39.                 if ((ds.Tables["个人所得税表"] != null)) {
  40.                     this.Tables.Add(new 个人所得税表DataTable(ds.Tables["个人所得税表"]));
  41.                 }
  42.                 if ((ds.Tables["职员奖励表"] != null)) {
  43.                     this.Tables.Add(new 职员奖励表DataTable(ds.Tables["职员奖励表"]));
  44.                 }
  45.                 this.DataSetName = ds.DataSetName;
  46.                 this.Prefix = ds.Prefix;
  47.                 this.Namespace = ds.Namespace;
  48.                 this.Locale = ds.Locale;
  49.                 this.CaseSensitive = ds.CaseSensitive;
  50.                 this.EnforceConstraints = ds.EnforceConstraints;
  51.                 this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  52.                 this.InitVars();
  53.             }
  54.             else {
  55.                 this.InitClass();
  56.             }
  57.             this.GetSerializationData(info, context);
  58.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  59.             this.Tables.CollectionChanged += schemaChangedHandler;
  60.             this.Relations.CollectionChanged += schemaChangedHandler;
  61.         }
  62.         
  63.         [System.ComponentModel.Browsable(false)]
  64.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  65.         public 个人所得税表DataTable 个人所得税表 {
  66.             get {
  67.                 return this.table个人所得税表;
  68.             }
  69.         }
  70.         
  71.         [System.ComponentModel.Browsable(false)]
  72.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  73.         public 职员奖励表DataTable 职员奖励表 {
  74.             get {
  75.                 return this.table职员奖励表;
  76.             }
  77.         }
  78.         
  79.         public override DataSet Clone() {
  80.             DataSet11 cln = ((DataSet11)(base.Clone()));
  81.             cln.InitVars();
  82.             return cln;
  83.         }
  84.         
  85.         protected override bool ShouldSerializeTables() {
  86.             return false;
  87.         }
  88.         
  89.         protected override bool ShouldSerializeRelations() {
  90.             return false;
  91.         }
  92.         
  93.         protected override void ReadXmlSerializable(XmlReader reader) {
  94.             this.Reset();
  95.             DataSet ds = new DataSet();
  96.             ds.ReadXml(reader);
  97.             if ((ds.Tables["个人所得税表"] != null)) {
  98.                 this.Tables.Add(new 个人所得税表DataTable(ds.Tables["个人所得税表"]));
  99.             }
  100.             if ((ds.Tables["职员奖励表"] != null)) {
  101.                 this.Tables.Add(new 职员奖励表DataTable(ds.Tables["职员奖励表"]));
  102.             }
  103.             this.DataSetName = ds.DataSetName;
  104.             this.Prefix = ds.Prefix;
  105.             this.Namespace = ds.Namespace;
  106.             this.Locale = ds.Locale;
  107.             this.CaseSensitive = ds.CaseSensitive;
  108.             this.EnforceConstraints = ds.EnforceConstraints;
  109.             this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  110.             this.InitVars();
  111.         }
  112.         
  113.         protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  114.             System.IO.MemoryStream stream = new System.IO.MemoryStream();
  115.             this.WriteXmlSchema(new XmlTextWriter(stream, null));
  116.             stream.Position = 0;
  117.             return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
  118.         }
  119.         
  120.         internal void InitVars() {
  121.             this.table个人所得税表 = ((个人所得税表DataTable)(this.Tables["个人所得税表"]));
  122.             if ((this.table个人所得税表 != null)) {
  123.                 this.table个人所得税表.InitVars();
  124.             }
  125.             this.table职员奖励表 = ((职员奖励表DataTable)(this.Tables["职员奖励表"]));
  126.             if ((this.table职员奖励表 != null)) {
  127.                 this.table职员奖励表.InitVars();
  128.             }
  129.         }
  130.         
  131.         private void InitClass() {
  132.             this.DataSetName = "DataSet11";
  133.             this.Prefix = "";
  134.             this.Namespace = "http://www.tempuri.org/DataSet11.xsd";
  135.             this.Locale = new System.Globalization.CultureInfo("zh-CN");
  136.             this.CaseSensitive = false;
  137.             this.EnforceConstraints = true;
  138.             this.table个人所得税表 = new 个人所得税表DataTable();
  139.             this.Tables.Add(this.table个人所得税表);
  140.             this.table职员奖励表 = new 职员奖励表DataTable();
  141.             this.Tables.Add(this.table职员奖励表);
  142.         }
  143.         
  144.         private bool ShouldSerialize个人所得税表() {
  145.             return false;
  146.         }
  147.         
  148.         private bool ShouldSerialize职员奖励表() {
  149.             return false;
  150.         }
  151.         
  152.         private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
  153.             if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
  154.                 this.InitVars();
  155.             }
  156.         }
  157.         
  158.         public delegate void 个人所得税表RowChangeEventHandler(object sender, 个人所得税表RowChangeEvent e);
  159.         
  160.         public delegate void 职员奖励表RowChangeEventHandler(object sender, 职员奖励表RowChangeEvent e);
  161.         
  162.         [System.Diagnostics.DebuggerStepThrough()]
  163.         public class 个人所得税表DataTable : DataTable, System.Collections.IEnumerable {
  164.             
  165.             private DataColumn column编号;
  166.             
  167.             private DataColumn column级数;
  168.             
  169.             private DataColumn column不计税工资;
  170.             
  171.             private DataColumn column工资下限;
  172.             
  173.             private DataColumn column工资上限;
  174.             
  175.             private DataColumn column个人所得税率;
  176.             
  177.             private DataColumn column速算扣除数;
  178.             
  179.             private DataColumn column备注;
  180.             
  181.             internal 个人所得税表DataTable() : 
  182.                     base("个人所得税表") {
  183.                 this.InitClass();
  184.             }
  185.             
  186.             internal 个人所得税表DataTable(DataTable table) : 
  187.                     base(table.TableName) {
  188.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  189.                     this.CaseSensitive = table.CaseSensitive;
  190.                 }
  191.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  192.                     this.Locale = table.Locale;
  193.                 }
  194.                 if ((table.Namespace != table.DataSet.Namespace)) {
  195.                     this.Namespace = table.Namespace;
  196.                 }
  197.                 this.Prefix = table.Prefix;
  198.                 this.MinimumCapacity = table.MinimumCapacity;
  199.                 this.DisplayExpression = table.DisplayExpression;
  200.             }
  201.             
  202.             [System.ComponentModel.Browsable(false)]
  203.             public int Count {
  204.                 get {
  205.                     return this.Rows.Count;
  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.             internal DataColumn 不计税工资Column {
  222.                 get {
  223.                     return this.column不计税工资;
  224.                 }
  225.             }
  226.             
  227.             internal DataColumn 工资下限Column {
  228.                 get {
  229.                     return this.column工资下限;
  230.                 }
  231.             }
  232.             
  233.             internal DataColumn 工资上限Column {
  234.                 get {
  235.                     return this.column工资上限;
  236.                 }
  237.             }
  238.             
  239.             internal DataColumn 个人所得税率Column {
  240.                 get {
  241.                     return this.column个人所得税率;
  242.                 }
  243.             }
  244.             
  245.             internal DataColumn 速算扣除数Column {
  246.                 get {
  247.                     return this.column速算扣除数;
  248.                 }
  249.             }
  250.             
  251.             internal DataColumn 备注Column {
  252.                 get {
  253.                     return this.column备注;
  254.                 }
  255.             }
  256.             
  257.             public 个人所得税表Row this[int index] {
  258.                 get {
  259.                     return ((个人所得税表Row)(this.Rows[index]));
  260.                 }
  261.             }
  262.             
  263.             public event 个人所得税表RowChangeEventHandler 个人所得税表RowChanged;
  264.             
  265.             public event 个人所得税表RowChangeEventHandler 个人所得税表RowChanging;
  266.             
  267.             public event 个人所得税表RowChangeEventHandler 个人所得税表RowDeleted;
  268.             
  269.             public event 个人所得税表RowChangeEventHandler 个人所得税表RowDeleting;
  270.             
  271.             public void Add个人所得税表Row(个人所得税表Row row) {
  272.                 this.Rows.Add(row);
  273.             }
  274.             
  275.             public 个人所得税表Row Add个人所得税表Row(int 编号, string 级数, System.Decimal 不计税工资, System.Decimal 工资下限, System.Decimal 工资上限, System.Decimal 个人所得税率, System.Decimal 速算扣除数, string 备注) {
  276.                 个人所得税表Row row个人所得税表Row = ((个人所得税表Row)(this.NewRow()));
  277.                 row个人所得税表Row.ItemArray = new object[] {
  278.                         编号,
  279.                         级数,
  280.                         不计税工资,
  281.                         工资下限,
  282.                         工资上限,
  283.                         个人所得税率,
  284.                         速算扣除数,
  285.                         备注};
  286.                 this.Rows.Add(row个人所得税表Row);
  287.                 return row个人所得税表Row;
  288.             }
  289.             
  290.             public 个人所得税表Row FindBy编号(int 编号) {
  291.                 return ((个人所得税表Row)(this.Rows.Find(new object[] {
  292.                             编号})));
  293.             }
  294.             
  295.             public System.Collections.IEnumerator GetEnumerator() {
  296.                 return this.Rows.GetEnumerator();
  297.             }
  298.             
  299.             public override DataTable Clone() {
  300.                 个人所得税表DataTable cln = ((个人所得税表DataTable)(base.Clone()));
  301.                 cln.InitVars();
  302.                 return cln;
  303.             }
  304.             
  305.             protected override DataTable CreateInstance() {
  306.                 return new 个人所得税表DataTable();
  307.             }
  308.             
  309.             internal void InitVars() {
  310.                 this.column编号 = this.Columns["编号"];
  311.                 this.column级数 = this.Columns["级数"];
  312.                 this.column不计税工资 = this.Columns["不计税工资"];
  313.                 this.column工资下限 = this.Columns["工资下限"];
  314.                 this.column工资上限 = this.Columns["工资上限"];
  315.                 this.column个人所得税率 = this.Columns["个人所得税率"];
  316.                 this.column速算扣除数 = this.Columns["速算扣除数"];
  317.                 this.column备注 = this.Columns["备注"];
  318.             }
  319.             
  320.             private void InitClass() {
  321.                 this.column编号 = new DataColumn("编号", typeof(int), null, System.Data.MappingType.Element);
  322.                 this.Columns.Add(this.column编号);
  323.                 this.column级数 = new DataColumn("级数", typeof(string), null, System.Data.MappingType.Element);
  324.                 this.Columns.Add(this.column级数);
  325.                 this.column不计税工资 = new DataColumn("不计税工资", typeof(System.Decimal), null, System.Data.MappingType.Element);
  326.                 this.Columns.Add(this.column不计税工资);
  327.                 this.column工资下限 = new DataColumn("工资下限", typeof(System.Decimal), null, System.Data.MappingType.Element);
  328.                 this.Columns.Add(this.column工资下限);
  329.                 this.column工资上限 = new DataColumn("工资上限", typeof(System.Decimal), null, System.Data.MappingType.Element);
  330.                 this.Columns.Add(this.column工资上限);
  331.                 this.column个人所得税率 = new DataColumn("个人所得税率", typeof(System.Decimal), null, System.Data.MappingType.Element);
  332.                 this.Columns.Add(this.column个人所得税率);
  333.                 this.column速算扣除数 = new DataColumn("速算扣除数", typeof(System.Decimal), null, System.Data.MappingType.Element);
  334.                 this.Columns.Add(this.column速算扣除数);
  335.                 this.column备注 = new DataColumn("备注", typeof(string), null, System.Data.MappingType.Element);
  336.                 this.Columns.Add(this.column备注);
  337.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  338.                                 this.column编号}, true));
  339.                 this.column编号.AllowDBNull = false;
  340.                 this.column编号.Unique = true;
  341.                 this.column级数.AllowDBNull = false;
  342.                 this.column不计税工资.AllowDBNull = false;
  343.                 this.column工资下限.AllowDBNull = false;
  344.                 this.column工资上限.AllowDBNull = false;
  345.                 this.column个人所得税率.AllowDBNull = false;
  346.                 this.column速算扣除数.AllowDBNull = false;
  347.             }
  348.             
  349.             public 个人所得税表Row New个人所得税表Row() {
  350.                 return ((个人所得税表Row)(this.NewRow()));
  351.             }
  352.             
  353.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  354.                 return new 个人所得税表Row(builder);
  355.             }
  356.             
  357.             protected override System.Type GetRowType() {
  358.                 return typeof(个人所得税表Row);
  359.             }
  360.             
  361.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  362.                 base.OnRowChanged(e);
  363.                 if ((this.个人所得税表RowChanged != null)) {
  364.                     this.个人所得税表RowChanged(this, new 个人所得税表RowChangeEvent(((个人所得税表Row)(e.Row)), e.Action));
  365.                 }
  366.             }
  367.             
  368.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  369.                 base.OnRowChanging(e);
  370.                 if ((this.个人所得税表RowChanging != null)) {
  371.                     this.个人所得税表RowChanging(this, new 个人所得税表RowChangeEvent(((个人所得税表Row)(e.Row)), e.Action));
  372.                 }
  373.             }
  374.             
  375.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  376.                 base.OnRowDeleted(e);
  377.                 if ((this.个人所得税表RowDeleted != null)) {
  378.                     this.个人所得税表RowDeleted(this, new 个人所得税表RowChangeEvent(((个人所得税表Row)(e.Row)), e.Action));
  379.                 }
  380.             }
  381.             
  382.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  383.                 base.OnRowDeleting(e);
  384.                 if ((this.个人所得税表RowDeleting != null)) {
  385.                     this.个人所得税表RowDeleting(this, new 个人所得税表RowChangeEvent(((个人所得税表Row)(e.Row)), e.Action));
  386.                 }
  387.             }
  388.             
  389.             public void Remove个人所得税表Row(个人所得税表Row row) {
  390.                 this.Rows.Remove(row);
  391.             }
  392.         }
  393.         
  394.         [System.Diagnostics.DebuggerStepThrough()]
  395.         public class 个人所得税表Row : DataRow {
  396.             
  397.             private 个人所得税表DataTable table个人所得税表;
  398.             
  399.             internal 个人所得税表Row(DataRowBuilder rb) : 
  400.                     base(rb) {
  401.                 this.table个人所得税表 = ((个人所得税表DataTable)(this.Table));
  402.             }
  403.             
  404.             public int 编号 {
  405.                 get {
  406.                     return ((int)(this[this.table个人所得税表.编号Column]));
  407.                 }
  408.                 set {
  409.                     this[this.table个人所得税表.编号Column] = value;
  410.                 }
  411.             }
  412.             
  413.             public string 级数 {
  414.                 get {
  415.                     return ((string)(this[this.table个人所得税表.级数Column]));
  416.                 }
  417.                 set {
  418.                     this[this.table个人所得税表.级数Column] = value;
  419.                 }
  420.             }
  421.             
  422.             public System.Decimal 不计税工资 {
  423.                 get {
  424.                     return ((System.Decimal)(this[this.table个人所得税表.不计税工资Column]));
  425.                 }
  426.                 set {
  427.                     this[this.table个人所得税表.不计税工资Column] = value;
  428.                 }
  429.             }
  430.             
  431.             public System.Decimal 工资下限 {
  432.                 get {
  433.                     return ((System.Decimal)(this[this.table个人所得税表.工资下限Column]));
  434.                 }
  435.                 set {
  436.                     this[this.table个人所得税表.工资下限Column] = value;
  437.                 }
  438.             }
  439.             
  440.             public System.Decimal 工资上限 {
  441.                 get {
  442.                     return ((System.Decimal)(this[this.table个人所得税表.工资上限Column]));
  443.                 }
  444.                 set {
  445.                     this[this.table个人所得税表.工资上限Column] = value;
  446.                 }
  447.             }
  448.             
  449.             public System.Decimal 个人所得税率 {
  450.                 get {
  451.                     return ((System.Decimal)(this[this.table个人所得税表.个人所得税率Column]));
  452.                 }
  453.                 set {
  454.                     this[this.table个人所得税表.个人所得税率Column] = value;
  455.                 }
  456.             }
  457.             
  458.             public System.Decimal 速算扣除数 {
  459.                 get {
  460.                     return ((System.Decimal)(this[this.table个人所得税表.速算扣除数Column]));
  461.                 }
  462.                 set {
  463.                     this[this.table个人所得税表.速算扣除数Column] = value;
  464.                 }
  465.             }
  466.             
  467.             public string 备注 {
  468.                 get {
  469.                     try {
  470.                         return ((string)(this[this.table个人所得税表.备注Column]));
  471.                     }
  472.                     catch (InvalidCastException e) {
  473.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  474.                     }
  475.                 }
  476.                 set {
  477.                     this[this.table个人所得税表.备注Column] = value;
  478.                 }
  479.             }
  480.             
  481.             public bool Is备注Null() {
  482.                 return this.IsNull(this.table个人所得税表.备注Column);
  483.             }
  484.             
  485.             public void Set备注Null() {
  486.                 this[this.table个人所得税表.备注Column] = System.Convert.DBNull;
  487.             }
  488.         }
  489.         
  490.         [System.Diagnostics.DebuggerStepThrough()]
  491.         public class 个人所得税表RowChangeEvent : EventArgs {
  492.             
  493.             private 个人所得税表Row eventRow;
  494.             
  495.             private DataRowAction eventAction;
  496.             
  497.             public 个人所得税表RowChangeEvent(个人所得税表Row row, DataRowAction action) {
  498.                 this.eventRow = row;
  499.                 this.eventAction = action;
  500.             }
  501.             
  502.             public 个人所得税表Row Row {
  503.                 get {
  504.                     return this.eventRow;
  505.                 }
  506.             }
  507.             
  508.             public DataRowAction Action {
  509.                 get {
  510.                     return this.eventAction;
  511.                 }
  512.             }
  513.         }
  514.         
  515.         [System.Diagnostics.DebuggerStepThrough()]
  516.         public class 职员奖励表DataTable : DataTable, System.Collections.IEnumerable {
  517.             
  518.             private DataColumn column序号;
  519.             
  520.             private DataColumn column职员编号;
  521.             
  522.             private DataColumn column奖励类型;
  523.             
  524.             private DataColumn column奖励金额;
  525.             
  526.             private DataColumn column是否计入工资;
  527.             
  528.             private DataColumn column奖励原因;
  529.             
  530.             private DataColumn column部门意见;
  531.             
  532.             private DataColumn column奖励日期;
  533.             
  534.             internal 职员奖励表DataTable() : 
  535.                     base("职员奖励表") {
  536.                 this.InitClass();
  537.             }
  538.             
  539.             internal 职员奖励表DataTable(DataTable table) : 
  540.                     base(table.TableName) {
  541.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  542.                     this.CaseSensitive = table.CaseSensitive;
  543.                 }
  544.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  545.                     this.Locale = table.Locale;
  546.                 }
  547.                 if ((table.Namespace != table.DataSet.Namespace)) {
  548.                     this.Namespace = table.Namespace;
  549.                 }
  550.                 this.Prefix = table.Prefix;
  551.                 this.MinimumCapacity = table.MinimumCapacity;
  552.                 this.DisplayExpression = table.DisplayExpression;
  553.             }
  554.             
  555.             [System.ComponentModel.Browsable(false)]
  556.             public int Count {
  557.                 get {
  558.                     return this.Rows.Count;
  559.                 }
  560.             }
  561.             
  562.             internal DataColumn 序号Column {
  563.                 get {
  564.                     return this.column序号;
  565.                 }
  566.             }
  567.             
  568.             internal DataColumn 职员编号Column {
  569.                 get {
  570.                     return this.column职员编号;
  571.                 }
  572.             }
  573.             
  574.             internal DataColumn 奖励类型Column {
  575.                 get {
  576.                     return this.column奖励类型;
  577.                 }
  578.             }
  579.             
  580.             internal DataColumn 奖励金额Column {
  581.                 get {
  582.                     return this.column奖励金额;
  583.                 }
  584.             }
  585.             
  586.             internal DataColumn 是否计入工资Column {
  587.                 get {
  588.                     return this.column是否计入工资;
  589.                 }
  590.             }
  591.             
  592.             internal DataColumn 奖励原因Column {
  593.                 get {
  594.                     return this.column奖励原因;
  595.                 }
  596.             }
  597.             
  598.             internal DataColumn 部门意见Column {
  599.                 get {
  600.                     return this.column部门意见;
  601.                 }
  602.             }
  603.             
  604.             internal DataColumn 奖励日期Column {
  605.                 get {
  606.                     return this.column奖励日期;
  607.                 }
  608.             }
  609.             
  610.             public 职员奖励表Row this[int index] {
  611.                 get {
  612.                     return ((职员奖励表Row)(this.Rows[index]));
  613.                 }
  614.             }
  615.             
  616.             public event 职员奖励表RowChangeEventHandler 职员奖励表RowChanged;
  617.             
  618.             public event 职员奖励表RowChangeEventHandler 职员奖励表RowChanging;
  619.             
  620.             public event 职员奖励表RowChangeEventHandler 职员奖励表RowDeleted;
  621.             
  622.             public event 职员奖励表RowChangeEventHandler 职员奖励表RowDeleting;
  623.             
  624.             public void Add职员奖励表Row(职员奖励表Row row) {
  625.                 this.Rows.Add(row);
  626.             }
  627.             
  628.             public 职员奖励表Row Add职员奖励表Row(string 职员编号, string 奖励类型, System.Double 奖励金额, string 是否计入工资, string 奖励原因, string 部门意见, int 奖励日期) {
  629.                 职员奖励表Row row职员奖励表Row = ((职员奖励表Row)(this.NewRow()));
  630.                 row职员奖励表Row.ItemArray = new object[] {
  631.                         null,
  632.                         职员编号,
  633.                         奖励类型,
  634.                         奖励金额,
  635.                         是否计入工资,
  636.                         奖励原因,
  637.                         部门意见,
  638.                         奖励日期};
  639.                 this.Rows.Add(row职员奖励表Row);
  640.                 return row职员奖励表Row;
  641.             }
  642.             
  643.             public 职员奖励表Row FindBy序号(int 序号) {
  644.                 return ((职员奖励表Row)(this.Rows.Find(new object[] {
  645.                             序号})));
  646.             }
  647.             
  648.             public System.Collections.IEnumerator GetEnumerator() {
  649.                 return this.Rows.GetEnumerator();
  650.             }
  651.             
  652.             public override DataTable Clone() {
  653.                 职员奖励表DataTable cln = ((职员奖励表DataTable)(base.Clone()));
  654.                 cln.InitVars();
  655.                 return cln;
  656.             }
  657.             
  658.             protected override DataTable CreateInstance() {
  659.                 return new 职员奖励表DataTable();
  660.             }
  661.             
  662.             internal void InitVars() {
  663.                 this.column序号 = this.Columns["序号"];
  664.                 this.column职员编号 = this.Columns["职员编号"];
  665.                 this.column奖励类型 = this.Columns["奖励类型"];
  666.                 this.column奖励金额 = this.Columns["奖励金额"];
  667.                 this.column是否计入工资 = this.Columns["是否计入工资"];
  668.                 this.column奖励原因 = this.Columns["奖励原因"];
  669.                 this.column部门意见 = this.Columns["部门意见"];
  670.                 this.column奖励日期 = this.Columns["奖励日期"];
  671.             }
  672.             
  673.             private void InitClass() {
  674.                 this.column序号 = new DataColumn("序号", typeof(int), null, System.Data.MappingType.Element);
  675.                 this.Columns.Add(this.column序号);
  676.                 this.column职员编号 = new DataColumn("职员编号", typeof(string), null, System.Data.MappingType.Element);
  677.                 this.Columns.Add(this.column职员编号);
  678.                 this.column奖励类型 = new DataColumn("奖励类型", typeof(string), null, System.Data.MappingType.Element);
  679.                 this.Columns.Add(this.column奖励类型);
  680.                 this.column奖励金额 = new DataColumn("奖励金额", typeof(System.Double), null, System.Data.MappingType.Element);
  681.                 this.Columns.Add(this.column奖励金额);
  682.                 this.column是否计入工资 = new DataColumn("是否计入工资", typeof(string), null, System.Data.MappingType.Element);
  683.                 this.Columns.Add(this.column是否计入工资);
  684.                 this.column奖励原因 = new DataColumn("奖励原因", typeof(string), null, System.Data.MappingType.Element);
  685.                 this.Columns.Add(this.column奖励原因);
  686.                 this.column部门意见 = new DataColumn("部门意见", typeof(string), null, System.Data.MappingType.Element);
  687.                 this.Columns.Add(this.column部门意见);
  688.                 this.column奖励日期 = new DataColumn("奖励日期", typeof(int), null, System.Data.MappingType.Element);
  689.                 this.Columns.Add(this.column奖励日期);
  690.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  691.                                 this.column序号}, true));
  692.                 this.column序号.AutoIncrement = true;
  693.                 this.column序号.AllowDBNull = false;
  694.                 this.column序号.ReadOnly = true;
  695.                 this.column序号.Unique = true;
  696.                 this.column职员编号.AllowDBNull = false;
  697.             }
  698.             
  699.             public 职员奖励表Row New职员奖励表Row() {
  700.                 return ((职员奖励表Row)(this.NewRow()));
  701.             }
  702.             
  703.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  704.                 return new 职员奖励表Row(builder);
  705.             }
  706.             
  707.             protected override System.Type GetRowType() {
  708.                 return typeof(职员奖励表Row);
  709.             }
  710.             
  711.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  712.                 base.OnRowChanged(e);
  713.                 if ((this.职员奖励表RowChanged != null)) {
  714.                     this.职员奖励表RowChanged(this, new 职员奖励表RowChangeEvent(((职员奖励表Row)(e.Row)), e.Action));
  715.                 }
  716.             }
  717.             
  718.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  719.                 base.OnRowChanging(e);
  720.                 if ((this.职员奖励表RowChanging != null)) {
  721.                     this.职员奖励表RowChanging(this, new 职员奖励表RowChangeEvent(((职员奖励表Row)(e.Row)), e.Action));
  722.                 }
  723.             }
  724.             
  725.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  726.                 base.OnRowDeleted(e);
  727.                 if ((this.职员奖励表RowDeleted != null)) {
  728.                     this.职员奖励表RowDeleted(this, new 职员奖励表RowChangeEvent(((职员奖励表Row)(e.Row)), e.Action));
  729.                 }
  730.             }
  731.             
  732.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  733.                 base.OnRowDeleting(e);
  734.                 if ((this.职员奖励表RowDeleting != null)) {
  735.                     this.职员奖励表RowDeleting(this, new 职员奖励表RowChangeEvent(((职员奖励表Row)(e.Row)), e.Action));
  736.                 }
  737.             }
  738.             
  739.             public void Remove职员奖励表Row(职员奖励表Row row) {
  740.                 this.Rows.Remove(row);
  741.             }
  742.         }
  743.         
  744.         [System.Diagnostics.DebuggerStepThrough()]
  745.         public class 职员奖励表Row : DataRow {
  746.             
  747.             private 职员奖励表DataTable table职员奖励表;
  748.             
  749.             internal 职员奖励表Row(DataRowBuilder rb) : 
  750.                     base(rb) {
  751.                 this.table职员奖励表 = ((职员奖励表DataTable)(this.Table));
  752.             }
  753.             
  754.             public int 序号 {
  755.                 get {
  756.                     return ((int)(this[this.table职员奖励表.序号Column]));
  757.                 }
  758.                 set {
  759.                     this[this.table职员奖励表.序号Column] = value;
  760.                 }
  761.             }
  762.             
  763.             public string 职员编号 {
  764.                 get {
  765.                     return ((string)(this[this.table职员奖励表.职员编号Column]));
  766.                 }
  767.                 set {
  768.                     this[this.table职员奖励表.职员编号Column] = value;
  769.                 }
  770.             }
  771.             
  772.             public string 奖励类型 {
  773.                 get {
  774.                     try {
  775.                         return ((string)(this[this.table职员奖励表.奖励类型Column]));
  776.                     }
  777.                     catch (InvalidCastException e) {
  778.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  779.                     }
  780.                 }
  781.                 set {
  782.                     this[this.table职员奖励表.奖励类型Column] = value;
  783.                 }
  784.             }
  785.             
  786.             public System.Double 奖励金额 {
  787.                 get {
  788.                     try {
  789.                         return ((System.Double)(this[this.table职员奖励表.奖励金额Column]));
  790.                     }
  791.                     catch (InvalidCastException e) {
  792.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  793.                     }
  794.                 }
  795.                 set {
  796.                     this[this.table职员奖励表.奖励金额Column] = value;
  797.                 }
  798.             }
  799.             
  800.             public string 是否计入工资 {
  801.                 get {
  802.                     try {
  803.                         return ((string)(this[this.table职员奖励表.是否计入工资Column]));
  804.                     }
  805.                     catch (InvalidCastException e) {
  806.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  807.                     }
  808.                 }
  809.                 set {
  810.                     this[this.table职员奖励表.是否计入工资Column] = value;
  811.                 }
  812.             }
  813.             
  814.             public string 奖励原因 {
  815.                 get {
  816.                     try {
  817.                         return ((string)(this[this.table职员奖励表.奖励原因Column]));
  818.                     }
  819.                     catch (InvalidCastException e) {
  820.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  821.                     }
  822.                 }
  823.                 set {
  824.                     this[this.table职员奖励表.奖励原因Column] = value;
  825.                 }
  826.             }
  827.             
  828.             public string 部门意见 {
  829.                 get {
  830.                     try {
  831.                         return ((string)(this[this.table职员奖励表.部门意见Column]));
  832.                     }
  833.                     catch (InvalidCastException e) {
  834.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  835.                     }
  836.                 }
  837.                 set {
  838.                     this[this.table职员奖励表.部门意见Column] = value;
  839.                 }
  840.             }
  841.             
  842.             public int 奖励日期 {
  843.                 get {
  844.                     try {
  845.                         return ((int)(this[this.table职员奖励表.奖励日期Column]));
  846.                     }
  847.                     catch (InvalidCastException e) {
  848.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  849.                     }
  850.                 }
  851.                 set {
  852.                     this[this.table职员奖励表.奖励日期Column] = value;
  853.                 }
  854.             }
  855.             
  856.             public bool Is奖励类型Null() {
  857.                 return this.IsNull(this.table职员奖励表.奖励类型Column);
  858.             }
  859.             
  860.             public void Set奖励类型Null() {
  861.                 this[this.table职员奖励表.奖励类型Column] = System.Convert.DBNull;
  862.             }
  863.             
  864.             public bool Is奖励金额Null() {
  865.                 return this.IsNull(this.table职员奖励表.奖励金额Column);
  866.             }
  867.             
  868.             public void Set奖励金额Null() {
  869.                 this[this.table职员奖励表.奖励金额Column] = System.Convert.DBNull;
  870.             }
  871.             
  872.             public bool Is是否计入工资Null() {
  873.                 return this.IsNull(this.table职员奖励表.是否计入工资Column);
  874.             }
  875.             
  876.             public void Set是否计入工资Null() {
  877.                 this[this.table职员奖励表.是否计入工资Column] = System.Convert.DBNull;
  878.             }
  879.             
  880.             public bool Is奖励原因Null() {
  881.                 return this.IsNull(this.table职员奖励表.奖励原因Column);
  882.             }
  883.             
  884.             public void Set奖励原因Null() {
  885.                 this[this.table职员奖励表.奖励原因Column] = System.Convert.DBNull;
  886.             }
  887.             
  888.             public bool Is部门意见Null() {
  889.                 return this.IsNull(this.table职员奖励表.部门意见Column);
  890.             }
  891.             
  892.             public void Set部门意见Null() {
  893.                 this[this.table职员奖励表.部门意见Column] = System.Convert.DBNull;
  894.             }
  895.             
  896.             public bool Is奖励日期Null() {
  897.                 return this.IsNull(this.table职员奖励表.奖励日期Column);
  898.             }
  899.             
  900.             public void Set奖励日期Null() {
  901.                 this[this.table职员奖励表.奖励日期Column] = System.Convert.DBNull;
  902.             }
  903.         }
  904.         
  905.         [System.Diagnostics.DebuggerStepThrough()]
  906.         public class 职员奖励表RowChangeEvent : EventArgs {
  907.             
  908.             private 职员奖励表Row eventRow;
  909.             
  910.             private DataRowAction eventAction;
  911.             
  912.             public 职员奖励表RowChangeEvent(职员奖励表Row row, DataRowAction action) {
  913.                 this.eventRow = row;
  914.                 this.eventAction = action;
  915.             }
  916.             
  917.             public 职员奖励表Row Row {
  918.                 get {
  919.                     return this.eventRow;
  920.                 }
  921.             }
  922.             
  923.             public DataRowAction Action {
  924.                 get {
  925.                     return this.eventAction;
  926.                 }
  927.             }
  928.         }
  929.     }
  930. }