public ContractAccountBase() { this.inTxn = false; this._contractCodeSource = null; this._site = null; this.entityData = new ContractAccountEntityData(); this.backupData = null; }
void IEditableObject.BeginEdit() { if (!this.inTxn) { this.backupData = this.entityData.Clone() as ContractAccountEntityData; this.inTxn = true; } }
void IEditableObject.CancelEdit() { if (this.inTxn) { this.entityData = this.backupData; this.backupData = null; this.inTxn = false; if (base.bindingIsNew && (this.parentCollection != null)) { this.parentCollection.Remove((ContractAccount)this); } } }
public ContractAccountBase(string contractAccountContractAccountCode, string contractAccountContractAccountID, string contractAccountContractCode, string contractAccountReason, int?contractAccountStatus, DateTime?contractAccountCreateDate, string contractAccountCreatePerson, string contractAccountContractChangeCode) { this.inTxn = false; this._contractCodeSource = null; this._site = null; this.entityData = new ContractAccountEntityData(); this.backupData = null; this.ContractAccountCode = contractAccountContractAccountCode; this.ContractAccountID = contractAccountContractAccountID; this.ContractCode = contractAccountContractCode; this.Reason = contractAccountReason; this.Status = contractAccountStatus; this.CreateDate = contractAccountCreateDate; this.CreatePerson = contractAccountCreatePerson; this.ContractChangeCode = contractAccountContractChangeCode; }
void IEditableObject.EndEdit() { if (this.inTxn) { this.backupData = null; if (base.IsDirty) { if (base.bindingIsNew) { this.EntityState = EntityState.Added; base.bindingIsNew = false; } else if (this.EntityState == EntityState.Unchanged) { this.EntityState = EntityState.Changed; } } base.bindingIsNew = false; this.inTxn = false; } }