private static BPTezReturn __Call(BPTezReturn e) { switch (e.BPT_INFO.RETURN_STATUS) { case "INQ": e = __RTTIE037_F_I(e); break; case null: // submit e = __RTTIE037_F_U(e); break; default: { e.BPT_INFO.RETURN_STATUS = "INQ"; e = __RTTIE037_F_I(e); break; } } return(e); }
private static BPTezReturn __Call(BPTezReturn e) { switch (e.BPT_INFO.RETURN_STATUS) { case "INQ": // e = __RTTIE037_F_I(e); e = __RTTIE037_F_I("D:/sanghamitra/Sanghamitra Acharya/CopPhase2/SourceCode/EGovCurrent23.5/Xml files/BptEz/BptEzInitResponse.xml"); break; case null: // submit e = __RTTIE037_F_U(e); break; default: { e.BPT_INFO.RETURN_STATUS = "INQ"; // e = __RTTIE037_F_I(e); e = __RTTIE037_F_I("C:/Sanghamitra/Projects/COP/EGovCurrent23.5/Xml files/BptEz/BptEzInitResponse.xml"); break; } } return(e); }
private static COPXmlFactory.RTTIE037.BPTezReturn __Fill(BPTLFEZ_RT01E037_SrvRef.TT037E00Response_SMA _SMA, BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EBPT _EBPT, BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EPG1 _EPG1, BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EEZPG2 _EEZPG2, BPTLFEZ_RT01E037_SrvRef.TT037E00Response_NEW2014FIELDS _NEW2014FIELDS) { COPXmlFactory.RTTIE037.BPTezReturn fobj = new BPTezReturn(); //LOAD ERRORS INTO OBJECT fobj.ERROR_INFO = new ERROR_INFO(); if (_SMA != null) { fobj.ERROR_INFO.PROGRAM = _SMA._PROGRAM; fobj.ERROR_INFO.LINE = _SMA.ERRORLINE.ToString(); fobj.ERROR_INFO.MESSAGE = _SMA.MESSAGE; fobj.ERROR_INFO.ERROR = _SMA.SYSTEMERROR.ToString(); } //LOAD BPT INFOS fobj.BPT_INFO = new BPT_INFO(); if (_EBPT != null) { fobj.BPT_INFO.ACCOUNT_ID = _EBPT.ACCOUNTID; fobj.BPT_INFO.ADJUSTMENT_REF_NO = _EBPT.ADJUSTMENTREFERENCENUM; fobj.BPT_INFO.PERIOD = CopMvcUtil.ConvDate(CopMvcUtil.GetDecimal(_EBPT.PERIODX)); fobj.BPT_INFO.VERSION = _EBPT.VERSIONX; fobj.BPT_INFO.RETURN_STATUS = _EBPT.RETURNSTATUS; fobj.BPT_INFO.LAST_UPD_DATE = CopMvcUtil.ConvDate(CopMvcUtil.GetDecimal(_EBPT.LASTUPDATEDATEX)); fobj.BPT_INFO.RECORDING_DATE = CopMvcUtil.ConvDate(CopMvcUtil.GetDecimal(_EBPT.RECORDINGDATEX)); fobj.BPT_INFO.EXTENSION_DATE = CopMvcUtil.ConvDate(CopMvcUtil.GetDecimal(_EBPT.EXTENSIONDATEX)); fobj.BPT_INFO.SEQUENCE = _EBPT.SEQUENCENUM; fobj.BPT_INFO.USER_ID = _EBPT.USERID; fobj.BPT_INFO.NET_RATE = CopMvcUtil.ConvDigitToDouble9(_EBPT.NETRATE); fobj.BPT_INFO.GROSS_RATE = CopMvcUtil.ConvDigitToDouble9(_EBPT.GROSSRATE); fobj.BPT_INFO.PREPARER_NAME = _EBPT.PREPARERNAME; if ((CopMvcUtil.GetLong(_EBPT.PREPARERPHONE) == 0)) { fobj.BPT_INFO.PREPARER_PHONE = string.Empty; } else { fobj.BPT_INFO.PREPARER_PHONE = CopMvcUtil.GetString(_EBPT.PREPARERPHONE); } fobj.BPT_INFO.PREPARER_PHONE_EXT = _EBPT.PREPARERPHONEEXT; fobj.BPT_INFO.PREPARER_IP_ADDRESS = _EBPT.PREPARERIPADDRESS; fobj.BPT_INFO.PREPARER_EMAIL_ADDRESS = _EBPT.PREPAREREMAILADDRESS; fobj.BPT_INFO.PREPARER_WHO = _EBPT.PREPARERTYPE; } //LOAD BPT_PG1 fobj.BPT_PG1 = new BPT_PG1(); if (_EPG1 != null) { fobj.BPT_PG1.NET_TAX = CopMvcUtil.ConvDigitToCurrency(_EPG1.TAXONNETX); fobj.BPT_PG1.GROSS_TAX = CopMvcUtil.ConvDigitToCurrency(_EPG1.TAXONGROSSX); fobj.BPT_PG1.ACTUAL_TAX = CopMvcUtil.ConvDigitToCurrency(_EPG1.ACTUALTAXX); fobj.BPT_PG1.ESTIMATED_TAX = CopMvcUtil.ConvDigitToCurrency(_EPG1.ESTIMATEDTAXX); fobj.BPT_PG1.TOTAL_TAX = CopMvcUtil.ConvDigitToCurrency(_EPG1.TOTALTAXX); fobj.BPT_PG1.NPT_TAX_CREDIT = CopMvcUtil.ConvDigitToCurrency(_EPG1.NPTTAXCREDITX); fobj.BPT_PG1.BPT_TAX_CREDIT = CopMvcUtil.ConvDigitToCurrency(_EPG1.BPTTAXCREDITX); fobj.BPT_PG1.TOTAL_PAY_CREDITS = CopMvcUtil.ConvDigitToCurrency(_EPG1.TOTALPAYMNTSCREDITSX); fobj.BPT_PG1.TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EPG1.TOTALTAXX); fobj.BPT_PG1.INTEREST_PENALTY = CopMvcUtil.ConvDigitToCurrency(_EPG1.INTERESTANDPENALTYAMTX); fobj.BPT_PG1.AMOUNT_OWED = CopMvcUtil.ConvDigitToCurrency(_EPG1.AMTOWED2X); fobj.BPT_PG1.REFUND = CopMvcUtil.ConvDigitToCurrency(_EPG1.REFUNDAMTX); fobj.BPT_PG1.NPT_OVERPAY = CopMvcUtil.ConvDigitToCurrency(_EPG1.NPTOVERPAYMENTX); fobj.BPT_PG1.BPT_OVERPAY = CopMvcUtil.ConvDigitToCurrency(_EPG1.BPTOVERPAYMENTX); } //LOAD BPT_PG2 fobj.BPT_PG2 = new BPT_PG2(); if (_EEZPG2 != null) { fobj.BPT_PG2.NET_INCOME_LOSS_1 = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.NETINCOMELOSS1X); fobj.BPT_PG2.NET_INCOME_LOSS_2 = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.NETINCOMELOSS2X); fobj.BPT_PG2.LOSS_CARRY_FORWARD = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.LOSSCARRYFORWARDX); fobj.BPT_PG2.TAXABLE_INCOME = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.TAXABLEINCOMEX); fobj.BPT_PG2.TAX_DUE_NET = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.TAXDUEXNET); fobj.BPT_PG2.SALES_RENTAL = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.SALESRENTALSX); fobj.BPT_PG2.SERVICES = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.SERVICESX); fobj.BPT_PG2.RENTAL_PROPERTY = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.RENTALPROPERTYX); fobj.BPT_PG2.ROYALTIES = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.ROYALTIESX); fobj.BPT_PG2.CAPITAL_GAINS = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.CAPITALGAINSX); fobj.BPT_PG2.STOCK_GAINS = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.STOCKGAINSX); fobj.BPT_PG2.DIVIDENDS = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.DIVIDENDSX); fobj.BPT_PG2.INTEREST = CopMvcUtil.ConvDigitToDouble(_EEZPG2.INTERESTX); fobj.BPT_PG2.OTHER = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.OTHERX); fobj.BPT_PG2.TAXABLE_GROSS_RCPTS = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.TAXABLEGROSSRECEIPTSX); fobj.BPT_PG2.TAX_DUE_GROSS = CopMvcUtil.ConvDigitToCurrency(_EEZPG2.TAXDUEXGROSS); } return(fobj); }