Ejemplo n.º 1
0
 public DictionaryNameBase()
 {
     this.inTxn      = false;
     this._site      = null;
     this.entityData = new DictionaryNameEntityData();
     this.backupData = null;
 }
Ejemplo n.º 2
0
 void IEditableObject.BeginEdit()
 {
     if (!this.inTxn)
     {
         this.backupData = this.entityData.Clone() as DictionaryNameEntityData;
         this.inTxn      = true;
     }
 }
Ejemplo n.º 3
0
 public DictionaryNameBase(string dictionaryNameDictionaryNameCode, string dictionaryNameNAME, string dictionaryNameProjectCode, string dictionaryNameRemark)
 {
     this.inTxn              = false;
     this._site              = null;
     this.entityData         = new DictionaryNameEntityData();
     this.backupData         = null;
     this.DictionaryNameCode = dictionaryNameDictionaryNameCode;
     this.NAME        = dictionaryNameNAME;
     this.ProjectCode = dictionaryNameProjectCode;
     this.Remark      = dictionaryNameRemark;
 }
Ejemplo n.º 4
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((DictionaryName)this);
         }
     }
 }
Ejemplo 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;
     }
 }