Пример #1
0
        private static COPXmlFactory.RTTIE037.BPTezReturn __RTTIE037_F_U(COPXmlFactory.RTTIE037.BPTezReturn e)
        {
            RTTIE237_SrvRef.RTTIE237 serv_req = new RTTIE237_SrvRef.RTTIE237();

            serv_req._EBPT                        = new RTTIE237_SrvRef._EBPT();
            serv_req._EBPT.ACCOUNTID              = e.BPT_INFO.ACCOUNT_ID;
            serv_req._EBPT.VERSIONX               = e.BPT_INFO.VERSION;
            serv_req._EBPT.PERIODX                = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.PERIOD);
            serv_req._EBPT.RETURNSTATUS           = e.BPT_INFO.RETURN_STATUS;
            serv_req._EBPT.LASTUPDATEDATEX        = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.LAST_UPD_DATE);
            serv_req._EBPT.RECORDINGDATEX         = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.RECORDING_DATE);
            serv_req._EBPT.EXTENSIONDATEX         = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.EXTENSION_DATE);
            serv_req._EBPT.SEQUENCENUM            = e.BPT_INFO.SEQUENCE;
            serv_req._EBPT.ADJUSTMENTREFERENCENUM = e.BPT_INFO.ADJUSTMENT_REF_NO;
            serv_req._EBPT.USERID                 = e.BPT_INFO.USER_ID;
            serv_req._EBPT.NETRATE                = e.BPT_INFO.NET_RATE;
            serv_req._EBPT.GROSSRATE              = e.BPT_INFO.GROSS_RATE;
            serv_req._EBPT.PREPARERNAME           = e.BPT_INFO.PREPARER_NAME;


            serv_req._EBPT.PREPARERPHONESpecified = CopMvcUtil.IsSpecified(e.BPT_INFO.PREPARER_PHONE);
            serv_req._EBPT.PREPARERPHONE          = CopMvcUtil.ConvDecimal(e.BPT_INFO.PREPARER_PHONE);


            serv_req._EBPT.PREPARERPHONEEXT     = e.BPT_INFO.PREPARER_PHONE_EXT;
            serv_req._EBPT.PREPARERIPADDRESS    = e.BPT_INFO.PREPARER_IP_ADDRESS;
            serv_req._EBPT.PREPAREREMAILADDRESS = e.BPT_INFO.PREPARER_EMAIL_ADDRESS;
            serv_req._EBPT.PREPARERTYPE         = e.BPT_INFO.PREPARER_WHO;

            serv_req._EPG1                        = new RTTIE237_SrvRef._EPG1();
            serv_req._EPG1.TAXONNETX              = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.NET_TAX);
            serv_req._EPG1.TAXONGROSSX            = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.GROSS_TAX);
            serv_req._EPG1.ACTUALTAXX             = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.ACTUAL_TAX);
            serv_req._EPG1.ESTIMATEDTAXX          = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.ESTIMATED_TAX);
            serv_req._EPG1.TOTALTAXX              = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.TOTAL_TAX);
            serv_req._EPG1.NPTTAXCREDITX          = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.NPT_TAX_CREDIT);
            serv_req._EPG1.BPTTAXCREDITX          = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.BPT_TAX_CREDIT);
            serv_req._EPG1.TOTALPAYMNTSCREDITSX   = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.TOTAL_PAY_CREDITS);
            serv_req._EPG1.TAXDUEAMTX             = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.TAX_DUE);
            serv_req._EPG1.INTERESTANDPENALTYAMTX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.INTEREST_PENALTY);
            serv_req._EPG1.AMTOWED2X              = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.AMOUNT_OWED);
            serv_req._EPG1.REFUNDAMTX             = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.REFUND);
            serv_req._EPG1.NPTOVERPAYMENTX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.NPT_OVERPAY);
            serv_req._EPG1.BPTOVERPAYMENTX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.BPT_OVERPAY);

            serv_req._EEZPG2 = new RTTIE237_SrvRef._EEZPG2();
            serv_req._EEZPG2.NETINCOMELOSS1X       = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.NET_INCOME_LOSS_1);
            serv_req._EEZPG2.NETINCOMELOSS2X       = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.NET_INCOME_LOSS_2);
            serv_req._EEZPG2.LOSSCARRYFORWARDX     = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.LOSS_CARRY_FORWARD);
            serv_req._EEZPG2.TAXABLEINCOMEX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.TAXABLE_INCOME);
            serv_req._EEZPG2.TAXDUEXNET            = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.TAX_DUE_NET);
            serv_req._EEZPG2.SALESRENTALSX         = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.SALES_RENTAL);
            serv_req._EEZPG2.SERVICESX             = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.SERVICES);
            serv_req._EEZPG2.RENTALPROPERTYX       = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.RENTAL_PROPERTY);
            serv_req._EEZPG2.ROYALTIESX            = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.ROYALTIES);
            serv_req._EEZPG2.CAPITALGAINSX         = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.CAPITAL_GAINS);
            serv_req._EEZPG2.STOCKGAINSX           = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.STOCK_GAINS);
            serv_req._EEZPG2.DIVIDENDSX            = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.DIVIDENDS);
            serv_req._EEZPG2.INTERESTX             = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.INTEREST);
            serv_req._EEZPG2.OTHERX                = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.OTHER);
            serv_req._EEZPG2.TAXABLEGROSSRECEIPTSX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.TAXABLE_GROSS_RCPTS);
            serv_req._EEZPG2.TAXDUEXGROSS          = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.TAX_DUE_GROSS);

            RTTIE237_SrvRef.RTTIE237Response response = _client.RTTIE237(serv_req);

            e = __Fill(response);

            return(e);
        }
Пример #2
0
        private static COPXmlFactory.RTTIE022.DelinquentForm __RTTIE222_F_P(COPXmlFactory.RTTIE022.DelinquentForm e)
        {
            RTTIE022_SrvRef.TT022E00_EMI         _EMI         = new RTTIE022_SrvRef.TT022E00_EMI();
            RTTIE022_SrvRef.TT022E00_ETA         _ETA         = new RTTIE022_SrvRef.TT022E00_ETA();
            RTTIE022_SrvRef.TT022E00             rttie022     = new RTTIE022_SrvRef.TT022E00();
            RTTIE022_SrvRef.TT022E00Response_SMA _SMAResponse = new RTTIE022_SrvRef.TT022E00Response_SMA();
            RTTIE022_SrvRef.TT022E00Response_EMI _EMIResponse = new RTTIE022_SrvRef.TT022E00Response_EMI();
            RTTIE022_SrvRef.TT022E00Response_ETA _ETAResponse = new RTTIE022_SrvRef.TT022E00Response_ETA();

            _EMI._ENTITYMASTERINFO                     = new RTTIE022_SrvRef.TT022E00_EMI_ENTITYMASTERINFO();
            _EMI._ENTITYMASTERINFO.ENTITYTYPE          = CopMvcUtil.GetDecimal(e.DEL_INFO.ENTITY_TYPE);
            _EMI._ENTITYMASTERINFO.ENTITYID            = e.DEL_INFO.ENTITY_ID;
            _EMI._ENTITYMASTERINFO.FUNCTION            = e.DEL_INFO.FUNCTION;
            _EMI._ENTITYMASTERINFO.ENTITYTYPESpecified = true;


            if (e.DEL_ACCTs.Count > 0)
            {
                _ETA._ENTITYTAXACCOUNTSs = new RTTIE022_SrvRef.TT022E00_ETA_ENTITYTAXACCOUNTS[e.DEL_ACCTs.Count];

                for (int i = 0; i < e.DEL_ACCTs.Count; i++)
                {
                    if (e.DEL_ACCTs[i].ACCOUNT_ID.Value != null)
                    {
                        _ETA._ENTITYTAXACCOUNTSs[i] = new RTTIE022_SrvRef.TT022E00_ETA_ENTITYTAXACCOUNTS();

                        _ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE = e.DEL_ACCTs[i].FUNCTION_CODE;


                        _ETA._ENTITYTAXACCOUNTSs[i].ACCOUNTID = e.DEL_ACCTs[i].ACCOUNT_ID;

                        _ETA._ENTITYTAXACCOUNTSs[i].INTERESTX = CopMvcUtil.ConvCurrencyToDigit(e.DEL_ACCTs[i].INTEREST_DUE).Substring(2); //change the method

                        _ETA._ENTITYTAXACCOUNTSs[i].PENALTYX = CopMvcUtil.ConvCurrencyToDigit(e.DEL_ACCTs[i].PENALTY_DUE).Substring(2);

                        _ETA._ENTITYTAXACCOUNTSs[i].PRINCIPALX = CopMvcUtil.ConvCurrencyToDigit(e.DEL_ACCTs[i].PRINCIPAL_DUE).Substring(2);

                        _ETA._ENTITYTAXACCOUNTSs[i].PERIODX = CopMvcUtil.ConvDateDecimalString(e.DEL_ACCTs[i].PERIOD);

                        _ETA._ENTITYTAXACCOUNTSs[i].OTHERX = CopMvcUtil.ConvCurrencyToDigit(e.DEL_ACCTs[i].OTHER_DUE).Substring(2);

                        _ETA._ENTITYTAXACCOUNTSs[i].BRTADDRESS = e.DEL_ACCTs[i].BRT_ADDRESS;

                        _ETA._ENTITYTAXACCOUNTSs[i].BRTENTITY = e.DEL_ACCTs[i].BRT_ENTITY;

                        _ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT = e.DEL_ACCTs[i].ACCOUNT_TYPE;

                        _ETA._ENTITYTAXACCOUNTSs[i].FILL = e.DEL_ACCTs[i].FILL;
                    }
                }
            }

            string eta = CopMvcUtil.GetXMlFromObject(_ETA);
            string emi = CopMvcUtil.GetXMlFromObject(_EMI);

            _SMAResponse = rttie022.CallTT022E00( //calling the service for status...
                new RTTIE022_SrvRef.TT022E00_SMA(),
                _EMI,
                _ETA,
                out _EMIResponse,
                out _ETAResponse
                );

            e = _Fill(_SMAResponse, _EMIResponse, _ETAResponse);

            return(e);
        }
Пример #3
0
        //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 COPXmlFactory.RTTIE037.BPTezReturn __RTTIE037_F_I(COPXmlFactory.RTTIE037.BPTezReturn e)
        //{
        //    RTTIE237_SrvRef.RTTIE237 serv_req = new RTTIE237_SrvRef.RTTIE237();

        //    serv_req._EBPT = new RTTIE237_SrvRef._EBPT();

        //    serv_req._EBPT.ACCOUNTID= e.BPT_INFO.ACCOUNT_ID;
        //    serv_req._EBPT.PERIODX = CopMvcUtil.ConvDateDecimal(e.BPT_INFO.PERIOD).ToString();
        //    serv_req._EBPT.RETURNSTATUS = e.BPT_INFO.RETURN_STATUS;
        //    serv_req._EBPT.PREPARERPHONESpecified = true;


        //     RTTIE237_SrvRef.RTTIE237Response response = _client.RTTIE237(serv_req);

        //    e = __Fill(response);

        //    return e;

        //}
        private static COPXmlFactory.RTTIE037.BPTezReturn __Fill(RTTIE237_SrvRef.RTTIE237Response e)
        {
            COPXmlFactory.RTTIE037.BPTezReturn fobj = new BPTezReturn();

            //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 INFOS
            fobj.BPT_INFO                   = new BPT_INFO();
            fobj.BPT_INFO.ACCOUNT_ID        = e._EBPT.ACCOUNTID;
            fobj.BPT_INFO.ADJUSTMENT_REF_NO = e._EBPT.ADJUSTMENTREFERENCENUM;
            fobj.BPT_INFO.PERIOD            = CopMvcUtil.ConvDate(CopMvcUtil.GetDecimal(e._EBPT.PERIODX));
            fobj.BPT_INFO.VERSION           = e._EBPT.VERSIONX;
            fobj.BPT_INFO.RETURN_STATUS     = e._EBPT.RETURNSTATUS;
            fobj.BPT_INFO.LAST_UPD_DATE     = CopMvcUtil.ConvDate(CopMvcUtil.GetDecimal(e._EBPT.LASTUPDATEDATEX));
            fobj.BPT_INFO.RECORDING_DATE    = CopMvcUtil.ConvDate(CopMvcUtil.GetDecimal(e._EBPT.RECORDINGDATEX));
            fobj.BPT_INFO.EXTENSION_DATE    = CopMvcUtil.ConvDate(CopMvcUtil.GetDecimal(e._EBPT.EXTENSIONDATEX));
            fobj.BPT_INFO.SEQUENCE          = e._EBPT.SEQUENCENUM;
            fobj.BPT_INFO.USER_ID           = e._EBPT.USERID;
            fobj.BPT_INFO.NET_RATE          = CopMvcUtil.ConvDigitToDouble9(e._EBPT.NETRATE);
            fobj.BPT_INFO.GROSS_RATE        = CopMvcUtil.ConvDigitToDouble9(e._EBPT.GROSSRATE);
            fobj.BPT_INFO.PREPARER_NAME     = e._EBPT.PREPARERNAME;



            if ((CopMvcUtil.GetLong(e._EBPT.PREPARERPHONE) == 0))
            {
                fobj.BPT_INFO.PREPARER_PHONE = string.Empty;
            }
            else
            {
                fobj.BPT_INFO.PREPARER_PHONE = CopMvcUtil.GetString(e._EBPT.PREPARERPHONE);
            }

            fobj.BPT_INFO.PREPARER_PHONE_EXT     = e._EBPT.PREPARERPHONEEXT;
            fobj.BPT_INFO.PREPARER_IP_ADDRESS    = e._EBPT.PREPARERIPADDRESS;
            fobj.BPT_INFO.PREPARER_EMAIL_ADDRESS = e._EBPT.PREPAREREMAILADDRESS;
            fobj.BPT_INFO.PREPARER_WHO           = e._EBPT.PREPARERTYPE;
            // Unused : fobj.BPT_INFO.PREPARER_WHO = ???

            //LOAD BPT_PG1

            fobj.BPT_PG1 = new BPT_PG1();

            fobj.BPT_PG1.NET_TAX        = CopMvcUtil.ConvDigitToCurrency(e._EPG1.TAXONNETX);
            fobj.BPT_PG1.GROSS_TAX      = CopMvcUtil.ConvDigitToCurrency(e._EPG1.TAXONGROSSX);
            fobj.BPT_PG1.ACTUAL_TAX     = CopMvcUtil.ConvDigitToCurrency(e._EPG1.ACTUALTAXX);
            fobj.BPT_PG1.ESTIMATED_TAX  = CopMvcUtil.ConvDigitToCurrency(e._EPG1.ESTIMATEDTAXX);
            fobj.BPT_PG1.TOTAL_TAX      = CopMvcUtil.ConvDigitToCurrency(e._EPG1.TOTALTAXX);
            fobj.BPT_PG1.NPT_TAX_CREDIT = CopMvcUtil.ConvDigitToCurrency(e._EPG1.NPTTAXCREDITX);
            fobj.BPT_PG1.BPT_TAX_CREDIT = CopMvcUtil.ConvDigitToCurrency(e._EPG1.BPTTAXCREDITX);

            fobj.BPT_PG1.TOTAL_PAY_CREDITS = CopMvcUtil.ConvDigitToCurrency(e._EPG1.TOTALPAYMNTSCREDITSX);
            fobj.BPT_PG1.TAX_DUE           = CopMvcUtil.ConvDigitToCurrency(e._EPG1.TOTALTAXX);
            fobj.BPT_PG1.INTEREST_PENALTY  = CopMvcUtil.ConvDigitToCurrency(e._EPG1.INTERESTANDPENALTYAMTX);
            fobj.BPT_PG1.AMOUNT_OWED       = CopMvcUtil.ConvDigitToCurrency(e._EPG1.AMTOWED2X);
            fobj.BPT_PG1.REFUND            = CopMvcUtil.ConvDigitToCurrency(e._EPG1.REFUNDAMTX);
            fobj.BPT_PG1.NPT_OVERPAY       = CopMvcUtil.ConvDigitToCurrency(e._EPG1.NPTOVERPAYMENTX);
            fobj.BPT_PG1.BPT_OVERPAY       = CopMvcUtil.ConvDigitToCurrency(e._EPG1.BPTOVERPAYMENTX);

            //LOAD BPT_PG2

            fobj.BPT_PG2 = new BPT_PG2();
            fobj.BPT_PG2.NET_INCOME_LOSS_1  = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.NETINCOMELOSS1X);
            fobj.BPT_PG2.NET_INCOME_LOSS_2  = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.NETINCOMELOSS2X);
            fobj.BPT_PG2.LOSS_CARRY_FORWARD = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.LOSSCARRYFORWARDX);
            fobj.BPT_PG2.TAXABLE_INCOME     = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.TAXABLEINCOMEX);

            fobj.BPT_PG2.TAX_DUE_NET     = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.TAXDUEXNET);
            fobj.BPT_PG2.SALES_RENTAL    = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.SALESRENTALSX);
            fobj.BPT_PG2.SERVICES        = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.SERVICESX);
            fobj.BPT_PG2.RENTAL_PROPERTY = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.RENTALPROPERTYX);

            fobj.BPT_PG2.ROYALTIES           = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.ROYALTIESX);
            fobj.BPT_PG2.CAPITAL_GAINS       = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.CAPITALGAINSX);
            fobj.BPT_PG2.STOCK_GAINS         = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.STOCKGAINSX);
            fobj.BPT_PG2.DIVIDENDS           = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.DIVIDENDSX);
            fobj.BPT_PG2.INTEREST            = CopMvcUtil.ConvDigitToDouble(e._EEZPG2.INTERESTX);
            fobj.BPT_PG2.OTHER               = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.OTHERX);
            fobj.BPT_PG2.TAXABLE_GROSS_RCPTS = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.TAXABLEGROSSRECEIPTSX);
            fobj.BPT_PG2.TAX_DUE_GROSS       = CopMvcUtil.ConvDigitToCurrency(e._EEZPG2.TAXDUEXGROSS);
            return(fobj);
        }
Пример #4
0
        private static COPXmlFactory.RTTIE027.WAGERETURN __RTTIE027_F_U(COPXmlFactory.RTTIE027.WAGERETURN e)
        {
            RTTIE227_Srvref.RTTIE227 serv_req = new RTTIE227_Srvref.RTTIE227();

            serv_req._EWAG                  = new RTTIE227_Srvref._EWAG();
            serv_req._EWAG.ACCOUNTID        = e.WAGE_INFO.ACCOUNT_ID;
            serv_req._EWAG.VERSIONX         = e.WAGE_INFO.VERSION;
            serv_req._EWAG.PERIODX          = CopMvcUtil.ConvDateDecimalString(e.WAGE_INFO.PERIOD);
            serv_req._EWAG.DOCUMENTCONTROLX = e.WAGE_INFO.DOCUMENT_CONTROL;
            serv_req._EWAG.ADJREFNO         = e.WAGE_INFO.ADJ_REFNO_CONTROL;

            //   serv_req._EWAG.en = e.WAGE_INFO.ENTITY_ID;

            serv_req._EWAG.RETURNSTATUS       = e.WAGE_INFO.RETURN_STATUS;
            serv_req._EWAG.SEQUENCENUM        = e.WAGE_INFO.SEQUENCE;
            serv_req._EWAG.LASTUPDATEDATEX    = CopMvcUtil.ConvDateDecimalString(e.WAGE_INFO.LAST_UPD_DATE);
            serv_req._EWAG.NUMBEROFRESIDENTSX = CopMvcUtil.ConvNumberToDigit7(e.WAGE_INFO.NO_OF_RESIDENTS);

            serv_req._EWAG.NUMBEROFNONRESIDENTSX = CopMvcUtil.ConvNumberToDigit7(e.WAGE_INFO.NO_OF_NONRESIDENTS);
            serv_req._EWAG.PHILAEMPLOYEESX       = CopMvcUtil.ConvNumberToDigit7(e.WAGE_INFO.PHILA_EMPLOYEES);
            serv_req._EWAG.TOTALEMPLOYEESX       = CopMvcUtil.ConvNumberToDigit7(e.WAGE_INFO.TOTAL_EMPLOYEES);
            serv_req._EWAG.RESRATEA  = CopMvcUtil.ConvNumberToDigit9(e.WAGE_INFO.RESTAX_A);
            serv_req._EWAG.RESRATEB  = CopMvcUtil.ConvNumberToDigit9(e.WAGE_INFO.RESTAX_B);
            serv_req._EWAG.NONRATEA  = CopMvcUtil.ConvNumberToDigit9(e.WAGE_INFO.NONRESTAX_A);
            serv_req._EWAG.NONRATEB  = CopMvcUtil.ConvNumberToDigit9(e.WAGE_INFO.NONRESTAX_B);
            serv_req._EWAG.FREQUENCY = e.WAGE_INFO.FREQUENCY;
            serv_req._EWAG.DUEDATE   = CopMvcUtil.ConvDateDecimalString(e.WAGE_INFO.DUE_DATE);



            serv_req._EWAG.PREPARERNAME         = e.WAGE_INFO.PREPARER_NAME;
            serv_req._EWAG.PREPARERPHONE        = e.WAGE_INFO.PREPARER_PHONE;
            serv_req._EWAG.PREPARERPHONEEXT     = e.WAGE_INFO.PREPARER_PHONE_EXT;
            serv_req._EWAG.PREPARERIPADDRESS    = e.WAGE_INFO.PREPARER_IP_ADDRESS;
            serv_req._EWAG.PREPAREREMAILADDRESS = e.WAGE_INFO.PREPARER_EMAIL_ADDRESS;
            serv_req._EWAG.PREPARERTYPE         = e.WAGE_INFO.PREPARER_WHO;;


            serv_req._EAMT = new RTTIE227_Srvref._EAMT();
            serv_req._EAMT.GROSSCOMPENSATIONX = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.GROSS_COMP);
            serv_req._EAMT.NONTAXABLECOMPX    = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NON_TAXABLE_COMP);
            serv_req._EAMT.NETCOMPENSATIONX   = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NET_COMP);
            serv_req._EAMT.RESIDENTPAYROLLAX  = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.RESIDENT_PAYROLL_A);
            serv_req._EAMT.RESIDENTTAXDUEAX   = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.RESIDENT_TAX_DUE_A);
            serv_req._EAMT.RESIDENTPAYROLLBX  = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.RESIDENT_PAYROLL_B);
            serv_req._EAMT.RESIDENTTAXDUEBX   = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.RESIDENT_TAX_DUE_B);
            serv_req._EAMT.NONRESPAYROLLAX    = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NON_RES_PAYROLL_A);
            serv_req._EAMT.NONRESTAXDUEAX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NON_RES_TAX_DUE_A);
            serv_req._EAMT.NONRESPAYROLLBX    = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NON_RES_PAYROLL_B);
            serv_req._EAMT.NONRESTAXDUEBX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NON_RES_TAX_DUE_B);
            serv_req._EAMT.TOTALGROSSTAXDUEX  = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TOTAL_GROSS_TAX_DUE);
            serv_req._EAMT.TAXPAIDX           = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TAX_PAID);
            serv_req._EAMT.TAXDUEX            = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TAX_DUE);
            serv_req._EAMT.TAXOVERPAIDX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TAX_OVERPAID);
            serv_req._EAMT.POSTINGDATEX       = CopMvcUtil.ConvDateDecimalString(e.AMT_INFO.POSTING_DATE);
            serv_req._EAMT.FILINGDATEX        = CopMvcUtil.ConvDateDecimalString(e.AMT_INFO.FILING_DATE);
            serv_req._EAMT.USERID             = e.AMT_INFO.USER_ID;



            RTTIE227_Srvref.RTTIE227Response response = _client.RTTIE227(serv_req);

            e = _Fill(response);

            return(e);
        }
Пример #5
0
        //private static COPXmlFactory.RTTIE027.WAGERETURN __RTTIE027_F_I(COPXmlFactory.RTTIE027.WAGERETURN e)
        //{
        //    RTTIE227_Srvref.RTTIE027 serv_req = new RTTIE227_Srvref.RTTIE027();

        //    serv_req._EWAG = new RTTIE227_Srvref._EWAG();

        //    serv_req._EWAG.ACCOUNTID = e.WAGE_INFO.ACCOUNT_ID;
        //    serv_req._EWAG.PERIODX = CopMvcUtil.ConvDateDecimalString(e.WAGE_INFO.PERIOD);
        //    serv_req._EWAG.RETURNSTATUS = e.WAGE_INFO.RETURN_STATUS;

        //    RTTIE227_Srvref.RTTIE027Response response = _client.RTTIE027(serv_req);

        //    e = _Fill(response);

        //    return e;
        //}

        private static COPXmlFactory.RTTIE027.WAGERETURN _Fill(RTTIE227_Srvref.RTTIE227Response e)
        {
            COPXmlFactory.RTTIE027.WAGERETURN fobj = RevenueGovXMLFactory.GetWageReturn();

            //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 WAGE_INFO
            fobj.WAGE_INFO                   = new WAGE_INFO();
            fobj.WAGE_INFO.ACCOUNT_ID        = e._EWAG.ACCOUNTID;
            fobj.WAGE_INFO.PERIOD            = CopMvcUtil.ConvDate(e._EWAG.PERIODX);
            fobj.WAGE_INFO.VERSION           = e._EWAG.VERSIONX;
            fobj.WAGE_INFO.SEQUENCE          = e._EWAG.SEQUENCENUM;
            fobj.WAGE_INFO.RETURN_STATUS     = e._EWAG.RETURNSTATUS;
            fobj.WAGE_INFO.LAST_UPD_DATE     = CopMvcUtil.ConvDate(e._EWAG.LASTUPDATEDATEX);
            fobj.WAGE_INFO.DOCUMENT_CONTROL  = e._EWAG.DOCUMENTCONTROLX;
            fobj.WAGE_INFO.ADJ_REFNO_CONTROL = e._EWAG.ADJREFNO;
            //fobj.WAGE_INFO.ENTITY_ID=e._EWA

            fobj.WAGE_INFO.NO_OF_NONRESIDENTS = CopMvcUtil.ConvDigitToInt(e._EWAG.NUMBEROFNONRESIDENTSX);

            fobj.WAGE_INFO.NO_OF_RESIDENTS = CopMvcUtil.ConvDigitToInt(e._EWAG.NUMBEROFRESIDENTSX);
            fobj.WAGE_INFO.PHILA_EMPLOYEES = CopMvcUtil.ConvDigitToInt(e._EWAG.PHILAEMPLOYEESX);
            fobj.WAGE_INFO.TOTAL_EMPLOYEES = CopMvcUtil.ConvDigitToInt(e._EWAG.TOTALEMPLOYEESX);

            fobj.WAGE_INFO.RESTAX_A    = CopMvcUtil.ConvDigitToDouble9(e._EWAG.RESRATEA);
            fobj.WAGE_INFO.RESTAX_B    = CopMvcUtil.ConvDigitToDouble9(e._EWAG.RESRATEB);
            fobj.WAGE_INFO.NONRESTAX_A = CopMvcUtil.ConvDigitToDouble9(e._EWAG.NONRATEA);
            fobj.WAGE_INFO.NONRESTAX_B = CopMvcUtil.ConvDigitToDouble9(e._EWAG.NONRATEB);
            fobj.WAGE_INFO.FREQUENCY   = e._EWAG.FREQUENCY;

            fobj.WAGE_INFO.DUE_DATE = CopMvcUtil.ConvDate(e._EWAG.DUEDATE);

            fobj.WAGE_INFO.PREPARER_NAME          = e._EWAG.PREPARERNAME;
            fobj.WAGE_INFO.PREPARER_PHONE         = e._EWAG.PREPARERPHONE;
            fobj.WAGE_INFO.PREPARER_PHONE_EXT     = e._EWAG.PREPARERPHONEEXT;
            fobj.WAGE_INFO.PREPARER_IP_ADDRESS    = e._EWAG.PREPARERIPADDRESS;
            fobj.WAGE_INFO.PREPARER_EMAIL_ADDRESS = e._EWAG.PREPAREREMAILADDRESS;
            fobj.WAGE_INFO.PREPARER_WHO           = e._EWAG.PREPARERTYPE;
            //   fobj.WAGE_INFO.PREPARER_WHO = e._ETOB.;

            //LOAD AMT_INFO
            fobj.AMT_INFO                     = new AMT_INFO();
            fobj.AMT_INFO.GROSS_COMP          = CopMvcUtil.ConvDigitToCurrency(e._EAMT.GROSSCOMPENSATIONX).ToString();
            fobj.AMT_INFO.NON_TAXABLE_COMP    = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NONTAXABLECOMPX).ToString();
            fobj.AMT_INFO.NET_COMP            = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NETCOMPENSATIONX).ToString();
            fobj.AMT_INFO.RESIDENT_PAYROLL_A  = CopMvcUtil.ConvDigitToCurrency(e._EAMT.RESIDENTPAYROLLAX);
            fobj.AMT_INFO.RESIDENT_TAX_DUE_A  = CopMvcUtil.ConvDigitToCurrency(e._EAMT.RESIDENTTAXDUEAX).ToString();
            fobj.AMT_INFO.RESIDENT_PAYROLL_B  = CopMvcUtil.ConvDigitToCurrency(e._EAMT.RESIDENTPAYROLLBX).ToString();
            fobj.AMT_INFO.RESIDENT_TAX_DUE_B  = CopMvcUtil.ConvDigitToCurrency(e._EAMT.RESIDENTTAXDUEBX).ToString();
            fobj.AMT_INFO.NON_RES_PAYROLL_A   = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NONRESPAYROLLAX);
            fobj.AMT_INFO.NON_RES_TAX_DUE_A   = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NONRESTAXDUEAX).ToString();
            fobj.AMT_INFO.NON_RES_PAYROLL_B   = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NONRESPAYROLLBX).ToString();
            fobj.AMT_INFO.NON_RES_TAX_DUE_B   = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NONRESTAXDUEBX).ToString();
            fobj.AMT_INFO.TOTAL_GROSS_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(e._EAMT.TOTALGROSSTAXDUEX);
            fobj.AMT_INFO.TAX_PAID            = CopMvcUtil.ConvDigitToCurrency(e._EAMT.TAXPAIDX);
            fobj.AMT_INFO.TAX_DUE             = CopMvcUtil.ConvDigitToCurrency(e._EAMT.TAXDUEX);
            fobj.AMT_INFO.TAX_OVERPAID        = CopMvcUtil.ConvDigitToCurrency(e._EAMT.TAXOVERPAIDX);
            fobj.AMT_INFO.POSTING_DATE        = CopMvcUtil.ConvDate(e._EAMT.POSTINGDATEX);
            fobj.AMT_INFO.FILING_DATE         = CopMvcUtil.ConvDate(e._EAMT.FILINGDATEX);
            fobj.AMT_INFO.USER_ID             = e._EAMT.USERID;

            return(fobj);
        }
Пример #6
0
        private static COPXmlFactory.RTTIE030_2014.BPTlfReturn __RTTIE030_F_U(COPXmlFactory.RTTIE030_2014.BPTlfReturn e)
        {
            RTTIE030_SrvRef.TT030E00_SMA           _SMA           = new RTTIE030_SrvRef.TT030E00_SMA();
            RTTIE030_SrvRef.TT030E00_ELFBPT        _ELFBPT        = new RTTIE030_SrvRef.TT030E00_ELFBPT();
            RTTIE030_SrvRef.TT030E00_ELFPG1        _ELFPG1        = new RTTIE030_SrvRef.TT030E00_ELFPG1();
            RTTIE030_SrvRef.TT030E00_ELFSCHA       _ELFSCHA       = new RTTIE030_SrvRef.TT030E00_ELFSCHA();
            RTTIE030_SrvRef.TT030E00_ELFSCHB       _ELFSCHB       = new RTTIE030_SrvRef.TT030E00_ELFSCHB();
            RTTIE030_SrvRef.TT030E00_ELFSCHC1      _ELFSCHC1      = new RTTIE030_SrvRef.TT030E00_ELFSCHC1();
            RTTIE030_SrvRef.TT030E00_ELFSCHD       _ELFSCHD       = new RTTIE030_SrvRef.TT030E00_ELFSCHD();
            RTTIE030_SrvRef.TT030E00_ELFSCHE       _ELFSCHE       = new RTTIE030_SrvRef.TT030E00_ELFSCHE();
            RTTIE030_SrvRef.TT030E00_NEW2014FIELDS _NEW2014FIELDS = new RTTIE030_SrvRef.TT030E00_NEW2014FIELDS();
            RTTIE030_SrvRef.TT030E00_NEW2015FIELDS _NEW2015FIELDS = new RTTIE030_SrvRef.TT030E00_NEW2015FIELDS();
            //
            RTTIE030_SrvRef.TT030E00 rttie030 = new RTTIE030_SrvRef.TT030E00();
            rttie030.Timeout = 120000;
            //
            RTTIE030_SrvRef.TT030E00Response_SMA           _SMAResponse           = new RTTIE030_SrvRef.TT030E00Response_SMA();
            RTTIE030_SrvRef.TT030E00Response_ELFBPT        _ELFBPTResponse        = new RTTIE030_SrvRef.TT030E00Response_ELFBPT();
            RTTIE030_SrvRef.TT030E00Response_ELFPG1        _ELFPG1Response        = new RTTIE030_SrvRef.TT030E00Response_ELFPG1();
            RTTIE030_SrvRef.TT030E00Response_ELFSCHA       _ELFSCHAResponse       = new RTTIE030_SrvRef.TT030E00Response_ELFSCHA();
            RTTIE030_SrvRef.TT030E00Response_ELFSCHB       _ELFSCHBResponse       = new RTTIE030_SrvRef.TT030E00Response_ELFSCHB();
            RTTIE030_SrvRef.TT030E00Response_ELFSCHC1      _ELFSCHC1Response      = new RTTIE030_SrvRef.TT030E00Response_ELFSCHC1();
            RTTIE030_SrvRef.TT030E00Response_ELFSCHD       _ELFSCHDResponse       = new RTTIE030_SrvRef.TT030E00Response_ELFSCHD();
            RTTIE030_SrvRef.TT030E00Response_ELFSCHE       _ELFSCHEResponse       = new RTTIE030_SrvRef.TT030E00Response_ELFSCHE();
            RTTIE030_SrvRef.TT030E00Response_NEW2014FIELDS _NEW2014FIELDSResponse = new RTTIE030_SrvRef.TT030E00Response_NEW2014FIELDS();
            RTTIE030_SrvRef.TT030E00Response_NEW2015FIELDS _NEW2015FIELDSResponse = new RTTIE030_SrvRef.TT030E00Response_NEW2015FIELDS();
            RTTIE030_SrvRef.TT030E00Response_SERR          _SERRResponse          = new RTTIE030_SrvRef.TT030E00Response_SERR();
            //
            _ELFBPT.ACCOUNTID              = e.BPT_INFO.ACCOUNT_ID;
            _ELFBPT.VERSIONX               = e.BPT_INFO.VERSION;
            _ELFBPT.PERIODX                = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.PERIOD);
            _ELFBPT.RETURNSTATUS           = e.BPT_INFO.RETURN_STATUS;
            _ELFBPT.LASTUPDATEDATEX        = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.LAST_UPD_DATE);
            _ELFBPT.RECORDINGDATEX         = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.RECORDING_DATE);
            _ELFBPT.EXTENSIONDATEX         = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.EXTENSION_DATE);
            _ELFBPT.SEQUENCENUM            = e.BPT_INFO.SEQUENCE;
            _ELFBPT.ADJREFNO               = e.BPT_INFO.ADJUSTMENT_REF_NO;
            _ELFBPT.USERID                 = e.BPT_INFO.USER_ID;
            _ELFBPT.NETRATEX               = CopMvcUtil.ConvNumberToDigit9(e.BPT_INFO.SCH_AB_TAX_RATE);
            _ELFBPT.GROSSRATEX             = CopMvcUtil.ConvNumberToDigit9(e.BPT_INFO.SCH_D_TAX_RATE);
            _ELFBPT.MANUFACTURERRATEX      = CopMvcUtil.ConvNumberToDigit9(e.BPT_INFO.SCH_E_M_TAX_RATE);
            _ELFBPT.WHOLESALERRATEX        = CopMvcUtil.ConvNumberToDigit9(e.BPT_INFO.SCH_E_W_TAX_RATE);
            _ELFBPT.RETAILERRATEX          = CopMvcUtil.ConvNumberToDigit9(e.BPT_INFO.SCH_E_R_TAX_RATE);
            _ELFBPT.LOSSCARRYFORWARDX      = CopMvcUtil.ConvCurrencyToDigit(e.BPT_INFO.LOSS_CARRY_FOWARD);
            _ELFBPT.PREPARERNAME           = e.BPT_INFO.PREPARER_NAME;
            _ELFBPT.PREPARERPHONE          = CopMvcUtil.GetDecimal(e.BPT_INFO.PREPARER_PHONE);
            _ELFBPT.PREPARERPHONEEXT       = e.BPT_INFO.PREPARER_PHONE_EXT;
            _ELFBPT.PREPARERIPADDRESS      = e.BPT_INFO.PREPARER_IP_ADDRESS;
            _ELFBPT.PREPAREREMAILADDRESS   = e.BPT_INFO.PREPARER_EMAIL_ADDRESS;
            _ELFBPT.PREPARERTYPE           = e.BPT_INFO.PREPARER_WHO;
            _ELFBPT.PREPARERPHONESpecified = true;

            _ELFPG1.TAXONNETX              = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.NET_INCOME);
            _ELFPG1.TAXONGROSSX            = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.GROSS_RECEIPTS);
            _ELFPG1.ACTUALTAXX             = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.TAX_DUE);
            _ELFPG1.ESTIMATEDTAXX          = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.ESTIMATED_TAX);
            _ELFPG1.TOTALTAXX              = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.TOTAL_TAX);
            _ELFPG1.NPTTAXCREDITX          = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.NPT_TAX_CREDIT);
            _ELFPG1.BPTTAXCREDITX          = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.BPT_TAX_CREDIT);
            _ELFPG1.TOTALPAYMNTSCREDITSX   = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.TOTAL_PAY_CREDITS);
            _ELFPG1.TAXDUEAMTX             = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.NET_TAX);
            _ELFPG1.INTERESTANDPENALTYAMTX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.INTEREST_PENALTY);
            _ELFPG1.AMTOWED2X              = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.AMOUNT_OWED);
            _ELFPG1.REFUNDAMTX             = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.REFUND);
            _ELFPG1.NPTOVERPAYMENTX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.NPT_OVERPAY);
            _ELFPG1.BPTOVERPAYMENTX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG1.BPT_OVERPAY);

            _ELFSCHA.NETINCOMELOSSX           = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.NI_LOSS);
            _ELFSCHA.NETINCOMEPORTACTIVITIESX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.NI_PORT_ACTIVITIES);
            _ELFSCHA.NETINCOMEPUCICCX         = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.NI_PUC_ICC);
            _ELFSCHA.NETINCOMEPUBLICLAWX      = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.NI_PUBLIC_LAW);
            _ELFSCHA.INCOMEAPPORTIONEDX       = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.I_APPORTIONED);
            _ELFSCHA.APPORTIONPERCENTX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.I_APPORTIONED_PERCENT);
            _ELFSCHA.INCOMEAPPORTIONEDPHILAX  = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.I_APPORTIONED_PHILA);
            _ELFSCHA.INCOMENONBUSPHILAX       = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.I_NONBUS_PHILA);
            _ELFSCHA.INCOMECURRENTYEARX       = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.I_CURRENT_YEAR);
            _ELFSCHA.LOSSCARRYFORWARDX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.LOSS_CARRY_FORWARD);
            _ELFSCHA.TAXABLEINCOMEX           = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.I_TAXABLE);
            _ELFSCHA.TAXDUEX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.TAX_DUE);
            _NEW2014FIELDS._STATNETDEDUCTIONAX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.STAT_NET_DEDUCTION_A_X);

            _ELFSCHB._NETINCOMEX               = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.NI_LOSS);
            _ELFSCHB._ADJNETINCOMEINTERESTX    = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.ADJ_NI_INTEREST);
            _ELFSCHB._ADJNETINCPORTACTIVITIESX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.ADJ_NI_PORT_ACTIVITIES);
            _ELFSCHB._ADJNETINCOMEPUCICCX      = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.ADJ_NI_PUC_ICC);
            _ELFSCHB._ADJNETINCOMEPUBLICLAWX   = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.ADJ_NI_PUBLIC_LAW);
            _ELFSCHB._ADJRECEIPTSDIRX          = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.ADJ_RECEIPTS_DIR);
            _ELFSCHB._ADJUSTEDINCOMEX          = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.ADJ_INCOME);
            _ELFSCHB._ADJRECEIPTSOTHERX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.ADJ_RECEIPTS_OTHER);
            _ELFSCHB._ADJGROSSRECEIPTSX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.ADJ_GROSS_RECEIPTS);
            _ELFSCHB._GROSSPERCENTX            = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.ADJ_GROSS_PERCENT);
            _ELFSCHB._TOTALADJUSTMENTSX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.ADJ_TOTAL);
            _ELFSCHB._NETINCOMEADJUSTEDX       = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.NI_ADJUSTED);
            _ELFSCHB._NONBUSINCOMEX            = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.I_NONBUS);
            _ELFSCHB._INCOMEAPPORTIONEDX       = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.I_APPORTIONED);
            _ELFSCHB.APPORTIONPERCENTX         = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.I_APPORTIONED_PERCENT);
            _ELFSCHB._INCOMEAPPORTIONEDPHILAX  = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.I_APPORTIONED_PHILA);
            _ELFSCHB._INCOMENONBUSPHILAX       = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.I_NONBUS_PHILA);
            _ELFSCHB._INCOMECURRENTYEARX       = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.I_CURRENT_YEAR);

            _ELFSCHB._LOSSCARRYFORWARDX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.LOSS_CARRY_FORWARD);
            _ELFSCHB._INCOMETAXABLEX           = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.I_TAXABLE);
            _ELFSCHB._TAXDUEX                  = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.TAX_DUE);
            _NEW2014FIELDS._STATNETDEDUCTIONBX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.STAT_NET_DEDUCTION_B_X);


            _ELFSCHC1._PROPERTYPHILAX  = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.TOTAL_AVG_PHILA);
            _ELFSCHC1._PROPERTYALLX    = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.TOTAL_AVG_ALL);
            _ELFSCHC1._PROPERTYFACTORX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.PROPERTY_FACTOR_PHILA);
            _ELFSCHC1._PAYROLLPHILAX   = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.PAYROLL_PHILA);
            _ELFSCHC1._PAYROLLALLX     = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.PAYROLL_ALL);
            _ELFSCHC1._PAYROLLFACTORX  = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.PAYROLL_FACTOR_PHILA);
            _ELFSCHC1._RECEIPTSPHILAX  = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.RECEIPTS_PHILA);
            _ELFSCHC1._RECEIPTSALLX    = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.RECEIPTS_ALL);
            _ELFSCHC1._RECEIPTSFACTORX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.RECEIPTS_FACTOR_PHILA);
            _ELFSCHC1._TOTALFACTORSX   = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.TOTAL_FACTORS);
            _ELFSCHC1._AVERAGEFACTORSX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_C1.AVERAGE_FACTORS);

            _ELFSCHD._GROSSSALESX           = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.GR_SALES);
            _ELFSCHD._GROSSSERVICESX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.GR_SERVICES);
            _ELFSCHD._GROSSRENTALSX         = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.GR_RENTALS);
            _ELFSCHD._TOTALRECEIPTSX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.GR_TOTALS);
            _ELFSCHD._LESALESOUTX           = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.LE_SALES_OUT);
            _ELFSCHD._LESERVICESOUTX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.LE_SERVICES_OUT);
            _ELFSCHD._LERENTALSOUTX         = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.LE_RENTALS_OUT);
            _ELFSCHD._LEOTHERAMTX           = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.LE_OTHER);
            _ELFSCHD._NETTAXABLERECEIPTSX   = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.NET_TAXABLE_RECEIPTS);
            _ELFSCHD._LEMETHODRECEIPTSX     = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.LE_TOTAL);
            _ELFSCHD._REGULARRECEIPTSX      = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.TAXABLE_RECEIPTS);
            _ELFSCHD._TAXDUEREGULARX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.TAX_DUE);
            _ELFSCHD._TAXDUEALTX            = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.TAX_DUE_ALT);
            _ELFSCHD._TOTALTAXDUEX          = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.TOTAL_TAX_DUE);
            _NEW2014FIELDS._STATEXCLUSIONDX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.STAT_EXCLUSION_D_X);

            _ELFSCHE._MALTRECEIPTSX    = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.M_ALT_RECEIPTS);
            _ELFSCHE._MGOODSCOSTX      = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.M_GOODS_COST);
            _ELFSCHE._MTAXBASEX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.M_TAX_BASE);
            _ELFSCHE._MTAXDUEX         = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.M_TAX_DUE);
            _ELFSCHE._WALTRECEIPTSX    = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.W_ALT_RECEIPTS);
            _ELFSCHE._WGOODSMATERIALSX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.W_GOODS_MATERIALS);
            _ELFSCHE._WGOODSLABORX     = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.W_GOODS_LABOR);
            _ELFSCHE._WGOODSCOSTX      = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.W_GOODS_COST);
            _ELFSCHE._WTAXBASEX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.W_TAX_BASE);
            _ELFSCHE._WTAXDUEX         = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.W_TAX_DUE);
            _ELFSCHE._RALTRECEIPTSX    = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.R_ALT_RECEIPTS);
            _ELFSCHE._RGOODSMATERIALSX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.R_GOODS_MATERIALS);
            _ELFSCHE._RGOODSLABORX     = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.R_GOODS_LABOR);
            _ELFSCHE._RGOODSCOSTX      = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.R_GOODS_COST);
            _ELFSCHE._RTAXBASEX        = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.R_TAX_BASE);
            _ELFSCHE._RTAXDUEX         = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.R_TAX_DUE);
            _ELFSCHE._TOTALALTTAXDUEX  = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_E.TOTAL_TAX_DUE);

            //_NEW2014FIELDS
            _NEW2014FIELDS._STATNETDEDUCTIONAX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_A.STAT_NET_DEDUCTION_A_X); //12 A
            _NEW2014FIELDS._STATNETDEDUCTIONBX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_B.STAT_NET_DEDUCTION_B_X); //10 B
            _NEW2014FIELDS._STATEXCLUSIONDX    = CopMvcUtil.ConvCurrencyToDigit(e.BPT_SCH_D.STAT_EXCLUSION_D_X);     //6 D
            //
            string ELFBPT        = CopMvcUtil.GetXMlFromObject(_ELFBPT);
            string ELFPG1        = CopMvcUtil.GetXMlFromObject(_ELFPG1);
            string ELFSCHA       = CopMvcUtil.GetXMlFromObject(_ELFSCHA);
            string ELFSCHB       = CopMvcUtil.GetXMlFromObject(_ELFSCHB);
            string ELFSCHC1      = CopMvcUtil.GetXMlFromObject(_ELFSCHC1);
            string ELFSCHD       = CopMvcUtil.GetXMlFromObject(_ELFSCHD);
            string ELFSCHE       = CopMvcUtil.GetXMlFromObject(_ELFSCHE);
            string NEW2014FIELDS = CopMvcUtil.GetXMlFromObject(_NEW2014FIELDS);
            string NEW2015FIELDS = CopMvcUtil.GetXMlFromObject(_NEW2015FIELDS);

            //
            _SMAResponse = rttie030.CallTT030E00(new RTTIE030_SrvRef.TT030E00_SMA(), _ELFBPT, _ELFPG1, _ELFSCHA, _ELFSCHB, _ELFSCHC1, _ELFSCHD,
                                                 _ELFSCHE, _NEW2014FIELDS, _NEW2015FIELDS, new RTTIE030_SrvRef.TT030E00_SERR(),
                                                 out _ELFBPTResponse, out _ELFPG1Response, out _ELFSCHAResponse, out _ELFSCHBResponse, out _ELFSCHC1Response, out _ELFSCHDResponse,
                                                 out _ELFSCHEResponse, out _NEW2014FIELDSResponse, out _NEW2015FIELDSResponse, out _SERRResponse);

            e = __Fill(_SMAResponse, _ELFBPTResponse, _ELFPG1Response, _ELFSCHAResponse, _ELFSCHBResponse, _ELFSCHC1Response,
                       _ELFSCHDResponse, _ELFSCHEResponse, _NEW2014FIELDSResponse, _NEW2015FIELDSResponse, _SERRResponse
                       );

            return(e);
        }
Пример #7
0
        private static COPXmlFactory.RTTIE030_2014.BPTlfReturn __Fill(RTTIE030_SrvRef.TT030E00Response_SMA _SMA, RTTIE030_SrvRef.TT030E00Response_ELFBPT _ELFBPT,
                                                                      RTTIE030_SrvRef.TT030E00Response_ELFPG1 _ELFPG1, RTTIE030_SrvRef.TT030E00Response_ELFSCHA _ELFSCHA, RTTIE030_SrvRef.TT030E00Response_ELFSCHB _ELFSCHB,
                                                                      RTTIE030_SrvRef.TT030E00Response_ELFSCHC1 _ELFSCHC1, RTTIE030_SrvRef.TT030E00Response_ELFSCHD _ELFSCHD, RTTIE030_SrvRef.TT030E00Response_ELFSCHE _ELFSCHE,
                                                                      RTTIE030_SrvRef.TT030E00Response_NEW2014FIELDS _NEW2014FIELDS, RTTIE030_SrvRef.TT030E00Response_NEW2015FIELDS _NEW2015FIELDS,
                                                                      RTTIE030_SrvRef.TT030E00Response_SERR _SERR)
        {
            COPXmlFactory.RTTIE030_2014.BPTlfReturn fobj = RevenueGovXMLFactory.GetBPTlf_2014Return();

            // LOAD ERRORS INTO OBJECT
            fobj.ERROR_INFO = new ERROR_INFO();
            if (_SMA._PROGRAM != 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_INFO
            fobj.BPT_INFO                   = new BPT_INFO();
            fobj.BPT_INFO.ACCOUNT_ID        = _ELFBPT.ACCOUNTID;
            fobj.BPT_INFO.VERSION           = _ELFBPT.VERSIONX;
            fobj.BPT_INFO.RETURN_STATUS     = _ELFBPT.RETURNSTATUS;
            fobj.BPT_INFO.PERIOD            = CopMvcUtil.ConvDate(_ELFBPT.PERIODX);
            fobj.BPT_INFO.LAST_UPD_DATE     = CopMvcUtil.ConvDate(_ELFBPT.LASTUPDATEDATEX);
            fobj.BPT_INFO.RECORDING_DATE    = CopMvcUtil.ConvDate(_ELFBPT.RECORDINGDATEX);
            fobj.BPT_INFO.EXTENSION_DATE    = CopMvcUtil.ConvDate(_ELFBPT.EXTENSIONDATEX);
            fobj.BPT_INFO.SEQUENCE          = _ELFBPT.SEQUENCENUM;
            fobj.BPT_INFO.ADJUSTMENT_REF_NO = _ELFBPT.ADJREFNO;
            fobj.BPT_INFO.USER_ID           = _ELFBPT.USERID;

            fobj.BPT_INFO.SCH_AB_TAX_RATE  = CopMvcUtil.ConvDigitToDouble9(_ELFBPT.NETRATEX);
            fobj.BPT_INFO.SCH_D_TAX_RATE   = CopMvcUtil.ConvDigitToDouble9(_ELFBPT.GROSSRATEX);
            fobj.BPT_INFO.SCH_E_M_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(_ELFBPT.MANUFACTURERRATEX);
            fobj.BPT_INFO.SCH_E_W_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(_ELFBPT.WHOLESALERRATEX);
            fobj.BPT_INFO.SCH_E_R_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(_ELFBPT.RETAILERRATEX);

            fobj.BPT_INFO.LOSS_CARRY_FOWARD      = CopMvcUtil.ConvDigitToCurrency(_ELFBPT.LOSSCARRYFORWARDX);
            fobj.BPT_INFO.PREPARER_NAME          = _ELFBPT.PREPARERNAME;
            fobj.BPT_INFO.PREPARER_PHONE         = CopMvcUtil.ConvDecimal(_ELFBPT.PREPARERPHONE).ToString();
            fobj.BPT_INFO.PREPARER_PHONE_EXT     = _ELFBPT.PREPARERPHONEEXT;
            fobj.BPT_INFO.PREPARER_IP_ADDRESS    = _ELFBPT.PREPARERIPADDRESS;
            fobj.BPT_INFO.PREPARER_EMAIL_ADDRESS = _ELFBPT.PREPAREREMAILADDRESS;
            fobj.BPT_INFO.PREPARER_WHO           = _ELFBPT.PREPARERTYPE;

            //BPT_PG1
            fobj.BPT_PG1                   = new BPT_PG1();
            fobj.BPT_PG1.NET_INCOME        = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.TAXONNETX);
            fobj.BPT_PG1.GROSS_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.TAXONGROSSX);
            fobj.BPT_PG1.TAX_DUE           = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.ACTUALTAXX);
            fobj.BPT_PG1.ESTIMATED_TAX     = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.ESTIMATEDTAXX);
            fobj.BPT_PG1.TOTAL_TAX         = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.TOTALTAXX);
            fobj.BPT_PG1.NPT_TAX_CREDIT    = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.NPTTAXCREDITX);
            fobj.BPT_PG1.BPT_TAX_CREDIT    = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.BPTTAXCREDITX);
            fobj.BPT_PG1.TOTAL_PAY_CREDITS = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.TOTALPAYMNTSCREDITSX);
            fobj.BPT_PG1.NET_TAX           = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.TAXDUEAMTX);
            fobj.BPT_PG1.INTEREST_PENALTY  = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.INTERESTANDPENALTYAMTX);
            fobj.BPT_PG1.AMOUNT_OWED       = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.AMTOWED2X);
            fobj.BPT_PG1.REFUND            = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.REFUNDAMTX);
            fobj.BPT_PG1.NPT_OVERPAY       = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.NPTOVERPAYMENTX);
            fobj.BPT_PG1.BPT_OVERPAY       = CopMvcUtil.ConvDigitToCurrency(_ELFPG1.BPTOVERPAYMENTX);

            //BPT_SCH_A
            fobj.BPT_SCH_A = new BPT_SCH_A();
            if (_ELFSCHA.NETINCOMELOSSX != null)
            {
                fobj.BPT_SCH_A.NI_LOSS                = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.NETINCOMELOSSX);
                fobj.BPT_SCH_A.NI_PORT_ACTIVITIES     = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.NETINCOMEPORTACTIVITIESX);
                fobj.BPT_SCH_A.NI_PUC_ICC             = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.NETINCOMEPUCICCX);
                fobj.BPT_SCH_A.NI_PUBLIC_LAW          = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.NETINCOMEPUBLICLAWX);
                fobj.BPT_SCH_A.I_APPORTIONED          = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.INCOMEAPPORTIONEDX);
                fobj.BPT_SCH_A.I_APPORTIONED_PERCENT  = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.APPORTIONPERCENTX);
                fobj.BPT_SCH_A.I_APPORTIONED_PHILA    = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.INCOMEAPPORTIONEDPHILAX);
                fobj.BPT_SCH_A.I_NONBUS_PHILA         = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.INCOMENONBUSPHILAX);
                fobj.BPT_SCH_A.I_CURRENT_YEAR         = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.INCOMECURRENTYEARX);
                fobj.BPT_SCH_A.LOSS_CARRY_FORWARD     = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.LOSSCARRYFORWARDX);
                fobj.BPT_SCH_A.I_TAXABLE              = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.TAXABLEINCOMEX);
                fobj.BPT_SCH_A.TAX_DUE                = CopMvcUtil.ConvDigitToCurrency(_ELFSCHA.TAXDUEX);
                fobj.BPT_SCH_A.STAT_NET_DEDUCTION_A_X = CopMvcUtil.ConvDigitToCurrency(_NEW2014FIELDS._STATNETDEDUCTIONAX);  //binoy
            }
            else
            {
                fobj.BPT_SCH_A.NI_LOSS                = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.NI_PORT_ACTIVITIES     = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.NI_PUC_ICC             = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.NI_PUBLIC_LAW          = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.I_APPORTIONED          = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.I_APPORTIONED_PERCENT  = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.I_APPORTIONED_PHILA    = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.I_NONBUS_PHILA         = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.I_CURRENT_YEAR         = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.LOSS_CARRY_FORWARD     = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.I_TAXABLE              = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.TAX_DUE                = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_A.STAT_NET_DEDUCTION_A_X = CopMvcUtil.ConvDigitToCurrency("");
            }

            //BPT_SCH_B
            fobj.BPT_SCH_B = new BPT_SCH_B();
            if (_ELFSCHB._NETINCOMEX != null)
            {
                fobj.BPT_SCH_B.NI_LOSS                = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._NETINCOMEX);
                fobj.BPT_SCH_B.ADJ_NI_INTEREST        = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._ADJNETINCOMEINTERESTX);
                fobj.BPT_SCH_B.ADJ_NI_PORT_ACTIVITIES = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._ADJNETINCPORTACTIVITIESX);
                fobj.BPT_SCH_B.ADJ_NI_PUC_ICC         = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._ADJNETINCOMEPUCICCX);
                fobj.BPT_SCH_B.ADJ_NI_PUBLIC_LAW      = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._ADJNETINCOMEPUBLICLAWX);
                fobj.BPT_SCH_B.ADJ_RECEIPTS_DIR       = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._ADJRECEIPTSDIRX);
                fobj.BPT_SCH_B.ADJ_INCOME             = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._ADJUSTEDINCOMEX);
                fobj.BPT_SCH_B.ADJ_RECEIPTS_OTHER     = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._ADJRECEIPTSOTHERX);
                fobj.BPT_SCH_B.ADJ_GROSS_RECEIPTS     = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._ADJGROSSRECEIPTSX);
                fobj.BPT_SCH_B.ADJ_GROSS_PERCENT      = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._GROSSPERCENTX);
                fobj.BPT_SCH_B.ADJ_TOTAL              = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._TOTALADJUSTMENTSX);
                fobj.BPT_SCH_B.NI_ADJUSTED            = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._NETINCOMEADJUSTEDX);
                fobj.BPT_SCH_B.I_NONBUS               = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._NONBUSINCOMEX);
                fobj.BPT_SCH_B.I_APPORTIONED          = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._INCOMEAPPORTIONEDX);
                fobj.BPT_SCH_B.I_APPORTIONED_PERCENT  = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB.APPORTIONPERCENTX);
                fobj.BPT_SCH_B.I_APPORTIONED_PHILA    = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._INCOMEAPPORTIONEDPHILAX);
                fobj.BPT_SCH_B.I_NONBUS_PHILA         = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._INCOMENONBUSPHILAX);
                fobj.BPT_SCH_B.I_CURRENT_YEAR         = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._INCOMECURRENTYEARX);
                fobj.BPT_SCH_B.LOSS_CARRY_FORWARD     = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._LOSSCARRYFORWARDX);
                fobj.BPT_SCH_B.I_TAXABLE              = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._INCOMETAXABLEX);
                fobj.BPT_SCH_B.TAX_DUE                = CopMvcUtil.ConvDigitToCurrency(_ELFSCHB._TAXDUEX);
                fobj.BPT_SCH_B.STAT_NET_DEDUCTION_B_X = CopMvcUtil.ConvDigitToCurrency(_NEW2014FIELDS._STATNETDEDUCTIONBX);  //binoy
            }
            else
            {
                fobj.BPT_SCH_B.NI_LOSS                = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.ADJ_NI_INTEREST        = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.ADJ_NI_PORT_ACTIVITIES = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.ADJ_NI_PUC_ICC         = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.ADJ_NI_PUBLIC_LAW      = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.ADJ_RECEIPTS_DIR       = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.ADJ_INCOME             = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.ADJ_RECEIPTS_OTHER     = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.ADJ_GROSS_RECEIPTS     = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.ADJ_GROSS_PERCENT      = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.ADJ_TOTAL              = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.NI_ADJUSTED            = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.I_NONBUS               = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.I_APPORTIONED          = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.I_APPORTIONED_PERCENT  = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.I_APPORTIONED_PHILA    = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.I_NONBUS_PHILA         = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.I_CURRENT_YEAR         = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.LOSS_CARRY_FORWARD     = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.I_TAXABLE              = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.TAX_DUE                = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_B.STAT_NET_DEDUCTION_B_X = CopMvcUtil.ConvDigitToCurrency("");
            }

            //BPT_SCH_C1
            fobj.BPT_SCH_C1 = new BPT_SCH_C1();
            if (_ELFSCHC1._PROPERTYPHILAX != null)
            {
                fobj.BPT_SCH_C1.TOTAL_AVG_PHILA = CopMvcUtil.ConvDigitToCurrency(_ELFSCHC1._PROPERTYPHILAX);
                fobj.BPT_SCH_C1.TOTAL_AVG_ALL   = CopMvcUtil.ConvDigitToCurrency(_ELFSCHC1._PROPERTYALLX);

                fobj.BPT_SCH_C1.PROPERTY_FACTOR_PHILA = CopMvcUtil.ConvDigitToDouble9(_ELFSCHC1._PROPERTYFACTORX);
                fobj.BPT_SCH_C1.PAYROLL_PHILA         = CopMvcUtil.ConvDigitToCurrency(_ELFSCHC1._PAYROLLPHILAX);
                fobj.BPT_SCH_C1.PAYROLL_ALL           = CopMvcUtil.ConvDigitToCurrency(_ELFSCHC1._PAYROLLALLX);
                fobj.BPT_SCH_C1.PAYROLL_FACTOR_PHILA  = CopMvcUtil.ConvDigitToDouble9(_ELFSCHC1._PAYROLLFACTORX);
                fobj.BPT_SCH_C1.RECEIPTS_PHILA        = CopMvcUtil.ConvDigitToCurrency(_ELFSCHC1._RECEIPTSPHILAX);
                fobj.BPT_SCH_C1.RECEIPTS_ALL          = CopMvcUtil.ConvDigitToCurrency(_ELFSCHC1._RECEIPTSALLX);
                fobj.BPT_SCH_C1.RECEIPTS_FACTOR_PHILA = CopMvcUtil.ConvDigitToDouble9(_ELFSCHC1._RECEIPTSFACTORX);
                fobj.BPT_SCH_C1.TOTAL_FACTORS         = CopMvcUtil.ConvDigitToDouble9(_ELFSCHC1._TOTALFACTORSX);
                fobj.BPT_SCH_C1.AVERAGE_FACTORS       = CopMvcUtil.ConvDigitToDouble9(_ELFSCHC1._AVERAGEFACTORSX);
            }
            else
            {
                fobj.BPT_SCH_C1.TOTAL_AVG_PHILA = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_C1.TOTAL_AVG_ALL   = CopMvcUtil.ConvDigitToCurrency("");

                fobj.BPT_SCH_C1.PROPERTY_FACTOR_PHILA = CopMvcUtil.ConvDigitToDouble9("0");
                fobj.BPT_SCH_C1.PAYROLL_PHILA         = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_C1.PAYROLL_ALL           = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_C1.PAYROLL_FACTOR_PHILA  = CopMvcUtil.ConvDigitToDouble9("0");
                fobj.BPT_SCH_C1.RECEIPTS_PHILA        = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_C1.RECEIPTS_ALL          = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_C1.RECEIPTS_FACTOR_PHILA = CopMvcUtil.ConvDigitToDouble9("0");
                fobj.BPT_SCH_C1.TOTAL_FACTORS         = CopMvcUtil.ConvDigitToDouble9("0");
                fobj.BPT_SCH_C1.AVERAGE_FACTORS       = CopMvcUtil.ConvDigitToDouble9("0");
            }

            //BPT_SCH_D
            fobj.BPT_SCH_D = new BPT_SCH_D();
            if (_ELFSCHD._GROSSSALESX != null)
            {
                fobj.BPT_SCH_D.GR_SALES             = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._GROSSSALESX);
                fobj.BPT_SCH_D.GR_SERVICES          = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._GROSSSERVICESX);
                fobj.BPT_SCH_D.GR_RENTALS           = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._GROSSRENTALSX);
                fobj.BPT_SCH_D.GR_TOTALS            = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._TOTALRECEIPTSX);
                fobj.BPT_SCH_D.LE_SALES_OUT         = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._LESALESOUTX);
                fobj.BPT_SCH_D.LE_SERVICES_OUT      = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._LESERVICESOUTX);
                fobj.BPT_SCH_D.LE_RENTALS_OUT       = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._LERENTALSOUTX);
                fobj.BPT_SCH_D.LE_OTHER             = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._LEOTHERAMTX);
                fobj.BPT_SCH_D.NET_TAXABLE_RECEIPTS = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._NETTAXABLERECEIPTSX);
                fobj.BPT_SCH_D.LE_TOTAL             = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._LEMETHODRECEIPTSX);
                fobj.BPT_SCH_D.TAXABLE_RECEIPTS     = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._REGULARRECEIPTSX);
                fobj.BPT_SCH_D.TAX_DUE            = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._TAXDUEREGULARX);
                fobj.BPT_SCH_D.TAX_DUE_ALT        = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._TAXDUEALTX);
                fobj.BPT_SCH_D.TOTAL_TAX_DUE      = CopMvcUtil.ConvDigitToCurrency(_ELFSCHD._TOTALTAXDUEX);
                fobj.BPT_SCH_D.STAT_EXCLUSION_D_X = CopMvcUtil.ConvDigitToCurrency(_NEW2014FIELDS._STATEXCLUSIONDX);  //binoy
            }
            else
            {
                fobj.BPT_SCH_D.GR_SALES             = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.GR_SERVICES          = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.GR_RENTALS           = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.GR_TOTALS            = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.LE_SALES_OUT         = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.LE_SERVICES_OUT      = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.LE_RENTALS_OUT       = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.LE_OTHER             = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.NET_TAXABLE_RECEIPTS = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.LE_TOTAL             = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.TAXABLE_RECEIPTS     = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.TAX_DUE            = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.TAX_DUE_ALT        = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.TOTAL_TAX_DUE      = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_D.STAT_EXCLUSION_D_X = CopMvcUtil.ConvDigitToCurrency("");
            }

            //BPT_SCH_E
            fobj.BPT_SCH_E = new BPT_SCH_E();
            if (_ELFSCHE._MALTRECEIPTSX != null)
            {
                fobj.BPT_SCH_E.M_ALT_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._MALTRECEIPTSX);
                fobj.BPT_SCH_E.M_GOODS_COST      = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._MGOODSCOSTX);
                fobj.BPT_SCH_E.M_TAX_BASE        = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._MTAXBASEX);
                fobj.BPT_SCH_E.M_TAX_DUE         = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._MTAXDUEX);
                fobj.BPT_SCH_E.W_ALT_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._WALTRECEIPTSX);
                fobj.BPT_SCH_E.W_GOODS_MATERIALS = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._WGOODSMATERIALSX);
                fobj.BPT_SCH_E.W_GOODS_LABOR     = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._WGOODSLABORX);
                fobj.BPT_SCH_E.W_GOODS_COST      = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._WGOODSCOSTX);
                fobj.BPT_SCH_E.W_TAX_BASE        = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._WTAXBASEX);
                fobj.BPT_SCH_E.W_TAX_DUE         = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._WTAXDUEX);
                fobj.BPT_SCH_E.R_ALT_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._RALTRECEIPTSX);
                fobj.BPT_SCH_E.R_GOODS_MATERIALS = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._RGOODSMATERIALSX);
                fobj.BPT_SCH_E.R_GOODS_LABOR     = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._RGOODSLABORX);
                fobj.BPT_SCH_E.R_GOODS_COST      = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._RGOODSCOSTX);
                fobj.BPT_SCH_E.R_TAX_BASE        = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._RTAXBASEX);
                fobj.BPT_SCH_E.R_TAX_DUE         = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._RTAXDUEX);
                fobj.BPT_SCH_E.TOTAL_TAX_DUE     = CopMvcUtil.ConvDigitToCurrency(_ELFSCHE._TOTALALTTAXDUEX);
            }
            else
            {
                fobj.BPT_SCH_E.M_ALT_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.M_GOODS_COST      = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.M_TAX_BASE        = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.M_TAX_DUE         = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.W_ALT_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.W_GOODS_MATERIALS = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.W_GOODS_LABOR     = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.W_GOODS_COST      = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.W_TAX_BASE        = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.W_TAX_DUE         = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.R_ALT_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.R_GOODS_MATERIALS = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.R_GOODS_LABOR     = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.R_GOODS_COST      = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.R_TAX_BASE        = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.R_TAX_DUE         = CopMvcUtil.ConvDigitToCurrency("");
                fobj.BPT_SCH_E.TOTAL_TAX_DUE     = CopMvcUtil.ConvDigitToCurrency("");
            }

            //BPT_TBL_C1
            string returnS = CopMvcUtil.GetXMlFromObject(fobj);

            return(fobj);
        }