public ContractCostPlanBase() { this.inTxn = false; this._contractCodeSource = null; this._site = null; this.entityData = new ContractCostPlanEntityData(); this.backupData = null; }
void IEditableObject.BeginEdit() { if (!this.inTxn) { this.backupData = this.entityData.Clone() as ContractCostPlanEntityData; 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((ContractCostPlan)this); } } }
public ContractCostPlanBase(string contractCostPlanContractCostPlanCode, string contractCostPlanContractCostCode, string contractCostPlanContractCode, decimal?contractCostPlanMoney, DateTime?contractCostPlanPlanningPayDate, string contractCostPlanPayConditionText) { this.inTxn = false; this._contractCodeSource = null; this._site = null; this.entityData = new ContractCostPlanEntityData(); this.backupData = null; this.ContractCostPlanCode = contractCostPlanContractCostPlanCode; this.ContractCostCode = contractCostPlanContractCostCode; this.ContractCode = contractCostPlanContractCode; this.Money = contractCostPlanMoney; this.PlanningPayDate = contractCostPlanPlanningPayDate; this.PayConditionText = contractCostPlanPayConditionText; }
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; } }