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

企业管理

开发平台:

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 DataSet3 : DataSet {
  22.         
  23.         private 主生产计划DataTable table主生产计划;
  24.         
  25.         private mrp物料需求计算DataTable tablemrp物料需求计算;
  26.         
  27.         private mrp物料需求历史DataTable tablemrp物料需求历史;
  28.         
  29.         public DataSet3() {
  30.             this.InitClass();
  31.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  32.             this.Tables.CollectionChanged += schemaChangedHandler;
  33.             this.Relations.CollectionChanged += schemaChangedHandler;
  34.         }
  35.         
  36.         protected DataSet3(SerializationInfo info, StreamingContext context) {
  37.             string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  38.             if ((strSchema != null)) {
  39.                 DataSet ds = new DataSet();
  40.                 ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
  41.                 if ((ds.Tables["主生产计划"] != null)) {
  42.                     this.Tables.Add(new 主生产计划DataTable(ds.Tables["主生产计划"]));
  43.                 }
  44.                 if ((ds.Tables["mrp物料需求计算"] != null)) {
  45.                     this.Tables.Add(new mrp物料需求计算DataTable(ds.Tables["mrp物料需求计算"]));
  46.                 }
  47.                 if ((ds.Tables["mrp物料需求历史"] != null)) {
  48.                     this.Tables.Add(new mrp物料需求历史DataTable(ds.Tables["mrp物料需求历史"]));
  49.                 }
  50.                 this.DataSetName = ds.DataSetName;
  51.                 this.Prefix = ds.Prefix;
  52.                 this.Namespace = ds.Namespace;
  53.                 this.Locale = ds.Locale;
  54.                 this.CaseSensitive = ds.CaseSensitive;
  55.                 this.EnforceConstraints = ds.EnforceConstraints;
  56.                 this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  57.                 this.InitVars();
  58.             }
  59.             else {
  60.                 this.InitClass();
  61.             }
  62.             this.GetSerializationData(info, context);
  63.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  64.             this.Tables.CollectionChanged += schemaChangedHandler;
  65.             this.Relations.CollectionChanged += schemaChangedHandler;
  66.         }
  67.         
  68.         [System.ComponentModel.Browsable(false)]
  69.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  70.         public 主生产计划DataTable 主生产计划 {
  71.             get {
  72.                 return this.table主生产计划;
  73.             }
  74.         }
  75.         
  76.         [System.ComponentModel.Browsable(false)]
  77.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  78.         public mrp物料需求计算DataTable mrp物料需求计算 {
  79.             get {
  80.                 return this.tablemrp物料需求计算;
  81.             }
  82.         }
  83.         
  84.         [System.ComponentModel.Browsable(false)]
  85.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  86.         public mrp物料需求历史DataTable mrp物料需求历史 {
  87.             get {
  88.                 return this.tablemrp物料需求历史;
  89.             }
  90.         }
  91.         
  92.         public override DataSet Clone() {
  93.             DataSet3 cln = ((DataSet3)(base.Clone()));
  94.             cln.InitVars();
  95.             return cln;
  96.         }
  97.         
  98.         protected override bool ShouldSerializeTables() {
  99.             return false;
  100.         }
  101.         
  102.         protected override bool ShouldSerializeRelations() {
  103.             return false;
  104.         }
  105.         
  106.         protected override void ReadXmlSerializable(XmlReader reader) {
  107.             this.Reset();
  108.             DataSet ds = new DataSet();
  109.             ds.ReadXml(reader);
  110.             if ((ds.Tables["主生产计划"] != null)) {
  111.                 this.Tables.Add(new 主生产计划DataTable(ds.Tables["主生产计划"]));
  112.             }
  113.             if ((ds.Tables["mrp物料需求计算"] != null)) {
  114.                 this.Tables.Add(new mrp物料需求计算DataTable(ds.Tables["mrp物料需求计算"]));
  115.             }
  116.             if ((ds.Tables["mrp物料需求历史"] != null)) {
  117.                 this.Tables.Add(new mrp物料需求历史DataTable(ds.Tables["mrp物料需求历史"]));
  118.             }
  119.             this.DataSetName = ds.DataSetName;
  120.             this.Prefix = ds.Prefix;
  121.             this.Namespace = ds.Namespace;
  122.             this.Locale = ds.Locale;
  123.             this.CaseSensitive = ds.CaseSensitive;
  124.             this.EnforceConstraints = ds.EnforceConstraints;
  125.             this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  126.             this.InitVars();
  127.         }
  128.         
  129.         protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  130.             System.IO.MemoryStream stream = new System.IO.MemoryStream();
  131.             this.WriteXmlSchema(new XmlTextWriter(stream, null));
  132.             stream.Position = 0;
  133.             return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
  134.         }
  135.         
  136.         internal void InitVars() {
  137.             this.table主生产计划 = ((主生产计划DataTable)(this.Tables["主生产计划"]));
  138.             if ((this.table主生产计划 != null)) {
  139.                 this.table主生产计划.InitVars();
  140.             }
  141.             this.tablemrp物料需求计算 = ((mrp物料需求计算DataTable)(this.Tables["mrp物料需求计算"]));
  142.             if ((this.tablemrp物料需求计算 != null)) {
  143.                 this.tablemrp物料需求计算.InitVars();
  144.             }
  145.             this.tablemrp物料需求历史 = ((mrp物料需求历史DataTable)(this.Tables["mrp物料需求历史"]));
  146.             if ((this.tablemrp物料需求历史 != null)) {
  147.                 this.tablemrp物料需求历史.InitVars();
  148.             }
  149.         }
  150.         
  151.         private void InitClass() {
  152.             this.DataSetName = "DataSet3";
  153.             this.Prefix = "";
  154.             this.Namespace = "http://www.tempuri.org/DataSet3.xsd";
  155.             this.Locale = new System.Globalization.CultureInfo("zh-CN");
  156.             this.CaseSensitive = false;
  157.             this.EnforceConstraints = true;
  158.             this.table主生产计划 = new 主生产计划DataTable();
  159.             this.Tables.Add(this.table主生产计划);
  160.             this.tablemrp物料需求计算 = new mrp物料需求计算DataTable();
  161.             this.Tables.Add(this.tablemrp物料需求计算);
  162.             this.tablemrp物料需求历史 = new mrp物料需求历史DataTable();
  163.             this.Tables.Add(this.tablemrp物料需求历史);
  164.         }
  165.         
  166.         private bool ShouldSerialize主生产计划() {
  167.             return false;
  168.         }
  169.         
  170.         private bool ShouldSerializemrp物料需求计算() {
  171.             return false;
  172.         }
  173.         
  174.         private bool ShouldSerializemrp物料需求历史() {
  175.             return false;
  176.         }
  177.         
  178.         private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
  179.             if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
  180.                 this.InitVars();
  181.             }
  182.         }
  183.         
  184.         public delegate void 主生产计划RowChangeEventHandler(object sender, 主生产计划RowChangeEvent e);
  185.         
  186.         public delegate void mrp物料需求计算RowChangeEventHandler(object sender, mrp物料需求计算RowChangeEvent e);
  187.         
  188.         public delegate void mrp物料需求历史RowChangeEventHandler(object sender, mrp物料需求历史RowChangeEvent e);
  189.         
  190.         [System.Diagnostics.DebuggerStepThrough()]
  191.         public class 主生产计划DataTable : DataTable, System.Collections.IEnumerable {
  192.             
  193.             private DataColumn column物料名称;
  194.             
  195.             private DataColumn column物料编号;
  196.             
  197.             private DataColumn column编号;
  198.             
  199.             private DataColumn column年份;
  200.             
  201.             private DataColumn column计划期;
  202.             
  203.             private DataColumn column开始日期;
  204.             
  205.             private DataColumn column结束日期;
  206.             
  207.             private DataColumn column期初库存;
  208.             
  209.             private DataColumn column需求数量;
  210.             
  211.             private DataColumn columnMPS数量;
  212.             
  213.             private DataColumn column生产单数量;
  214.             
  215.             private DataColumn column预计库存;
  216.             
  217.             private DataColumn column记帐人;
  218.             
  219.             private DataColumn column修改日期;
  220.             
  221.             private DataColumn column审核人;
  222.             
  223.             private DataColumn column审核日期;
  224.             
  225.             private DataColumn column状态;
  226.             
  227.             private DataColumn column备注;
  228.             
  229.             internal 主生产计划DataTable() : 
  230.                     base("主生产计划") {
  231.                 this.InitClass();
  232.             }
  233.             
  234.             internal 主生产计划DataTable(DataTable table) : 
  235.                     base(table.TableName) {
  236.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  237.                     this.CaseSensitive = table.CaseSensitive;
  238.                 }
  239.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  240.                     this.Locale = table.Locale;
  241.                 }
  242.                 if ((table.Namespace != table.DataSet.Namespace)) {
  243.                     this.Namespace = table.Namespace;
  244.                 }
  245.                 this.Prefix = table.Prefix;
  246.                 this.MinimumCapacity = table.MinimumCapacity;
  247.                 this.DisplayExpression = table.DisplayExpression;
  248.             }
  249.             
  250.             [System.ComponentModel.Browsable(false)]
  251.             public int Count {
  252.                 get {
  253.                     return this.Rows.Count;
  254.                 }
  255.             }
  256.             
  257.             internal DataColumn 物料名称Column {
  258.                 get {
  259.                     return this.column物料名称;
  260.                 }
  261.             }
  262.             
  263.             internal DataColumn 物料编号Column {
  264.                 get {
  265.                     return this.column物料编号;
  266.                 }
  267.             }
  268.             
  269.             internal DataColumn 编号Column {
  270.                 get {
  271.                     return this.column编号;
  272.                 }
  273.             }
  274.             
  275.             internal DataColumn 年份Column {
  276.                 get {
  277.                     return this.column年份;
  278.                 }
  279.             }
  280.             
  281.             internal DataColumn 计划期Column {
  282.                 get {
  283.                     return this.column计划期;
  284.                 }
  285.             }
  286.             
  287.             internal DataColumn 开始日期Column {
  288.                 get {
  289.                     return this.column开始日期;
  290.                 }
  291.             }
  292.             
  293.             internal DataColumn 结束日期Column {
  294.                 get {
  295.                     return this.column结束日期;
  296.                 }
  297.             }
  298.             
  299.             internal DataColumn 期初库存Column {
  300.                 get {
  301.                     return this.column期初库存;
  302.                 }
  303.             }
  304.             
  305.             internal DataColumn 需求数量Column {
  306.                 get {
  307.                     return this.column需求数量;
  308.                 }
  309.             }
  310.             
  311.             internal DataColumn MPS数量Column {
  312.                 get {
  313.                     return this.columnMPS数量;
  314.                 }
  315.             }
  316.             
  317.             internal DataColumn 生产单数量Column {
  318.                 get {
  319.                     return this.column生产单数量;
  320.                 }
  321.             }
  322.             
  323.             internal DataColumn 预计库存Column {
  324.                 get {
  325.                     return this.column预计库存;
  326.                 }
  327.             }
  328.             
  329.             internal DataColumn 记帐人Column {
  330.                 get {
  331.                     return this.column记帐人;
  332.                 }
  333.             }
  334.             
  335.             internal DataColumn 修改日期Column {
  336.                 get {
  337.                     return this.column修改日期;
  338.                 }
  339.             }
  340.             
  341.             internal DataColumn 审核人Column {
  342.                 get {
  343.                     return this.column审核人;
  344.                 }
  345.             }
  346.             
  347.             internal DataColumn 审核日期Column {
  348.                 get {
  349.                     return this.column审核日期;
  350.                 }
  351.             }
  352.             
  353.             internal DataColumn 状态Column {
  354.                 get {
  355.                     return this.column状态;
  356.                 }
  357.             }
  358.             
  359.             internal DataColumn 备注Column {
  360.                 get {
  361.                     return this.column备注;
  362.                 }
  363.             }
  364.             
  365.             public 主生产计划Row this[int index] {
  366.                 get {
  367.                     return ((主生产计划Row)(this.Rows[index]));
  368.                 }
  369.             }
  370.             
  371.             public event 主生产计划RowChangeEventHandler 主生产计划RowChanged;
  372.             
  373.             public event 主生产计划RowChangeEventHandler 主生产计划RowChanging;
  374.             
  375.             public event 主生产计划RowChangeEventHandler 主生产计划RowDeleted;
  376.             
  377.             public event 主生产计划RowChangeEventHandler 主生产计划RowDeleting;
  378.             
  379.             public void Add主生产计划Row(主生产计划Row row) {
  380.                 this.Rows.Add(row);
  381.             }
  382.             
  383.             public 主生产计划Row Add主生产计划Row(
  384.                         string 物料名称, 
  385.                         string 物料编号, 
  386.                         string 编号, 
  387.                         int 年份, 
  388.                         int 计划期, 
  389.                         int 开始日期, 
  390.                         int 结束日期, 
  391.                         System.Decimal 期初库存, 
  392.                         System.Decimal 需求数量, 
  393.                         System.Decimal MPS数量, 
  394.                         System.Decimal 生产单数量, 
  395.                         System.Decimal 预计库存, 
  396.                         string 记帐人, 
  397.                         int 修改日期, 
  398.                         string 审核人, 
  399.                         int 审核日期, 
  400.                         string 状态, 
  401.                         string 备注) {
  402.                 主生产计划Row row主生产计划Row = ((主生产计划Row)(this.NewRow()));
  403.                 row主生产计划Row.ItemArray = new object[] {
  404.                         物料名称,
  405.                         物料编号,
  406.                         编号,
  407.                         年份,
  408.                         计划期,
  409.                         开始日期,
  410.                         结束日期,
  411.                         期初库存,
  412.                         需求数量,
  413.                         MPS数量,
  414.                         生产单数量,
  415.                         预计库存,
  416.                         记帐人,
  417.                         修改日期,
  418.                         审核人,
  419.                         审核日期,
  420.                         状态,
  421.                         备注};
  422.                 this.Rows.Add(row主生产计划Row);
  423.                 return row主生产计划Row;
  424.             }
  425.             
  426.             public System.Collections.IEnumerator GetEnumerator() {
  427.                 return this.Rows.GetEnumerator();
  428.             }
  429.             
  430.             public override DataTable Clone() {
  431.                 主生产计划DataTable cln = ((主生产计划DataTable)(base.Clone()));
  432.                 cln.InitVars();
  433.                 return cln;
  434.             }
  435.             
  436.             protected override DataTable CreateInstance() {
  437.                 return new 主生产计划DataTable();
  438.             }
  439.             
  440.             internal void InitVars() {
  441.                 this.column物料名称 = this.Columns["物料名称"];
  442.                 this.column物料编号 = this.Columns["物料编号"];
  443.                 this.column编号 = this.Columns["编号"];
  444.                 this.column年份 = this.Columns["年份"];
  445.                 this.column计划期 = this.Columns["计划期"];
  446.                 this.column开始日期 = this.Columns["开始日期"];
  447.                 this.column结束日期 = this.Columns["结束日期"];
  448.                 this.column期初库存 = this.Columns["期初库存"];
  449.                 this.column需求数量 = this.Columns["需求数量"];
  450.                 this.columnMPS数量 = this.Columns["MPS数量"];
  451.                 this.column生产单数量 = this.Columns["生产单数量"];
  452.                 this.column预计库存 = this.Columns["预计库存"];
  453.                 this.column记帐人 = this.Columns["记帐人"];
  454.                 this.column修改日期 = this.Columns["修改日期"];
  455.                 this.column审核人 = this.Columns["审核人"];
  456.                 this.column审核日期 = this.Columns["审核日期"];
  457.                 this.column状态 = this.Columns["状态"];
  458.                 this.column备注 = this.Columns["备注"];
  459.             }
  460.             
  461.             private void InitClass() {
  462.                 this.column物料名称 = new DataColumn("物料名称", typeof(string), null, System.Data.MappingType.Element);
  463.                 this.Columns.Add(this.column物料名称);
  464.                 this.column物料编号 = new DataColumn("物料编号", typeof(string), null, System.Data.MappingType.Element);
  465.                 this.Columns.Add(this.column物料编号);
  466.                 this.column编号 = new DataColumn("编号", typeof(string), null, System.Data.MappingType.Element);
  467.                 this.Columns.Add(this.column编号);
  468.                 this.column年份 = new DataColumn("年份", typeof(int), null, System.Data.MappingType.Element);
  469.                 this.Columns.Add(this.column年份);
  470.                 this.column计划期 = new DataColumn("计划期", typeof(int), null, System.Data.MappingType.Element);
  471.                 this.Columns.Add(this.column计划期);
  472.                 this.column开始日期 = new DataColumn("开始日期", typeof(int), null, System.Data.MappingType.Element);
  473.                 this.Columns.Add(this.column开始日期);
  474.                 this.column结束日期 = new DataColumn("结束日期", typeof(int), null, System.Data.MappingType.Element);
  475.                 this.Columns.Add(this.column结束日期);
  476.                 this.column期初库存 = new DataColumn("期初库存", typeof(System.Decimal), null, System.Data.MappingType.Element);
  477.                 this.Columns.Add(this.column期初库存);
  478.                 this.column需求数量 = new DataColumn("需求数量", typeof(System.Decimal), null, System.Data.MappingType.Element);
  479.                 this.Columns.Add(this.column需求数量);
  480.                 this.columnMPS数量 = new DataColumn("MPS数量", typeof(System.Decimal), null, System.Data.MappingType.Element);
  481.                 this.Columns.Add(this.columnMPS数量);
  482.                 this.column生产单数量 = new DataColumn("生产单数量", typeof(System.Decimal), null, System.Data.MappingType.Element);
  483.                 this.Columns.Add(this.column生产单数量);
  484.                 this.column预计库存 = new DataColumn("预计库存", typeof(System.Decimal), null, System.Data.MappingType.Element);
  485.                 this.Columns.Add(this.column预计库存);
  486.                 this.column记帐人 = new DataColumn("记帐人", typeof(string), null, System.Data.MappingType.Element);
  487.                 this.Columns.Add(this.column记帐人);
  488.                 this.column修改日期 = new DataColumn("修改日期", typeof(int), null, System.Data.MappingType.Element);
  489.                 this.Columns.Add(this.column修改日期);
  490.                 this.column审核人 = new DataColumn("审核人", typeof(string), null, System.Data.MappingType.Element);
  491.                 this.Columns.Add(this.column审核人);
  492.                 this.column审核日期 = new DataColumn("审核日期", typeof(int), null, System.Data.MappingType.Element);
  493.                 this.Columns.Add(this.column审核日期);
  494.                 this.column状态 = new DataColumn("状态", typeof(string), null, System.Data.MappingType.Element);
  495.                 this.Columns.Add(this.column状态);
  496.                 this.column备注 = new DataColumn("备注", typeof(string), null, System.Data.MappingType.Element);
  497.                 this.Columns.Add(this.column备注);
  498.                 this.column物料名称.AllowDBNull = false;
  499.                 this.column物料编号.AllowDBNull = false;
  500.                 this.column年份.AllowDBNull = false;
  501.                 this.column计划期.AllowDBNull = false;
  502.                 this.columnMPS数量.AllowDBNull = false;
  503.                 this.column状态.AllowDBNull = false;
  504.             }
  505.             
  506.             public 主生产计划Row New主生产计划Row() {
  507.                 return ((主生产计划Row)(this.NewRow()));
  508.             }
  509.             
  510.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  511.                 return new 主生产计划Row(builder);
  512.             }
  513.             
  514.             protected override System.Type GetRowType() {
  515.                 return typeof(主生产计划Row);
  516.             }
  517.             
  518.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  519.                 base.OnRowChanged(e);
  520.                 if ((this.主生产计划RowChanged != null)) {
  521.                     this.主生产计划RowChanged(this, new 主生产计划RowChangeEvent(((主生产计划Row)(e.Row)), e.Action));
  522.                 }
  523.             }
  524.             
  525.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  526.                 base.OnRowChanging(e);
  527.                 if ((this.主生产计划RowChanging != null)) {
  528.                     this.主生产计划RowChanging(this, new 主生产计划RowChangeEvent(((主生产计划Row)(e.Row)), e.Action));
  529.                 }
  530.             }
  531.             
  532.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  533.                 base.OnRowDeleted(e);
  534.                 if ((this.主生产计划RowDeleted != null)) {
  535.                     this.主生产计划RowDeleted(this, new 主生产计划RowChangeEvent(((主生产计划Row)(e.Row)), e.Action));
  536.                 }
  537.             }
  538.             
  539.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  540.                 base.OnRowDeleting(e);
  541.                 if ((this.主生产计划RowDeleting != null)) {
  542.                     this.主生产计划RowDeleting(this, new 主生产计划RowChangeEvent(((主生产计划Row)(e.Row)), e.Action));
  543.                 }
  544.             }
  545.             
  546.             public void Remove主生产计划Row(主生产计划Row row) {
  547.                 this.Rows.Remove(row);
  548.             }
  549.         }
  550.         
  551.         [System.Diagnostics.DebuggerStepThrough()]
  552.         public class 主生产计划Row : DataRow {
  553.             
  554.             private 主生产计划DataTable table主生产计划;
  555.             
  556.             internal 主生产计划Row(DataRowBuilder rb) : 
  557.                     base(rb) {
  558.                 this.table主生产计划 = ((主生产计划DataTable)(this.Table));
  559.             }
  560.             
  561.             public string 物料名称 {
  562.                 get {
  563.                     return ((string)(this[this.table主生产计划.物料名称Column]));
  564.                 }
  565.                 set {
  566.                     this[this.table主生产计划.物料名称Column] = value;
  567.                 }
  568.             }
  569.             
  570.             public string 物料编号 {
  571.                 get {
  572.                     return ((string)(this[this.table主生产计划.物料编号Column]));
  573.                 }
  574.                 set {
  575.                     this[this.table主生产计划.物料编号Column] = value;
  576.                 }
  577.             }
  578.             
  579.             public string 编号 {
  580.                 get {
  581.                     try {
  582.                         return ((string)(this[this.table主生产计划.编号Column]));
  583.                     }
  584.                     catch (InvalidCastException e) {
  585.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  586.                     }
  587.                 }
  588.                 set {
  589.                     this[this.table主生产计划.编号Column] = value;
  590.                 }
  591.             }
  592.             
  593.             public int 年份 {
  594.                 get {
  595.                     return ((int)(this[this.table主生产计划.年份Column]));
  596.                 }
  597.                 set {
  598.                     this[this.table主生产计划.年份Column] = value;
  599.                 }
  600.             }
  601.             
  602.             public int 计划期 {
  603.                 get {
  604.                     return ((int)(this[this.table主生产计划.计划期Column]));
  605.                 }
  606.                 set {
  607.                     this[this.table主生产计划.计划期Column] = value;
  608.                 }
  609.             }
  610.             
  611.             public int 开始日期 {
  612.                 get {
  613.                     try {
  614.                         return ((int)(this[this.table主生产计划.开始日期Column]));
  615.                     }
  616.                     catch (InvalidCastException e) {
  617.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  618.                     }
  619.                 }
  620.                 set {
  621.                     this[this.table主生产计划.开始日期Column] = value;
  622.                 }
  623.             }
  624.             
  625.             public int 结束日期 {
  626.                 get {
  627.                     try {
  628.                         return ((int)(this[this.table主生产计划.结束日期Column]));
  629.                     }
  630.                     catch (InvalidCastException e) {
  631.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  632.                     }
  633.                 }
  634.                 set {
  635.                     this[this.table主生产计划.结束日期Column] = value;
  636.                 }
  637.             }
  638.             
  639.             public System.Decimal 期初库存 {
  640.                 get {
  641.                     try {
  642.                         return ((System.Decimal)(this[this.table主生产计划.期初库存Column]));
  643.                     }
  644.                     catch (InvalidCastException e) {
  645.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  646.                     }
  647.                 }
  648.                 set {
  649.                     this[this.table主生产计划.期初库存Column] = value;
  650.                 }
  651.             }
  652.             
  653.             public System.Decimal 需求数量 {
  654.                 get {
  655.                     try {
  656.                         return ((System.Decimal)(this[this.table主生产计划.需求数量Column]));
  657.                     }
  658.                     catch (InvalidCastException e) {
  659.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  660.                     }
  661.                 }
  662.                 set {
  663.                     this[this.table主生产计划.需求数量Column] = value;
  664.                 }
  665.             }
  666.             
  667.             public System.Decimal MPS数量 {
  668.                 get {
  669.                     return ((System.Decimal)(this[this.table主生产计划.MPS数量Column]));
  670.                 }
  671.                 set {
  672.                     this[this.table主生产计划.MPS数量Column] = value;
  673.                 }
  674.             }
  675.             
  676.             public System.Decimal 生产单数量 {
  677.                 get {
  678.                     try {
  679.                         return ((System.Decimal)(this[this.table主生产计划.生产单数量Column]));
  680.                     }
  681.                     catch (InvalidCastException e) {
  682.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  683.                     }
  684.                 }
  685.                 set {
  686.                     this[this.table主生产计划.生产单数量Column] = value;
  687.                 }
  688.             }
  689.             
  690.             public System.Decimal 预计库存 {
  691.                 get {
  692.                     try {
  693.                         return ((System.Decimal)(this[this.table主生产计划.预计库存Column]));
  694.                     }
  695.                     catch (InvalidCastException e) {
  696.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  697.                     }
  698.                 }
  699.                 set {
  700.                     this[this.table主生产计划.预计库存Column] = value;
  701.                 }
  702.             }
  703.             
  704.             public string 记帐人 {
  705.                 get {
  706.                     try {
  707.                         return ((string)(this[this.table主生产计划.记帐人Column]));
  708.                     }
  709.                     catch (InvalidCastException e) {
  710.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  711.                     }
  712.                 }
  713.                 set {
  714.                     this[this.table主生产计划.记帐人Column] = value;
  715.                 }
  716.             }
  717.             
  718.             public int 修改日期 {
  719.                 get {
  720.                     try {
  721.                         return ((int)(this[this.table主生产计划.修改日期Column]));
  722.                     }
  723.                     catch (InvalidCastException e) {
  724.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  725.                     }
  726.                 }
  727.                 set {
  728.                     this[this.table主生产计划.修改日期Column] = value;
  729.                 }
  730.             }
  731.             
  732.             public string 审核人 {
  733.                 get {
  734.                     try {
  735.                         return ((string)(this[this.table主生产计划.审核人Column]));
  736.                     }
  737.                     catch (InvalidCastException e) {
  738.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  739.                     }
  740.                 }
  741.                 set {
  742.                     this[this.table主生产计划.审核人Column] = value;
  743.                 }
  744.             }
  745.             
  746.             public int 审核日期 {
  747.                 get {
  748.                     try {
  749.                         return ((int)(this[this.table主生产计划.审核日期Column]));
  750.                     }
  751.                     catch (InvalidCastException e) {
  752.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  753.                     }
  754.                 }
  755.                 set {
  756.                     this[this.table主生产计划.审核日期Column] = value;
  757.                 }
  758.             }
  759.             
  760.             public string 状态 {
  761.                 get {
  762.                     return ((string)(this[this.table主生产计划.状态Column]));
  763.                 }
  764.                 set {
  765.                     this[this.table主生产计划.状态Column] = value;
  766.                 }
  767.             }
  768.             
  769.             public string 备注 {
  770.                 get {
  771.                     try {
  772.                         return ((string)(this[this.table主生产计划.备注Column]));
  773.                     }
  774.                     catch (InvalidCastException e) {
  775.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  776.                     }
  777.                 }
  778.                 set {
  779.                     this[this.table主生产计划.备注Column] = value;
  780.                 }
  781.             }
  782.             
  783.             public bool Is编号Null() {
  784.                 return this.IsNull(this.table主生产计划.编号Column);
  785.             }
  786.             
  787.             public void Set编号Null() {
  788.                 this[this.table主生产计划.编号Column] = System.Convert.DBNull;
  789.             }
  790.             
  791.             public bool Is开始日期Null() {
  792.                 return this.IsNull(this.table主生产计划.开始日期Column);
  793.             }
  794.             
  795.             public void Set开始日期Null() {
  796.                 this[this.table主生产计划.开始日期Column] = System.Convert.DBNull;
  797.             }
  798.             
  799.             public bool Is结束日期Null() {
  800.                 return this.IsNull(this.table主生产计划.结束日期Column);
  801.             }
  802.             
  803.             public void Set结束日期Null() {
  804.                 this[this.table主生产计划.结束日期Column] = System.Convert.DBNull;
  805.             }
  806.             
  807.             public bool Is期初库存Null() {
  808.                 return this.IsNull(this.table主生产计划.期初库存Column);
  809.             }
  810.             
  811.             public void Set期初库存Null() {
  812.                 this[this.table主生产计划.期初库存Column] = System.Convert.DBNull;
  813.             }
  814.             
  815.             public bool Is需求数量Null() {
  816.                 return this.IsNull(this.table主生产计划.需求数量Column);
  817.             }
  818.             
  819.             public void Set需求数量Null() {
  820.                 this[this.table主生产计划.需求数量Column] = System.Convert.DBNull;
  821.             }
  822.             
  823.             public bool Is生产单数量Null() {
  824.                 return this.IsNull(this.table主生产计划.生产单数量Column);
  825.             }
  826.             
  827.             public void Set生产单数量Null() {
  828.                 this[this.table主生产计划.生产单数量Column] = System.Convert.DBNull;
  829.             }
  830.             
  831.             public bool Is预计库存Null() {
  832.                 return this.IsNull(this.table主生产计划.预计库存Column);
  833.             }
  834.             
  835.             public void Set预计库存Null() {
  836.                 this[this.table主生产计划.预计库存Column] = System.Convert.DBNull;
  837.             }
  838.             
  839.             public bool Is记帐人Null() {
  840.                 return this.IsNull(this.table主生产计划.记帐人Column);
  841.             }
  842.             
  843.             public void Set记帐人Null() {
  844.                 this[this.table主生产计划.记帐人Column] = System.Convert.DBNull;
  845.             }
  846.             
  847.             public bool Is修改日期Null() {
  848.                 return this.IsNull(this.table主生产计划.修改日期Column);
  849.             }
  850.             
  851.             public void Set修改日期Null() {
  852.                 this[this.table主生产计划.修改日期Column] = System.Convert.DBNull;
  853.             }
  854.             
  855.             public bool Is审核人Null() {
  856.                 return this.IsNull(this.table主生产计划.审核人Column);
  857.             }
  858.             
  859.             public void Set审核人Null() {
  860.                 this[this.table主生产计划.审核人Column] = System.Convert.DBNull;
  861.             }
  862.             
  863.             public bool Is审核日期Null() {
  864.                 return this.IsNull(this.table主生产计划.审核日期Column);
  865.             }
  866.             
  867.             public void Set审核日期Null() {
  868.                 this[this.table主生产计划.审核日期Column] = System.Convert.DBNull;
  869.             }
  870.             
  871.             public bool Is备注Null() {
  872.                 return this.IsNull(this.table主生产计划.备注Column);
  873.             }
  874.             
  875.             public void Set备注Null() {
  876.                 this[this.table主生产计划.备注Column] = System.Convert.DBNull;
  877.             }
  878.         }
  879.         
  880.         [System.Diagnostics.DebuggerStepThrough()]
  881.         public class 主生产计划RowChangeEvent : EventArgs {
  882.             
  883.             private 主生产计划Row eventRow;
  884.             
  885.             private DataRowAction eventAction;
  886.             
  887.             public 主生产计划RowChangeEvent(主生产计划Row row, DataRowAction action) {
  888.                 this.eventRow = row;
  889.                 this.eventAction = action;
  890.             }
  891.             
  892.             public 主生产计划Row Row {
  893.                 get {
  894.                     return this.eventRow;
  895.                 }
  896.             }
  897.             
  898.             public DataRowAction Action {
  899.                 get {
  900.                     return this.eventAction;
  901.                 }
  902.             }
  903.         }
  904.         
  905.         [System.Diagnostics.DebuggerStepThrough()]
  906.         public class mrp物料需求计算DataTable : DataTable, System.Collections.IEnumerable {
  907.             
  908.             private DataColumn column物料名称;
  909.             
  910.             private DataColumn column物料编号;
  911.             
  912.             private DataColumn column年份;
  913.             
  914.             private DataColumn column计划期;
  915.             
  916.             private DataColumn column期初库存;
  917.             
  918.             private DataColumn column毛需求;
  919.             
  920.             private DataColumn column预计入库;
  921.             
  922.             private DataColumn column预计出库;
  923.             
  924.             private DataColumn column预计库存;
  925.             
  926.             private DataColumn column净需求;
  927.             
  928.             private DataColumn column计划产出;
  929.             
  930.             private DataColumn column计划投入;
  931.             
  932.             internal mrp物料需求计算DataTable() : 
  933.                     base("mrp物料需求计算") {
  934.                 this.InitClass();
  935.             }
  936.             
  937.             internal mrp物料需求计算DataTable(DataTable table) : 
  938.                     base(table.TableName) {
  939.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  940.                     this.CaseSensitive = table.CaseSensitive;
  941.                 }
  942.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  943.                     this.Locale = table.Locale;
  944.                 }
  945.                 if ((table.Namespace != table.DataSet.Namespace)) {
  946.                     this.Namespace = table.Namespace;
  947.                 }
  948.                 this.Prefix = table.Prefix;
  949.                 this.MinimumCapacity = table.MinimumCapacity;
  950.                 this.DisplayExpression = table.DisplayExpression;
  951.             }
  952.             
  953.             [System.ComponentModel.Browsable(false)]
  954.             public int Count {
  955.                 get {
  956.                     return this.Rows.Count;
  957.                 }
  958.             }
  959.             
  960.             internal DataColumn 物料名称Column {
  961.                 get {
  962.                     return this.column物料名称;
  963.                 }
  964.             }
  965.             
  966.             internal DataColumn 物料编号Column {
  967.                 get {
  968.                     return this.column物料编号;
  969.                 }
  970.             }
  971.             
  972.             internal DataColumn 年份Column {
  973.                 get {
  974.                     return this.column年份;
  975.                 }
  976.             }
  977.             
  978.             internal DataColumn 计划期Column {
  979.                 get {
  980.                     return this.column计划期;
  981.                 }
  982.             }
  983.             
  984.             internal DataColumn 期初库存Column {
  985.                 get {
  986.                     return this.column期初库存;
  987.                 }
  988.             }
  989.             
  990.             internal DataColumn 毛需求Column {
  991.                 get {
  992.                     return this.column毛需求;
  993.                 }
  994.             }
  995.             
  996.             internal DataColumn 预计入库Column {
  997.                 get {
  998.                     return this.column预计入库;
  999.                 }
  1000.             }
  1001.             
  1002.             internal DataColumn 预计出库Column {
  1003.                 get {
  1004.                     return this.column预计出库;
  1005.                 }
  1006.             }
  1007.             
  1008.             internal DataColumn 预计库存Column {
  1009.                 get {
  1010.                     return this.column预计库存;
  1011.                 }
  1012.             }
  1013.             
  1014.             internal DataColumn 净需求Column {
  1015.                 get {
  1016.                     return this.column净需求;
  1017.                 }
  1018.             }
  1019.             
  1020.             internal DataColumn 计划产出Column {
  1021.                 get {
  1022.                     return this.column计划产出;
  1023.                 }
  1024.             }
  1025.             
  1026.             internal DataColumn 计划投入Column {
  1027.                 get {
  1028.                     return this.column计划投入;
  1029.                 }
  1030.             }
  1031.             
  1032.             public mrp物料需求计算Row this[int index] {
  1033.                 get {
  1034.                     return ((mrp物料需求计算Row)(this.Rows[index]));
  1035.                 }
  1036.             }
  1037.             
  1038.             public event mrp物料需求计算RowChangeEventHandler mrp物料需求计算RowChanged;
  1039.             
  1040.             public event mrp物料需求计算RowChangeEventHandler mrp物料需求计算RowChanging;
  1041.             
  1042.             public event mrp物料需求计算RowChangeEventHandler mrp物料需求计算RowDeleted;
  1043.             
  1044.             public event mrp物料需求计算RowChangeEventHandler mrp物料需求计算RowDeleting;
  1045.             
  1046.             public void Addmrp物料需求计算Row(mrp物料需求计算Row row) {
  1047.                 this.Rows.Add(row);
  1048.             }
  1049.             
  1050.             public mrp物料需求计算Row Addmrp物料需求计算Row(string 物料名称, string 物料编号, int 年份, int 计划期, System.Decimal 期初库存, System.Decimal 毛需求, System.Decimal 预计入库, System.Decimal 预计出库, System.Decimal 预计库存, System.Decimal 净需求, System.Decimal 计划产出, System.Decimal 计划投入) {
  1051.                 mrp物料需求计算Row rowmrp物料需求计算Row = ((mrp物料需求计算Row)(this.NewRow()));
  1052.                 rowmrp物料需求计算Row.ItemArray = new object[] {
  1053.                         物料名称,
  1054.                         物料编号,
  1055.                         年份,
  1056.                         计划期,
  1057.                         期初库存,
  1058.                         毛需求,
  1059.                         预计入库,
  1060.                         预计出库,
  1061.                         预计库存,
  1062.                         净需求,
  1063.                         计划产出,
  1064.                         计划投入};
  1065.                 this.Rows.Add(rowmrp物料需求计算Row);
  1066.                 return rowmrp物料需求计算Row;
  1067.             }
  1068.             
  1069.             public System.Collections.IEnumerator GetEnumerator() {
  1070.                 return this.Rows.GetEnumerator();
  1071.             }
  1072.             
  1073.             public override DataTable Clone() {
  1074.                 mrp物料需求计算DataTable cln = ((mrp物料需求计算DataTable)(base.Clone()));
  1075.                 cln.InitVars();
  1076.                 return cln;
  1077.             }
  1078.             
  1079.             protected override DataTable CreateInstance() {
  1080.                 return new mrp物料需求计算DataTable();
  1081.             }
  1082.             
  1083.             internal void InitVars() {
  1084.                 this.column物料名称 = this.Columns["物料名称"];
  1085.                 this.column物料编号 = this.Columns["物料编号"];
  1086.                 this.column年份 = this.Columns["年份"];
  1087.                 this.column计划期 = this.Columns["计划期"];
  1088.                 this.column期初库存 = this.Columns["期初库存"];
  1089.                 this.column毛需求 = this.Columns["毛需求"];
  1090.                 this.column预计入库 = this.Columns["预计入库"];
  1091.                 this.column预计出库 = this.Columns["预计出库"];
  1092.                 this.column预计库存 = this.Columns["预计库存"];
  1093.                 this.column净需求 = this.Columns["净需求"];
  1094.                 this.column计划产出 = this.Columns["计划产出"];
  1095.                 this.column计划投入 = this.Columns["计划投入"];
  1096.             }
  1097.             
  1098.             private void InitClass() {
  1099.                 this.column物料名称 = new DataColumn("物料名称", typeof(string), null, System.Data.MappingType.Element);
  1100.                 this.Columns.Add(this.column物料名称);
  1101.                 this.column物料编号 = new DataColumn("物料编号", typeof(string), null, System.Data.MappingType.Element);
  1102.                 this.Columns.Add(this.column物料编号);
  1103.                 this.column年份 = new DataColumn("年份", typeof(int), null, System.Data.MappingType.Element);
  1104.                 this.Columns.Add(this.column年份);
  1105.                 this.column计划期 = new DataColumn("计划期", typeof(int), null, System.Data.MappingType.Element);
  1106.                 this.Columns.Add(this.column计划期);
  1107.                 this.column期初库存 = new DataColumn("期初库存", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1108.                 this.Columns.Add(this.column期初库存);
  1109.                 this.column毛需求 = new DataColumn("毛需求", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1110.                 this.Columns.Add(this.column毛需求);
  1111.                 this.column预计入库 = new DataColumn("预计入库", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1112.                 this.Columns.Add(this.column预计入库);
  1113.                 this.column预计出库 = new DataColumn("预计出库", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1114.                 this.Columns.Add(this.column预计出库);
  1115.                 this.column预计库存 = new DataColumn("预计库存", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1116.                 this.Columns.Add(this.column预计库存);
  1117.                 this.column净需求 = new DataColumn("净需求", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1118.                 this.Columns.Add(this.column净需求);
  1119.                 this.column计划产出 = new DataColumn("计划产出", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1120.                 this.Columns.Add(this.column计划产出);
  1121.                 this.column计划投入 = new DataColumn("计划投入", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1122.                 this.Columns.Add(this.column计划投入);
  1123.                 this.column物料名称.AllowDBNull = false;
  1124.                 this.column物料编号.AllowDBNull = false;
  1125.                 this.column年份.AllowDBNull = false;
  1126.                 this.column计划期.AllowDBNull = false;
  1127.             }
  1128.             
  1129.             public mrp物料需求计算Row Newmrp物料需求计算Row() {
  1130.                 return ((mrp物料需求计算Row)(this.NewRow()));
  1131.             }
  1132.             
  1133.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  1134.                 return new mrp物料需求计算Row(builder);
  1135.             }
  1136.             
  1137.             protected override System.Type GetRowType() {
  1138.                 return typeof(mrp物料需求计算Row);
  1139.             }
  1140.             
  1141.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  1142.                 base.OnRowChanged(e);
  1143.                 if ((this.mrp物料需求计算RowChanged != null)) {
  1144.                     this.mrp物料需求计算RowChanged(this, new mrp物料需求计算RowChangeEvent(((mrp物料需求计算Row)(e.Row)), e.Action));
  1145.                 }
  1146.             }
  1147.             
  1148.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  1149.                 base.OnRowChanging(e);
  1150.                 if ((this.mrp物料需求计算RowChanging != null)) {
  1151.                     this.mrp物料需求计算RowChanging(this, new mrp物料需求计算RowChangeEvent(((mrp物料需求计算Row)(e.Row)), e.Action));
  1152.                 }
  1153.             }
  1154.             
  1155.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  1156.                 base.OnRowDeleted(e);
  1157.                 if ((this.mrp物料需求计算RowDeleted != null)) {
  1158.                     this.mrp物料需求计算RowDeleted(this, new mrp物料需求计算RowChangeEvent(((mrp物料需求计算Row)(e.Row)), e.Action));
  1159.                 }
  1160.             }
  1161.             
  1162.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  1163.                 base.OnRowDeleting(e);
  1164.                 if ((this.mrp物料需求计算RowDeleting != null)) {
  1165.                     this.mrp物料需求计算RowDeleting(this, new mrp物料需求计算RowChangeEvent(((mrp物料需求计算Row)(e.Row)), e.Action));
  1166.                 }
  1167.             }
  1168.             
  1169.             public void Removemrp物料需求计算Row(mrp物料需求计算Row row) {
  1170.                 this.Rows.Remove(row);
  1171.             }
  1172.         }
  1173.         
  1174.         [System.Diagnostics.DebuggerStepThrough()]
  1175.         public class mrp物料需求计算Row : DataRow {
  1176.             
  1177.             private mrp物料需求计算DataTable tablemrp物料需求计算;
  1178.             
  1179.             internal mrp物料需求计算Row(DataRowBuilder rb) : 
  1180.                     base(rb) {
  1181.                 this.tablemrp物料需求计算 = ((mrp物料需求计算DataTable)(this.Table));
  1182.             }
  1183.             
  1184.             public string 物料名称 {
  1185.                 get {
  1186.                     return ((string)(this[this.tablemrp物料需求计算.物料名称Column]));
  1187.                 }
  1188.                 set {
  1189.                     this[this.tablemrp物料需求计算.物料名称Column] = value;
  1190.                 }
  1191.             }
  1192.             
  1193.             public string 物料编号 {
  1194.                 get {
  1195.                     return ((string)(this[this.tablemrp物料需求计算.物料编号Column]));
  1196.                 }
  1197.                 set {
  1198.                     this[this.tablemrp物料需求计算.物料编号Column] = value;
  1199.                 }
  1200.             }
  1201.             
  1202.             public int 年份 {
  1203.                 get {
  1204.                     return ((int)(this[this.tablemrp物料需求计算.年份Column]));
  1205.                 }
  1206.                 set {
  1207.                     this[this.tablemrp物料需求计算.年份Column] = value;
  1208.                 }
  1209.             }
  1210.             
  1211.             public int 计划期 {
  1212.                 get {
  1213.                     return ((int)(this[this.tablemrp物料需求计算.计划期Column]));
  1214.                 }
  1215.                 set {
  1216.                     this[this.tablemrp物料需求计算.计划期Column] = value;
  1217.                 }
  1218.             }
  1219.             
  1220.             public System.Decimal 期初库存 {
  1221.                 get {
  1222.                     try {
  1223.                         return ((System.Decimal)(this[this.tablemrp物料需求计算.期初库存Column]));
  1224.                     }
  1225.                     catch (InvalidCastException e) {
  1226.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1227.                     }
  1228.                 }
  1229.                 set {
  1230.                     this[this.tablemrp物料需求计算.期初库存Column] = value;
  1231.                 }
  1232.             }
  1233.             
  1234.             public System.Decimal 毛需求 {
  1235.                 get {
  1236.                     try {
  1237.                         return ((System.Decimal)(this[this.tablemrp物料需求计算.毛需求Column]));
  1238.                     }
  1239.                     catch (InvalidCastException e) {
  1240.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1241.                     }
  1242.                 }
  1243.                 set {
  1244.                     this[this.tablemrp物料需求计算.毛需求Column] = value;
  1245.                 }
  1246.             }
  1247.             
  1248.             public System.Decimal 预计入库 {
  1249.                 get {
  1250.                     try {
  1251.                         return ((System.Decimal)(this[this.tablemrp物料需求计算.预计入库Column]));
  1252.                     }
  1253.                     catch (InvalidCastException e) {
  1254.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1255.                     }
  1256.                 }
  1257.                 set {
  1258.                     this[this.tablemrp物料需求计算.预计入库Column] = value;
  1259.                 }
  1260.             }
  1261.             
  1262.             public System.Decimal 预计出库 {
  1263.                 get {
  1264.                     try {
  1265.                         return ((System.Decimal)(this[this.tablemrp物料需求计算.预计出库Column]));
  1266.                     }
  1267.                     catch (InvalidCastException e) {
  1268.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1269.                     }
  1270.                 }
  1271.                 set {
  1272.                     this[this.tablemrp物料需求计算.预计出库Column] = value;
  1273.                 }
  1274.             }
  1275.             
  1276.             public System.Decimal 预计库存 {
  1277.                 get {
  1278.                     try {
  1279.                         return ((System.Decimal)(this[this.tablemrp物料需求计算.预计库存Column]));
  1280.                     }
  1281.                     catch (InvalidCastException e) {
  1282.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1283.                     }
  1284.                 }
  1285.                 set {
  1286.                     this[this.tablemrp物料需求计算.预计库存Column] = value;
  1287.                 }
  1288.             }
  1289.             
  1290.             public System.Decimal 净需求 {
  1291.                 get {
  1292.                     try {
  1293.                         return ((System.Decimal)(this[this.tablemrp物料需求计算.净需求Column]));
  1294.                     }
  1295.                     catch (InvalidCastException e) {
  1296.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1297.                     }
  1298.                 }
  1299.                 set {
  1300.                     this[this.tablemrp物料需求计算.净需求Column] = value;
  1301.                 }
  1302.             }
  1303.             
  1304.             public System.Decimal 计划产出 {
  1305.                 get {
  1306.                     try {
  1307.                         return ((System.Decimal)(this[this.tablemrp物料需求计算.计划产出Column]));
  1308.                     }
  1309.                     catch (InvalidCastException e) {
  1310.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1311.                     }
  1312.                 }
  1313.                 set {
  1314.                     this[this.tablemrp物料需求计算.计划产出Column] = value;
  1315.                 }
  1316.             }
  1317.             
  1318.             public System.Decimal 计划投入 {
  1319.                 get {
  1320.                     try {
  1321.                         return ((System.Decimal)(this[this.tablemrp物料需求计算.计划投入Column]));
  1322.                     }
  1323.                     catch (InvalidCastException e) {
  1324.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1325.                     }
  1326.                 }
  1327.                 set {
  1328.                     this[this.tablemrp物料需求计算.计划投入Column] = value;
  1329.                 }
  1330.             }
  1331.             
  1332.             public bool Is期初库存Null() {
  1333.                 return this.IsNull(this.tablemrp物料需求计算.期初库存Column);
  1334.             }
  1335.             
  1336.             public void Set期初库存Null() {
  1337.                 this[this.tablemrp物料需求计算.期初库存Column] = System.Convert.DBNull;
  1338.             }
  1339.             
  1340.             public bool Is毛需求Null() {
  1341.                 return this.IsNull(this.tablemrp物料需求计算.毛需求Column);
  1342.             }
  1343.             
  1344.             public void Set毛需求Null() {
  1345.                 this[this.tablemrp物料需求计算.毛需求Column] = System.Convert.DBNull;
  1346.             }
  1347.             
  1348.             public bool Is预计入库Null() {
  1349.                 return this.IsNull(this.tablemrp物料需求计算.预计入库Column);
  1350.             }
  1351.             
  1352.             public void Set预计入库Null() {
  1353.                 this[this.tablemrp物料需求计算.预计入库Column] = System.Convert.DBNull;
  1354.             }
  1355.             
  1356.             public bool Is预计出库Null() {
  1357.                 return this.IsNull(this.tablemrp物料需求计算.预计出库Column);
  1358.             }
  1359.             
  1360.             public void Set预计出库Null() {
  1361.                 this[this.tablemrp物料需求计算.预计出库Column] = System.Convert.DBNull;
  1362.             }
  1363.             
  1364.             public bool Is预计库存Null() {
  1365.                 return this.IsNull(this.tablemrp物料需求计算.预计库存Column);
  1366.             }
  1367.             
  1368.             public void Set预计库存Null() {
  1369.                 this[this.tablemrp物料需求计算.预计库存Column] = System.Convert.DBNull;
  1370.             }
  1371.             
  1372.             public bool Is净需求Null() {
  1373.                 return this.IsNull(this.tablemrp物料需求计算.净需求Column);
  1374.             }
  1375.             
  1376.             public void Set净需求Null() {
  1377.                 this[this.tablemrp物料需求计算.净需求Column] = System.Convert.DBNull;
  1378.             }
  1379.             
  1380.             public bool Is计划产出Null() {
  1381.                 return this.IsNull(this.tablemrp物料需求计算.计划产出Column);
  1382.             }
  1383.             
  1384.             public void Set计划产出Null() {
  1385.                 this[this.tablemrp物料需求计算.计划产出Column] = System.Convert.DBNull;
  1386.             }
  1387.             
  1388.             public bool Is计划投入Null() {
  1389.                 return this.IsNull(this.tablemrp物料需求计算.计划投入Column);
  1390.             }
  1391.             
  1392.             public void Set计划投入Null() {
  1393.                 this[this.tablemrp物料需求计算.计划投入Column] = System.Convert.DBNull;
  1394.             }
  1395.         }
  1396.         
  1397.         [System.Diagnostics.DebuggerStepThrough()]
  1398.         public class mrp物料需求计算RowChangeEvent : EventArgs {
  1399.             
  1400.             private mrp物料需求计算Row eventRow;
  1401.             
  1402.             private DataRowAction eventAction;
  1403.             
  1404.             public mrp物料需求计算RowChangeEvent(mrp物料需求计算Row row, DataRowAction action) {
  1405.                 this.eventRow = row;
  1406.                 this.eventAction = action;
  1407.             }
  1408.             
  1409.             public mrp物料需求计算Row Row {
  1410.                 get {
  1411.                     return this.eventRow;
  1412.                 }
  1413.             }
  1414.             
  1415.             public DataRowAction Action {
  1416.                 get {
  1417.                     return this.eventAction;
  1418.                 }
  1419.             }
  1420.         }
  1421.         
  1422.         [System.Diagnostics.DebuggerStepThrough()]
  1423.         public class mrp物料需求历史DataTable : DataTable, System.Collections.IEnumerable {
  1424.             
  1425.             private DataColumn column物料名称;
  1426.             
  1427.             private DataColumn column发布编号;
  1428.             
  1429.             private DataColumn column发布时间;
  1430.             
  1431.             private DataColumn column物料编号;
  1432.             
  1433.             private DataColumn column年份;
  1434.             
  1435.             private DataColumn column计划期;
  1436.             
  1437.             private DataColumn column期初库存;
  1438.             
  1439.             private DataColumn column毛需求;
  1440.             
  1441.             private DataColumn column预计入库;
  1442.             
  1443.             private DataColumn column预计出库;
  1444.             
  1445.             private DataColumn column预计库存;
  1446.             
  1447.             private DataColumn column净需求;
  1448.             
  1449.             private DataColumn column计划产出;
  1450.             
  1451.             private DataColumn column计划投入;
  1452.             
  1453.             internal mrp物料需求历史DataTable() : 
  1454.                     base("mrp物料需求历史") {
  1455.                 this.InitClass();
  1456.             }
  1457.             
  1458.             internal mrp物料需求历史DataTable(DataTable table) : 
  1459.                     base(table.TableName) {
  1460.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1461.                     this.CaseSensitive = table.CaseSensitive;
  1462.                 }
  1463.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1464.                     this.Locale = table.Locale;
  1465.                 }
  1466.                 if ((table.Namespace != table.DataSet.Namespace)) {
  1467.                     this.Namespace = table.Namespace;
  1468.                 }
  1469.                 this.Prefix = table.Prefix;
  1470.                 this.MinimumCapacity = table.MinimumCapacity;
  1471.                 this.DisplayExpression = table.DisplayExpression;
  1472.             }
  1473.             
  1474.             [System.ComponentModel.Browsable(false)]
  1475.             public int Count {
  1476.                 get {
  1477.                     return this.Rows.Count;
  1478.                 }
  1479.             }
  1480.             
  1481.             internal DataColumn 物料名称Column {
  1482.                 get {
  1483.                     return this.column物料名称;
  1484.                 }
  1485.             }
  1486.             
  1487.             internal DataColumn 发布编号Column {
  1488.                 get {
  1489.                     return this.column发布编号;
  1490.                 }
  1491.             }
  1492.             
  1493.             internal DataColumn 发布时间Column {
  1494.                 get {
  1495.                     return this.column发布时间;
  1496.                 }
  1497.             }
  1498.             
  1499.             internal DataColumn 物料编号Column {
  1500.                 get {
  1501.                     return this.column物料编号;
  1502.                 }
  1503.             }
  1504.             
  1505.             internal DataColumn 年份Column {
  1506.                 get {
  1507.                     return this.column年份;
  1508.                 }
  1509.             }
  1510.             
  1511.             internal DataColumn 计划期Column {
  1512.                 get {
  1513.                     return this.column计划期;
  1514.                 }
  1515.             }
  1516.             
  1517.             internal DataColumn 期初库存Column {
  1518.                 get {
  1519.                     return this.column期初库存;
  1520.                 }
  1521.             }
  1522.             
  1523.             internal DataColumn 毛需求Column {
  1524.                 get {
  1525.                     return this.column毛需求;
  1526.                 }
  1527.             }
  1528.             
  1529.             internal DataColumn 预计入库Column {
  1530.                 get {
  1531.                     return this.column预计入库;
  1532.                 }
  1533.             }
  1534.             
  1535.             internal DataColumn 预计出库Column {
  1536.                 get {
  1537.                     return this.column预计出库;
  1538.                 }
  1539.             }
  1540.             
  1541.             internal DataColumn 预计库存Column {
  1542.                 get {
  1543.                     return this.column预计库存;
  1544.                 }
  1545.             }
  1546.             
  1547.             internal DataColumn 净需求Column {
  1548.                 get {
  1549.                     return this.column净需求;
  1550.                 }
  1551.             }
  1552.             
  1553.             internal DataColumn 计划产出Column {
  1554.                 get {
  1555.                     return this.column计划产出;
  1556.                 }
  1557.             }
  1558.             
  1559.             internal DataColumn 计划投入Column {
  1560.                 get {
  1561.                     return this.column计划投入;
  1562.                 }
  1563.             }
  1564.             
  1565.             public mrp物料需求历史Row this[int index] {
  1566.                 get {
  1567.                     return ((mrp物料需求历史Row)(this.Rows[index]));
  1568.                 }
  1569.             }
  1570.             
  1571.             public event mrp物料需求历史RowChangeEventHandler mrp物料需求历史RowChanged;
  1572.             
  1573.             public event mrp物料需求历史RowChangeEventHandler mrp物料需求历史RowChanging;
  1574.             
  1575.             public event mrp物料需求历史RowChangeEventHandler mrp物料需求历史RowDeleted;
  1576.             
  1577.             public event mrp物料需求历史RowChangeEventHandler mrp物料需求历史RowDeleting;
  1578.             
  1579.             public void Addmrp物料需求历史Row(mrp物料需求历史Row row) {
  1580.                 this.Rows.Add(row);
  1581.             }
  1582.             
  1583.             public mrp物料需求历史Row Addmrp物料需求历史Row(string 物料名称, string 发布编号, System.DateTime 发布时间, string 物料编号, int 年份, int 计划期, System.Decimal 期初库存, System.Decimal 毛需求, System.Decimal 预计入库, string 预计出库, System.Decimal 预计库存, System.Decimal 净需求, System.Decimal 计划产出, System.Decimal 计划投入) {
  1584.                 mrp物料需求历史Row rowmrp物料需求历史Row = ((mrp物料需求历史Row)(this.NewRow()));
  1585.                 rowmrp物料需求历史Row.ItemArray = new object[] {
  1586.                         物料名称,
  1587.                         发布编号,
  1588.                         发布时间,
  1589.                         物料编号,
  1590.                         年份,
  1591.                         计划期,
  1592.                         期初库存,
  1593.                         毛需求,
  1594.                         预计入库,
  1595.                         预计出库,
  1596.                         预计库存,
  1597.                         净需求,
  1598.                         计划产出,
  1599.                         计划投入};
  1600.                 this.Rows.Add(rowmrp物料需求历史Row);
  1601.                 return rowmrp物料需求历史Row;
  1602.             }
  1603.             
  1604.             public System.Collections.IEnumerator GetEnumerator() {
  1605.                 return this.Rows.GetEnumerator();
  1606.             }
  1607.             
  1608.             public override DataTable Clone() {
  1609.                 mrp物料需求历史DataTable cln = ((mrp物料需求历史DataTable)(base.Clone()));
  1610.                 cln.InitVars();
  1611.                 return cln;
  1612.             }
  1613.             
  1614.             protected override DataTable CreateInstance() {
  1615.                 return new mrp物料需求历史DataTable();
  1616.             }
  1617.             
  1618.             internal void InitVars() {
  1619.                 this.column物料名称 = this.Columns["物料名称"];
  1620.                 this.column发布编号 = this.Columns["发布编号"];
  1621.                 this.column发布时间 = this.Columns["发布时间"];
  1622.                 this.column物料编号 = this.Columns["物料编号"];
  1623.                 this.column年份 = this.Columns["年份"];
  1624.                 this.column计划期 = this.Columns["计划期"];
  1625.                 this.column期初库存 = this.Columns["期初库存"];
  1626.                 this.column毛需求 = this.Columns["毛需求"];
  1627.                 this.column预计入库 = this.Columns["预计入库"];
  1628.                 this.column预计出库 = this.Columns["预计出库"];
  1629.                 this.column预计库存 = this.Columns["预计库存"];
  1630.                 this.column净需求 = this.Columns["净需求"];
  1631.                 this.column计划产出 = this.Columns["计划产出"];
  1632.                 this.column计划投入 = this.Columns["计划投入"];
  1633.             }
  1634.             
  1635.             private void InitClass() {
  1636.                 this.column物料名称 = new DataColumn("物料名称", typeof(string), null, System.Data.MappingType.Element);
  1637.                 this.Columns.Add(this.column物料名称);
  1638.                 this.column发布编号 = new DataColumn("发布编号", typeof(string), null, System.Data.MappingType.Element);
  1639.                 this.Columns.Add(this.column发布编号);
  1640.                 this.column发布时间 = new DataColumn("发布时间", typeof(System.DateTime), null, System.Data.MappingType.Element);
  1641.                 this.Columns.Add(this.column发布时间);
  1642.                 this.column物料编号 = new DataColumn("物料编号", typeof(string), null, System.Data.MappingType.Element);
  1643.                 this.Columns.Add(this.column物料编号);
  1644.                 this.column年份 = new DataColumn("年份", typeof(int), null, System.Data.MappingType.Element);
  1645.                 this.Columns.Add(this.column年份);
  1646.                 this.column计划期 = new DataColumn("计划期", typeof(int), null, System.Data.MappingType.Element);
  1647.                 this.Columns.Add(this.column计划期);
  1648.                 this.column期初库存 = new DataColumn("期初库存", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1649.                 this.Columns.Add(this.column期初库存);
  1650.                 this.column毛需求 = new DataColumn("毛需求", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1651.                 this.Columns.Add(this.column毛需求);
  1652.                 this.column预计入库 = new DataColumn("预计入库", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1653.                 this.Columns.Add(this.column预计入库);
  1654.                 this.column预计出库 = new DataColumn("预计出库", typeof(string), null, System.Data.MappingType.Element);
  1655.                 this.Columns.Add(this.column预计出库);
  1656.                 this.column预计库存 = new DataColumn("预计库存", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1657.                 this.Columns.Add(this.column预计库存);
  1658.                 this.column净需求 = new DataColumn("净需求", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1659.                 this.Columns.Add(this.column净需求);
  1660.                 this.column计划产出 = new DataColumn("计划产出", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1661.                 this.Columns.Add(this.column计划产出);
  1662.                 this.column计划投入 = new DataColumn("计划投入", typeof(System.Decimal), null, System.Data.MappingType.Element);
  1663.                 this.Columns.Add(this.column计划投入);
  1664.                 this.column物料名称.AllowDBNull = false;
  1665.                 this.column物料编号.AllowDBNull = false;
  1666.                 this.column年份.AllowDBNull = false;
  1667.                 this.column计划期.AllowDBNull = false;
  1668.             }
  1669.             
  1670.             public mrp物料需求历史Row Newmrp物料需求历史Row() {
  1671.                 return ((mrp物料需求历史Row)(this.NewRow()));
  1672.             }
  1673.             
  1674.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  1675.                 return new mrp物料需求历史Row(builder);
  1676.             }
  1677.             
  1678.             protected override System.Type GetRowType() {
  1679.                 return typeof(mrp物料需求历史Row);
  1680.             }
  1681.             
  1682.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  1683.                 base.OnRowChanged(e);
  1684.                 if ((this.mrp物料需求历史RowChanged != null)) {
  1685.                     this.mrp物料需求历史RowChanged(this, new mrp物料需求历史RowChangeEvent(((mrp物料需求历史Row)(e.Row)), e.Action));
  1686.                 }
  1687.             }
  1688.             
  1689.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  1690.                 base.OnRowChanging(e);
  1691.                 if ((this.mrp物料需求历史RowChanging != null)) {
  1692.                     this.mrp物料需求历史RowChanging(this, new mrp物料需求历史RowChangeEvent(((mrp物料需求历史Row)(e.Row)), e.Action));
  1693.                 }
  1694.             }
  1695.             
  1696.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  1697.                 base.OnRowDeleted(e);
  1698.                 if ((this.mrp物料需求历史RowDeleted != null)) {
  1699.                     this.mrp物料需求历史RowDeleted(this, new mrp物料需求历史RowChangeEvent(((mrp物料需求历史Row)(e.Row)), e.Action));
  1700.                 }
  1701.             }
  1702.             
  1703.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  1704.                 base.OnRowDeleting(e);
  1705.                 if ((this.mrp物料需求历史RowDeleting != null)) {
  1706.                     this.mrp物料需求历史RowDeleting(this, new mrp物料需求历史RowChangeEvent(((mrp物料需求历史Row)(e.Row)), e.Action));
  1707.                 }
  1708.             }
  1709.             
  1710.             public void Removemrp物料需求历史Row(mrp物料需求历史Row row) {
  1711.                 this.Rows.Remove(row);
  1712.             }
  1713.         }
  1714.         
  1715.         [System.Diagnostics.DebuggerStepThrough()]
  1716.         public class mrp物料需求历史Row : DataRow {
  1717.             
  1718.             private mrp物料需求历史DataTable tablemrp物料需求历史;
  1719.             
  1720.             internal mrp物料需求历史Row(DataRowBuilder rb) : 
  1721.                     base(rb) {
  1722.                 this.tablemrp物料需求历史 = ((mrp物料需求历史DataTable)(this.Table));
  1723.             }
  1724.             
  1725.             public string 物料名称 {
  1726.                 get {
  1727.                     return ((string)(this[this.tablemrp物料需求历史.物料名称Column]));
  1728.                 }
  1729.                 set {
  1730.                     this[this.tablemrp物料需求历史.物料名称Column] = value;
  1731.                 }
  1732.             }
  1733.             
  1734.             public string 发布编号 {
  1735.                 get {
  1736.                     try {
  1737.                         return ((string)(this[this.tablemrp物料需求历史.发布编号Column]));
  1738.                     }
  1739.                     catch (InvalidCastException e) {
  1740.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1741.                     }
  1742.                 }
  1743.                 set {
  1744.                     this[this.tablemrp物料需求历史.发布编号Column] = value;
  1745.                 }
  1746.             }
  1747.             
  1748.             public System.DateTime 发布时间 {
  1749.                 get {
  1750.                     try {
  1751.                         return ((System.DateTime)(this[this.tablemrp物料需求历史.发布时间Column]));
  1752.                     }
  1753.                     catch (InvalidCastException e) {
  1754.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1755.                     }
  1756.                 }
  1757.                 set {
  1758.                     this[this.tablemrp物料需求历史.发布时间Column] = value;
  1759.                 }
  1760.             }
  1761.             
  1762.             public string 物料编号 {
  1763.                 get {
  1764.                     return ((string)(this[this.tablemrp物料需求历史.物料编号Column]));
  1765.                 }
  1766.                 set {
  1767.                     this[this.tablemrp物料需求历史.物料编号Column] = value;
  1768.                 }
  1769.             }
  1770.             
  1771.             public int 年份 {
  1772.                 get {
  1773.                     return ((int)(this[this.tablemrp物料需求历史.年份Column]));
  1774.                 }
  1775.                 set {
  1776.                     this[this.tablemrp物料需求历史.年份Column] = value;
  1777.                 }
  1778.             }
  1779.             
  1780.             public int 计划期 {
  1781.                 get {
  1782.                     return ((int)(this[this.tablemrp物料需求历史.计划期Column]));
  1783.                 }
  1784.                 set {
  1785.                     this[this.tablemrp物料需求历史.计划期Column] = value;
  1786.                 }
  1787.             }
  1788.             
  1789.             public System.Decimal 期初库存 {
  1790.                 get {
  1791.                     try {
  1792.                         return ((System.Decimal)(this[this.tablemrp物料需求历史.期初库存Column]));
  1793.                     }
  1794.                     catch (InvalidCastException e) {
  1795.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1796.                     }
  1797.                 }
  1798.                 set {
  1799.                     this[this.tablemrp物料需求历史.期初库存Column] = value;
  1800.                 }
  1801.             }
  1802.             
  1803.             public System.Decimal 毛需求 {
  1804.                 get {
  1805.                     try {
  1806.                         return ((System.Decimal)(this[this.tablemrp物料需求历史.毛需求Column]));
  1807.                     }
  1808.                     catch (InvalidCastException e) {
  1809.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1810.                     }
  1811.                 }
  1812.                 set {
  1813.                     this[this.tablemrp物料需求历史.毛需求Column] = value;
  1814.                 }
  1815.             }
  1816.             
  1817.             public System.Decimal 预计入库 {
  1818.                 get {
  1819.                     try {
  1820.                         return ((System.Decimal)(this[this.tablemrp物料需求历史.预计入库Column]));
  1821.                     }
  1822.                     catch (InvalidCastException e) {
  1823.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1824.                     }
  1825.                 }
  1826.                 set {
  1827.                     this[this.tablemrp物料需求历史.预计入库Column] = value;
  1828.                 }
  1829.             }
  1830.             
  1831.             public string 预计出库 {
  1832.                 get {
  1833.                     try {
  1834.                         return ((string)(this[this.tablemrp物料需求历史.预计出库Column]));
  1835.                     }
  1836.                     catch (InvalidCastException e) {
  1837.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1838.                     }
  1839.                 }
  1840.                 set {
  1841.                     this[this.tablemrp物料需求历史.预计出库Column] = value;
  1842.                 }
  1843.             }
  1844.             
  1845.             public System.Decimal 预计库存 {
  1846.                 get {
  1847.                     try {
  1848.                         return ((System.Decimal)(this[this.tablemrp物料需求历史.预计库存Column]));
  1849.                     }
  1850.                     catch (InvalidCastException e) {
  1851.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1852.                     }
  1853.                 }
  1854.                 set {
  1855.                     this[this.tablemrp物料需求历史.预计库存Column] = value;
  1856.                 }
  1857.             }
  1858.             
  1859.             public System.Decimal 净需求 {
  1860.                 get {
  1861.                     try {
  1862.                         return ((System.Decimal)(this[this.tablemrp物料需求历史.净需求Column]));
  1863.                     }
  1864.                     catch (InvalidCastException e) {
  1865.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1866.                     }
  1867.                 }
  1868.                 set {
  1869.                     this[this.tablemrp物料需求历史.净需求Column] = value;
  1870.                 }
  1871.             }
  1872.             
  1873.             public System.Decimal 计划产出 {
  1874.                 get {
  1875.                     try {
  1876.                         return ((System.Decimal)(this[this.tablemrp物料需求历史.计划产出Column]));
  1877.                     }
  1878.                     catch (InvalidCastException e) {
  1879.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1880.                     }
  1881.                 }
  1882.                 set {
  1883.                     this[this.tablemrp物料需求历史.计划产出Column] = value;
  1884.                 }
  1885.             }
  1886.             
  1887.             public System.Decimal 计划投入 {
  1888.                 get {
  1889.                     try {
  1890.                         return ((System.Decimal)(this[this.tablemrp物料需求历史.计划投入Column]));
  1891.                     }
  1892.                     catch (InvalidCastException e) {
  1893.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  1894.                     }
  1895.                 }
  1896.                 set {
  1897.                     this[this.tablemrp物料需求历史.计划投入Column] = value;
  1898.                 }
  1899.             }
  1900.             
  1901.             public bool Is发布编号Null() {
  1902.                 return this.IsNull(this.tablemrp物料需求历史.发布编号Column);
  1903.             }
  1904.             
  1905.             public void Set发布编号Null() {
  1906.                 this[this.tablemrp物料需求历史.发布编号Column] = System.Convert.DBNull;
  1907.             }
  1908.             
  1909.             public bool Is发布时间Null() {
  1910.                 return this.IsNull(this.tablemrp物料需求历史.发布时间Column);
  1911.             }
  1912.             
  1913.             public void Set发布时间Null() {
  1914.                 this[this.tablemrp物料需求历史.发布时间Column] = System.Convert.DBNull;
  1915.             }
  1916.             
  1917.             public bool Is期初库存Null() {
  1918.                 return this.IsNull(this.tablemrp物料需求历史.期初库存Column);
  1919.             }
  1920.             
  1921.             public void Set期初库存Null() {
  1922.                 this[this.tablemrp物料需求历史.期初库存Column] = System.Convert.DBNull;
  1923.             }
  1924.             
  1925.             public bool Is毛需求Null() {
  1926.                 return this.IsNull(this.tablemrp物料需求历史.毛需求Column);
  1927.             }
  1928.             
  1929.             public void Set毛需求Null() {
  1930.                 this[this.tablemrp物料需求历史.毛需求Column] = System.Convert.DBNull;
  1931.             }
  1932.             
  1933.             public bool Is预计入库Null() {
  1934.                 return this.IsNull(this.tablemrp物料需求历史.预计入库Column);
  1935.             }
  1936.             
  1937.             public void Set预计入库Null() {
  1938.                 this[this.tablemrp物料需求历史.预计入库Column] = System.Convert.DBNull;
  1939.             }
  1940.             
  1941.             public bool Is预计出库Null() {
  1942.                 return this.IsNull(this.tablemrp物料需求历史.预计出库Column);
  1943.             }
  1944.             
  1945.             public void Set预计出库Null() {
  1946.                 this[this.tablemrp物料需求历史.预计出库Column] = System.Convert.DBNull;
  1947.             }
  1948.             
  1949.             public bool Is预计库存Null() {
  1950.                 return this.IsNull(this.tablemrp物料需求历史.预计库存Column);
  1951.             }
  1952.             
  1953.             public void Set预计库存Null() {
  1954.                 this[this.tablemrp物料需求历史.预计库存Column] = System.Convert.DBNull;
  1955.             }
  1956.             
  1957.             public bool Is净需求Null() {
  1958.                 return this.IsNull(this.tablemrp物料需求历史.净需求Column);
  1959.             }
  1960.             
  1961.             public void Set净需求Null() {
  1962.                 this[this.tablemrp物料需求历史.净需求Column] = System.Convert.DBNull;
  1963.             }
  1964.             
  1965.             public bool Is计划产出Null() {
  1966.                 return this.IsNull(this.tablemrp物料需求历史.计划产出Column);
  1967.             }
  1968.             
  1969.             public void Set计划产出Null() {
  1970.                 this[this.tablemrp物料需求历史.计划产出Column] = System.Convert.DBNull;
  1971.             }
  1972.             
  1973.             public bool Is计划投入Null() {
  1974.                 return this.IsNull(this.tablemrp物料需求历史.计划投入Column);
  1975.             }
  1976.             
  1977.             public void Set计划投入Null() {
  1978.                 this[this.tablemrp物料需求历史.计划投入Column] = System.Convert.DBNull;
  1979.             }
  1980.         }
  1981.         
  1982.         [System.Diagnostics.DebuggerStepThrough()]
  1983.         public class mrp物料需求历史RowChangeEvent : EventArgs {
  1984.             
  1985.             private mrp物料需求历史Row eventRow;
  1986.             
  1987.             private DataRowAction eventAction;
  1988.             
  1989.             public mrp物料需求历史RowChangeEvent(mrp物料需求历史Row row, DataRowAction action) {
  1990.                 this.eventRow = row;
  1991.                 this.eventAction = action;
  1992.             }
  1993.             
  1994.             public mrp物料需求历史Row Row {
  1995.                 get {
  1996.                     return this.eventRow;
  1997.                 }
  1998.             }
  1999.             
  2000.             public DataRowAction Action {
  2001.                 get {
  2002.                     return this.eventAction;
  2003.                 }
  2004.             }
  2005.         }
  2006.     }
  2007. }