コード例 #1
0
        private static void AddIfNone(this ITenantDBsDir dir, string glAcctName, GLAcctType glAcctType)
        {
            var repo    = dir.MarketState.GLAccounts;
            var matches = repo.Find(_ => _.Name == glAcctName);

            if (matches.Any())
            {
                return;
            }
            repo.Insert(new GLAccountDTO
            {
                Name        = glAcctName,
                AccountType = glAcctType
            });
        }
コード例 #2
0
ファイル: GLRecapCategory.cs プロジェクト: peterson1/RentLog
 public GLRecapCategory(GLAcctType acctTyp, GLRecapReport mainReport)
 {
     AccountType = acctTyp;
     FillWithSubRows(mainReport);
 }