示例#1
0
 public AdjustmentsListVM(int leaseId, BillCode billCode, DateTime date, ITenantDBsDir args) : base(GetRepo(date, args), args, false)
 {
     _lseId   = leaseId;
     _repo    = GetRepo(date, AppArgs);
     BillCode = billCode;
     ReloadFromDB();
 }
示例#2
0
        private BalanceAdjustmentDTO FindRntDTO(BalanceAdjConverter1 conv, ITenantDBsDir dir, out DateTime date)
        {
            date = conv._adjDates[Id];
            var colxns = dir.Collections.For(date);

            _repo = colxns?.BalanceAdjs;
            return(_repo?.Find(Id, false));
            //return _repo?.GetAll().SingleOrDefault(_ => _.Id == Id);
        }