Example #1
0
        /// <summary>
        /// set report when new master data
        /// </summary>
        /// <param name="data"></param>
        private void newMasterdata(MasterDataBase data)
        {
            GLAccountMasterData glAcc = data as GLAccountMasterData;

            if (glAcc == null)
            {
                return;
            }
            if (!_items.ContainsKey(glAcc.GLIdentity))
            {
                GLAccountBalanceItem item = new GLAccountBalanceItem(glAcc.GLIdentity);
                _items.Add(glAcc.GLIdentity, item);
                item.AddAmount(_coreDriver.StartMonthId, glAcc.InitAmount);
            }
        }
 /// <summary>
 /// set report when new master data
 /// </summary>
 /// <param name="data"></param>
 private void newMasterdata(MasterDataBase data)
 {
     GLAccountMasterData glAcc = data as GLAccountMasterData;
     if (glAcc == null)
     {
         return;
     }
     if (!_items.ContainsKey(glAcc.GLIdentity))
     {
         GLAccountBalanceItem item = new GLAccountBalanceItem(glAcc.GLIdentity);
         _items.Add(glAcc.GLIdentity, item);
         item.AddAmount(_coreDriver.StartMonthId, glAcc.InitAmount);
     }
 }