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

📄 workflow1.cs

📁 ASP.NET+VML开发的工作流图软件
💻 CS
📖 第 1 页 / 共 2 页
字号:
            }
            
            public string Name {
                get {
                    try {
                        return ((string)(this[this.tableWorkFlowItem.NameColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableWorkFlowItem.NameColumn] = value;
                }
            }
            
            public string PosX {
                get {
                    if (this.IsPosXNull()) {
                        return "0";
                    }
                    else {
                        return ((string)(this[this.tableWorkFlowItem.PosXColumn]));
                    }
                }
                set {
                    this[this.tableWorkFlowItem.PosXColumn] = value;
                }
            }
            
            public string PosY {
                get {
                    if (this.IsPosYNull()) {
                        return "0";
                    }
                    else {
                        return ((string)(this[this.tableWorkFlowItem.PosYColumn]));
                    }
                }
                set {
                    this[this.tableWorkFlowItem.PosYColumn] = value;
                }
            }
            
            public string LimiteDate {
                get {
                    try {
                        return ((string)(this[this.tableWorkFlowItem.LimiteDateColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableWorkFlowItem.LimiteDateColumn] = value;
                }
            }
            
            public string isStart {
                get {
                    try {
                        return ((string)(this[this.tableWorkFlowItem.isStartColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableWorkFlowItem.isStartColumn] = value;
                }
            }
            
            public bool IsNameNull() {
                return this.IsNull(this.tableWorkFlowItem.NameColumn);
            }
            
            public void SetNameNull() {
                this[this.tableWorkFlowItem.NameColumn] = System.Convert.DBNull;
            }
            
            public bool IsPosXNull() {
                return this.IsNull(this.tableWorkFlowItem.PosXColumn);
            }
            
            public void SetPosXNull() {
                this[this.tableWorkFlowItem.PosXColumn] = System.Convert.DBNull;
            }
            
            public bool IsPosYNull() {
                return this.IsNull(this.tableWorkFlowItem.PosYColumn);
            }
            
            public void SetPosYNull() {
                this[this.tableWorkFlowItem.PosYColumn] = System.Convert.DBNull;
            }
            
            public bool IsLimiteDateNull() {
                return this.IsNull(this.tableWorkFlowItem.LimiteDateColumn);
            }
            
            public void SetLimiteDateNull() {
                this[this.tableWorkFlowItem.LimiteDateColumn] = System.Convert.DBNull;
            }
            
            public bool IsisStartNull() {
                return this.IsNull(this.tableWorkFlowItem.isStartColumn);
            }
            
            public void SetisStartNull() {
                this[this.tableWorkFlowItem.isStartColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class WorkFlowItemRowChangeEvent : EventArgs {
            
            private WorkFlowItemRow eventRow;
            
            private DataRowAction eventAction;
            
            public WorkFlowItemRowChangeEvent(WorkFlowItemRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public WorkFlowItemRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class RelationDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnMasterItem;
            
            private DataColumn columnSecondItem;
            
            private DataColumn columnPoints;
            
            internal RelationDataTable() : 
                    base("Relation") {
                this.InitClass();
            }
            
            internal RelationDataTable(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 MasterItemColumn {
                get {
                    return this.columnMasterItem;
                }
            }
            
            internal DataColumn SecondItemColumn {
                get {
                    return this.columnSecondItem;
                }
            }
            
            internal DataColumn PointsColumn {
                get {
                    return this.columnPoints;
                }
            }
            
            public RelationRow this[int index] {
                get {
                    return ((RelationRow)(this.Rows[index]));
                }
            }
            
            public event RelationRowChangeEventHandler RelationRowChanged;
            
            public event RelationRowChangeEventHandler RelationRowChanging;
            
            public event RelationRowChangeEventHandler RelationRowDeleted;
            
            public event RelationRowChangeEventHandler RelationRowDeleting;
            
            public void AddRelationRow(RelationRow row) {
                this.Rows.Add(row);
            }
            
            public RelationRow AddRelationRow(int MasterItem, int SecondItem, string Points) {
                RelationRow rowRelationRow = ((RelationRow)(this.NewRow()));
                rowRelationRow.ItemArray = new object[] {
                        MasterItem,
                        SecondItem,
                        Points};
                this.Rows.Add(rowRelationRow);
                return rowRelationRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                RelationDataTable cln = ((RelationDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new RelationDataTable();
            }
            
            internal void InitVars() {
                this.columnMasterItem = this.Columns["MasterItem"];
                this.columnSecondItem = this.Columns["SecondItem"];
                this.columnPoints = this.Columns["Points"];
            }
            
            private void InitClass() {
                this.columnMasterItem = new DataColumn("MasterItem", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMasterItem);
                this.columnSecondItem = new DataColumn("SecondItem", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSecondItem);
                this.columnPoints = new DataColumn("Points", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPoints);
                this.columnMasterItem.AllowDBNull = false;
                this.columnSecondItem.AllowDBNull = false;
            }
            
            public RelationRow NewRelationRow() {
                return ((RelationRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new RelationRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(RelationRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.RelationRowChanged != null)) {
                    this.RelationRowChanged(this, new RelationRowChangeEvent(((RelationRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.RelationRowChanging != null)) {
                    this.RelationRowChanging(this, new RelationRowChangeEvent(((RelationRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.RelationRowDeleted != null)) {
                    this.RelationRowDeleted(this, new RelationRowChangeEvent(((RelationRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.RelationRowDeleting != null)) {
                    this.RelationRowDeleting(this, new RelationRowChangeEvent(((RelationRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveRelationRow(RelationRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class RelationRow : DataRow {
            
            private RelationDataTable tableRelation;
            
            internal RelationRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableRelation = ((RelationDataTable)(this.Table));
            }
            
            public int MasterItem {
                get {
                    return ((int)(this[this.tableRelation.MasterItemColumn]));
                }
                set {
                    this[this.tableRelation.MasterItemColumn] = value;
                }
            }
            
            public int SecondItem {
                get {
                    return ((int)(this[this.tableRelation.SecondItemColumn]));
                }
                set {
                    this[this.tableRelation.SecondItemColumn] = value;
                }
            }
            
            public string Points {
                get {
                    try {
                        return ((string)(this[this.tableRelation.PointsColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableRelation.PointsColumn] = value;
                }
            }
            
            public bool IsPointsNull() {
                return this.IsNull(this.tableRelation.PointsColumn);
            }
            
            public void SetPointsNull() {
                this[this.tableRelation.PointsColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class RelationRowChangeEvent : EventArgs {
            
            private RelationRow eventRow;
            
            private DataRowAction eventAction;
            
            public RelationRowChangeEvent(RelationRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public RelationRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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