DataSet1.cs
资源名称:VCSDB.rar [点击查看]
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:161k
源码类别:
企业管理
开发平台:
C#
- //------------------------------------------------------------------------------
- // <autogenerated>
- // This code was generated by a tool.
- // Runtime Version: 1.1.4322.573
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </autogenerated>
- //------------------------------------------------------------------------------
- namespace 生产管理系统 {
- using System;
- using System.Data;
- using System.Xml;
- using System.Runtime.Serialization;
- [Serializable()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- [System.Diagnostics.DebuggerStepThrough()]
- [System.ComponentModel.ToolboxItem(true)]
- public class DataSet1 : DataSet {
- private 物料计划类别DataTable table物料计划类别;
- private 工厂日历DataTable table工厂日历;
- private 物料主文件DataTable table物料主文件;
- private 主需求计划DataTable table主需求计划;
- private 主生产计划DataTable table主生产计划;
- private 物料清单DataTable table物料清单;
- public DataSet1() {
- this.InitClass();
- System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- this.Tables.CollectionChanged += schemaChangedHandler;
- this.Relations.CollectionChanged += schemaChangedHandler;
- }
- protected DataSet1(SerializationInfo info, StreamingContext context) {
- string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
- if ((strSchema != null)) {
- DataSet ds = new DataSet();
- ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
- if ((ds.Tables["物料计划类别"] != null)) {
- this.Tables.Add(new 物料计划类别DataTable(ds.Tables["物料计划类别"]));
- }
- if ((ds.Tables["工厂日历"] != null)) {
- this.Tables.Add(new 工厂日历DataTable(ds.Tables["工厂日历"]));
- }
- if ((ds.Tables["物料主文件"] != null)) {
- this.Tables.Add(new 物料主文件DataTable(ds.Tables["物料主文件"]));
- }
- if ((ds.Tables["主需求计划"] != null)) {
- this.Tables.Add(new 主需求计划DataTable(ds.Tables["主需求计划"]));
- }
- if ((ds.Tables["主生产计划"] != null)) {
- this.Tables.Add(new 主生产计划DataTable(ds.Tables["主生产计划"]));
- }
- if ((ds.Tables["物料清单"] != null)) {
- this.Tables.Add(new 物料清单DataTable(ds.Tables["物料清单"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- else {
- this.InitClass();
- }
- this.GetSerializationData(info, context);
- System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- this.Tables.CollectionChanged += schemaChangedHandler;
- this.Relations.CollectionChanged += schemaChangedHandler;
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 物料计划类别DataTable 物料计划类别 {
- get {
- return this.table物料计划类别;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 工厂日历DataTable 工厂日历 {
- get {
- return this.table工厂日历;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 物料主文件DataTable 物料主文件 {
- get {
- return this.table物料主文件;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 主需求计划DataTable 主需求计划 {
- get {
- return this.table主需求计划;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 主生产计划DataTable 主生产计划 {
- get {
- return this.table主生产计划;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 物料清单DataTable 物料清单 {
- get {
- return this.table物料清单;
- }
- }
- public override DataSet Clone() {
- DataSet1 cln = ((DataSet1)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override bool ShouldSerializeTables() {
- return false;
- }
- protected override bool ShouldSerializeRelations() {
- return false;
- }
- protected override void ReadXmlSerializable(XmlReader reader) {
- this.Reset();
- DataSet ds = new DataSet();
- ds.ReadXml(reader);
- if ((ds.Tables["物料计划类别"] != null)) {
- this.Tables.Add(new 物料计划类别DataTable(ds.Tables["物料计划类别"]));
- }
- if ((ds.Tables["工厂日历"] != null)) {
- this.Tables.Add(new 工厂日历DataTable(ds.Tables["工厂日历"]));
- }
- if ((ds.Tables["物料主文件"] != null)) {
- this.Tables.Add(new 物料主文件DataTable(ds.Tables["物料主文件"]));
- }
- if ((ds.Tables["主需求计划"] != null)) {
- this.Tables.Add(new 主需求计划DataTable(ds.Tables["主需求计划"]));
- }
- if ((ds.Tables["主生产计划"] != null)) {
- this.Tables.Add(new 主生产计划DataTable(ds.Tables["主生产计划"]));
- }
- if ((ds.Tables["物料清单"] != null)) {
- this.Tables.Add(new 物料清单DataTable(ds.Tables["物料清单"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
- System.IO.MemoryStream stream = new System.IO.MemoryStream();
- this.WriteXmlSchema(new XmlTextWriter(stream, null));
- stream.Position = 0;
- return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
- }
- internal void InitVars() {
- this.table物料计划类别 = ((物料计划类别DataTable)(this.Tables["物料计划类别"]));
- if ((this.table物料计划类别 != null)) {
- this.table物料计划类别.InitVars();
- }
- this.table工厂日历 = ((工厂日历DataTable)(this.Tables["工厂日历"]));
- if ((this.table工厂日历 != null)) {
- this.table工厂日历.InitVars();
- }
- this.table物料主文件 = ((物料主文件DataTable)(this.Tables["物料主文件"]));
- if ((this.table物料主文件 != null)) {
- this.table物料主文件.InitVars();
- }
- this.table主需求计划 = ((主需求计划DataTable)(this.Tables["主需求计划"]));
- if ((this.table主需求计划 != null)) {
- this.table主需求计划.InitVars();
- }
- this.table主生产计划 = ((主生产计划DataTable)(this.Tables["主生产计划"]));
- if ((this.table主生产计划 != null)) {
- this.table主生产计划.InitVars();
- }
- this.table物料清单 = ((物料清单DataTable)(this.Tables["物料清单"]));
- if ((this.table物料清单 != null)) {
- this.table物料清单.InitVars();
- }
- }
- private void InitClass() {
- this.DataSetName = "DataSet1";
- this.Prefix = "";
- this.Namespace = "http://www.tempuri.org/DataSet1.xsd";
- this.Locale = new System.Globalization.CultureInfo("zh-CN");
- this.CaseSensitive = false;
- this.EnforceConstraints = true;
- this.table物料计划类别 = new 物料计划类别DataTable();
- this.Tables.Add(this.table物料计划类别);
- this.table工厂日历 = new 工厂日历DataTable();
- this.Tables.Add(this.table工厂日历);
- this.table物料主文件 = new 物料主文件DataTable();
- this.Tables.Add(this.table物料主文件);
- this.table主需求计划 = new 主需求计划DataTable();
- this.Tables.Add(this.table主需求计划);
- this.table主生产计划 = new 主生产计划DataTable();
- this.Tables.Add(this.table主生产计划);
- this.table物料清单 = new 物料清单DataTable();
- this.Tables.Add(this.table物料清单);
- }
- private bool ShouldSerialize物料计划类别() {
- return false;
- }
- private bool ShouldSerialize工厂日历() {
- return false;
- }
- private bool ShouldSerialize物料主文件() {
- return false;
- }
- private bool ShouldSerialize主需求计划() {
- return false;
- }
- private bool ShouldSerialize主生产计划() {
- return false;
- }
- private bool ShouldSerialize物料清单() {
- return false;
- }
- private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
- if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
- this.InitVars();
- }
- }
- public delegate void 物料计划类别RowChangeEventHandler(object sender, 物料计划类别RowChangeEvent e);
- public delegate void 工厂日历RowChangeEventHandler(object sender, 工厂日历RowChangeEvent e);
- public delegate void 物料主文件RowChangeEventHandler(object sender, 物料主文件RowChangeEvent e);
- public delegate void 主需求计划RowChangeEventHandler(object sender, 主需求计划RowChangeEvent e);
- public delegate void 主生产计划RowChangeEventHandler(object sender, 主生产计划RowChangeEvent e);
- public delegate void 物料清单RowChangeEventHandler(object sender, 物料清单RowChangeEvent e);
- [System.Diagnostics.DebuggerStepThrough()]
- public class 物料计划类别DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column类别名称;
- private DataColumn column类别代码;
- internal 物料计划类别DataTable() :
- base("物料计划类别") {
- this.InitClass();
- }
- internal 物料计划类别DataTable(DataTable table) :
- base(table.TableName) {
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- this.DisplayExpression = table.DisplayExpression;
- }
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- internal DataColumn 类别名称Column {
- get {
- return this.column类别名称;
- }
- }
- internal DataColumn 类别代码Column {
- get {
- return this.column类别代码;
- }
- }
- public 物料计划类别Row this[int index] {
- get {
- return ((物料计划类别Row)(this.Rows[index]));
- }
- }
- public event 物料计划类别RowChangeEventHandler 物料计划类别RowChanged;
- public event 物料计划类别RowChangeEventHandler 物料计划类别RowChanging;
- public event 物料计划类别RowChangeEventHandler 物料计划类别RowDeleted;
- public event 物料计划类别RowChangeEventHandler 物料计划类别RowDeleting;
- public void Add物料计划类别Row(物料计划类别Row row) {
- this.Rows.Add(row);
- }
- public 物料计划类别Row Add物料计划类别Row(string 类别名称, string 类别代码) {
- 物料计划类别Row row物料计划类别Row = ((物料计划类别Row)(this.NewRow()));
- row物料计划类别Row.ItemArray = new object[] {
- 类别名称,
- 类别代码};
- this.Rows.Add(row物料计划类别Row);
- return row物料计划类别Row;
- }
- public 物料计划类别Row FindBy类别代码(string 类别代码) {
- return ((物料计划类别Row)(this.Rows.Find(new object[] {
- 类别代码})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 物料计划类别DataTable cln = ((物料计划类别DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 物料计划类别DataTable();
- }
- internal void InitVars() {
- this.column类别名称 = this.Columns["类别名称"];
- this.column类别代码 = this.Columns["类别代码"];
- }
- private void InitClass() {
- this.column类别名称 = new DataColumn("类别名称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column类别名称);
- this.column类别代码 = new DataColumn("类别代码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column类别代码);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column类别代码}, true));
- this.column类别名称.AllowDBNull = false;
- this.column类别代码.AllowDBNull = false;
- this.column类别代码.Unique = true;
- }
- public 物料计划类别Row New物料计划类别Row() {
- return ((物料计划类别Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 物料计划类别Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(物料计划类别Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.物料计划类别RowChanged != null)) {
- this.物料计划类别RowChanged(this, new 物料计划类别RowChangeEvent(((物料计划类别Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.物料计划类别RowChanging != null)) {
- this.物料计划类别RowChanging(this, new 物料计划类别RowChangeEvent(((物料计划类别Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.物料计划类别RowDeleted != null)) {
- this.物料计划类别RowDeleted(this, new 物料计划类别RowChangeEvent(((物料计划类别Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.物料计划类别RowDeleting != null)) {
- this.物料计划类别RowDeleting(this, new 物料计划类别RowChangeEvent(((物料计划类别Row)(e.Row)), e.Action));
- }
- }
- public void Remove物料计划类别Row(物料计划类别Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 物料计划类别Row : DataRow {
- private 物料计划类别DataTable table物料计划类别;
- internal 物料计划类别Row(DataRowBuilder rb) :
- base(rb) {
- this.table物料计划类别 = ((物料计划类别DataTable)(this.Table));
- }
- public string 类别名称 {
- get {
- return ((string)(this[this.table物料计划类别.类别名称Column]));
- }
- set {
- this[this.table物料计划类别.类别名称Column] = value;
- }
- }
- public string 类别代码 {
- get {
- return ((string)(this[this.table物料计划类别.类别代码Column]));
- }
- set {
- this[this.table物料计划类别.类别代码Column] = value;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 物料计划类别RowChangeEvent : EventArgs {
- private 物料计划类别Row eventRow;
- private DataRowAction eventAction;
- public 物料计划类别RowChangeEvent(物料计划类别Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 物料计划类别Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 工厂日历DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column年份;
- private DataColumn column计划期;
- private DataColumn column开始日期;
- private DataColumn column结束日期;
- private DataColumn column备注;
- internal 工厂日历DataTable() :
- base("工厂日历") {
- this.InitClass();
- }
- internal 工厂日历DataTable(DataTable table) :
- base(table.TableName) {
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- this.DisplayExpression = table.DisplayExpression;
- }
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- internal DataColumn 年份Column {
- get {
- return this.column年份;
- }
- }
- internal DataColumn 计划期Column {
- get {
- return this.column计划期;
- }
- }
- internal DataColumn 开始日期Column {
- get {
- return this.column开始日期;
- }
- }
- internal DataColumn 结束日期Column {
- get {
- return this.column结束日期;
- }
- }
- internal DataColumn 备注Column {
- get {
- return this.column备注;
- }
- }
- public 工厂日历Row this[int index] {
- get {
- return ((工厂日历Row)(this.Rows[index]));
- }
- }
- public event 工厂日历RowChangeEventHandler 工厂日历RowChanged;
- public event 工厂日历RowChangeEventHandler 工厂日历RowChanging;
- public event 工厂日历RowChangeEventHandler 工厂日历RowDeleted;
- public event 工厂日历RowChangeEventHandler 工厂日历RowDeleting;
- public void Add工厂日历Row(工厂日历Row row) {
- this.Rows.Add(row);
- }
- public 工厂日历Row Add工厂日历Row(int 年份, int 计划期, int 开始日期, int 结束日期, string 备注) {
- 工厂日历Row row工厂日历Row = ((工厂日历Row)(this.NewRow()));
- row工厂日历Row.ItemArray = new object[] {
- 年份,
- 计划期,
- 开始日期,
- 结束日期,
- 备注};
- this.Rows.Add(row工厂日历Row);
- return row工厂日历Row;
- }
- public 工厂日历Row FindBy年份计划期(int 年份, int 计划期) {
- return ((工厂日历Row)(this.Rows.Find(new object[] {
- 年份,
- 计划期})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 工厂日历DataTable cln = ((工厂日历DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 工厂日历DataTable();
- }
- internal void InitVars() {
- this.column年份 = this.Columns["年份"];
- this.column计划期 = this.Columns["计划期"];
- this.column开始日期 = this.Columns["开始日期"];
- this.column结束日期 = this.Columns["结束日期"];
- this.column备注 = this.Columns["备注"];
- }
- private void InitClass() {
- this.column年份 = new DataColumn("年份", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column年份);
- this.column计划期 = new DataColumn("计划期", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column计划期);
- this.column开始日期 = new DataColumn("开始日期", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column开始日期);
- this.column结束日期 = new DataColumn("结束日期", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column结束日期);
- this.column备注 = new DataColumn("备注", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column备注);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column年份,
- this.column计划期}, true));
- this.column年份.AllowDBNull = false;
- this.column计划期.AllowDBNull = false;
- this.column开始日期.AllowDBNull = false;
- this.column结束日期.AllowDBNull = false;
- }
- public 工厂日历Row New工厂日历Row() {
- return ((工厂日历Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 工厂日历Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(工厂日历Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.工厂日历RowChanged != null)) {
- this.工厂日历RowChanged(this, new 工厂日历RowChangeEvent(((工厂日历Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.工厂日历RowChanging != null)) {
- this.工厂日历RowChanging(this, new 工厂日历RowChangeEvent(((工厂日历Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.工厂日历RowDeleted != null)) {
- this.工厂日历RowDeleted(this, new 工厂日历RowChangeEvent(((工厂日历Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.工厂日历RowDeleting != null)) {
- this.工厂日历RowDeleting(this, new 工厂日历RowChangeEvent(((工厂日历Row)(e.Row)), e.Action));
- }
- }
- public void Remove工厂日历Row(工厂日历Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 工厂日历Row : DataRow {
- private 工厂日历DataTable table工厂日历;
- internal 工厂日历Row(DataRowBuilder rb) :
- base(rb) {
- this.table工厂日历 = ((工厂日历DataTable)(this.Table));
- }
- public int 年份 {
- get {
- return ((int)(this[this.table工厂日历.年份Column]));
- }
- set {
- this[this.table工厂日历.年份Column] = value;
- }
- }
- public int 计划期 {
- get {
- return ((int)(this[this.table工厂日历.计划期Column]));
- }
- set {
- this[this.table工厂日历.计划期Column] = value;
- }
- }
- public int 开始日期 {
- get {
- return ((int)(this[this.table工厂日历.开始日期Column]));
- }
- set {
- this[this.table工厂日历.开始日期Column] = value;
- }
- }
- public int 结束日期 {
- get {
- return ((int)(this[this.table工厂日历.结束日期Column]));
- }
- set {
- this[this.table工厂日历.结束日期Column] = value;
- }
- }
- public string 备注 {
- get {
- try {
- return ((string)(this[this.table工厂日历.备注Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table工厂日历.备注Column] = value;
- }
- }
- public bool Is备注Null() {
- return this.IsNull(this.table工厂日历.备注Column);
- }
- public void Set备注Null() {
- this[this.table工厂日历.备注Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 工厂日历RowChangeEvent : EventArgs {
- private 工厂日历Row eventRow;
- private DataRowAction eventAction;
- public 工厂日历RowChangeEvent(工厂日历Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 工厂日历Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 物料主文件DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column物料编号;
- private DataColumn column条码;
- private DataColumn column物料名称;
- private DataColumn column拼音编码;
- private DataColumn column计量单位;
- private DataColumn column规格型号;
- private DataColumn column计划类别;
- private DataColumn column状态类别;
- private DataColumn column归属类别;
- private DataColumn column价值类别;
- private DataColumn column物料特性a;
- private DataColumn column物料特性b;
- private DataColumn column物料特性c;
- private DataColumn column物料特性d;
- private DataColumn column长;
- private DataColumn column宽;
- private DataColumn column高;
- private DataColumn column净重;
- private DataColumn column品牌;
- private DataColumn column颜色;
- private DataColumn column等级;
- private DataColumn column进货提前期;
- private DataColumn column准备周期;
- private DataColumn column生产周期;
- private DataColumn column最小包装量;
- private DataColumn column最低销售量;
- private DataColumn column批量;
- private DataColumn column最高库存;
- private DataColumn column最低库存;
- private DataColumn column库存期限;
- private DataColumn column录入者;
- private DataColumn column录入日期;
- private DataColumn column低层码;
- private DataColumn column指定供货商;
- private DataColumn column定货策略;
- private DataColumn column生产车间;
- internal 物料主文件DataTable() :
- base("物料主文件") {
- this.InitClass();
- }
- internal 物料主文件DataTable(DataTable table) :
- base(table.TableName) {
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- this.DisplayExpression = table.DisplayExpression;
- }
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- internal DataColumn 物料编号Column {
- get {
- return this.column物料编号;
- }
- }
- internal DataColumn 条码Column {
- get {
- return this.column条码;
- }
- }
- internal DataColumn 物料名称Column {
- get {
- return this.column物料名称;
- }
- }
- internal DataColumn 拼音编码Column {
- get {
- return this.column拼音编码;
- }
- }
- internal DataColumn 计量单位Column {
- get {
- return this.column计量单位;
- }
- }
- internal DataColumn 规格型号Column {
- get {
- return this.column规格型号;
- }
- }
- internal DataColumn 计划类别Column {
- get {
- return this.column计划类别;
- }
- }
- internal DataColumn 状态类别Column {
- get {
- return this.column状态类别;
- }
- }
- internal DataColumn 归属类别Column {
- get {
- return this.column归属类别;
- }
- }
- internal DataColumn 价值类别Column {
- get {
- return this.column价值类别;
- }
- }
- internal DataColumn 物料特性aColumn {
- get {
- return this.column物料特性a;
- }
- }
- internal DataColumn 物料特性bColumn {
- get {
- return this.column物料特性b;
- }
- }
- internal DataColumn 物料特性cColumn {
- get {
- return this.column物料特性c;
- }
- }
- internal DataColumn 物料特性dColumn {
- get {
- return this.column物料特性d;
- }
- }
- internal DataColumn 长Column {
- get {
- return this.column长;
- }
- }
- internal DataColumn 宽Column {
- get {
- return this.column宽;
- }
- }
- internal DataColumn 高Column {
- get {
- return this.column高;
- }
- }
- internal DataColumn 净重Column {
- get {
- return this.column净重;
- }
- }
- internal DataColumn 品牌Column {
- get {
- return this.column品牌;
- }
- }
- internal DataColumn 颜色Column {
- get {
- return this.column颜色;
- }
- }
- internal DataColumn 等级Column {
- get {
- return this.column等级;
- }
- }
- internal DataColumn 进货提前期Column {
- get {
- return this.column进货提前期;
- }
- }
- internal DataColumn 准备周期Column {
- get {
- return this.column准备周期;
- }
- }
- internal DataColumn 生产周期Column {
- get {
- return this.column生产周期;
- }
- }
- internal DataColumn 最小包装量Column {
- get {
- return this.column最小包装量;
- }
- }
- internal DataColumn 最低销售量Column {
- get {
- return this.column最低销售量;
- }
- }
- internal DataColumn 批量Column {
- get {
- return this.column批量;
- }
- }
- internal DataColumn 最高库存Column {
- get {
- return this.column最高库存;
- }
- }
- internal DataColumn 最低库存Column {
- get {
- return this.column最低库存;
- }
- }
- internal DataColumn 库存期限Column {
- get {
- return this.column库存期限;
- }
- }
- internal DataColumn 录入者Column {
- get {
- return this.column录入者;
- }
- }
- internal DataColumn 录入日期Column {
- get {
- return this.column录入日期;
- }
- }
- internal DataColumn 低层码Column {
- get {
- return this.column低层码;
- }
- }
- internal DataColumn 指定供货商Column {
- get {
- return this.column指定供货商;
- }
- }
- internal DataColumn 定货策略Column {
- get {
- return this.column定货策略;
- }
- }
- internal DataColumn 生产车间Column {
- get {
- return this.column生产车间;
- }
- }
- public 物料主文件Row this[int index] {
- get {
- return ((物料主文件Row)(this.Rows[index]));
- }
- }
- public event 物料主文件RowChangeEventHandler 物料主文件RowChanged;
- public event 物料主文件RowChangeEventHandler 物料主文件RowChanging;
- public event 物料主文件RowChangeEventHandler 物料主文件RowDeleted;
- public event 物料主文件RowChangeEventHandler 物料主文件RowDeleting;
- public void Add物料主文件Row(物料主文件Row row) {
- this.Rows.Add(row);
- }
- public 物料主文件Row Add物料主文件Row(
- string 物料编号,
- string 条码,
- string 物料名称,
- string 拼音编码,
- string 计量单位,
- string 规格型号,
- string 计划类别,
- string 状态类别,
- string 归属类别,
- string 价值类别,
- string 物料特性a,
- string 物料特性b,
- string 物料特性c,
- string 物料特性d,
- System.Decimal 长,
- System.Decimal 宽,
- System.Decimal 高,
- System.Decimal 净重,
- string 品牌,
- string 颜色,
- string 等级,
- int 进货提前期,
- int 准备周期,
- int 生产周期,
- System.Decimal 最小包装量,
- System.Decimal 最低销售量,
- System.Decimal 批量,
- System.Decimal 最高库存,
- System.Decimal 最低库存,
- int 库存期限,
- string 录入者,
- int 录入日期,
- int 低层码,
- string 指定供货商,
- string 定货策略,
- string 生产车间) {
- 物料主文件Row row物料主文件Row = ((物料主文件Row)(this.NewRow()));
- row物料主文件Row.ItemArray = new object[] {
- 物料编号,
- 条码,
- 物料名称,
- 拼音编码,
- 计量单位,
- 规格型号,
- 计划类别,
- 状态类别,
- 归属类别,
- 价值类别,
- 物料特性a,
- 物料特性b,
- 物料特性c,
- 物料特性d,
- 长,
- 宽,
- 高,
- 净重,
- 品牌,
- 颜色,
- 等级,
- 进货提前期,
- 准备周期,
- 生产周期,
- 最小包装量,
- 最低销售量,
- 批量,
- 最高库存,
- 最低库存,
- 库存期限,
- 录入者,
- 录入日期,
- 低层码,
- 指定供货商,
- 定货策略,
- 生产车间};
- this.Rows.Add(row物料主文件Row);
- return row物料主文件Row;
- }
- public 物料主文件Row FindBy物料编号(string 物料编号) {
- return ((物料主文件Row)(this.Rows.Find(new object[] {
- 物料编号})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 物料主文件DataTable cln = ((物料主文件DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 物料主文件DataTable();
- }
- internal void InitVars() {
- this.column物料编号 = this.Columns["物料编号"];
- this.column条码 = this.Columns["条码"];
- this.column物料名称 = this.Columns["物料名称"];
- this.column拼音编码 = this.Columns["拼音编码"];
- this.column计量单位 = this.Columns["计量单位"];
- this.column规格型号 = this.Columns["规格型号"];
- this.column计划类别 = this.Columns["计划类别"];
- this.column状态类别 = this.Columns["状态类别"];
- this.column归属类别 = this.Columns["归属类别"];
- this.column价值类别 = this.Columns["价值类别"];
- this.column物料特性a = this.Columns["物料特性a"];
- this.column物料特性b = this.Columns["物料特性b"];
- this.column物料特性c = this.Columns["物料特性c"];
- this.column物料特性d = this.Columns["物料特性d"];
- this.column长 = this.Columns["长"];
- this.column宽 = this.Columns["宽"];
- this.column高 = this.Columns["高"];
- this.column净重 = this.Columns["净重"];
- this.column品牌 = this.Columns["品牌"];
- this.column颜色 = this.Columns["颜色"];
- this.column等级 = this.Columns["等级"];
- this.column进货提前期 = this.Columns["进货提前期"];
- this.column准备周期 = this.Columns["准备周期"];
- this.column生产周期 = this.Columns["生产周期"];
- this.column最小包装量 = this.Columns["最小包装量"];
- this.column最低销售量 = this.Columns["最低销售量"];
- this.column批量 = this.Columns["批量"];
- this.column最高库存 = this.Columns["最高库存"];
- this.column最低库存 = this.Columns["最低库存"];
- this.column库存期限 = this.Columns["库存期限"];
- this.column录入者 = this.Columns["录入者"];
- this.column录入日期 = this.Columns["录入日期"];
- this.column低层码 = this.Columns["低层码"];
- this.column指定供货商 = this.Columns["指定供货商"];
- this.column定货策略 = this.Columns["定货策略"];
- this.column生产车间 = this.Columns["生产车间"];
- }
- private void InitClass() {
- this.column物料编号 = new DataColumn("物料编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column物料编号);
- this.column条码 = new DataColumn("条码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column条码);
- this.column物料名称 = new DataColumn("物料名称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column物料名称);
- this.column拼音编码 = new DataColumn("拼音编码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column拼音编码);
- this.column计量单位 = new DataColumn("计量单位", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column计量单位);
- this.column规格型号 = new DataColumn("规格型号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column规格型号);
- this.column计划类别 = new DataColumn("计划类别", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column计划类别);
- this.column状态类别 = new DataColumn("状态类别", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column状态类别);
- this.column归属类别 = new DataColumn("归属类别", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column归属类别);
- this.column价值类别 = new DataColumn("价值类别", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column价值类别);
- this.column物料特性a = new DataColumn("物料特性a", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column物料特性a);
- this.column物料特性b = new DataColumn("物料特性b", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column物料特性b);
- this.column物料特性c = new DataColumn("物料特性c", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column物料特性c);
- this.column物料特性d = new DataColumn("物料特性d", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column物料特性d);
- this.column长 = new DataColumn("长", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column长);
- this.column宽 = new DataColumn("宽", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column宽);
- this.column高 = new DataColumn("高", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column高);
- this.column净重 = new DataColumn("净重", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column净重);
- this.column品牌 = new DataColumn("品牌", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column品牌);
- this.column颜色 = new DataColumn("颜色", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column颜色);
- this.column等级 = new DataColumn("等级", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column等级);
- this.column进货提前期 = new DataColumn("进货提前期", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column进货提前期);
- this.column准备周期 = new DataColumn("准备周期", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column准备周期);
- this.column生产周期 = new DataColumn("生产周期", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column生产周期);
- this.column最小包装量 = new DataColumn("最小包装量", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column最小包装量);
- this.column最低销售量 = new DataColumn("最低销售量", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column最低销售量);
- this.column批量 = new DataColumn("批量", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column批量);
- this.column最高库存 = new DataColumn("最高库存", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column最高库存);
- this.column最低库存 = new DataColumn("最低库存", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column最低库存);
- this.column库存期限 = new DataColumn("库存期限", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column库存期限);
- this.column录入者 = new DataColumn("录入者", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column录入者);
- this.column录入日期 = new DataColumn("录入日期", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column录入日期);
- this.column低层码 = new DataColumn("低层码", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column低层码);
- this.column指定供货商 = new DataColumn("指定供货商", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column指定供货商);
- this.column定货策略 = new DataColumn("定货策略", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column定货策略);
- this.column生产车间 = new DataColumn("生产车间", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column生产车间);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column物料编号}, true));
- this.column物料编号.AllowDBNull = false;
- this.column物料编号.Unique = true;
- this.column物料名称.AllowDBNull = false;
- this.column计量单位.AllowDBNull = false;
- }
- public 物料主文件Row New物料主文件Row() {
- return ((物料主文件Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 物料主文件Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(物料主文件Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.物料主文件RowChanged != null)) {
- this.物料主文件RowChanged(this, new 物料主文件RowChangeEvent(((物料主文件Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.物料主文件RowChanging != null)) {
- this.物料主文件RowChanging(this, new 物料主文件RowChangeEvent(((物料主文件Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.物料主文件RowDeleted != null)) {
- this.物料主文件RowDeleted(this, new 物料主文件RowChangeEvent(((物料主文件Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.物料主文件RowDeleting != null)) {
- this.物料主文件RowDeleting(this, new 物料主文件RowChangeEvent(((物料主文件Row)(e.Row)), e.Action));
- }
- }
- public void Remove物料主文件Row(物料主文件Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 物料主文件Row : DataRow {
- private 物料主文件DataTable table物料主文件;
- internal 物料主文件Row(DataRowBuilder rb) :
- base(rb) {
- this.table物料主文件 = ((物料主文件DataTable)(this.Table));
- }
- public string 物料编号 {
- get {
- return ((string)(this[this.table物料主文件.物料编号Column]));
- }
- set {
- this[this.table物料主文件.物料编号Column] = value;
- }
- }
- public string 条码 {
- get {
- try {
- return ((string)(this[this.table物料主文件.条码Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.条码Column] = value;
- }
- }
- public string 物料名称 {
- get {
- return ((string)(this[this.table物料主文件.物料名称Column]));
- }
- set {
- this[this.table物料主文件.物料名称Column] = value;
- }
- }
- public string 拼音编码 {
- get {
- try {
- return ((string)(this[this.table物料主文件.拼音编码Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.拼音编码Column] = value;
- }
- }
- public string 计量单位 {
- get {
- return ((string)(this[this.table物料主文件.计量单位Column]));
- }
- set {
- this[this.table物料主文件.计量单位Column] = value;
- }
- }
- public string 规格型号 {
- get {
- try {
- return ((string)(this[this.table物料主文件.规格型号Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.规格型号Column] = value;
- }
- }
- public string 计划类别 {
- get {
- try {
- return ((string)(this[this.table物料主文件.计划类别Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.计划类别Column] = value;
- }
- }
- public string 状态类别 {
- get {
- try {
- return ((string)(this[this.table物料主文件.状态类别Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.状态类别Column] = value;
- }
- }
- public string 归属类别 {
- get {
- try {
- return ((string)(this[this.table物料主文件.归属类别Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.归属类别Column] = value;
- }
- }
- public string 价值类别 {
- get {
- try {
- return ((string)(this[this.table物料主文件.价值类别Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.价值类别Column] = value;
- }
- }
- public string 物料特性a {
- get {
- try {
- return ((string)(this[this.table物料主文件.物料特性aColumn]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.物料特性aColumn] = value;
- }
- }
- public string 物料特性b {
- get {
- try {
- return ((string)(this[this.table物料主文件.物料特性bColumn]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.物料特性bColumn] = value;
- }
- }
- public string 物料特性c {
- get {
- try {
- return ((string)(this[this.table物料主文件.物料特性cColumn]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.物料特性cColumn] = value;
- }
- }
- public string 物料特性d {
- get {
- try {
- return ((string)(this[this.table物料主文件.物料特性dColumn]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.物料特性dColumn] = value;
- }
- }
- public System.Decimal 长 {
- get {
- try {
- return ((System.Decimal)(this[this.table物料主文件.长Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.长Column] = value;
- }
- }
- public System.Decimal 宽 {
- get {
- try {
- return ((System.Decimal)(this[this.table物料主文件.宽Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.宽Column] = value;
- }
- }
- public System.Decimal 高 {
- get {
- try {
- return ((System.Decimal)(this[this.table物料主文件.高Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.高Column] = value;
- }
- }
- public System.Decimal 净重 {
- get {
- try {
- return ((System.Decimal)(this[this.table物料主文件.净重Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.净重Column] = value;
- }
- }
- public string 品牌 {
- get {
- try {
- return ((string)(this[this.table物料主文件.品牌Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.品牌Column] = value;
- }
- }
- public string 颜色 {
- get {
- try {
- return ((string)(this[this.table物料主文件.颜色Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.颜色Column] = value;
- }
- }
- public string 等级 {
- get {
- try {
- return ((string)(this[this.table物料主文件.等级Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.等级Column] = value;
- }
- }
- public int 进货提前期 {
- get {
- try {
- return ((int)(this[this.table物料主文件.进货提前期Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.进货提前期Column] = value;
- }
- }
- public int 准备周期 {
- get {
- try {
- return ((int)(this[this.table物料主文件.准备周期Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.准备周期Column] = value;
- }
- }
- public int 生产周期 {
- get {
- try {
- return ((int)(this[this.table物料主文件.生产周期Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.生产周期Column] = value;
- }
- }
- public System.Decimal 最小包装量 {
- get {
- try {
- return ((System.Decimal)(this[this.table物料主文件.最小包装量Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.最小包装量Column] = value;
- }
- }
- public System.Decimal 最低销售量 {
- get {
- try {
- return ((System.Decimal)(this[this.table物料主文件.最低销售量Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.最低销售量Column] = value;
- }
- }
- public System.Decimal 批量 {
- get {
- try {
- return ((System.Decimal)(this[this.table物料主文件.批量Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.批量Column] = value;
- }
- }
- public System.Decimal 最高库存 {
- get {
- try {
- return ((System.Decimal)(this[this.table物料主文件.最高库存Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.最高库存Column] = value;
- }
- }
- public System.Decimal 最低库存 {
- get {
- try {
- return ((System.Decimal)(this[this.table物料主文件.最低库存Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.最低库存Column] = value;
- }
- }
- public int 库存期限 {
- get {
- try {
- return ((int)(this[this.table物料主文件.库存期限Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.库存期限Column] = value;
- }
- }
- public string 录入者 {
- get {
- try {
- return ((string)(this[this.table物料主文件.录入者Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.录入者Column] = value;
- }
- }
- public int 录入日期 {
- get {
- try {
- return ((int)(this[this.table物料主文件.录入日期Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.录入日期Column] = value;
- }
- }
- public int 低层码 {
- get {
- try {
- return ((int)(this[this.table物料主文件.低层码Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.低层码Column] = value;
- }
- }
- public string 指定供货商 {
- get {
- try {
- return ((string)(this[this.table物料主文件.指定供货商Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.指定供货商Column] = value;
- }
- }
- public string 定货策略 {
- get {
- try {
- return ((string)(this[this.table物料主文件.定货策略Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.定货策略Column] = value;
- }
- }
- public string 生产车间 {
- get {
- try {
- return ((string)(this[this.table物料主文件.生产车间Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料主文件.生产车间Column] = value;
- }
- }
- public bool Is条码Null() {
- return this.IsNull(this.table物料主文件.条码Column);
- }
- public void Set条码Null() {
- this[this.table物料主文件.条码Column] = System.Convert.DBNull;
- }
- public bool Is拼音编码Null() {
- return this.IsNull(this.table物料主文件.拼音编码Column);
- }
- public void Set拼音编码Null() {
- this[this.table物料主文件.拼音编码Column] = System.Convert.DBNull;
- }
- public bool Is规格型号Null() {
- return this.IsNull(this.table物料主文件.规格型号Column);
- }
- public void Set规格型号Null() {
- this[this.table物料主文件.规格型号Column] = System.Convert.DBNull;
- }
- public bool Is计划类别Null() {
- return this.IsNull(this.table物料主文件.计划类别Column);
- }
- public void Set计划类别Null() {
- this[this.table物料主文件.计划类别Column] = System.Convert.DBNull;
- }
- public bool Is状态类别Null() {
- return this.IsNull(this.table物料主文件.状态类别Column);
- }
- public void Set状态类别Null() {
- this[this.table物料主文件.状态类别Column] = System.Convert.DBNull;
- }
- public bool Is归属类别Null() {
- return this.IsNull(this.table物料主文件.归属类别Column);
- }
- public void Set归属类别Null() {
- this[this.table物料主文件.归属类别Column] = System.Convert.DBNull;
- }
- public bool Is价值类别Null() {
- return this.IsNull(this.table物料主文件.价值类别Column);
- }
- public void Set价值类别Null() {
- this[this.table物料主文件.价值类别Column] = System.Convert.DBNull;
- }
- public bool Is物料特性aNull() {
- return this.IsNull(this.table物料主文件.物料特性aColumn);
- }
- public void Set物料特性aNull() {
- this[this.table物料主文件.物料特性aColumn] = System.Convert.DBNull;
- }
- public bool Is物料特性bNull() {
- return this.IsNull(this.table物料主文件.物料特性bColumn);
- }
- public void Set物料特性bNull() {
- this[this.table物料主文件.物料特性bColumn] = System.Convert.DBNull;
- }
- public bool Is物料特性cNull() {
- return this.IsNull(this.table物料主文件.物料特性cColumn);
- }
- public void Set物料特性cNull() {
- this[this.table物料主文件.物料特性cColumn] = System.Convert.DBNull;
- }
- public bool Is物料特性dNull() {
- return this.IsNull(this.table物料主文件.物料特性dColumn);
- }
- public void Set物料特性dNull() {
- this[this.table物料主文件.物料特性dColumn] = System.Convert.DBNull;
- }
- public bool Is长Null() {
- return this.IsNull(this.table物料主文件.长Column);