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

📄 wwamds.cs

📁 报刊广告管理系统。CSharp编写
💻 CS
📖 第 1 页 / 共 5 页
字号:
            private DataColumn columnPayPrice;
            
            private DataColumn columnPaySum;
            
            private DataColumn columnMemo;
            
            internal iAdvModelDataTable() : 
                    base("iAdvModel") {
                this.InitClass();
            }
            
            internal iAdvModelDataTable(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 AdvModelidColumn {
                get {
                    return this.columnAdvModelid;
                }
            }
            
            internal DataColumn CodeColumn {
                get {
                    return this.columnCode;
                }
            }
            
            internal DataColumn UsedColumn {
                get {
                    return this.columnUsed;
                }
            }
            
            internal DataColumn LastVersionColumn {
                get {
                    return this.columnLastVersion;
                }
            }
            
            internal DataColumn ExtendFlagColumn {
                get {
                    return this.columnExtendFlag;
                }
            }
            
            internal DataColumn PaperNameColumn {
                get {
                    return this.columnPaperName;
                }
            }
            
            internal DataColumn PaperSpaceNumColumn {
                get {
                    return this.columnPaperSpaceNum;
                }
            }
            
            internal DataColumn PaperSpaceColumn {
                get {
                    return this.columnPaperSpace;
                }
            }
            
            internal DataColumn AdvSpecColumn {
                get {
                    return this.columnAdvSpec;
                }
            }
            
            internal DataColumn ColorColumn {
                get {
                    return this.columnColor;
                }
            }
            
            internal DataColumn PayUnitColumn {
                get {
                    return this.columnPayUnit;
                }
            }
            
            internal DataColumn PayNumColumn {
                get {
                    return this.columnPayNum;
                }
            }
            
            internal DataColumn PayPriceColumn {
                get {
                    return this.columnPayPrice;
                }
            }
            
            internal DataColumn PaySumColumn {
                get {
                    return this.columnPaySum;
                }
            }
            
            internal DataColumn MemoColumn {
                get {
                    return this.columnMemo;
                }
            }
            
            public iAdvModelRow this[int index] {
                get {
                    return ((iAdvModelRow)(this.Rows[index]));
                }
            }
            
            public event iAdvModelRowChangeEventHandler iAdvModelRowChanged;
            
            public event iAdvModelRowChangeEventHandler iAdvModelRowChanging;
            
            public event iAdvModelRowChangeEventHandler iAdvModelRowDeleted;
            
            public event iAdvModelRowChangeEventHandler iAdvModelRowDeleting;
            
            public void AddiAdvModelRow(iAdvModelRow row) {
                this.Rows.Add(row);
            }
            
            public iAdvModelRow AddiAdvModelRow(string Code, bool Used, int LastVersion, int ExtendFlag, string PaperName, string PaperSpaceNum, string PaperSpace, string AdvSpec, string Color, string PayUnit, System.Single PayNum, System.Single PayPrice, System.Single PaySum, string Memo) {
                iAdvModelRow rowiAdvModelRow = ((iAdvModelRow)(this.NewRow()));
                rowiAdvModelRow.ItemArray = new object[] {
                        null,
                        Code,
                        Used,
                        LastVersion,
                        ExtendFlag,
                        PaperName,
                        PaperSpaceNum,
                        PaperSpace,
                        AdvSpec,
                        Color,
                        PayUnit,
                        PayNum,
                        PayPrice,
                        PaySum,
                        Memo};
                this.Rows.Add(rowiAdvModelRow);
                return rowiAdvModelRow;
            }
            
            public iAdvModelRow FindByAdvModelid(int AdvModelid) {
                return ((iAdvModelRow)(this.Rows.Find(new object[] {
                            AdvModelid})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                iAdvModelDataTable cln = ((iAdvModelDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new iAdvModelDataTable();
            }
            
            internal void InitVars() {
                this.columnAdvModelid = this.Columns["AdvModelid"];
                this.columnCode = this.Columns["Code"];
                this.columnUsed = this.Columns["Used"];
                this.columnLastVersion = this.Columns["LastVersion"];
                this.columnExtendFlag = this.Columns["ExtendFlag"];
                this.columnPaperName = this.Columns["PaperName"];
                this.columnPaperSpaceNum = this.Columns["PaperSpaceNum"];
                this.columnPaperSpace = this.Columns["PaperSpace"];
                this.columnAdvSpec = this.Columns["AdvSpec"];
                this.columnColor = this.Columns["Color"];
                this.columnPayUnit = this.Columns["PayUnit"];
                this.columnPayNum = this.Columns["PayNum"];
                this.columnPayPrice = this.Columns["PayPrice"];
                this.columnPaySum = this.Columns["PaySum"];
                this.columnMemo = this.Columns["Memo"];
            }
            
            private void InitClass() {
                this.columnAdvModelid = new DataColumn("AdvModelid", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAdvModelid);
                this.columnCode = new DataColumn("Code", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCode);
                this.columnUsed = new DataColumn("Used", typeof(bool), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnUsed);
                this.columnLastVersion = new DataColumn("LastVersion", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnLastVersion);
                this.columnExtendFlag = new DataColumn("ExtendFlag", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnExtendFlag);
                this.columnPaperName = new DataColumn("PaperName", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPaperName);
                this.columnPaperSpaceNum = new DataColumn("PaperSpaceNum", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPaperSpaceNum);
                this.columnPaperSpace = new DataColumn("PaperSpace", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPaperSpace);
                this.columnAdvSpec = new DataColumn("AdvSpec", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAdvSpec);
                this.columnColor = new DataColumn("Color", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnColor);
                this.columnPayUnit = new DataColumn("PayUnit", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPayUnit);
                this.columnPayNum = new DataColumn("PayNum", typeof(System.Single), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPayNum);
                this.columnPayPrice = new DataColumn("PayPrice", typeof(System.Single), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPayPrice);
                this.columnPaySum = new DataColumn("PaySum", typeof(System.Single), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPaySum);
                this.columnMemo = new DataColumn("Memo", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMemo);
                this.Constraints.Add(new UniqueConstraint("WWAMDSKey2", new DataColumn[] {
                                this.columnAdvModelid}, true));
                this.columnAdvModelid.AutoIncrement = true;
                this.columnAdvModelid.AllowDBNull = false;
                this.columnAdvModelid.ReadOnly = true;
                this.columnAdvModelid.Unique = true;
                this.columnCode.AllowDBNull = false;
                this.columnUsed.AllowDBNull = false;
                this.columnLastVersion.AllowDBNull = false;
                this.columnExtendFlag.AllowDBNull = false;
                this.columnPaperName.AllowDBNull = false;
                this.columnPaperSpaceNum.AllowDBNull = false;
                this.columnPaperSpace.AllowDBNull = false;
                this.columnAdvSpec.AllowDBNull = false;
                this.columnColor.AllowDBNull = false;
                this.columnPayUnit.AllowDBNull = false;
                this.columnPayNum.AllowDBNull = false;
                this.columnPayPrice.AllowDBNull = false;
                this.columnPaySum.AllowDBNull = false;
                this.columnMemo.AllowDBNull = false;
            }
            
            public iAdvModelRow NewiAdvModelRow() {
                return ((iAdvModelRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new iAdvModelRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(iAdvModelRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.iAdvModelRowChanged != null)) {
                    this.iAdvModelRowChanged(this, new iAdvModelRowChangeEvent(((iAdvModelRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.iAdvModelRowChanging != null)) {
                    this.iAdvModelRowChanging(this, new iAdvModelRowChangeEvent(((iAdvModelRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.iAdvModelRowDeleted != null)) {
                    this.iAdvModelRowDeleted(this, new iAdvModelRowChangeEvent(((iAdvModelRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.iAdvModelRowDeleting != null)) {
                    this.iAdvModelRowDeleting(this, new iAdvModelRowChangeEvent(((iAdvModelRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveiAdvModelRow(iAdvModelRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class iAdvModelRow : DataRow {
            
            private iAdvModelDataTable tableiAdvModel;
            
            internal iAdvModelRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableiAdvModel = ((iAdvModelDataTable)(this.Table));
            }
            
            public int AdvModelid {
                get {
                    return ((int)(this[this.tableiAdvModel.AdvModelidColumn]));
                }
                set {
                    this[this.tableiAdvModel.AdvModelidColumn] = value;
                }
            }
            
            public string Code {
                get {
                    return ((string)(this[this.tableiAdvModel.CodeColumn]));
                }
                set {
                    this[this.tableiAdvModel.CodeColumn] = value;
                }
            }
            
            public bool Used {
                get {

⌨️ 快捷键说明

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