示例#1
0
        public IEnumerable <ListReleaseInvoice> GetByAccTemp(int acc, string temp)
        {
            var spec = ListReleaseInvoiceQuery.WithByAccountId(acc);

            spec = spec.And(ListReleaseInvoiceQuery.WithByTemplateCode(temp));
            return(_listReleaseInvoice.Find(spec));
        }
示例#2
0
        public IEnumerable <ListReleaseInvoice> GetByTemplateId(string tempCode, int accountId = -1)
        {
            var spec = ListReleaseInvoiceQuery.WithByTemplateid(tempCode);

            spec = accountId != -1 ? spec.And(ListReleaseInvoiceQuery.WithByAccountId(accountId)) : spec;


            return(_listReleaseInvoice.Find(spec));
        }
示例#3
0
        public IEnumerable <ListReleaseInvoice> GetByAcc(int acc)
        {
            var spec = ListReleaseInvoiceQuery.WithByAccountId(acc);

            return(_listReleaseInvoice.Find(spec));
        }