Пример #1
0
        public bool updateStatus(int _recordID, CCSAFStatus _status, int _retrycount = -1)
        {
            if (retry_count < 0 && _status != CCSAFStatus.P)
            {
                CreditCardSAF _tempSAFInfo = GetCCSAFRecord(_recordID);
                _retrycount = _retrycount - 1;
            }

            CreditCardSAF _SAFInfo = new CreditCardSAF();

            _SAFInfo.recordid     = _recordID;
            _SAFInfo.is_processed = _status.ToString();

            if (_status != CCSAFStatus.P)
            {
            }
            else
            {
                _SAFInfo.last_retry_time = "SYSDATE";
                _SAFInfo.retry_count     = _retrycount - 1;
            }

            bool updated = _SAFInfo.Update();

            return(updated);
        }
Пример #2
0
 public bool updateBatchStatus(List <CreditCardSAF> _listRecordID, CCSAFStatus _status)
 {
     if (_listRecordID != null)
     {
         string recordIDs = String.Join(",", _listRecordID.Select(a => a.recordid.ToString()));
         string fieldsSQL = "UPDATE ni_credit_crd_payment";
         string valuesSQL = fieldsSQL + " SET is_processed = '" + _status.ToString() + "' WHERE recordid in (" + recordIDs + ")";
         bool   updated   = Update(valuesSQL);
         return(updated);
     }
     return(false);
 }
Пример #3
0
        public bool updateStatus(CCSAFStatus _status)
        {
            CreditCardSAF _SAFInfo = new CreditCardSAF();

            _SAFInfo.recordid     = recordid;
            _SAFInfo.is_processed = _status.ToString();

            if (_status == CCSAFStatus.P)
            {
            }
            else
            {
                _SAFInfo.last_retry_time = "SYSDATE";
                _SAFInfo.retry_count     = retry_count + 1;
            }

            bool updated = _SAFInfo.Update();

            return(updated);
        }