예제 #1
0
        public bool DeleteByDisputeTransactionFlag(Settlement_ERR_DetailInfo settlement_ERR_DetailInfo)
        {
            Settlement_ERR_DetailCollections settlement_ERR_DetailCollections = new Settlement_ERR_DetailCollections();

            settlement_ERR_DetailCollections.Add(settlement_ERR_DetailInfo);
            return(DeleteByDisputeTransactionFlag(settlement_ERR_DetailCollections));
        }
예제 #2
0
        public bool Add(Settlement_ERR_DetailInfo settlement_ERR_DetailInfo)
        {
            Settlement_ERR_DetailCollections settlement_ERR_DetailCollections = new Settlement_ERR_DetailCollections();

            settlement_ERR_DetailCollections.Add(settlement_ERR_DetailInfo);

            return(Add(settlement_ERR_DetailCollections));
        }
예제 #3
0
        public Settlement_ERR_DetailCollections Select()
        {
            IDataReader dataReader = DataController.Select();
            Settlement_ERR_DetailCollections settlement_ERR_DetailCollections = new Settlement_ERR_DetailCollections();

            while (dataReader.Read())
            {
                Settlement_ERR_DetailInfo settlement_ERR_DetailInfo = new Settlement_ERR_DetailInfo();
                Fill(dataReader, settlement_ERR_DetailInfo);
                settlement_ERR_DetailCollections.Add(settlement_ERR_DetailInfo);
            }
            return(settlement_ERR_DetailCollections);
        }
예제 #4
0
        public bool Update(Settlement_ERR_DetailCollections settlement_ERR_DetailCollections)
        {
            try
            {
                DataController.StartTransaction();
                foreach (Settlement_ERR_DetailInfo settlement_ERR_DetailInfo in settlement_ERR_DetailCollections)
                {
                    DataController.Update(settlement_ERR_DetailInfo.DisputeTransactionFlag, settlement_ERR_DetailInfo.AcquiringInstitutionID, settlement_ERR_DetailInfo.ForwardingInstitutionID, settlement_ERR_DetailInfo.SystemTraceNumber, settlement_ERR_DetailInfo.TransmissionDateTime, settlement_ERR_DetailInfo.PAN, settlement_ERR_DetailInfo.TransactionAmount, settlement_ERR_DetailInfo.MessageType, settlement_ERR_DetailInfo.ProcessingCode, settlement_ERR_DetailInfo.MerchantType, settlement_ERR_DetailInfo.CardAcceptorTerminalId, settlement_ERR_DetailInfo.OriginalTransactionRetrievalRefNo, settlement_ERR_DetailInfo.PoitOfServiceCondition, settlement_ERR_DetailInfo.AuthorizationIDResponse, settlement_ERR_DetailInfo.ReceivingInstitutionID, settlement_ERR_DetailInfo.CardIssBankID, settlement_ERR_DetailInfo.OriginalTranSystemTraceNo, settlement_ERR_DetailInfo.ResponseCode, settlement_ERR_DetailInfo.PointOfServiceEntryModeCode, settlement_ERR_DetailInfo.FeeCharged, settlement_ERR_DetailInfo.FeePaid, settlement_ERR_DetailInfo.InterchangeServiceFee, settlement_ERR_DetailInfo.CardHolderTransFee, settlement_ERR_DetailInfo.CommissionReceivable, settlement_ERR_DetailInfo.DisputeReason, settlement_ERR_DetailInfo.ReservedforUse, settlement_ERR_DetailInfo.CreateDate, settlement_ERR_DetailInfo.BathNo, settlement_ERR_DetailInfo.FileName, settlement_ERR_DetailInfo.FileType, settlement_ERR_DetailInfo.STFDate);
                }

                DataController.CommitTransaction();
            }
            catch (Exception ex)
            {
                DataController.RollbackTransaction();
                return(false);
            }
            return(true);
        }
예제 #5
0
        public bool DeleteByDisputeTransactionFlag(Settlement_ERR_DetailCollections settlement_ERR_DetailCollections)
        {
            string uniqueKey = "";

            try
            {
                DataController.StartTransaction();
                foreach (Settlement_ERR_DetailInfo settlement_ERR_DetailInfo in settlement_ERR_DetailCollections)
                {
                    uniqueKey = settlement_ERR_DetailInfo.DisputeTransactionFlag;
                    DataController.DeleteByDisputeTransactionFlag(settlement_ERR_DetailInfo.DisputeTransactionFlag);
                }
                DataController.CommitTransaction();
            }
            catch (Exception ex)
            {
                DataController.RollbackTransaction();
                return(false);
            }

            return(true);
        }