public static string CallService(string Request) { COPXmlFactory.RTTIE030.BPTlfReturn xo; try { xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE030.BPTlfReturn>(Request); xo = __Call(xo); } catch (Exception ex) { xo = RevenueGovXMLFactory.GetBPTlfReturn(); xo.ERROR_INFO = new ERROR_INFO(); xo.ERROR_INFO.ERROR = 11.ToString(); xo.ERROR_INFO.MESSAGE = ex.Message; } return(RevenueGovXMLFactory.GetXmlString(xo)); }
public static XmlDocument CallService(XmlDocument Request) { COPXmlFactory.RTTIE030.BPTlfReturn acct; try { string InnerXML = Request.InnerXml; acct = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE030.BPTlfReturn>(InnerXML); acct = __Call(acct); } catch (Exception ex) { acct = RevenueGovXMLFactory.GetBPTlfReturn(); acct.ERROR_INFO = new ERROR_INFO(); acct.ERROR_INFO.ERROR = 11.ToString(); acct.ERROR_INFO.MESSAGE = ex.Message; } return(RevenueGovXMLFactory.GetXmlDocument(acct)); }
private static COPXmlFactory.RTTIE030.BPTlfReturn __Fill(RTTIE230_SrvRef.RTTIE230Response e) { COPXmlFactory.RTTIE030.BPTlfReturn fobj = RevenueGovXMLFactory.GetBPTlfReturn(); //LOAD ERRORS INTO OBJECT fobj.ERROR_INFO = new ERROR_INFO(); fobj.ERROR_INFO.PROGRAM = e._SMA._PROGRAM; fobj.ERROR_INFO.LINE = e._SMA.ERRORLINE.ToString(); fobj.ERROR_INFO.MESSAGE = e._SMA.MESSAGE; fobj.ERROR_INFO.ERROR = e._SMA.SYSTEMERROR.ToString(); //LOAD BPT_INFO fobj.BPT_INFO = new BPT_INFO(); fobj.BPT_INFO.ACCOUNT_ID = e._ELFBPT.ACCOUNTID; fobj.BPT_INFO.VERSION = e._ELFBPT.VERSIONX; fobj.BPT_INFO.RETURN_STATUS = e._ELFBPT.RETURNSTATUS; fobj.BPT_INFO.PERIOD = CopMvcUtil.ConvDate(e._ELFBPT.PERIODX); fobj.BPT_INFO.LAST_UPD_DATE = CopMvcUtil.ConvDate(e._ELFBPT.LASTUPDATEDATEX); fobj.BPT_INFO.RECORDING_DATE = CopMvcUtil.ConvDate(e._ELFBPT.RECORDINGDATEX); fobj.BPT_INFO.EXTENSION_DATE = CopMvcUtil.ConvDate(e._ELFBPT.EXTENSIONDATEX); fobj.BPT_INFO.SEQUENCE = e._ELFBPT.SEQUENCENUM; fobj.BPT_INFO.ADJUSTMENT_REF_NO = e._ELFBPT.ADJREFNO; fobj.BPT_INFO.USER_ID = e._ELFBPT.USERID; fobj.BPT_INFO.SCH_AB_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(e._ELFBPT.NETRATEX); fobj.BPT_INFO.SCH_D_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(e._ELFBPT.GROSSRATEX); fobj.BPT_INFO.SCH_E_M_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(e._ELFBPT.MANUFACTURERRATEX); fobj.BPT_INFO.SCH_E_W_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(e._ELFBPT.WHOLESALERRATEX); fobj.BPT_INFO.SCH_E_R_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(e._ELFBPT.RETAILERRATEX); fobj.BPT_INFO.LOSS_CARRY_FOWARD = e._ELFBPT.LOSSCARRYFORWARDX; fobj.BPT_INFO.PREPARER_NAME = e._ELFBPT.PREPARERNAME; fobj.BPT_INFO.PREPARER_PHONE = CopMvcUtil.ConvDecimal(e._ELFBPT.PREPARERPHONE).ToString(); fobj.BPT_INFO.PREPARER_PHONE_EXT = e._ELFBPT.PREPARERPHONEEXT; fobj.BPT_INFO.PREPARER_IP_ADDRESS = e._ELFBPT.PREPARERIPADDRESS; fobj.BPT_INFO.PREPARER_EMAIL_ADDRESS = e._ELFBPT.PREPAREREMAILADDRESS; fobj.BPT_INFO.PREPARER_WHO = e._ELFBPT.PREPARERTYPE; //BPT_PG1 fobj.BPT_PG1 = new BPT_PG1(); fobj.BPT_PG1.NET_INCOME = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.TAXONNETX); fobj.BPT_PG1.GROSS_RECEIPTS = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.TAXONGROSSX); fobj.BPT_PG1.TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.ACTUALTAXX); fobj.BPT_PG1.ESTIMATED_TAX = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.ESTIMATEDTAXX); fobj.BPT_PG1.TOTAL_TAX = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.TOTALTAXX); fobj.BPT_PG1.NPT_TAX_CREDIT = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.NPTTAXCREDITX); fobj.BPT_PG1.BPT_TAX_CREDIT = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.BPTTAXCREDITX); fobj.BPT_PG1.TOTAL_PAY_CREDITS = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.TOTALPAYMNTSCREDITSX); fobj.BPT_PG1.NET_TAX = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.TAXDUEAMTX); fobj.BPT_PG1.INTEREST_PENALTY = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.INTERESTANDPENALTYAMTX); fobj.BPT_PG1.AMOUNT_OWED = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.AMTOWED2X); fobj.BPT_PG1.REFUND = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.REFUNDAMTX); fobj.BPT_PG1.NPT_OVERPAY = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.NPTOVERPAYMENTX); fobj.BPT_PG1.BPT_OVERPAY = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.BPTOVERPAYMENTX); //BPT_SCH_A fobj.BPT_SCH_A = new BPT_SCH_A(); fobj.BPT_SCH_A.NI_LOSS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.NETINCOMELOSSX); fobj.BPT_SCH_A.NI_PORT_ACTIVITIES = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.NETINCOMEPORTACTIVITIESX); fobj.BPT_SCH_A.NI_PUC_ICC = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.NETINCOMEPUCICCX); fobj.BPT_SCH_A.NI_PUBLIC_LAW = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.NETINCOMEPUBLICLAWX); fobj.BPT_SCH_A.I_APPORTIONED = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.INCOMEAPPORTIONEDX); fobj.BPT_SCH_A.I_APPORTIONED_PERCENT = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.APPORTIONPERCENTX); fobj.BPT_SCH_A.I_APPORTIONED_PHILA = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.INCOMEAPPORTIONEDPHILAX); fobj.BPT_SCH_A.I_NONBUS_PHILA = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.INCOMENONBUSPHILAX); fobj.BPT_SCH_A.I_CURRENT_YEAR = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.INCOMECURRENTYEARX); fobj.BPT_SCH_A.LOSS_CARRY_FORWARD = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.LOSSCARRYFORWARDX); fobj.BPT_SCH_A.I_TAXABLE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.TAXABLEINCOMEX); fobj.BPT_SCH_A.TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.TAXDUEX); //BPT_SCH_B fobj.BPT_SCH_B = new BPT_SCH_B(); fobj.BPT_SCH_B.NI_LOSS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._NETINCOMEX); fobj.BPT_SCH_B.ADJ_NI_INTEREST = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJNETINCOMEINTERESTX); fobj.BPT_SCH_B.ADJ_NI_PORT_ACTIVITIES = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJNETINCPORTACTIVITIESX); fobj.BPT_SCH_B.ADJ_NI_PUC_ICC = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJNETINCOMEPUCICCX); fobj.BPT_SCH_B.ADJ_NI_PUBLIC_LAW = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJNETINCOMEPUBLICLAWX); fobj.BPT_SCH_B.ADJ_RECEIPTS_DIR = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJRECEIPTSDIRX); fobj.BPT_SCH_B.ADJ_INCOME = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJUSTEDINCOMEX); fobj.BPT_SCH_B.ADJ_RECEIPTS_OTHER = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJRECEIPTSOTHERX); fobj.BPT_SCH_B.ADJ_GROSS_RECEIPTS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJGROSSRECEIPTSX); fobj.BPT_SCH_B.ADJ_GROSS_PERCENT = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._GROSSPERCENTX); fobj.BPT_SCH_B.ADJ_TOTAL = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._TOTALADJUSTMENTSX); fobj.BPT_SCH_B.NI_ADJUSTED = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._NETINCOMEADJUSTEDX); fobj.BPT_SCH_B.I_NONBUS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._NONBUSINCOMEX); fobj.BPT_SCH_B.I_APPORTIONED = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._INCOMEAPPORTIONEDX); fobj.BPT_SCH_B.I_APPORTIONED_PERCENT = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB.APPORTIONPERCENTX); fobj.BPT_SCH_B.I_APPORTIONED_PHILA = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._INCOMEAPPORTIONEDPHILAX); fobj.BPT_SCH_B.I_NONBUS_PHILA = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._INCOMENONBUSPHILAX); fobj.BPT_SCH_B.I_CURRENT_YEAR = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._INCOMECURRENTYEARX); fobj.BPT_SCH_B.LOSS_CARRY_FORWARD = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._LOSSCARRYFORWARDX); fobj.BPT_SCH_B.I_TAXABLE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._INCOMETAXABLEX); fobj.BPT_SCH_B.TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._TAXDUEX); //BPT_SCH_C1 fobj.BPT_SCH_C1 = new BPT_SCH_C1(); fobj.BPT_SCH_C1.TOTAL_AVG_PHILA = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._PROPERTYPHILAX); fobj.BPT_SCH_C1.TOTAL_AVG_ALL = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._PROPERTYALLX); fobj.BPT_SCH_C1.PROPERTY_FACTOR_PHILA = CopMvcUtil.ConvDigitToDouble9(e._ELFSCHC1._PROPERTYFACTORX); fobj.BPT_SCH_C1.PAYROLL_PHILA = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._PAYROLLPHILAX); fobj.BPT_SCH_C1.PAYROLL_ALL = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._PAYROLLALLX); fobj.BPT_SCH_C1.PAYROLL_FACTOR_PHILA = CopMvcUtil.ConvDigitToDouble9(e._ELFSCHC1._PAYROLLFACTORX); fobj.BPT_SCH_C1.RECEIPTS_PHILA = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._RECEIPTSPHILAX); fobj.BPT_SCH_C1.RECEIPTS_ALL = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._RECEIPTSALLX); fobj.BPT_SCH_C1.RECEIPTS_FACTOR_PHILA = CopMvcUtil.ConvDigitToDouble9(e._ELFSCHC1._RECEIPTSFACTORX); fobj.BPT_SCH_C1.TOTAL_FACTORS = CopMvcUtil.ConvDigitToDouble9(e._ELFSCHC1._TOTALFACTORSX); fobj.BPT_SCH_C1.AVERAGE_FACTORS = CopMvcUtil.ConvDigitToDouble9(e._ELFSCHC1._AVERAGEFACTORSX); //BPT_SCH_D fobj.BPT_SCH_D = new BPT_SCH_D(); fobj.BPT_SCH_D.GR_SALES = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._GROSSSALESX); fobj.BPT_SCH_D.GR_SERVICES = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._GROSSSERVICESX); fobj.BPT_SCH_D.GR_RENTALS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._GROSSRENTALSX); fobj.BPT_SCH_D.GR_TOTALS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._TOTALRECEIPTSX); fobj.BPT_SCH_D.LE_SALES_OUT = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._LESALESOUTX); fobj.BPT_SCH_D.LE_SERVICES_OUT = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._LESERVICESOUTX); fobj.BPT_SCH_D.LE_RENTALS_OUT = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._LERENTALSOUTX); fobj.BPT_SCH_D.LE_OTHER = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._LEOTHERAMTX); fobj.BPT_SCH_D.NET_TAXABLE_RECEIPTS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._NETTAXABLERECEIPTSX); fobj.BPT_SCH_D.LE_TOTAL = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._LEMETHODRECEIPTSX); fobj.BPT_SCH_D.TAXABLE_RECEIPTS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._REGULARRECEIPTSX); fobj.BPT_SCH_D.TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._TAXDUEREGULARX); fobj.BPT_SCH_D.TAX_DUE_ALT = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._TAXDUEALTX); fobj.BPT_SCH_D.TOTAL_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._TOTALTAXDUEX); //BPT_SCH_E fobj.BPT_SCH_E = new BPT_SCH_E(); fobj.BPT_SCH_E.M_ALT_RECEIPTS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._MALTRECEIPTSX); fobj.BPT_SCH_E.M_GOODS_COST = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._MGOODSCOSTX); fobj.BPT_SCH_E.M_TAX_BASE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._MTAXBASEX); fobj.BPT_SCH_E.M_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._MTAXDUEX); fobj.BPT_SCH_E.W_ALT_RECEIPTS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WALTRECEIPTSX); fobj.BPT_SCH_E.W_GOODS_MATERIALS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WGOODSMATERIALSX); fobj.BPT_SCH_E.W_GOODS_LABOR = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WGOODSLABORX); fobj.BPT_SCH_E.W_GOODS_COST = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WGOODSCOSTX); fobj.BPT_SCH_E.W_TAX_BASE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WTAXBASEX); fobj.BPT_SCH_E.W_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WTAXDUEX); fobj.BPT_SCH_E.R_ALT_RECEIPTS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RALTRECEIPTSX); fobj.BPT_SCH_E.R_GOODS_MATERIALS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RGOODSMATERIALSX); fobj.BPT_SCH_E.R_GOODS_LABOR = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RGOODSLABORX); fobj.BPT_SCH_E.R_GOODS_COST = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RGOODSCOSTX); fobj.BPT_SCH_E.R_TAX_BASE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RTAXBASEX); fobj.BPT_SCH_E.R_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RTAXDUEX); fobj.BPT_SCH_E.TOTAL_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._TOTALALTTAXDUEX); //BPT_TBL_C1 return(fobj); }