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

📄 entityinventory.cs

📁 基于sqlserver2k,reporting service的扩展(auth,render,deliver==)应用(mssql,RS,AS,BI)
💻 CS
📖 第 1 页 / 共 4 页
字号:
            }
            
            public InventoryLevelRow NewInventoryLevelRow() {
                return ((InventoryLevelRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new InventoryLevelRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(InventoryLevelRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.InventoryLevelRowChanged != null)) {
                    this.InventoryLevelRowChanged(this, new InventoryLevelRowChangeEvent(((InventoryLevelRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.InventoryLevelRowChanging != null)) {
                    this.InventoryLevelRowChanging(this, new InventoryLevelRowChangeEvent(((InventoryLevelRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.InventoryLevelRowDeleted != null)) {
                    this.InventoryLevelRowDeleted(this, new InventoryLevelRowChangeEvent(((InventoryLevelRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.InventoryLevelRowDeleting != null)) {
                    this.InventoryLevelRowDeleting(this, new InventoryLevelRowChangeEvent(((InventoryLevelRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveInventoryLevelRow(InventoryLevelRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class InventoryLevelRow : DataRow {
            
            private InventoryLevelDataTable tableInventoryLevel;
            
            internal InventoryLevelRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableInventoryLevel = ((InventoryLevelDataTable)(this.Table));
            }
            
            public ProductInventoryRow ProductInventoryRow {
                get {
                    return ((ProductInventoryRow)(this.GetParentRow(this.Table.ParentRelations["ProductInventory_InventoryLevel"])));
                }
                set {
                    this.SetParentRow(value, this.Table.ParentRelations["ProductInventory_InventoryLevel"]);
                }
            }
            
            public ProductsRow[] GetProductsRows() {
                return ((ProductsRow[])(this.GetChildRows(this.Table.ChildRelations["InventoryLevel_Products"])));
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class InventoryLevelRowChangeEvent : EventArgs {
            
            private InventoryLevelRow eventRow;
            
            private DataRowAction eventAction;
            
            public InventoryLevelRowChangeEvent(InventoryLevelRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public InventoryLevelRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class ProductsDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnProducts_Id;
            
            private DataColumn columnInventoryLevel_Id;
            
            internal ProductsDataTable() : 
                    base("Products") {
                this.InitClass();
            }
            
            internal ProductsDataTable(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 Products_IdColumn {
                get {
                    return this.columnProducts_Id;
                }
            }
            
            internal DataColumn InventoryLevel_IdColumn {
                get {
                    return this.columnInventoryLevel_Id;
                }
            }
            
            public ProductsRow this[int index] {
                get {
                    return ((ProductsRow)(this.Rows[index]));
                }
            }
            
            public event ProductsRowChangeEventHandler ProductsRowChanged;
            
            public event ProductsRowChangeEventHandler ProductsRowChanging;
            
            public event ProductsRowChangeEventHandler ProductsRowDeleted;
            
            public event ProductsRowChangeEventHandler ProductsRowDeleting;
            
            public void AddProductsRow(ProductsRow row) {
                this.Rows.Add(row);
            }
            
            public ProductsRow AddProductsRow(InventoryLevelRow parentInventoryLevelRowByInventoryLevel_Products) {
                ProductsRow rowProductsRow = ((ProductsRow)(this.NewRow()));
                rowProductsRow.ItemArray = new object[] {
                        null,
                        parentInventoryLevelRowByInventoryLevel_Products[0]};
                this.Rows.Add(rowProductsRow);
                return rowProductsRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                ProductsDataTable cln = ((ProductsDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new ProductsDataTable();
            }
            
            internal void InitVars() {
                this.columnProducts_Id = this.Columns["Products_Id"];
                this.columnInventoryLevel_Id = this.Columns["InventoryLevel_Id"];
            }
            
            private void InitClass() {
                this.columnProducts_Id = new DataColumn("Products_Id", typeof(int), null, System.Data.MappingType.Hidden);
                this.Columns.Add(this.columnProducts_Id);
                this.columnInventoryLevel_Id = new DataColumn("InventoryLevel_Id", typeof(int), null, System.Data.MappingType.Hidden);
                this.Columns.Add(this.columnInventoryLevel_Id);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columnProducts_Id}, true));
                this.columnProducts_Id.AutoIncrement = true;
                this.columnProducts_Id.AllowDBNull = false;
                this.columnProducts_Id.Unique = true;
            }
            
            public ProductsRow NewProductsRow() {
                return ((ProductsRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new ProductsRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(ProductsRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.ProductsRowChanged != null)) {
                    this.ProductsRowChanged(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.ProductsRowChanging != null)) {
                    this.ProductsRowChanging(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.ProductsRowDeleted != null)) {
                    this.ProductsRowDeleted(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.ProductsRowDeleting != null)) {
                    this.ProductsRowDeleting(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveProductsRow(ProductsRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class ProductsRow : DataRow {
            
            private ProductsDataTable tableProducts;
            
            internal ProductsRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableProducts = ((ProductsDataTable)(this.Table));
            }
            
            public InventoryLevelRow InventoryLevelRow {
                get {
                    return ((InventoryLevelRow)(this.GetParentRow(this.Table.ParentRelations["InventoryLevel_Products"])));
                }
                set {
                    this.SetParentRow(value, this.Table.ParentRelations["InventoryLevel_Products"]);
                }
            }
            
            public ProductRow[] GetProductRows() {
                return ((ProductRow[])(this.GetChildRows(this.Table.ChildRelations["Products_Product"])));
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class ProductsRowChangeEvent : EventArgs {
            
            private ProductsRow eventRow;
            
            private DataRowAction eventAction;
            
            public ProductsRowChangeEvent(ProductsRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public ProductsRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {

⌨️ 快捷键说明

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