⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataset3.cs

📁 生产管理系统 包括库存管理 销售管理 生产管理 日历管理 等功能
💻 CS
📖 第 1 页 / 共 5 页
字号:
                get {
                    return this.columnMPS数量;
                }
            }
            
            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 编号, 
                        int 年份, 
                        int 计划期, 
                        int 开始日期, 
                        int 结束日期, 
                        System.Decimal 期初库存, 
                        System.Decimal 需求数量, 
                        System.Decimal MPS数量, 
                        System.Decimal 生产单数量, 
                        System.Decimal 预计库存, 
                        string 记帐人, 
                        int 修改日期, 
                        string 审核人, 
                        int 审核日期, 
                        string 状态, 
                        string 备注) {
                主生产计划Row row主生产计划Row = ((主生产计划Row)(this.NewRow()));
                row主生产计划Row.ItemArray = new object[] {
                        物料名称,
                        物料编号,
                        编号,
                        年份,
                        计划期,
                        开始日期,
                        结束日期,
                        期初库存,
                        需求数量,
                        MPS数量,
                        生产单数量,
                        预计库存,
                        记帐人,
                        修改日期,
                        审核人,
                        审核日期,
                        状态,
                        备注};
                this.Rows.Add(row主生产计划Row);
                return row主生产计划Row;
            }
            
            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.columnMPS数量 = this.Columns["MPS数量"];
                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(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(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.columnMPS数量 = new DataColumn("MPS数量", typeof(System.Decimal), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMPS数量);
                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(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(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物料名称.AllowDBNull = false;
                this.column物料编号.AllowDBNull = false;
                this.column年份.AllowDBNull = false;
                this.column计划期.AllowDBNull = false;
                this.columnMPS数量.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 {
                    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 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 {
                    try {
                        return ((int)(this[this.table主生产计划.开始日期Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table主生产计划.开始日期Column] = value;
                }
            }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -