コード例 #1
0
 public AccountStatement(SynchronizeEntity syncEntity) : base(syncEntity, true)
 {
     _master = syncEntity.Row as Uniconta.DataModel.GLAccount;
     if (_master != null)
     {
         FromAccount = ToAccount = _master._Account;
     }
     Init(null);
     SetHeader();
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 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);
 }