private static COPXmlFactory.RTTIE036.SCHOOLRETURN _Fill(RTTIE236_SrvRef.RTTIE236Response e) { COPXmlFactory.RTTIE036.SCHOOLRETURN fobj = new SCHOOLRETURN(); //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 SCHOOL_INFO fobj.SCHOOL_INFO = new SCHOOL_INFO(); fobj.SCHOOL_INFO.ACCOUNT_ID = e._ESIT.ACCOUNTID; fobj.SCHOOL_INFO.PERIOD = CopMvcUtil.ConvDate(e._ESIT.PERIODX); fobj.SCHOOL_INFO.VERSION = e._ESIT.VERSIONX; fobj.SCHOOL_INFO.RETURN_STATUS = e._ESIT.RETURNSTATUS; fobj.SCHOOL_INFO.LAST_UPD_DATE = CopMvcUtil.ConvDate(e._ESIT.LASTUPDATEDATEX); fobj.SCHOOL_INFO.RECORDING_DATE = CopMvcUtil.ConvDate(e._ESIT.RECORDINGDATEX); fobj.SCHOOL_INFO.SEQUENCE = e._ESIT.SEQUENCENUM; fobj.SCHOOL_INFO.ADJUSTMENT_REF_NO = e._ESIT.ADJUSTMENTREFERENCENUM; fobj.SCHOOL_INFO.RATE = CopMvcUtil.ConvDigitToDouble9(e._ESIT.RATE); fobj.SCHOOL_INFO.EXTENSION_DATE = CopMvcUtil.ConvDate(e._ESIT.EXTENSIONDATEX); fobj.SCHOOL_INFO.PREPARER_NAME = e._ESIT.PREPARERNAME; fobj.SCHOOL_INFO.PREPARER_PHONE = e._ESIT.PREPARERPHONE; fobj.SCHOOL_INFO.PREPARER_PHONE_EXT = e._ESIT.PREPARERPHONEEXT; fobj.SCHOOL_INFO.PREPARER_IP_ADDRESS = e._ESIT.PREPARERIPADDRESS; fobj.SCHOOL_INFO.PREPARER_EMAIL_ADDRESS = e._ESIT.PREPAREREMAILADDRESS; fobj.SCHOOL_INFO.PREPARER_WHO = e._ESIT.PREPARERTYPE; // fobj.SCHOOL_INFO.PREPARER_WHO = e._ETOB.; //LOAD AMT_INFO fobj.AMT_INFO = new AMT_INFO(); fobj.AMT_INFO.NET_TAX_DIVIDENDS = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NETTAXABLEDIVIDENDSX).ToString(); fobj.AMT_INFO.TAXABLE_INTEREST = CopMvcUtil.ConvDigitToCurrency(e._EAMT.TAXABLEINTERESTX).ToString(); fobj.AMT_INFO.S_CORP_DISTRIBUTIONS = CopMvcUtil.ConvDigitToCurrency(e._EAMT.SCORPDISTRIBUTIONSX).ToString(); fobj.AMT_INFO.PARTNERSHIP_INCOME = CopMvcUtil.ConvDigitToCurrency(e._EAMT.PARTNERSHIPINCOMEX); fobj.AMT_INFO.BENEFICIARY_INCOME = CopMvcUtil.ConvDigitToCurrency(e._EAMT.BENEFICIARYINCOMEX).ToString(); fobj.AMT_INFO.SHORT_TERM_GAINS = CopMvcUtil.ConvDigitToCurrency(e._EAMT.SHORTTERMGAINSX).ToString(); fobj.AMT_INFO.NET_RENTAL_INCOME = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NETRENTALINCOMEX).ToString(); fobj.AMT_INFO.OTHER_TAXABLE_INCOME = CopMvcUtil.ConvDigitToCurrency(e._EAMT.OTHERTAXABLEINCOMEX); fobj.AMT_INFO.TOTAL_TAXABLE_INCOME = CopMvcUtil.ConvDigitToCurrency(e._EAMT.TOTALTAXABLEINCOMEX).ToString(); fobj.AMT_INFO.DEDUCTIBLE_EXPENSES = CopMvcUtil.ConvDigitToCurrency(e._EAMT.DEDUCTIBLEEXPENSESX).ToString(); fobj.AMT_INFO.NET_TAXABLE_INCOME = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NETTAXABLEINCOMEX).ToString(); fobj.AMT_INFO.GROSS_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._EAMT.GROSSTAXDUEX); fobj.AMT_INFO.CREDITS = CopMvcUtil.ConvDigitToCurrency(e._EAMT.CREDITSX); fobj.AMT_INFO.TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._EAMT.TAXDUEX).ToString(); fobj.AMT_INFO.TAX_REFUND = CopMvcUtil.ConvDigitToCurrency(e._EAMT.REFUNDAMTX); fobj.AMT_INFO.TAX_OVERPAID = CopMvcUtil.ConvDigitToCurrency(e._EAMT.OVERPAYMENTX).ToString(); fobj.AMT_INFO.USER_ID = CopMvcUtil.ConvDigitToCurrency(e._EAMT.USERID); return(fobj); }
private static COPXmlFactory.RTTIE022.DelinquentForm _Fill(RTTIE022_SrvRef.TT022E00Response_SMA _SMA, RTTIE022_SrvRef.TT022E00Response_EMI _EMI, RTTIE022_SrvRef.TT022E00Response_ETA _ETA) { COPXmlFactory.RTTIE022.DelinquentForm fobj = RevenueGovXMLFactory.GetDelinquentForm(); //LOAD ERRORS INTO OBJECT fobj.ERROR_INFO = new ERROR_INFO(); if (_SMA._SYSTEMMESSAGEAREA != null) { fobj.ERROR_INFO.PROGRAM = _SMA._SYSTEMMESSAGEAREA._PROGRAM; fobj.ERROR_INFO.LINE = _SMA._SYSTEMMESSAGEAREA.LINE.ToString(); fobj.ERROR_INFO.MESSAGE = _SMA._SYSTEMMESSAGEAREA.MESSAGE; fobj.ERROR_INFO.ERROR = _SMA._SYSTEMMESSAGEAREA.ERROR.ToString(); } //LOAD DEL_INFO fobj.DEL_INFO = new DEL_INFO(); if (_EMI != null) { fobj.DEL_INFO.ENTITY_TYPE = _EMI._ENTITYMASTERINFO.ENTITYTYPE.ToString(); fobj.DEL_INFO.ENTITY_ID = _EMI._ENTITYMASTERINFO.ENTITYID.ToString(); fobj.DEL_INFO.FUNCTION = _EMI._ENTITYMASTERINFO.FUNCTION; fobj.DEL_INFO.NOTICE_NUM = _EMI._ENTITYMASTERINFO.NOTICENUM; fobj.DEL_INFO.NEXT_ACCOUNT_TYPE = _EMI._ENTITYMASTERINFO.NEXTACCOUNT.ToString(); fobj.DEL_INFO.NEXT_ACCOUNT_ID = _EMI._ENTITYMASTERINFO.NEXTACCOUNTID.ToString(); fobj.DEL_INFO.NEXT_PERIOD = _EMI._ENTITYMASTERINFO.NEXTPERIOD.ToString(); } //LOAD DEL_INFO if (_ETA._ENTITYTAXACCOUNTSs != null) { for (int i = 0; i < _ETA._ENTITYTAXACCOUNTSs.Length; i++) { if (CopMvcUtil.GetString(_ETA._ENTITYTAXACCOUNTSs[i].ACCOUNTID) != "") { fobj.DEL_ACCTs.Add(RevenueGovXMLFactory.GetDelinquent_DEL_ACCT()); fobj.DEL_ACCTs[i].FUNCTION_CODE = _ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE; fobj.DEL_ACCTs[i].ACCOUNT_TYPE = CopMvcUtil.GetString(_ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT); fobj.DEL_ACCTs[i].ACCOUNT_ID = _ETA._ENTITYTAXACCOUNTSs[i].ACCOUNTID; fobj.DEL_ACCTs[i].PERIOD = CopMvcUtil.ConvDate(_ETA._ENTITYTAXACCOUNTSs[i].PERIODX); fobj.DEL_ACCTs[i].PRINCIPAL_DUE = CopMvcUtil.ConvDigitToCurrency(_ETA._ENTITYTAXACCOUNTSs[i].PRINCIPALX); fobj.DEL_ACCTs[i].INTEREST_DUE = CopMvcUtil.ConvDigitToCurrency(_ETA._ENTITYTAXACCOUNTSs[i].INTERESTX); fobj.DEL_ACCTs[i].PENALTY_DUE = CopMvcUtil.ConvDigitToCurrency(_ETA._ENTITYTAXACCOUNTSs[i].PENALTYX); fobj.DEL_ACCTs[i].OTHER_DUE = CopMvcUtil.ConvDigitToCurrency(_ETA._ENTITYTAXACCOUNTSs[i].OTHERX); fobj.DEL_ACCTs[i].BRT_ENTITY = _ETA._ENTITYTAXACCOUNTSs[i].BRTENTITY; fobj.DEL_ACCTs[i].BRT_ADDRESS = _ETA._ENTITYTAXACCOUNTSs[i].BRTADDRESS; fobj.DEL_ACCTs[i].FILL = _ETA._ENTITYTAXACCOUNTSs[i].FILL; } } } return(fobj); }
private static COPXmlFactory.RTTIE029.LIQUORRETURN __Fill(RTTIE229_SrvRef.RTTIE229Response e) { COPXmlFactory.RTTIE029.LIQUORRETURN fobj = RevenueGovXMLFactory.GetLIQUORRETURN(); //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 LIQUOR_INFO fobj.LIQUOR_INFO = new LIQUOR_INFO(); fobj.LIQUOR_INFO.ACCOUNT_ID = e._ELIQ.ACCOUNTID; fobj.LIQUOR_INFO.PERIOD = CopMvcUtil.ConvDate(e._ELIQ.PERIODX); fobj.LIQUOR_INFO.VERSION = e._ELIQ.VERSIONX; fobj.LIQUOR_INFO.RETURN_STATUS = e._ELIQ.RETURNSTATUS; fobj.LIQUOR_INFO.LAST_UPD_DATE = CopMvcUtil.ConvDate(e._ELIQ.LASTUPDATEDATEX); fobj.LIQUOR_INFO.USER_ID = e._ELIQ.USERID; fobj.LIQUOR_INFO.RECORDING_DATE = CopMvcUtil.ConvDate(e._ELIQ.RECORDINGDATEX); fobj.LIQUOR_INFO.SEQUENCE_NO = e._ELIQ.SEQUENCENUM; fobj.LIQUOR_INFO.ADJUSTMENT_REF_NO = e._ELIQ.ADJUSTMENTREFERENCENUM; fobj.LIQUOR_INFO.RATE = CopMvcUtil.ConvDigitToDouble9(e._ELIQ.RATE); fobj.LIQUOR_INFO.PREPARER_NAME = e._ELIQ.PREPARERNAME; fobj.LIQUOR_INFO.PREPARER_PHONE = CopMvcUtil.ConvDecimal(e._ELIQ.PREPARERPHONE).ToString(); fobj.LIQUOR_INFO.PREPARER_PHONE_EXT = e._ELIQ.PREPARERPHONEEXT; fobj.LIQUOR_INFO.PREPARER_IP_ADDRESS = e._ELIQ.PREPARERIPADDRESS; fobj.LIQUOR_INFO.PREPARER_EMAIL_ADDRESS = e._ELIQ.PREPAREREMAILADDRESS; fobj.LIQUOR_INFO.PREPARER_WHO = e._ELIQ.PREPARERTYPE; //LOAD AMT_INFO fobj.AMT_INFO = new AMT_INFO(); fobj.AMT_INFO.TOTAL_GROSS = CopMvcUtil.GetDouble(e._EAMT.TOTALGROSSX).ToString(); fobj.AMT_INFO.FOOD_EXCLUSION = CopMvcUtil.GetDouble(e._EAMT.FOODEXCLUSIONX).ToString(); fobj.AMT_INFO.OTHER_EXCLUSION = CopMvcUtil.GetDouble(e._EAMT.OTHEREXCLUSIONX).ToString(); fobj.AMT_INFO.TOTAL_EXCLUSION = CopMvcUtil.ConvDigitToCurrency(e._EAMT.TOTALEXCLUSIONX); fobj.AMT_INFO.TAXABLE = CopMvcUtil.GetDouble(e._EAMT.TAXABLEX).ToString(); fobj.AMT_INFO.TOTAL_TAX = CopMvcUtil.GetDouble(e._EAMT.TOTALTAXX).ToString(); fobj.AMT_INFO.TAX_PAID = CopMvcUtil.GetDouble(e._EAMT.TAXPAIDX).ToString(); fobj.AMT_INFO.NET_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NETTAXDUEX); fobj.AMT_INFO.TAX_OVERPAID = CopMvcUtil.GetDouble(e._EAMT.TAXOVERPAIDX).ToString(); return(fobj); }
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); }
private static COPXmlFactory.RTTIE035.UOFORM __Fill(UOForm_RTTIE035_SrvRef.TT035E00Response_SMA _SMA, UOForm_RTTIE035_SrvRef.TT035E00Response_EUOL _EUOL, UOForm_RTTIE035_SrvRef.TT035E00Response_EAMTS _EAMTS, UOForm_RTTIE035_SrvRef.TT035E00Response_EUO3 _EUO3) { COPXmlFactory.RTTIE035.UOFORM fobj = new UOFORM(); //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 UO_INFO fobj.UO_ACCT = new UO_ACCT(); if (fobj.UO_ACCT.LENGTH != null) { fobj.UO_ACCT.ACCOUNT_ID = _EUOL.ACCOUNTID; fobj.UO_ACCT.PERIOD = CopMvcUtil.ConvDate(_EUOL.PERIODX); fobj.UO_ACCT.VERSION = _EUOL.VERSIONX; fobj.UO_ACCT.RETURN_STATUS = _EUOL.RETURNSTATUS; fobj.UO_ACCT.LAST_UPD_DATE = CopMvcUtil.ConvDate(_EUOL.LASTUPDATEDATEX); fobj.UO_ACCT.USER_ID = _EUOL.USERID; fobj.UO_ACCT.RECORDING_DATE = CopMvcUtil.ConvDate(_EUOL.RECORDINGDATEX); fobj.UO_ACCT.SEQUENCE = _EUOL.SEQUENCENUM; fobj.UO_ACCT.ADJUSTMENT_REF_NO = _EUOL.ADJUSTMENTREFERENCENUM; fobj.UO_ACCT.RATE = CopMvcUtil.ConvDigitToCurrency(_EUOL.RATE); fobj.UO_ACCT.BRT_NUMBER = _EUOL.BRTNUMBER; fobj.UO_ACCT.LOCATION = _EUOL.LOCATION; fobj.UO_ACCT.DUE_DATE = CopMvcUtil.ConvDate(_EUOL.DUEDATE); fobj.UO_ACCT.ASSESSED_VALUE = CopMvcUtil.ConvDigitToCurrency(_EUOL.ASSESSEDVALUEX); fobj.UO_ACCT.FREQUENCY = _EUOL.FREQUENCY; fobj.UO_ACCT.PERIOD_CODE = _EUOL.PERIODCODE; fobj.UO_ACCT.PERIOD_YY = _EUOL.PERIODYY; fobj.UO_ACCT.PREPARER_NAME = _EUOL.PREPARERNAME; fobj.UO_ACCT.PREPARER_PHONE = Convert.ToString(_EUOL.PREPARERPHONE); fobj.UO_ACCT.PREPARER_PHONE_EXT = _EUOL.PREPARERPHONEEXT; fobj.UO_ACCT.PREPARER_IP_ADDRESS = _EUOL.PREPARERIPADDRESS; fobj.UO_ACCT.PREPARER_EMAIL_ADDRESS = _EUOL.PREPAREREMAILADDRESS; fobj.UO_ACCT.PREPARER_WHO = _EUOL.PREPARERTYPE; } //LOAD UO_AMTS fobj.UO_AMTS = new UO_AMTS(); if (fobj.UO_AMTS.LENGTH != null) { fobj.UO_AMTS.MAX_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.MAXTAXX); fobj.UO_AMTS.VACANCY = CopMvcUtil.ConvDigitToCurrency(_EAMTS.VACANCYX); fobj.UO_AMTS.EXEMPT = CopMvcUtil.ConvDigitToCurrency(_EAMTS.EXEMPTX); fobj.UO_AMTS.RESIDENTIAL = CopMvcUtil.ConvDigitToCurrency(_EAMTS.RESIDENTIALX); fobj.UO_AMTS.DELINQUENT = CopMvcUtil.ConvDigitToCurrency(_EAMTS.DELINQUENTX); fobj.UO_AMTS.KOZ_CREDIT = CopMvcUtil.ConvDigitToCurrency(_EAMTS.EDICREDITX); fobj.UO_AMTS.TOTAL_DEDUCTIONS = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALDEDUCTIONSX); fobj.UO_AMTS.PERIOD_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.PERIODTAXX); fobj.UO_AMTS.DISCOUNT = CopMvcUtil.ConvDigitToCurrency(_EAMTS.DISCOUNTX); fobj.UO_AMTS.TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TAXDUEX); fobj.UO_AMTS.INTEREST_PENALTY = CopMvcUtil.ConvDigitToCurrency(_EAMTS.INTERESTPENALTYX); fobj.UO_AMTS.TOTAL_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALDUEX); fobj.UO_AMTS.DELINQUENT_TENANT_COUNT = CopMvcUtil.ConvDigitToDouble(_EAMTS.DELINQUENTTENANTCOUNTX); } //LOAD UO3_PAGE fobj.UO3_PAGE = new List <UO3_PAGE>(); if (_EUO3._DELQs.Length != null) { for (int i = 0; i < _EUO3._DELQs.Length; i++) { fobj.UO3_PAGE.Add(COPXmlFactory.RevenueGovXMLFactory.GetUOFORMReturn_UO3_PAGE()); fobj.UO3_PAGE[i].PROCESS_CODE = _EUO3._DELQs[i].PROCESSCODED; fobj.UO3_PAGE[i].TENANT_NAME = _EUO3._DELQs[i].NAMED; fobj.UO3_PAGE[i].TENANT_ID = _EUO3._DELQs[i].ENTITYIDD; fobj.UO3_PAGE[i].ACCOUNT_ID = _EUO3._DELQs[i].ACCOUNTIDD; fobj.UO3_PAGE[i].AMOUNT = _EUO3._DELQs[i].DELQAMTD; } } return(fobj); }
//private static NPTRETURN __Call(NPTRETURN e) //{ // switch (e.NPT_INFO.RETURN_STATUS) // { // case "INQ": // e = __RTTIE039_F_I(e); // break; // case null: // submit // e = __RTTIE039_F_U(e); // break; // default: // { // e.NPT_INFO.RETURN_STATUS = "INQ"; // e = __RTTIE039_F_I(e); // break; // } // } // return e; //} //private static COPXmlFactory.RTTIE039_2015.NPTRETURN __RTTIE039_F_I(COPXmlFactory.RTTIE039_2015.NPTRETURN e) //{ // RTTIE239_SrvRef.RTTIE239 serv_req = new RTTIE239_SrvRef.RTTIE239(); // serv_req._ENPT = new RTTIE239_SrvRef._ENPT(); // serv_req._ENPT.ACCOUNTID = e.NPT_INFO.ACCOUNT_ID; // serv_req._ENPT.PERIODX = CopMvcUtil.ConvDateDecimal(e.NPT_INFO.PERIOD).ToString(); // serv_req._ENPT.RETURNSTATUS = e.NPT_INFO.RETURN_STATUS; // RTTIE239_SrvRef.RTTIE239Response response = _client.RTTIE239(serv_req); // e = __Fill(response); // return e; //} private static COPXmlFactory.RTTIE039_2015.NPTRETURN __Fill(RTTIE239_SrvRef.RTTIE239Response e) { COPXmlFactory.RTTIE039_2015.NPTRETURN fobj = RevenueGovXMLFactory.GetNPT_2015Return(); //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 NPT_INFO fobj.NPT_INFO = new NPT_INFO(); fobj.NPT_INFO.ACCOUNT_ID = e._ENPT.ACCOUNTID; fobj.NPT_INFO.PERIOD = CopMvcUtil.ConvDate(e._ENPT.PERIODX); fobj.NPT_INFO.VERSION = e._ENPT.VERSIONX; fobj.NPT_INFO.RETURN_STATUS = e._ENPT.RETURNSTATUS; fobj.NPT_INFO.LAST_UPD_DATE = CopMvcUtil.ConvDate(e._ENPT.LASTUPDATEDATEX); fobj.NPT_INFO.RECORDING_DATE = CopMvcUtil.ConvDate(e._ENPT.RECORDINGDATEX); fobj.NPT_INFO.EXTENSION_DATE = CopMvcUtil.ConvDate(e._ENPT.EXTENSIONDATEX); fobj.NPT_INFO.SEQUENCE = e._ENPT.SEQUENCENUMBER; fobj.NPT_INFO.ADJUSTMENT_REF_NO = e._ENPT.ADJUSTMENTREFERENCENUM; fobj.NPT_INFO.USER_ID = e._ENPT.USERID; fobj.NPT_INFO.RESIDENT_RATE = CopMvcUtil.ConvDigitToDouble9(e._ENPT.RATERES); fobj.NPT_INFO.NON_RES_RATE = CopMvcUtil.ConvDigitToDouble9(e._ENPT.RATENONRES); fobj.NPT_INFO.PREPARER_NAME = e._ENPT.PREPARERNAME; if ((CopMvcUtil.GetLong(e._ENPT.PREPARERPHONE) == 0)) { fobj.NPT_INFO.PREPARER_PHONE = string.Empty; } else { fobj.NPT_INFO.PREPARER_PHONE = CopMvcUtil.GetString(e._ENPT.PREPARERPHONE); } // fobj.NPT_INFO.PREPARER_PHONE = CopMvcUtil.GetString(e._ENPT.PREPARERPHONE); fobj.NPT_INFO.PREPARER_PHONE_EXT = e._ENPT.PREPARERPHONEEXT; fobj.NPT_INFO.PREPARER_IP_ADDRESS = e._ENPT.PREPARERIPADDRESS; fobj.NPT_INFO.PREPARER_EMAIL_ADDRESS = e._ENPT.PREPAREREMAILADDRESS; fobj.NPT_INFO.PREPARER_WHO = e._ENPT.PREPARERTYPE; //NPT_PG1 fobj.NPT_PG1 = new NPT_PG1(); //Modified and added some new fields fobj.NPT_PG1.RESIDENT_INCOME_NOT_ELIGIBLE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXABLEINCOMEX); fobj.NPT_PG1.RESIDENT_INCOME_TAX_NOT_ELIGIBLE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXDUEX); fobj.NPT_PG1.RESIDENT_INCOME_ELIGIBLE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NONRESTAXINCOMEX); fobj.NPT_PG1.RES_INCOME_TAX_ELIGIBLE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NONRESTAXDUEX); fobj.NPT_PG1.RESIDENT_TOTAL_TAX = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXABLEINCOMEX); fobj.NPT_PG1.NON_RES_INCOME_NOT_ELIGIBLE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXDUEX); fobj.NPT_PG1.NON_RES_INCOME_TAX_NOT_ELIGIBLE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NONRESTAXINCOMEX); fobj.NPT_PG1.NON_RES_INCOME_ELIGIBLE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NONRESTAXDUEX); fobj.NPT_PG1.NON_RES_INCOME_TAX_ELIGIBLE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXABLEINCOMEX); fobj.NPT_PG1.NON_RES_TOTAL_TAX = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXDUEX); fobj.NPT_PG1.TOTAL_TAX = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.TOTALTAXDUE1X); fobj.NPT_PG1.BPT_TAX_CREDIT = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.BPTCREDITX); fobj.NPT_PG1.OTHER_TAX_CREDIT = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.OTHERX); fobj.NPT_PG1.TOTAL_PAY_CREDITS = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.TOTALCREDITSX); fobj.NPT_PG1.TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.TOTALTAXDUEX); fobj.NPT_PG1.INTEREST_PENALTY = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.INTERESTPENALTYX); fobj.NPT_PG1.TOTAL_DUE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.TOTALTAXDUEX); fobj.NPT_PG1.OVERPAY = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.TAXOVERPAIDX); fobj.NPT_PG1.LINE17 = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NETPROFITESTX); fobj.NPT_PG1.BALANCE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NETPROFITESTX);//newly added fobj.NPT_PG1.REFUND = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.REFUNDAMTX); fobj.NPT_PG1.BPT_OVERPAY = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.BPTOVERPAYMENTX); fobj.NPT_PG1.NPT_OVERPAY = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NPTOVERPAYMENTX); return(fobj); }
private static COPXmlFactory.RTTIE028.TOBACCORETURN __Fill(TOBACCO_RTTIE028_SrvRef.TT028E00Response_SMA _SMA, TOBACCO_RTTIE028_SrvRef.TT028E00Response_ETOB _ETOB, TOBACCO_RTTIE028_SrvRef.TT028E00Response_EAMT _EAMT) { COPXmlFactory.RTTIE028.TOBACCORETURN fobj = RevenueGovXMLFactory.GetTOBACCORETURN(); //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 TOBACCO_INFO fobj.TOBACCO_INFO = new TOBACCO_INFO(); fobj.TOBACCO_INFO.ACCOUNT_ID = _ETOB.ACCOUNTID; fobj.TOBACCO_INFO.PERIOD = CopMvcUtil.ConvDate(_ETOB.PERIODX); fobj.TOBACCO_INFO.VERSION = _ETOB.VERSIONX; fobj.TOBACCO_INFO.RETURN_STATUS = _ETOB.RETURNSTATUS; fobj.TOBACCO_INFO.LAST_UPD_DATE = CopMvcUtil.ConvDate(_ETOB.LASTUPDATEDATEX); fobj.TOBACCO_INFO.USER_ID = _ETOB.USERID; fobj.TOBACCO_INFO.RECORDING_DATE = CopMvcUtil.ConvDate(_ETOB.RECORDINGDATEX); fobj.TOBACCO_INFO.SEQUENCE = _ETOB.SEQUENCENUM; fobj.TOBACCO_INFO.ADJUSTMENT_REF_NO = _ETOB.ADJUSTMENTREFERENCENUM; fobj.TOBACCO_INFO.RATE_ITEM = CopMvcUtil.ConvDigitToDouble9(_ETOB.RATEITEM); fobj.TOBACCO_INFO.RATE_PACK = CopMvcUtil.ConvDigitToDouble9(_ETOB.RATEPACK); fobj.TOBACCO_INFO.RATE_PAPER = CopMvcUtil.ConvDigitToDouble9(_ETOB.RATEPAPER); fobj.TOBACCO_INFO.PREPARER_NAME = _ETOB.PREPARERNAME; fobj.TOBACCO_INFO.PREPARER_PHONE = Convert.ToString(_ETOB.PREPARERPHONE); fobj.TOBACCO_INFO.PREPARER_PHONE_EXT = _ETOB.PREPARERPHONEEXT; fobj.TOBACCO_INFO.PREPARER_IP_ADDRESS = _ETOB.PREPARERIPADDRESS; fobj.TOBACCO_INFO.PREPARER_EMAIL_ADDRESS = _ETOB.PREPAREREMAILADDRESS; fobj.TOBACCO_INFO.PREPARER_WHO = _ETOB.PREPARERTYPE; //LOAD AMT_INFO fobj.AMT_INFO = new AMT_INFO(); fobj.AMT_INFO.ITEM_TOTAL = CopMvcUtil.GetDouble(_EAMT.ITEMTOTALX).ToString(); fobj.AMT_INFO.ITEM_NOT_PHILA = CopMvcUtil.GetDouble(_EAMT.ITEMNOTPHILAX).ToString(); fobj.AMT_INFO.ITEM_PHILA = CopMvcUtil.GetDouble(_EAMT.ITEMPHILAX).ToString(); fobj.AMT_INFO.ITEM_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.ITEMTAXDUEX); fobj.AMT_INFO.PACK_TOTAL = CopMvcUtil.GetDouble(_EAMT.PACKTOTALX).ToString(); fobj.AMT_INFO.PACK_NOT_PHILA = CopMvcUtil.GetDouble(_EAMT.PACKNOTPHILAX).ToString(); fobj.AMT_INFO.PACK_PHILA = CopMvcUtil.GetDouble(_EAMT.PACKPHILAX).ToString(); fobj.AMT_INFO.PACK_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.PACKTAXDUEX); fobj.AMT_INFO.PAPER_TOTAL = CopMvcUtil.GetDouble(_EAMT.PAPERTOTALX).ToString(); fobj.AMT_INFO.PAPER_NOT_PHILA = CopMvcUtil.GetDouble(_EAMT.PAPERNOTPHILAX).ToString(); fobj.AMT_INFO.PAPER_PHILA = CopMvcUtil.GetDouble(_EAMT.PAPERPHILAX).ToString(); fobj.AMT_INFO.PAPER_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.PAPERTAXDUEX); fobj.AMT_INFO.TOTAL_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.TOTALTAXDUEX); fobj.AMT_INFO.CREDITS = CopMvcUtil.ConvDigitToCurrency(_EAMT.CREDITSX).ToString(); fobj.AMT_INFO.NET_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.NETTAXDUEX); fobj.AMT_INFO.INTEREST_PENALTY = CopMvcUtil.ConvDigitToCurrency(_EAMT.INTERESTPENALTYX).ToString(); fobj.AMT_INFO.TOTAL_AMOUNT_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.TOTALAMTDUEX); fobj.AMT_INFO.REFUND = CopMvcUtil.ConvDigitToCurrency(_EAMT.REFUNDX).ToString(); fobj.AMT_INFO.ROLL_FORWARD = CopMvcUtil.ConvDigitToCurrency(_EAMT.ROLLFORWARDX).ToString(); return(fobj); }
private static COPXmlFactory.RTTIE030_2014.BPTlfReturn __Fill(RTTIE230_SrvRef.RTTIE230Response e) { COPXmlFactory.RTTIE030_2014.BPTlfReturn fobj = RevenueGovXMLFactory.GetBPTlf_2014Return(); //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); fobj.BPT_SCH_A.STAT_NET_DEDUCTION_A_X = CopMvcUtil.ConvDigitToCurrency(e._NEW2014FIELDS._STATNETDEDUCTIONAX); //binoy //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); fobj.BPT_SCH_B.STAT_NET_DEDUCTION_B_X = CopMvcUtil.ConvDigitToCurrency(e._NEW2014FIELDS._STATNETDEDUCTIONBX); //binoy //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); fobj.BPT_SCH_D.STAT_EXCLUSION_D_X = CopMvcUtil.ConvDigitToCurrency(e._NEW2014FIELDS._STATEXCLUSIONDX); //binoy //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); }
private static COPXmlFactory.RTTIE039.NPTRETURN __Fill(RTTIE040_SrvRef.TT040E00Response_SMA _SMA, RTTIE040_SrvRef.TT040E00Response_ENPT _ENPT, RTTIE040_SrvRef.TT040E00Response_EAMTS _EAMTS, RTTIE040_SrvRef.TT040E00Response_SERR _SERR) { COPXmlFactory.RTTIE039.NPTRETURN fobj = RevenueGovXMLFactory.GetNPTReturn(); //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 NPT_INFO fobj.NPT_INFO = new NPT_INFO(); fobj.NPT_INFO.ACCOUNT_ID = _ENPT.ACCOUNTID; fobj.NPT_INFO.PERIOD = CopMvcUtil.ConvDate(_ENPT.PERIODX); fobj.NPT_INFO.VERSION = _ENPT.VERSIONX; fobj.NPT_INFO.RETURN_STATUS = _ENPT.RETURNSTATUS; fobj.NPT_INFO.LAST_UPD_DATE = CopMvcUtil.ConvDate(_ENPT.LASTUPDATEDATEX); fobj.NPT_INFO.RECORDING_DATE = CopMvcUtil.ConvDate(_ENPT.RECORDINGDATEX); fobj.NPT_INFO.EXTENSION_DATE = CopMvcUtil.ConvDate(_ENPT.EXTENSIONDATEX); fobj.NPT_INFO.SEQUENCE = _ENPT.SEQUENCENUMBER; fobj.NPT_INFO.ADJUSTMENT_REF_NO = _ENPT.ADJUSTMENTREFERENCENUM; fobj.NPT_INFO.USER_ID = _ENPT.USERID; fobj.NPT_INFO.RESIDENT_RATE = CopMvcUtil.ConvDigitToDouble9(_ENPT.RATERES); fobj.NPT_INFO.BASE_RESIDENT_RATE = CopMvcUtil.ConvDigitToDouble9(_ENPT.BASERATERES); fobj.NPT_INFO.NON_RES_RATE = CopMvcUtil.ConvDigitToDouble9(_ENPT.RATENONRES); fobj.NPT_INFO.BASE_NON_RES_RATE = CopMvcUtil.ConvDigitToDouble9(_ENPT.BASERATENONRES); fobj.NPT_INFO.CORP_PARTNER_IND = _ENPT.CORPPARTNERIND; fobj.NPT_INFO.PREPARER_NAME = _ENPT.PREPARERNAME; if ((CopMvcUtil.GetLong(_ENPT.PREPARERPHONE) == 0)) { fobj.NPT_INFO.PREPARER_PHONE = string.Empty; } else { fobj.NPT_INFO.PREPARER_PHONE = CopMvcUtil.GetString(_ENPT.PREPARERPHONE); } fobj.NPT_INFO.PREPARER_PHONE_EXT = _ENPT.PREPARERPHONEEXT; fobj.NPT_INFO.PREPARER_IP_ADDRESS = _ENPT.PREPARERIPADDRESS; fobj.NPT_INFO.PREPARER_EMAIL_ADDRESS = _ENPT.PREPAREREMAILADDRESS; fobj.NPT_INFO.PREPARER_WHO = _ENPT.PREPARERTYPE; //NPT_PG1 fobj.NPT_PG1 = new NPT_PG1(); fobj.NPT_PG1.RESIDENT_INCOME = CopMvcUtil.ConvDigitToCurrency(_EAMTS.RESTAXABLEINCOMEX); fobj.NPT_PG1.RESIDENT_INCOME_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.RESTAXDUEX); // fobj.NPT_PG1.RESIDENT_BASE_INCOME_TAXABLE = CopMvcUtil.ConvDigitToCurrency(_EAMTS.RESBASERATETAXABLEX); fobj.NPT_PG1.RESIDENT_BASE_INCOME_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.RESBASERATETAXX); fobj.NPT_PG1.RESIDENT_TOTAL_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALRESTAXX); // fobj.NPT_PG1.NON_RES_INCOME = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NONRESTAXINCOMEX); fobj.NPT_PG1.NON_RES_INCOME_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NONRESTAXDUEX); // fobj.NPT_PG1.NON_RES_BASE_INCOME_TAXABLE = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NONRESBASERATETAXABLEX); fobj.NPT_PG1.NON_RES_BASE_INCOME_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NONRESBASERATETAXX); fobj.NPT_PG1.NON_RES_TOTAL_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALNONRESTAXX); // fobj.NPT_PG1.TOTAL_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALTAXDUE1X); fobj.NPT_PG1.BPT_TAX_CREDIT = CopMvcUtil.ConvDigitToCurrency(_EAMTS.BPTCREDITX); fobj.NPT_PG1.OTHER_TAX_CREDIT = CopMvcUtil.ConvDigitToCurrency(_EAMTS.OTHERX); fobj.NPT_PG1.TOTAL_PAY_CREDITS = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALCREDITSX); fobj.NPT_PG1.TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALTAXDUEX); fobj.NPT_PG1.INTEREST_PENALTY = CopMvcUtil.ConvDigitToCurrency(_EAMTS.INTERESTPENALTYX); fobj.NPT_PG1.TOTAL_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALTAXDUEX); fobj.NPT_PG1.OVERPAY = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TAXOVERPAIDX); fobj.NPT_PG1.LINE11 = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NETPROFITESTX); // fobj.NPT_PG1.OVERPAY_AVAILABLE = CopMvcUtil.ConvDigitToCurrency(_EAMTS.OVERPAYMENTAVAILX);//newly added // fobj.NPT_PG1.REFUND = CopMvcUtil.ConvDigitToCurrency(_EAMTS.REFUNDAMTX); fobj.NPT_PG1.BPT_OVERPAY = CopMvcUtil.ConvDigitToCurrency(_EAMTS.BPTOVERPAYMENTX); fobj.NPT_PG1.NPT_OVERPAY = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NPTOVERPAYMENTX); //added 2015 corporation Tax fobj.NPT_PG1.CORP_PARTNER_PERCENT = _EAMTS.CORPPARTNERPERCENTX; return(fobj); }
private static COPXmlFactory.RTTIE010.ACCTTEMPLATE __Fill(RTTIE010_SrvRef.TT010E00Response_SMA _SMA, RTTIE010_SrvRef.TT010E00Response_EMI _EMI, RTTIE010_SrvRef.TT010E00Response_ENA1 _ENA1, RTTIE010_SrvRef.TT010E00Response_ENA2 _ENA2, RTTIE010_SrvRef.TT010E00Response_ETA _ETA, RTTIE010_SrvRef.TT010E00Response_ECHK _ECHK) { COPXmlFactory.RTTIE010.ACCTTEMPLATE fobj = RevenueGovXMLFactory.GetAcctTemplate(); //LOAD ERRORS INTO OBJECT fobj.ERROR_INFO = new ERROR_INFO(); if (_SMA._SYSTEMMESSAGEAREA != null) { fobj.ERROR_INFO.PROGRAM = _SMA._SYSTEMMESSAGEAREA._PROGRAM; fobj.ERROR_INFO.LINE = _SMA._SYSTEMMESSAGEAREA.LINE.ToString(); fobj.ERROR_INFO.MESSAGE = _SMA._SYSTEMMESSAGEAREA.MESSAGE; fobj.ERROR_INFO.ERROR = _SMA._SYSTEMMESSAGEAREA.ERROR.ToString(); } //LOAD ENTITY INFOS fobj.ENTITY_INFO = new ENTITY_INFO(); fobj.ENTITY_INFO.FUNCTION_CODE = _EMI._ENTITYMASTERINFO.FUNCTIONCODE; fobj.ENTITY_INFO.TYPE = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.ENTITYTYPE); fobj.ENTITY_INFO.ENTITY_ID = _EMI._ENTITYMASTERINFO.ENTITYID; fobj.ENTITY_INFO.ACCOUNT_ID = _EMI._ENTITYMASTERINFO.ACCOUNTID; fobj.ENTITY_INFO.NAIC_CODE = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.NAICFEDERALCODE); fobj.ENTITY_INFO.SIC_CODE = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.SICFEDERALCODE); fobj.ENTITY_INFO.START_DATE = CopMvcUtil.ConvDate(_EMI._ENTITYMASTERINFO.BUSINESSSTARTDATE); fobj.ENTITY_INFO.ORGTYPE = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.ORGANIZATIONTYPE); fobj.ENTITY_INFO.ORIGIN = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.BUSINESSORIGIN); fobj.ENTITY_INFO.GENDER = _EMI._ENTITYMASTERINFO.BUSINESSGENDER; fobj.ENTITY_INFO.OTHER = _EMI._ENTITYMASTERINFO.BUSINESSOTHER; fobj.ENTITY_INFO.PIN = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.PINNUMBER); fobj.ENTITY_INFO.FORCEPINCHG = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.PINSWITCH); fobj.NAME_ADDRESS = new List <NAME_ADDRESS>(); if (_ENA1._NAMADDR1s != null) { for (int i = 0; i < _ENA1._NAMADDR1s.Length; i++) { //ENA1 section fobj.NAME_ADDRESS.Add(RevenueGovXMLFactory.GetAcctTemplate_NAME_ADDRESS()); fobj.NAME_ADDRESS[i].FUNCTION_CODE = _ENA1._NAMADDR1s[i].FUNCTIONCODE; fobj.NAME_ADDRESS[i].TYPE = CopMvcUtil.GetString(_ENA1._NAMADDR1s[i].ENTITYTYPE); fobj.NAME_ADDRESS[i].ID = _ENA1._NAMADDR1s[i].ENTITYID; fobj.NAME_ADDRESS[i].NAME = _ENA1._NAMADDR1s[i].ENTITYNAME; fobj.NAME_ADDRESS[i].TRADE_NAME = _ENA1._NAMADDR1s[i].TRADENAME; fobj.NAME_ADDRESS[i].ADDRESS_TYPE = CopMvcUtil.GetString(_ENA1._NAMADDR1s[i].ADDRESSTYPE); fobj.NAME_ADDRESS[i].RELATIONSHIP_CODE = CopMvcUtil.GetString(_ENA1._NAMADDR1s[i].RELATIONSHIPCODE); } } if (_ENA2._NAMADDR2s != null) { //ENA2 section for (int i = 0; i < _ENA2._NAMADDR2s.Length; i++) { if (_ENA2._NAMADDR2s[i].ATTENTION != null) { fobj.NAME_ADDRESS[i].ATTENTION = _ENA2._NAMADDR2s[i].ATTENTION; } if (_ENA2._NAMADDR2s[i].ADDRESSLINE1 != null) { fobj.NAME_ADDRESS[i].ADDRESS1 = CopMvcUtil.GetString(_ENA2._NAMADDR2s[i].ADDRESSLINE1); } if (_ENA2._NAMADDR2s[i].ADDRESSLINE2 != null) { fobj.NAME_ADDRESS[i].ADDRESS2 = _ENA2._NAMADDR2s[i].ADDRESSLINE2; } if (_ENA2._NAMADDR2s[i].CITY != null) { fobj.NAME_ADDRESS[i].CITY = _ENA2._NAMADDR2s[i].CITY; } if (_ENA2._NAMADDR2s[i].STATE != null) { fobj.NAME_ADDRESS[i].STATE = _ENA2._NAMADDR2s[i].STATE; } if (_ENA2._NAMADDR2s[i].ZIPCODE != null) { fobj.NAME_ADDRESS[i].ZIP = _ENA2._NAMADDR2s[i].ZIPCODE; } if (_ENA2._NAMADDR2s[i].BUSINESSPHONENUMBER != null) { fobj.NAME_ADDRESS[i].WORK_PHONE = CopMvcUtil.GetString(_ENA2._NAMADDR2s[i].BUSINESSPHONENUMBER); } if (_ENA2._NAMADDR2s[i].BUSINESSPHONEEXTENSION != null) { fobj.NAME_ADDRESS[i].WORK_PHONE_EXT = _ENA2._NAMADDR2s[i].BUSINESSPHONEEXTENSION; } if (_ENA2._NAMADDR2s[i].BUSINESSFAX != null) { fobj.NAME_ADDRESS[i].WORK_FAX = CopMvcUtil.GetString(_ENA2._NAMADDR2s[i].BUSINESSFAX); } if (_ENA2._NAMADDR2s[i].OTHERPHONENUMBER != null) { fobj.NAME_ADDRESS[i].OTHER_PHONE = CopMvcUtil.GetString(_ENA2._NAMADDR2s[i].OTHERPHONENUMBER); } if (_ENA2._NAMADDR2s[i].EMAILADDR != null) { fobj.NAME_ADDRESS[i].EMAIL = _ENA2._NAMADDR2s[i].EMAILADDR; } if (_ENA2._NAMADDR2s[i].TIADRSEQUENCENUMBER != null) { fobj.NAME_ADDRESS[i].TRACE_NUMBER = CopMvcUtil.GetString(_ENA2._NAMADDR2s[i].TIADRSEQUENCENUMBER); } } } //LOAD TAX ACCT s fobj.TAX_ACCT = new List <TAX_ACCT>(); string Value = ""; if (_ETA._ENTITYTAXACCOUNTSs != null) { for (int i = 0; i < _ETA._ENTITYTAXACCOUNTSs.Length; i++) { fobj.TAX_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetAcctTemplate_TaxAcct()); if (_ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE != null) { fobj.TAX_ACCT[i].FUNCTION_CODE = _ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE; } if (_ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT != null) { fobj.TAX_ACCT[i].ACCOUNT = CopMvcUtil.GetString(_ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT); } if (_ETA._ENTITYTAXACCOUNTSs[i].STARTDATE != null) { fobj.TAX_ACCT[i].START_DATE = CopMvcUtil.ConvDate(_ETA._ENTITYTAXACCOUNTSs[i].STARTDATE); } if (_ETA._ENTITYTAXACCOUNTSs[i].WAGMONTHLYGROSS != null) { fobj.TAX_ACCT[i].WAGE_MONTHLY_GROSS = _ETA._ENTITYTAXACCOUNTSs[i].WAGMONTHLYGROSS; } if (_ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION != null) { if (_ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAAPPLYFOREXEMPTION == "Y") { Value = _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAAPPLYFOREXEMPTION; Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAREACTIVATING; Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAAFFILIATED; Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNANEWOWNER; Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAREALESTATE; Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNACOMPLYYEAR1; Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNACOMPLYYEAR2; Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAACCEPTED; fobj.TAX_ACCT[i].UOL_BRT = Value; } else { fobj.TAX_ACCT[i].UOL_BRT = _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNASTATUS; } } if (_ETA._ENTITYTAXACCOUNTSs[i].PRKID != null) { fobj.TAX_ACCT[i].PRK_ID = _ETA._ENTITYTAXACCOUNTSs[i].PRKID; } } } //LOAD Echecks AX ACCT s fobj.ECHECK = new ECHECK(); if (fobj.ECHECK.ACCOUNT_NUMBER != null) { fobj.ECHECK.ACCOUNT_NUMBER = CopMvcUtil.GetString(_ECHK._ECHECK.BANKACCOUNTNUMBER); } if (fobj.ECHECK.FUNCTION_CODE != null) { fobj.ECHECK.FUNCTION_CODE = _ECHK._ECHECK.FUNCTIONCODE; } if (fobj.ECHECK.ROUTING_NUMBER != null) { fobj.ECHECK.ROUTING_NUMBER = CopMvcUtil.GetString(_ECHK._ECHECK.TRANSITROUTINGNUMBER); } if (fobj.ECHECK.ACCOUNT_TYPE != null) { fobj.ECHECK.ACCOUNT_TYPE = _ECHK._ECHECK.BANKACCOUNTTYPE; } return(fobj); }
private static COPXmlFactory.RTTIE016.PAYCOUPON __Fill(RTTIE016_SrvRef.RTTIE216Response e) { COPXmlFactory.RTTIE016.PAYCOUPON fobj = RevenueGovXMLFactory.GetPAYCOUPON(); //LOAD ERRORS INTO OBJECT fobj.ERROR_INFO = new ERROR_INFO(); fobj.ERROR_INFO.PROGRAM = e._SMA._SYSTEMMESSAGEAREA._PROGRAM; fobj.ERROR_INFO.LINE = e._SMA._SYSTEMMESSAGEAREA.ERROR.ToString(); fobj.ERROR_INFO.MESSAGE = e._SMA._SYSTEMMESSAGEAREA.MESSAGE; fobj.ERROR_INFO.ERROR = e._SMA._SYSTEMMESSAGEAREA.ERROR.ToString(); //LOAD ENTITY_INFO fobj.ENTITY_INFO = new ENTITY_INFO(); fobj.ENTITY_INFO.FUNCTION_CODE = e._EMI._ENTITYMASTERINFO.FUNCTIONCODE; fobj.ENTITY_INFO.ENT_TYPE = CopMvcUtil.GetDouble(e._EMI._ENTITYMASTERINFO.ENTITYTYPE).ToString(); fobj.ENTITY_INFO.ENTITY_ID = e._EMI._ENTITYMASTERINFO.ENTITYID; fobj.ENTITY_INFO.ACCT_ID = e._EMI._ENTITYMASTERINFO.ACCTID; fobj.ENTITY_INFO.NAME = e._EMI._ENTITYMASTERINFO.ENTITYNAME; fobj.ENTITY_INFO.ADDRESS1 = e._EMI._ENTITYMASTERINFO.ADDRESSLINE; fobj.ENTITY_INFO.ADDRESS2 = e._EMI._ENTITYMASTERINFO.ADDRESSLINE2; fobj.ENTITY_INFO.ADDRESS3 = e._EMI._ENTITYMASTERINFO.ADDRESSLINE3; fobj.ENTITY_INFO.CITY = e._EMI._ENTITYMASTERINFO.CITY; fobj.ENTITY_INFO.STATE = e._EMI._ENTITYMASTERINFO.STATE; fobj.ENTITY_INFO.ZIP_CODE = e._EMI._ENTITYMASTERINFO.ZIPCODE; //LOAD TAX ACCT s fobj.TAX_ACCT = new List <TAX_ACCT>(); for (int i = 0; i < e._ETA._ENTITYTAXACCOUNTSs.Length; i++) { fobj.TAX_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetPAYCOUPON_TAX_ACCT()); fobj.TAX_ACCT[i].FUNC_CODE = e._ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE; fobj.TAX_ACCT[i].ACCOUNT = CopMvcUtil.GetDecimal(e._ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT).ToString(); fobj.TAX_ACCT[i].ACCOUNT_ID = e._ETA._ENTITYTAXACCOUNTSs[i].ACCOUNTID; fobj.TAX_ACCT[i].START_DATE = CopMvcUtil.ConvDate(e._ETA._ENTITYTAXACCOUNTSs[i].STARTDATE); fobj.TAX_ACCT[i].END_DATE = CopMvcUtil.ConvDate(e._ETA._ENTITYTAXACCOUNTSs[i].ENDDATE); // fobj.TAX_ACCT[i].BRT_ACCOUNT = e._ETA._ENTITYTAXACCOUNTSs[i].br fobj.TAX_ACCT[i].BRT_ADDRESS1 = e._ETA._ENTITYTAXACCOUNTSs[i].BRTADDRESS; fobj.TAX_ACCT[i].FREQUENCY_CODE = e._ETA._ENTITYTAXACCOUNTSs[i].FREQUENCY; } //LOAD WAGE_NTL fobj.WAGE_NTL = new WAGE_NTL(); fobj.WAGE_NTL.ACCOUNT_ID = e._EWAGNTL.ACCOUNTID; fobj.WAGE_NTL.PERIOD = CopMvcUtil.ConvDate(e._EWAGNTL.PERIODX.PERIOD); fobj.WAGE_NTL.FREQUENCY_CODE = e._EWAGNTL.FREQUENCY; fobj.WAGE_NTL.ADJ_REF_NO = e._EWAGNTL.ADJREFNO; fobj.WAGE_NTL.PREPARER_NAME = e._EWAGNTL.PREPARERNAME; fobj.WAGE_NTL.PREPARER_PHONE = e._EWAGNTL.PREPARERPHONE; fobj.WAGE_NTL.PREPARER_PHONE_EXT = e._EWAGNTL.PREPARERPHONEEXT; fobj.WAGE_NTL.PREPARER_IP_ADDRESS = e._EWAGNTL.PREPARERIPADDRESS; fobj.WAGE_NTL.PREPARER_EMAIL_ADDRESS = e._EWAGNTL.PREPAREREMAIL; fobj.WAGE_NTL.PREPARER_WHO = e._EWAGNTL.PREPARERTYPE; ////LOAD COUPON_FORM //fobj.COUPON_FORM = new COUPON_FORM(); //fobj.COUPON_FORM.CPN_ACCOUNT = //fobj.COUPON_FORM.CPN_ACCOUNT_TYPE = CopMvcUtil.ConvDate(e._EWAGNTL.PERIODX.PERIOD); //fobj.COUPON_FORM.CPN_NAME = e._EWAGNTL.FREQUENCY; //fobj.COUPON_FORM.CPN_ADDR = e._EWAGNTL.ADJREFNO; //fobj.COUPON_FORM.CPN_ADDR2 = e._EWAGNTL.PREPARERNAME; //fobj.COUPON_FORM.CPN_ADDR3 = e._EWAGNTL.PREPARERPHONE; //fobj.COUPON_FORM.CPN_CITY = e._EWAGNTL.PREPARERPHONEEXT; //fobj.COUPON_FORM.CPN_STATE = e._EWAGNTL.PREPARERIPADDRESS; //fobj.COUPON_FORM.CPN_ZIP_CODE = e._EWAGNTL.PREPAREREMAIL; //fobj.COUPON_FORM.CPN_SCAN = e._EWAGNTL.PREPARERTYPE; //fobj.COUPON_FORM.CPN_PERIOD = e._EWAGNTL.PREPARERIPADDRESS; //fobj.COUPON_FORM.CPN_YEAR = e._EWAGNTL.PREPAREREMAIL; //fobj.COUPON_FORM.CPN_FORM = e._EWAGNTL.PREPARERTYPE; //LOAD LOGIN_FROM //fobj.LOGIN_FROM = new LOGIN_FROM(); //fobj.LOGIN_FROM.NTL_ONLY = e.; return(fobj); }
private static COPXmlFactory.RTTIE016.PAYCOUPON __Fill(RTTIE016_SrvRef.TT016E00Response_SMA _SMA, RTTIE016_SrvRef.TT016E00Response_EMI _EMI, RTTIE016_SrvRef.TT016E00Response_ETA _ETA, RTTIE016_SrvRef.TT016E00Response_EWAGNTL _EWAGNTL) { COPXmlFactory.RTTIE016.PAYCOUPON fobj = RevenueGovXMLFactory.GetPAYCOUPON(); //LOAD ERRORS INTO OBJECT fobj.ERROR_INFO = new ERROR_INFO(); if (_SMA._SYSTEMMESSAGEAREA != null) { fobj.ERROR_INFO.PROGRAM = _SMA._SYSTEMMESSAGEAREA._PROGRAM; fobj.ERROR_INFO.LINE = _SMA._SYSTEMMESSAGEAREA.ERROR.ToString(); fobj.ERROR_INFO.MESSAGE = _SMA._SYSTEMMESSAGEAREA.MESSAGE; fobj.ERROR_INFO.ERROR = _SMA._SYSTEMMESSAGEAREA.ERROR.ToString(); } //LOAD ENTITY_INFO fobj.ENTITY_INFO = new ENTITY_INFO(); fobj.ENTITY_INFO.FUNCTION_CODE = _EMI._ENTITYMASTERINFO.FUNCTIONCODE; fobj.ENTITY_INFO.ENT_TYPE = CopMvcUtil.GetDouble(_EMI._ENTITYMASTERINFO.ENTITYTYPE).ToString(); fobj.ENTITY_INFO.ENTITY_ID = _EMI._ENTITYMASTERINFO.ENTITYID; fobj.ENTITY_INFO.ACCT_ID = _EMI._ENTITYMASTERINFO.ACCTID; fobj.ENTITY_INFO.NAME = _EMI._ENTITYMASTERINFO.ENTITYNAME; fobj.ENTITY_INFO.ADDRESS1 = _EMI._ENTITYMASTERINFO.ADDRESSLINE; fobj.ENTITY_INFO.ADDRESS2 = _EMI._ENTITYMASTERINFO.ADDRESSLINE2; fobj.ENTITY_INFO.ADDRESS3 = _EMI._ENTITYMASTERINFO.ADDRESSLINE3; fobj.ENTITY_INFO.CITY = _EMI._ENTITYMASTERINFO.CITY; fobj.ENTITY_INFO.STATE = _EMI._ENTITYMASTERINFO.STATE; fobj.ENTITY_INFO.ZIP_CODE = _EMI._ENTITYMASTERINFO.ZIPCODE; //LOAD TAX ACCT s fobj.TAX_ACCT = new List <TAX_ACCT>(); if (_ETA._ENTITYTAXACCOUNTSs != null) { for (int i = 0; i < _ETA._ENTITYTAXACCOUNTSs.Length; i++) { fobj.TAX_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetPAYCOUPON_TAX_ACCT()); fobj.TAX_ACCT[i].FUNC_CODE = _ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE; fobj.TAX_ACCT[i].ACCOUNT = CopMvcUtil.GetDecimal(_ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT).ToString(); fobj.TAX_ACCT[i].ACCOUNT_ID = _ETA._ENTITYTAXACCOUNTSs[i].ACCOUNTID; fobj.TAX_ACCT[i].START_DATE = CopMvcUtil.ConvDate(_ETA._ENTITYTAXACCOUNTSs[i].STARTDATE); fobj.TAX_ACCT[i].END_DATE = CopMvcUtil.ConvDate(_ETA._ENTITYTAXACCOUNTSs[i].ENDDATE); fobj.TAX_ACCT[i].BRT_ADDRESS1 = _ETA._ENTITYTAXACCOUNTSs[i].BRTADDRESS; fobj.TAX_ACCT[i].FREQUENCY_CODE = _ETA._ENTITYTAXACCOUNTSs[i].FREQUENCY; } } //LOAD WAGE_NTL fobj.WAGE_NTL = new WAGE_NTL(); if (_EWAGNTL.ACCOUNTID != null) { fobj.WAGE_NTL.ACCOUNT_ID = _EWAGNTL.ACCOUNTID; fobj.WAGE_NTL.PERIOD = CopMvcUtil.ConvDate(_EWAGNTL.PERIODX.PERIOD); fobj.WAGE_NTL.FREQUENCY_CODE = _EWAGNTL.FREQUENCY; fobj.WAGE_NTL.ADJ_REF_NO = _EWAGNTL.ADJREFNO; fobj.WAGE_NTL.PREPARER_NAME = _EWAGNTL.PREPARERNAME; fobj.WAGE_NTL.PREPARER_PHONE = _EWAGNTL.PREPARERPHONE; fobj.WAGE_NTL.PREPARER_PHONE_EXT = _EWAGNTL.PREPARERPHONEEXT; fobj.WAGE_NTL.PREPARER_IP_ADDRESS = _EWAGNTL.PREPARERIPADDRESS; fobj.WAGE_NTL.PREPARER_EMAIL_ADDRESS = _EWAGNTL.PREPAREREMAIL; fobj.WAGE_NTL.PREPARER_WHO = _EWAGNTL.PREPARERTYPE; } else { fobj.WAGE_NTL.ACCOUNT_ID = ""; fobj.WAGE_NTL.PERIOD = ""; fobj.WAGE_NTL.FREQUENCY_CODE = ""; fobj.WAGE_NTL.ADJ_REF_NO = ""; fobj.WAGE_NTL.PREPARER_NAME = ""; fobj.WAGE_NTL.PREPARER_PHONE = ""; fobj.WAGE_NTL.PREPARER_PHONE_EXT = ""; fobj.WAGE_NTL.PREPARER_IP_ADDRESS = ""; fobj.WAGE_NTL.PREPARER_EMAIL_ADDRESS = ""; fobj.WAGE_NTL.PREPARER_WHO = ""; } //LOAD COUPON_FORM fobj.COUPON_FORM = new COUPON_FORM(); if (_EWAGNTL.ACCOUNTID != null) { fobj.COUPON_FORM.CPN_ACCOUNT = ""; fobj.COUPON_FORM.CPN_ACCOUNT_TYPE = ""; fobj.COUPON_FORM.CPN_NAME = ""; fobj.COUPON_FORM.CPN_ADDR = ""; fobj.COUPON_FORM.CPN_ADDR2 = ""; fobj.COUPON_FORM.CPN_ADDR3 = ""; fobj.COUPON_FORM.CPN_CITY = ""; fobj.COUPON_FORM.CPN_STATE = ""; fobj.COUPON_FORM.CPN_ZIP_CODE = ""; fobj.COUPON_FORM.CPN_SCAN = ""; fobj.COUPON_FORM.CPN_PERIOD = ""; fobj.COUPON_FORM.CPN_YEAR = ""; fobj.COUPON_FORM.CPN_FORM = ""; } return(fobj); }
private static COPXmlFactory.RTTIE027.WAGERETURN _Fill(WAGE_RTTIE027_SrvRef.TT027E00Response_SMA _SMA, WAGE_RTTIE027_SrvRef.TT027E00Response_EWAG _EWAG, WAGE_RTTIE027_SrvRef.TT027E00Response_EAMT _EAMT, WAGE_RTTIE027_SrvRef.TT027E00Response_SERR _SERR) { COPXmlFactory.RTTIE027.WAGERETURN fobj = RevenueGovXMLFactory.GetWageReturn(); //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 WAGE_INFO fobj.WAGE_INFO = new WAGE_INFO(); fobj.WAGE_INFO.ACCOUNT_ID = _EWAG.ACCOUNTID; fobj.WAGE_INFO.PERIOD = CopMvcUtil.ConvDate(_EWAG.PERIODX); fobj.WAGE_INFO.VERSION = _EWAG.VERSIONX; fobj.WAGE_INFO.SEQUENCE = _EWAG.SEQUENCENUM; fobj.WAGE_INFO.RETURN_STATUS = _EWAG.RETURNSTATUS; fobj.WAGE_INFO.LAST_UPD_DATE = CopMvcUtil.ConvDate(_EWAG.LASTUPDATEDATEX); fobj.WAGE_INFO.DOCUMENT_CONTROL = _EWAG.DOCUMENTCONTROLX; fobj.WAGE_INFO.ADJ_REFNO_CONTROL = _EWAG.ADJREFNO; //fobj.WAGE_INFO.ENTITY_ID=e._EWA fobj.WAGE_INFO.NO_OF_NONRESIDENTS = CopMvcUtil.ConvDigitToInt(_EWAG.NUMBEROFNONRESIDENTSX); fobj.WAGE_INFO.NO_OF_RESIDENTS = CopMvcUtil.ConvDigitToInt(_EWAG.NUMBEROFRESIDENTSX); fobj.WAGE_INFO.PHILA_EMPLOYEES = CopMvcUtil.ConvDigitToInt(_EWAG.PHILAEMPLOYEESX); fobj.WAGE_INFO.TOTAL_EMPLOYEES = CopMvcUtil.ConvDigitToInt(_EWAG.TOTALEMPLOYEESX); fobj.WAGE_INFO.RESTAX_A = CopMvcUtil.ConvDigitToDouble9(_EWAG.RESRATEA); fobj.WAGE_INFO.RESTAX_B = CopMvcUtil.ConvDigitToDouble9(_EWAG.RESRATEB); fobj.WAGE_INFO.NONRESTAX_A = CopMvcUtil.ConvDigitToDouble9(_EWAG.NONRATEA); fobj.WAGE_INFO.NONRESTAX_B = CopMvcUtil.ConvDigitToDouble9(_EWAG.NONRATEB); fobj.WAGE_INFO.FREQUENCY = _EWAG.FREQUENCY; fobj.WAGE_INFO.DUE_DATE = CopMvcUtil.ConvDate(_EWAG.DUEDATE); fobj.WAGE_INFO.PREPARER_NAME = _EWAG.PREPARERNAME; fobj.WAGE_INFO.PREPARER_PHONE = Convert.ToString(_EWAG.PREPARERPHONE); fobj.WAGE_INFO.PREPARER_PHONE_EXT = _EWAG.PREPARERPHONEEXT; fobj.WAGE_INFO.PREPARER_IP_ADDRESS = _EWAG.PREPARERIPADDRESS; fobj.WAGE_INFO.PREPARER_EMAIL_ADDRESS = _EWAG.PREPAREREMAILADDRESS; fobj.WAGE_INFO.PREPARER_WHO = _EWAG.PREPARERTYPE; //LOAD AMT_INFO fobj.AMT_INFO = new AMT_INFO(); fobj.AMT_INFO.GROSS_COMP = CopMvcUtil.ConvDigitToCurrency(_EAMT.GROSSCOMPENSATIONX).ToString(); fobj.AMT_INFO.TIPS_WAGES = CopMvcUtil.ConvDigitToCurrency(_EAMT.TIPSWAGESX).ToString(); fobj.AMT_INFO.NON_TAXABLE_COMP = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONTAXABLECOMPX).ToString(); fobj.AMT_INFO.NET_COMP = CopMvcUtil.ConvDigitToCurrency(_EAMT.NETCOMPENSATIONX).ToString(); fobj.AMT_INFO.RESIDENT_PAYROLL_A = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTPAYROLLAX); fobj.AMT_INFO.RESIDENT_TAX_DUE_A = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTTAXDUEAX).ToString(); fobj.AMT_INFO.RESIDENT_PAYROLL_B = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTPAYROLLBX).ToString(); fobj.AMT_INFO.RESIDENT_TAX_DUE_B = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTTAXDUEBX).ToString(); fobj.AMT_INFO.NON_RES_PAYROLL_A = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESPAYROLLAX); fobj.AMT_INFO.NON_RES_TAX_DUE_A = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESTAXDUEAX).ToString(); fobj.AMT_INFO.NON_RES_PAYROLL_B = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESPAYROLLBX).ToString(); fobj.AMT_INFO.NON_RES_TAX_DUE_B = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESTAXDUEBX).ToString(); fobj.AMT_INFO.TOTAL_GROSS_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.TOTALGROSSTAXDUEX); fobj.AMT_INFO.TAX_PAID = CopMvcUtil.ConvDigitToCurrency(_EAMT.TAXPAIDX); fobj.AMT_INFO.TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.TAXDUEX); fobj.AMT_INFO.TAX_OVERPAID = CopMvcUtil.ConvDigitToCurrency(_EAMT.TAXOVERPAIDX); fobj.AMT_INFO.POSTING_DATE = CopMvcUtil.ConvDate(_EAMT.POSTINGDATEX); fobj.AMT_INFO.FILING_DATE = CopMvcUtil.ConvDate(_EAMT.FILINGDATEX); fobj.AMT_INFO.USER_ID = _EAMT.USERID; return(fobj); }
private static COPXmlFactory.RTTIE010.ACCTTEMPLATE __Fill(RTTIE210_SrvRef.RTTIE210Response e) { COPXmlFactory.RTTIE010.ACCTTEMPLATE fobj = RevenueGovXMLFactory.GetAcctTemplate(); //LOAD ERRORS INTO OBJECT fobj.ERROR_INFO = new ERROR_INFO(); fobj.ERROR_INFO.PROGRAM = e._SMA._SYSTEMMESSAGEAREA._PROGRAM; fobj.ERROR_INFO.LINE = e._SMA._SYSTEMMESSAGEAREA.LINE.ToString(); fobj.ERROR_INFO.MESSAGE = e._SMA._SYSTEMMESSAGEAREA.MESSAGE; fobj.ERROR_INFO.ERROR = e._SMA._SYSTEMMESSAGEAREA.ERROR.ToString(); //LOAD ENTITY INFOS fobj.ENTITY_INFO = new ENTITY_INFO(); fobj.ENTITY_INFO.FUNCTION_CODE = e._EMI._ENTITYMASTERINFO.FUNCTIONCODE; fobj.ENTITY_INFO.TYPE = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.ENTITYTYPE); fobj.ENTITY_INFO.ENTITY_ID = e._EMI._ENTITYMASTERINFO.ENTITYID; fobj.ENTITY_INFO.ACCOUNT_ID = e._EMI._ENTITYMASTERINFO.ACCOUNTID; fobj.ENTITY_INFO.NAIC_CODE = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.NAICFEDERALCODE); fobj.ENTITY_INFO.SIC_CODE = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.SICFEDERALCODE); fobj.ENTITY_INFO.START_DATE = CopMvcUtil.ConvDate(e._EMI._ENTITYMASTERINFO.BUSINESSSTARTDATE); fobj.ENTITY_INFO.ORGTYPE = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.ORGANIZATIONTYPE); fobj.ENTITY_INFO.ORIGIN = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.BUSINESSORIGIN); fobj.ENTITY_INFO.GENDER = e._EMI._ENTITYMASTERINFO.BUSINESSGENDER; fobj.ENTITY_INFO.OTHER = e._EMI._ENTITYMASTERINFO.BUSINESSOTHER; fobj.ENTITY_INFO.PIN = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.PINNUMBER); fobj.ENTITY_INFO.FORCEPINCHG = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.PINSWITCH); // Unused : fobj.ENTITY_INFO.FORCEPINCHG = ??? //LOAD NAME ADDRESS INFOS //fobj.NAME_ADDRESS = new List<NAME_ADDRESS>(e._ENA1._NAMADDR1s.Length); fobj.NAME_ADDRESS = new List <NAME_ADDRESS>(); for (int i = 0; i < e._ENA1._NAMADDR1s.Length; i++) { //ENA1 section fobj.NAME_ADDRESS.Add(RevenueGovXMLFactory.GetAcctTemplate_NAME_ADDRESS()); fobj.NAME_ADDRESS[i].FUNCTION_CODE = e._ENA1._NAMADDR1s[i].FUNCTIONCODE; fobj.NAME_ADDRESS[i].TYPE = CopMvcUtil.GetString(e._ENA1._NAMADDR1s[i].ENTITYTYPE); fobj.NAME_ADDRESS[i].ID = e._ENA1._NAMADDR1s[i].ENTITYID; fobj.NAME_ADDRESS[i].NAME = e._ENA1._NAMADDR1s[i].ENTITYNAME; fobj.NAME_ADDRESS[i].TRADE_NAME = e._ENA1._NAMADDR1s[i].TRADENAME; fobj.NAME_ADDRESS[i].ADDRESS_TYPE = CopMvcUtil.GetString(e._ENA1._NAMADDR1s[i].ADDRESSTYPE); fobj.NAME_ADDRESS[i].RELATIONSHIP_CODE = CopMvcUtil.GetString(e._ENA1._NAMADDR1s[i].RELATIONSHIPCODE); //ENA2 section fobj.NAME_ADDRESS[i].ATTENTION = e._ENA2._NAMADDR2s[i].ATTENTION; fobj.NAME_ADDRESS[i].ADDRESS1 = CopMvcUtil.GetString(e._ENA2._NAMADDR2s[i].ADDRESSLINE1); fobj.NAME_ADDRESS[i].ADDRESS2 = e._ENA2._NAMADDR2s[i].ADDRESSLINE2; fobj.NAME_ADDRESS[i].CITY = e._ENA2._NAMADDR2s[i].CITY; fobj.NAME_ADDRESS[i].STATE = e._ENA2._NAMADDR2s[i].STATE; fobj.NAME_ADDRESS[i].ZIP = e._ENA2._NAMADDR2s[i].ZIPCODE; fobj.NAME_ADDRESS[i].WORK_PHONE = CopMvcUtil.GetString(e._ENA2._NAMADDR2s[i].BUSINESSPHONENUMBER); fobj.NAME_ADDRESS[i].WORK_PHONE_EXT = e._ENA2._NAMADDR2s[i].BUSINESSPHONEEXTENSION; fobj.NAME_ADDRESS[i].WORK_FAX = CopMvcUtil.GetString(e._ENA2._NAMADDR2s[i].BUSINESSFAX); fobj.NAME_ADDRESS[i].OTHER_PHONE = CopMvcUtil.GetString(e._ENA2._NAMADDR2s[i].OTHERPHONENUMBER); fobj.NAME_ADDRESS[i].EMAIL = e._ENA2._NAMADDR2s[i].EMAILADDR; fobj.NAME_ADDRESS[i].TRACE_NUMBER = CopMvcUtil.GetString(e._ENA2._NAMADDR2s[i].TIADRSEQUENCENUMBER); } //LOAD TAX ACCT s fobj.TAX_ACCT = new List <TAX_ACCT>(); for (int i = 0; i < e._ETA._ENTITYTAXACCOUNTSs.Length; i++) { fobj.TAX_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetAcctTemplate_TaxAcct()); fobj.TAX_ACCT[i].FUNCTION_CODE = e._ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE; fobj.TAX_ACCT[i].ACCOUNT = CopMvcUtil.GetString(e._ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT); fobj.TAX_ACCT[i].START_DATE = CopMvcUtil.ConvDate(e._ETA._ENTITYTAXACCOUNTSs[i].STARTDATE); fobj.TAX_ACCT[i].WAGE_MONTHLY_GROSS = e._ETA._ENTITYTAXACCOUNTSs[i].WAGMONTHLYGROSS; fobj.TAX_ACCT[i].UOL_BRT = e._ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNASTATUS; fobj.TAX_ACCT[i].PRK_ID = e._ETA._ENTITYTAXACCOUNTSs[i].PRKID; } //LOAD Echecks AX ACCT s fobj.ECHECK = new ECHECK(); fobj.ECHECK.FUNCTION_CODE = e._ECHK._ECHECK.FUNCTIONCODE; fobj.ECHECK.ROUTING_NUMBER = CopMvcUtil.GetString(e._ECHK._ECHECK.TRANSITROUTINGNUMBER); fobj.ECHECK.ACCOUNT_NUMBER = CopMvcUtil.GetString(e._ECHK._ECHECK.BANKACCOUNTNUMBER); fobj.ECHECK.ACCOUNT_TYPE = e._ECHK._ECHECK.BANKACCOUNTTYPE; return(fobj); }