public AccountStatement(SynchronizeEntity syncEntity) : base(syncEntity, true) { _master = syncEntity.Row as Uniconta.DataModel.GLAccount; if (_master != null) { FromAccount = ToAccount = _master._Account; } Init(null); SetHeader(); }
protected override void SyncEntityMasterRowChanged(UnicontaBaseEntity args) { _master = args as GLAccount; if (_master != null) { FromAccount = ToAccount = _master._Account; SetHeader(); if (cmbFromAccount != null) { cmbFromAccount.EditValue = _master._Account; cmbToAccount.EditValue = _master._Account; } LoadGLTrans(); } }
public AccountStatement(UnicontaBaseEntity master) : base(master) { Uniconta.DataModel.GLClosingSheet sheet = null; _master = master as Uniconta.DataModel.GLAccount; if (_master != null) { FromAccount = ToAccount = _master._Account; } else { sheet = master as Uniconta.DataModel.GLClosingSheet; if (sheet != null) { FromAccount = sheet._FromAccount; ToAccount = sheet._ToAccount; } } Init(sheet); }