Пример #1
0
        public bool DeleteByAcquireInstitutionID(MerchantDetailTransaction_InfoInfo merchantDetailTransaction_InfoInfo)
        {
            MerchantDetailTransaction_InfoCollections merchantDetailTransaction_InfoCollections = new MerchantDetailTransaction_InfoCollections();

            merchantDetailTransaction_InfoCollections.Add(merchantDetailTransaction_InfoInfo);
            return(DeleteByAcquireInstitutionID(merchantDetailTransaction_InfoCollections));
        }
Пример #2
0
        public bool Update(MerchantDetailTransaction_InfoCollections merchantDetailTransaction_InfoCollections)
        {
            try
            {
                DataController.StartTransaction();
                foreach (MerchantDetailTransaction_InfoInfo merchantDetailTransaction_InfoInfo in merchantDetailTransaction_InfoCollections)
                {
                    DataController.Update(merchantDetailTransaction_InfoInfo.AcquireInstitutionID, merchantDetailTransaction_InfoInfo.ForwardingInstitutionID,
                                          merchantDetailTransaction_InfoInfo.SystemTraceNo, merchantDetailTransaction_InfoInfo.TranDateTime,
                                          merchantDetailTransaction_InfoInfo.PAN, merchantDetailTransaction_InfoInfo.TransactionAmount,
                                          merchantDetailTransaction_InfoInfo.AccptAmount, merchantDetailTransaction_InfoInfo.MerchantTranFee,
                                          merchantDetailTransaction_InfoInfo.MessageType, merchantDetailTransaction_InfoInfo.ProcessingCode,
                                          merchantDetailTransaction_InfoInfo.MerchantType, merchantDetailTransaction_InfoInfo.AcceptorTerminalID,
                                          merchantDetailTransaction_InfoInfo.AcceptorID, merchantDetailTransaction_InfoInfo.RetrievalReferenceNo,
                                          merchantDetailTransaction_InfoInfo.POSConditionCode, merchantDetailTransaction_InfoInfo.AuthorizeResponseCode,
                                          merchantDetailTransaction_InfoInfo.InstitutionCode, merchantDetailTransaction_InfoInfo.OrgTraceNo,
                                          merchantDetailTransaction_InfoInfo.ResponseCode, merchantDetailTransaction_InfoInfo.POSEntryMode,
                                          merchantDetailTransaction_InfoInfo.SvcFeeRec, merchantDetailTransaction_InfoInfo.SvcFeePayable,
                                          merchantDetailTransaction_InfoInfo.InterchangeSvcFee, merchantDetailTransaction_InfoInfo.SwitchFlag,
                                          merchantDetailTransaction_InfoInfo.ReservedForUse, merchantDetailTransaction_InfoInfo.CreatedDate,
                                          merchantDetailTransaction_InfoInfo.BatchNo, merchantDetailTransaction_InfoInfo.FileName,
                                          merchantDetailTransaction_InfoInfo.STFDate);
                }

                DataController.CommitTransaction();
            }
            catch (Exception ex)
            {
                DataController.RollbackTransaction();
                return(false);
            }
            return(true);
        }
Пример #3
0
        public bool Add(MerchantDetailTransaction_InfoInfo merchantDetailTransaction_InfoInfo)
        {
            MerchantDetailTransaction_InfoCollections merchantDetailTransaction_InfoCollections = new MerchantDetailTransaction_InfoCollections();

            merchantDetailTransaction_InfoCollections.Add(merchantDetailTransaction_InfoInfo);

            return(Add(merchantDetailTransaction_InfoCollections));
        }
Пример #4
0
        public MerchantDetailTransaction_InfoCollections Select()
        {
            IDataReader dataReader = DataController.Select();
            MerchantDetailTransaction_InfoCollections merchantDetailTransaction_InfoCollections = new MerchantDetailTransaction_InfoCollections();

            while (dataReader.Read())
            {
                MerchantDetailTransaction_InfoInfo merchantDetailTransaction_InfoInfo = new MerchantDetailTransaction_InfoInfo();
                Fill(dataReader, merchantDetailTransaction_InfoInfo);
                merchantDetailTransaction_InfoCollections.Add(merchantDetailTransaction_InfoInfo);
            }
            return(merchantDetailTransaction_InfoCollections);
        }
Пример #5
0
        public bool DeleteByAcquireInstitutionID(MerchantDetailTransaction_InfoCollections merchantDetailTransaction_InfoCollections)
        {
            try
            {
                DataController.StartTransaction();
                foreach (MerchantDetailTransaction_InfoInfo merchantDetailTransaction_InfoInfo in merchantDetailTransaction_InfoCollections)
                {
                    DataController.DeleteByAcquireInstitutionID(merchantDetailTransaction_InfoInfo.AcquireInstitutionID);
                }
                DataController.CommitTransaction();
            }
            catch (Exception ex)
            {
                DataController.RollbackTransaction();
                return(false);
            }

            return(true);
        }