Esempio n. 1
0
 public ContractAccountBase()
 {
     this.inTxn = false;
     this._contractCodeSource = null;
     this._site      = null;
     this.entityData = new ContractAccountEntityData();
     this.backupData = null;
 }
Esempio n. 2
0
 void IEditableObject.BeginEdit()
 {
     if (!this.inTxn)
     {
         this.backupData = this.entityData.Clone() as ContractAccountEntityData;
         this.inTxn      = true;
     }
 }
Esempio n. 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((ContractAccount)this);
         }
     }
 }
Esempio n. 4
0
 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;
 }
Esempio n. 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;
     }
 }