예제 #1
0
 public ContractCostPlanBase()
 {
     this.inTxn = false;
     this._contractCodeSource = null;
     this._site      = null;
     this.entityData = new ContractCostPlanEntityData();
     this.backupData = null;
 }
예제 #2
0
 void IEditableObject.BeginEdit()
 {
     if (!this.inTxn)
     {
         this.backupData = this.entityData.Clone() as ContractCostPlanEntityData;
         this.inTxn      = true;
     }
 }
예제 #3
0
 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);
         }
     }
 }
예제 #4
0
 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;
 }
예제 #5
0
 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;
     }
 }