コード例 #1
0
        public void GetUseIdsForSettlementDates(IGateway gateway, DateTime start, DateTime end)
        {
            List <string> tranids = new List <string>();

            if (gateway.IsNull() || !gateway.CanGetSettlementDates)
            {
                return;
            }

            if (gateway.UseIdsForSettlementDates)
            {
                tranids = (from t in _transactions
                           where t.TransactionDate >= start
                           where t.TransactionDate <= end
                           where t.Settled == null
                           where t.Moneytran == true
                           select t.TransactionId).ToList();
                gateway.CheckBatchSettlements(tranids);
            }
            else
            {
                gateway.CheckBatchSettlements(start, end);
            }
        }