public SystemUserBase(string systemUserUserCode, string systemUserUserID, string systemUserUserName, string systemUserOwnName, string systemUserPassWord, string systemUserSex, string systemUserPhone, string systemUserMailBox, string systemUserNote, DateTime?systemUserBirthDay, string systemUserPhoneHome, string systemUserAddress, string systemUserMobile, string systemUserFax, int?systemUserStatus, string systemUserLastProjectCode, string systemUserSortID, string systemUserShortUserName) { this.inTxn = false; this._site = null; this.entityData = new SystemUserEntityData(); this.backupData = null; this.UserCode = systemUserUserCode; this.UserID = systemUserUserID; this.UserName = systemUserUserName; this.OwnName = systemUserOwnName; this.PassWord = systemUserPassWord; this.Sex = systemUserSex; this.Phone = systemUserPhone; this.MailBox = systemUserMailBox; this.Note = systemUserNote; this.BirthDay = systemUserBirthDay; this.PhoneHome = systemUserPhoneHome; this.Address = systemUserAddress; this.Mobile = systemUserMobile; this.Fax = systemUserFax; this.Status = systemUserStatus; this.LastProjectCode = systemUserLastProjectCode; this.SortID = systemUserSortID; this.ShortUserName = systemUserShortUserName; }
public SystemUserBase() { this.inTxn = false; this._site = null; this.entityData = new SystemUserEntityData(); this.backupData = null; }
void IEditableObject.BeginEdit() { if (!this.inTxn) { this.backupData = this.entityData.Clone() as SystemUserEntityData; 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((SystemUser)this); } } }
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; } }