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

企业管理

开发平台:

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 DataSet1 : DataSet {
  22.         
  23.         private 进货单DataTable table进货单;
  24.         
  25.         public DataSet1() {
  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 DataSet1(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.             DataSet1 cln = ((DataSet1)(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 = "DataSet1";
  113.             this.Prefix = "";
  114.             this.Namespace = "http://www.tempuri.org/DataSet1.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.             private DataColumn column不含税价;
  154.             
  155.             private DataColumn column税额;
  156.             
  157.             private DataColumn column订单号;
  158.             
  159.             internal 进货单DataTable() : 
  160.                     base("进货单") {
  161.                 this.InitClass();
  162.             }
  163.             
  164.             internal 进货单DataTable(DataTable table) : 
  165.                     base(table.TableName) {
  166.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  167.                     this.CaseSensitive = table.CaseSensitive;
  168.                 }
  169.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  170.                     this.Locale = table.Locale;
  171.                 }
  172.                 if ((table.Namespace != table.DataSet.Namespace)) {
  173.                     this.Namespace = table.Namespace;
  174.                 }
  175.                 this.Prefix = table.Prefix;
  176.                 this.MinimumCapacity = table.MinimumCapacity;
  177.                 this.DisplayExpression = table.DisplayExpression;
  178.             }
  179.             
  180.             [System.ComponentModel.Browsable(false)]
  181.             public int Count {
  182.                 get {
  183.                     return this.Rows.Count;
  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.             internal DataColumn 税价合计Column {
  230.                 get {
  231.                     return this.column税价合计;
  232.                 }
  233.             }
  234.             
  235.             internal DataColumn 不含税价Column {
  236.                 get {
  237.                     return this.column不含税价;
  238.                 }
  239.             }
  240.             
  241.             internal DataColumn 税额Column {
  242.                 get {
  243.                     return this.column税额;
  244.                 }
  245.             }
  246.             
  247.             internal DataColumn 订单号Column {
  248.                 get {
  249.                     return this.column订单号;
  250.                 }
  251.             }
  252.             
  253.             public 进货单Row this[int index] {
  254.                 get {
  255.                     return ((进货单Row)(this.Rows[index]));
  256.                 }
  257.             }
  258.             
  259.             public event 进货单RowChangeEventHandler 进货单RowChanged;
  260.             
  261.             public event 进货单RowChangeEventHandler 进货单RowChanging;
  262.             
  263.             public event 进货单RowChangeEventHandler 进货单RowDeleted;
  264.             
  265.             public event 进货单RowChangeEventHandler 进货单RowDeleting;
  266.             
  267.             public void Add进货单Row(进货单Row row) {
  268.                 this.Rows.Add(row);
  269.             }
  270.             
  271.             public 进货单Row Add进货单Row(string 编号, string 供货商号, System.DateTime 进货日期, string 业务员, string 制单人, string 验收员, string 保管员, System.Decimal 税价合计, System.Decimal 不含税价, System.Decimal 税额, string 订单号) {
  272.                 进货单Row row进货单Row = ((进货单Row)(this.NewRow()));
  273.                 row进货单Row.ItemArray = new object[] {
  274.                         编号,
  275.                         供货商号,
  276.                         进货日期,
  277.                         业务员,
  278.                         制单人,
  279.                         验收员,
  280.                         保管员,
  281.                         税价合计,
  282.                         不含税价,
  283.                         税额,
  284.                         订单号};
  285.                 this.Rows.Add(row进货单Row);
  286.                 return row进货单Row;
  287.             }
  288.             
  289.             public 进货单Row FindBy编号(string 编号) {
  290.                 return ((进货单Row)(this.Rows.Find(new object[] {
  291.                             编号})));
  292.             }
  293.             
  294.             public System.Collections.IEnumerator GetEnumerator() {
  295.                 return this.Rows.GetEnumerator();
  296.             }
  297.             
  298.             public override DataTable Clone() {
  299.                 进货单DataTable cln = ((进货单DataTable)(base.Clone()));
  300.                 cln.InitVars();
  301.                 return cln;
  302.             }
  303.             
  304.             protected override DataTable CreateInstance() {
  305.                 return new 进货单DataTable();
  306.             }
  307.             
  308.             internal void InitVars() {
  309.                 this.column编号 = this.Columns["编号"];
  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.                 this.column税额 = this.Columns["税额"];
  319.                 this.column订单号 = this.Columns["订单号"];
  320.             }
  321.             
  322.             private void InitClass() {
  323.                 this.column编号 = new DataColumn("编号", typeof(string), null, System.Data.MappingType.Element);
  324.                 this.Columns.Add(this.column编号);
  325.                 this.column供货商号 = new DataColumn("供货商号", typeof(string), null, System.Data.MappingType.Element);
  326.                 this.Columns.Add(this.column供货商号);
  327.                 this.column进货日期 = new DataColumn("进货日期", typeof(System.DateTime), null, System.Data.MappingType.Element);
  328.                 this.Columns.Add(this.column进货日期);
  329.                 this.column业务员 = new DataColumn("业务员", typeof(string), null, System.Data.MappingType.Element);
  330.                 this.Columns.Add(this.column业务员);
  331.                 this.column制单人 = new DataColumn("制单人", typeof(string), null, System.Data.MappingType.Element);
  332.                 this.Columns.Add(this.column制单人);
  333.                 this.column验收员 = new DataColumn("验收员", typeof(string), 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.column税价合计 = new DataColumn("税价合计", typeof(System.Decimal), null, System.Data.MappingType.Element);
  338.                 this.Columns.Add(this.column税价合计);
  339.                 this.column不含税价 = new DataColumn("不含税价", typeof(System.Decimal), null, System.Data.MappingType.Element);
  340.                 this.Columns.Add(this.column不含税价);
  341.                 this.column税额 = new DataColumn("税额", typeof(System.Decimal), null, System.Data.MappingType.Element);
  342.                 this.Columns.Add(this.column税额);
  343.                 this.column订单号 = new DataColumn("订单号", typeof(string), null, System.Data.MappingType.Element);
  344.                 this.Columns.Add(this.column订单号);
  345.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  346.                                 this.column编号}, true));
  347.                 this.column编号.AllowDBNull = false;
  348.                 this.column编号.Unique = true;
  349.                 this.column供货商号.AllowDBNull = false;
  350.             }
  351.             
  352.             public 进货单Row New进货单Row() {
  353.                 return ((进货单Row)(this.NewRow()));
  354.             }
  355.             
  356.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  357.                 return new 进货单Row(builder);
  358.             }
  359.             
  360.             protected override System.Type GetRowType() {
  361.                 return typeof(进货单Row);
  362.             }
  363.             
  364.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  365.                 base.OnRowChanged(e);
  366.                 if ((this.进货单RowChanged != null)) {
  367.                     this.进货单RowChanged(this, new 进货单RowChangeEvent(((进货单Row)(e.Row)), e.Action));
  368.                 }
  369.             }
  370.             
  371.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  372.                 base.OnRowChanging(e);
  373.                 if ((this.进货单RowChanging != null)) {
  374.                     this.进货单RowChanging(this, new 进货单RowChangeEvent(((进货单Row)(e.Row)), e.Action));
  375.                 }
  376.             }
  377.             
  378.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  379.                 base.OnRowDeleted(e);
  380.                 if ((this.进货单RowDeleted != null)) {
  381.                     this.进货单RowDeleted(this, new 进货单RowChangeEvent(((进货单Row)(e.Row)), e.Action));
  382.                 }
  383.             }
  384.             
  385.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  386.                 base.OnRowDeleting(e);
  387.                 if ((this.进货单RowDeleting != null)) {
  388.                     this.进货单RowDeleting(this, new 进货单RowChangeEvent(((进货单Row)(e.Row)), e.Action));
  389.                 }
  390.             }
  391.             
  392.             public void Remove进货单Row(进货单Row row) {
  393.                 this.Rows.Remove(row);
  394.             }
  395.         }
  396.         
  397.         [System.Diagnostics.DebuggerStepThrough()]
  398.         public class 进货单Row : DataRow {
  399.             
  400.             private 进货单DataTable table进货单;
  401.             
  402.             internal 进货单Row(DataRowBuilder rb) : 
  403.                     base(rb) {
  404.                 this.table进货单 = ((进货单DataTable)(this.Table));
  405.             }
  406.             
  407.             public string 编号 {
  408.                 get {
  409.                     return ((string)(this[this.table进货单.编号Column]));
  410.                 }
  411.                 set {
  412.                     this[this.table进货单.编号Column] = value;
  413.                 }
  414.             }
  415.             
  416.             public string 供货商号 {
  417.                 get {
  418.                     return ((string)(this[this.table进货单.供货商号Column]));
  419.                 }
  420.                 set {
  421.                     this[this.table进货单.供货商号Column] = value;
  422.                 }
  423.             }
  424.             
  425.             public System.DateTime 进货日期 {
  426.                 get {
  427.                     try {
  428.                         return ((System.DateTime)(this[this.table进货单.进货日期Column]));
  429.                     }
  430.                     catch (InvalidCastException e) {
  431.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  432.                     }
  433.                 }
  434.                 set {
  435.                     this[this.table进货单.进货日期Column] = value;
  436.                 }
  437.             }
  438.             
  439.             public string 业务员 {
  440.                 get {
  441.                     try {
  442.                         return ((string)(this[this.table进货单.业务员Column]));
  443.                     }
  444.                     catch (InvalidCastException e) {
  445.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  446.                     }
  447.                 }
  448.                 set {
  449.                     this[this.table进货单.业务员Column] = value;
  450.                 }
  451.             }
  452.             
  453.             public string 制单人 {
  454.                 get {
  455.                     try {
  456.                         return ((string)(this[this.table进货单.制单人Column]));
  457.                     }
  458.                     catch (InvalidCastException e) {
  459.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  460.                     }
  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 string 保管员 {
  482.                 get {
  483.                     try {
  484.                         return ((string)(this[this.table进货单.保管员Column]));
  485.                     }
  486.                     catch (InvalidCastException e) {
  487.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  488.                     }
  489.                 }
  490.                 set {
  491.                     this[this.table进货单.保管员Column] = value;
  492.                 }
  493.             }
  494.             
  495.             public System.Decimal 税价合计 {
  496.                 get {
  497.                     try {
  498.                         return ((System.Decimal)(this[this.table进货单.税价合计Column]));
  499.                     }
  500.                     catch (InvalidCastException e) {
  501.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  502.                     }
  503.                 }
  504.                 set {
  505.                     this[this.table进货单.税价合计Column] = value;
  506.                 }
  507.             }
  508.             
  509.             public System.Decimal 不含税价 {
  510.                 get {
  511.                     try {
  512.                         return ((System.Decimal)(this[this.table进货单.不含税价Column]));
  513.                     }
  514.                     catch (InvalidCastException e) {
  515.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  516.                     }
  517.                 }
  518.                 set {
  519.                     this[this.table进货单.不含税价Column] = value;
  520.                 }
  521.             }
  522.             
  523.             public System.Decimal 税额 {
  524.                 get {
  525.                     try {
  526.                         return ((System.Decimal)(this[this.table进货单.税额Column]));
  527.                     }
  528.                     catch (InvalidCastException e) {
  529.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  530.                     }
  531.                 }
  532.                 set {
  533.                     this[this.table进货单.税额Column] = value;
  534.                 }
  535.             }
  536.             
  537.             public string 订单号 {
  538.                 get {
  539.                     try {
  540.                         return ((string)(this[this.table进货单.订单号Column]));
  541.                     }
  542.                     catch (InvalidCastException e) {
  543.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  544.                     }
  545.                 }
  546.                 set {
  547.                     this[this.table进货单.订单号Column] = value;
  548.                 }
  549.             }
  550.             
  551.             public bool Is进货日期Null() {
  552.                 return this.IsNull(this.table进货单.进货日期Column);
  553.             }
  554.             
  555.             public void Set进货日期Null() {
  556.                 this[this.table进货单.进货日期Column] = System.Convert.DBNull;
  557.             }
  558.             
  559.             public bool Is业务员Null() {
  560.                 return this.IsNull(this.table进货单.业务员Column);
  561.             }
  562.             
  563.             public void Set业务员Null() {
  564.                 this[this.table进货单.业务员Column] = System.Convert.DBNull;
  565.             }
  566.             
  567.             public bool Is制单人Null() {
  568.                 return this.IsNull(this.table进货单.制单人Column);
  569.             }
  570.             
  571.             public void Set制单人Null() {
  572.                 this[this.table进货单.制单人Column] = System.Convert.DBNull;
  573.             }
  574.             
  575.             public bool Is验收员Null() {
  576.                 return this.IsNull(this.table进货单.验收员Column);
  577.             }
  578.             
  579.             public void Set验收员Null() {
  580.                 this[this.table进货单.验收员Column] = System.Convert.DBNull;
  581.             }
  582.             
  583.             public bool Is保管员Null() {
  584.                 return this.IsNull(this.table进货单.保管员Column);
  585.             }
  586.             
  587.             public void Set保管员Null() {
  588.                 this[this.table进货单.保管员Column] = System.Convert.DBNull;
  589.             }
  590.             
  591.             public bool Is税价合计Null() {
  592.                 return this.IsNull(this.table进货单.税价合计Column);
  593.             }
  594.             
  595.             public void Set税价合计Null() {
  596.                 this[this.table进货单.税价合计Column] = System.Convert.DBNull;
  597.             }
  598.             
  599.             public bool Is不含税价Null() {
  600.                 return this.IsNull(this.table进货单.不含税价Column);
  601.             }
  602.             
  603.             public void Set不含税价Null() {
  604.                 this[this.table进货单.不含税价Column] = System.Convert.DBNull;
  605.             }
  606.             
  607.             public bool Is税额Null() {
  608.                 return this.IsNull(this.table进货单.税额Column);
  609.             }
  610.             
  611.             public void Set税额Null() {
  612.                 this[this.table进货单.税额Column] = System.Convert.DBNull;
  613.             }
  614.             
  615.             public bool Is订单号Null() {
  616.                 return this.IsNull(this.table进货单.订单号Column);
  617.             }
  618.             
  619.             public void Set订单号Null() {
  620.                 this[this.table进货单.订单号Column] = System.Convert.DBNull;
  621.             }
  622.         }
  623.         
  624.         [System.Diagnostics.DebuggerStepThrough()]
  625.         public class 进货单RowChangeEvent : EventArgs {
  626.             
  627.             private 进货单Row eventRow;
  628.             
  629.             private DataRowAction eventAction;
  630.             
  631.             public 进货单RowChangeEvent(进货单Row row, DataRowAction action) {
  632.                 this.eventRow = row;
  633.                 this.eventAction = action;
  634.             }
  635.             
  636.             public 进货单Row Row {
  637.                 get {
  638.                     return this.eventRow;
  639.                 }
  640.             }
  641.             
  642.             public DataRowAction Action {
  643.                 get {
  644.                     return this.eventAction;
  645.                 }
  646.             }
  647.         }
  648.     }
  649. }