コード例 #1
0
        public GLAccountDTO ValidateGLAccountAndEntityType(int accountTypeID, int entityTypeID, int?glAccountID)
        {
            GLAccountList glAccount = GLAccountList.ValidateGLAccountAndEntityType(accountTypeID, entityTypeID, glAccountID);

            if (glAccount.Count > 0)
            {
                return(glAccount[0].CurrentDTO);
            }

            return(null);
        }
コード例 #2
0
        public GLAccountDTO ValidateGLAccount(string accountCode, int?glAccountID)
        {
            GLAccountList glAccount = GLAccountList.ValidateAccountCode(accountCode.Trim(), glAccountID);

            if (glAccount.Count > 0)
            {
                return(glAccount[0].CurrentDTO);
            }

            return(null);
        }