public bool DeleteByAcquireInstitutionID(MerchantDetailTransaction_InfoInfo merchantDetailTransaction_InfoInfo) { MerchantDetailTransaction_InfoCollections merchantDetailTransaction_InfoCollections = new MerchantDetailTransaction_InfoCollections(); merchantDetailTransaction_InfoCollections.Add(merchantDetailTransaction_InfoInfo); return(DeleteByAcquireInstitutionID(merchantDetailTransaction_InfoCollections)); }
public bool Add(MerchantDetailTransaction_InfoInfo merchantDetailTransaction_InfoInfo) { MerchantDetailTransaction_InfoCollections merchantDetailTransaction_InfoCollections = new MerchantDetailTransaction_InfoCollections(); merchantDetailTransaction_InfoCollections.Add(merchantDetailTransaction_InfoInfo); return(Add(merchantDetailTransaction_InfoCollections)); }
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); }
private void Fill(IDataReader dataReader, MerchantDetailTransaction_InfoInfo merchantDetailTransaction_InfoInfo) { if (!(dataReader["AcquireInstitutionID"] is DBNull)) { merchantDetailTransaction_InfoInfo.AcquireInstitutionID = Convert.ToDecimal(dataReader["AcquireInstitutionID"]); } if (!(dataReader["ForwardingInstitutionID"] is DBNull)) { merchantDetailTransaction_InfoInfo.ForwardingInstitutionID = Convert.ToDecimal(dataReader["ForwardingInstitutionID"]); } if (!(dataReader["SystemTraceNo"] is DBNull)) { merchantDetailTransaction_InfoInfo.SystemTraceNo = Convert.ToDecimal(dataReader["SystemTraceNo"]); } if (!(dataReader["TranDateTime"] is DBNull)) { merchantDetailTransaction_InfoInfo.TranDateTime = Convert.ToDecimal(dataReader["TranDateTime"]); } if (!(dataReader["PAN"] is DBNull)) { merchantDetailTransaction_InfoInfo.PAN = Convert.ToDecimal(dataReader["PAN"]); } if (!(dataReader["TransactionAmount"] is DBNull)) { merchantDetailTransaction_InfoInfo.TransactionAmount = Convert.ToDecimal(dataReader["TransactionAmount"]); } if (!(dataReader["AccptAmount"] is DBNull)) { merchantDetailTransaction_InfoInfo.AccptAmount = Convert.ToDecimal(dataReader["AccptAmount"]); } if (!(dataReader["MerchantTranFee"] is DBNull)) { merchantDetailTransaction_InfoInfo.MerchantTranFee = Convert.ToDecimal(dataReader["MerchantTranFee"]); } if (!(dataReader["MessageType"] is DBNull)) { merchantDetailTransaction_InfoInfo.MessageType = Convert.ToDecimal(dataReader["MessageType"]); } if (!(dataReader["ProcessingCode"] is DBNull)) { merchantDetailTransaction_InfoInfo.ProcessingCode = Convert.ToDecimal(dataReader["ProcessingCode"]); } if (!(dataReader["MerchantType"] is DBNull)) { merchantDetailTransaction_InfoInfo.MerchantType = Convert.ToDecimal(dataReader["MerchantType"]); } if (!(dataReader["AcceptorTerminalID"] is DBNull)) { merchantDetailTransaction_InfoInfo.AcceptorTerminalID = Convert.ToString(dataReader["AcceptorTerminalID"]); } if (!(dataReader["AcceptorID"] is DBNull)) { merchantDetailTransaction_InfoInfo.AcceptorID = Convert.ToString(dataReader["AcceptorID"]); } if (!(dataReader["RetrievalReferenceNo"] is DBNull)) { merchantDetailTransaction_InfoInfo.RetrievalReferenceNo = Convert.ToString(dataReader["RetrievalReferenceNo"]); } if (!(dataReader["POSConditionCode"] is DBNull)) { merchantDetailTransaction_InfoInfo.POSConditionCode = Convert.ToDecimal(dataReader["POSConditionCode"]); } if (!(dataReader["AuthorizeResponseCode"] is DBNull)) { merchantDetailTransaction_InfoInfo.AuthorizeResponseCode = Convert.ToString(dataReader["AuthorizeResponseCode"]); } if (!(dataReader["InstitutionCode"] is DBNull)) { merchantDetailTransaction_InfoInfo.InstitutionCode = Convert.ToDecimal(dataReader["InstitutionCode"]); } if (!(dataReader["OrgTraceNo"] is DBNull)) { merchantDetailTransaction_InfoInfo.OrgTraceNo = Convert.ToDecimal(dataReader["OrgTraceNo"]); } if (!(dataReader["ResponseCode"] is DBNull)) { merchantDetailTransaction_InfoInfo.ResponseCode = Convert.ToString(dataReader["ResponseCode"]); } if (!(dataReader["POSEntryMode"] is DBNull)) { merchantDetailTransaction_InfoInfo.POSEntryMode = Convert.ToDecimal(dataReader["POSEntryMode"]); } if (!(dataReader["SvcFeeRec"] is DBNull)) { merchantDetailTransaction_InfoInfo.SvcFeeRec = Convert.ToDecimal(dataReader["SvcFeeRec"]); } if (!(dataReader["SvcFeePayable"] is DBNull)) { merchantDetailTransaction_InfoInfo.SvcFeePayable = Convert.ToDecimal(dataReader["SvcFeePayable"]); } if (!(dataReader["InterchangeSvcFee"] is DBNull)) { merchantDetailTransaction_InfoInfo.InterchangeSvcFee = Convert.ToDecimal(dataReader["InterchangeSvcFee"]); } if (!(dataReader["SwitchFlag"] is DBNull)) { merchantDetailTransaction_InfoInfo.SwitchFlag = Convert.ToDecimal(dataReader["SwitchFlag"]); } if (!(dataReader["ReservedForUse"] is DBNull)) { merchantDetailTransaction_InfoInfo.ReservedForUse = Convert.ToString(dataReader["ReservedForUse"]); } if (!(dataReader["CreatedDate"] is DBNull)) { merchantDetailTransaction_InfoInfo.CreatedDate = Convert.ToDateTime(dataReader["CreatedDate"]); } if (!(dataReader["BatchNo"] is DBNull)) { merchantDetailTransaction_InfoInfo.BatchNo = Convert.ToDecimal(dataReader["BatchNo"]); } if (!(dataReader["FileName"] is DBNull)) { merchantDetailTransaction_InfoInfo.FileName = Convert.ToString(dataReader["FileName"]); } if (!(dataReader["STFDate"] is DBNull)) { merchantDetailTransaction_InfoInfo.STFDate = Convert.ToDateTime(dataReader["STFDate"]); } }