Ejemplo n.º 1
0
        private static COPXmlFactory.RTTIE037_2015.BPTezReturn __RTTIE037_F_I(COPXmlFactory.RTTIE037_2015.BPTezReturn e)
        {
            BPTLFEZ_RT01E037_SrvRef.TT037E00_EBPT                  _EBPT                  = new BPTLFEZ_RT01E037_SrvRef.TT037E00_EBPT();
            BPTLFEZ_RT01E037_SrvRef.TT037E00                       serv_req               = new BPTLFEZ_RT01E037_SrvRef.TT037E00();
            BPTLFEZ_RT01E037_SrvRef.TT037E00Response_SMA           _SMAResponse           = new BPTLFEZ_RT01E037_SrvRef.TT037E00Response_SMA();
            BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EBPT          _EBPTResponse          = new BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EBPT();
            BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EPG1          _EPG1Response          = new BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EPG1();
            BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EEZPG2        _EEZPG2Response        = new BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EEZPG2();
            BPTLFEZ_RT01E037_SrvRef.TT037E00Response_NEW2014FIELDS _NEW2014FIELDSResponse = new BPTLFEZ_RT01E037_SrvRef.TT037E00Response_NEW2014FIELDS();


            _EBPT.ACCOUNTID    = e.BPT_INFO.ACCOUNT_ID;
            _EBPT.PERIODX      = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.PERIOD);
            _EBPT.RETURNSTATUS = e.BPT_INFO.RETURN_STATUS;



            _SMAResponse = serv_req.CallTT037E00
                               (new BPTLFEZ_RT01E037_SrvRef.TT037E00_SMA(), _EBPT,
                               new BPTLFEZ_RT01E037_SrvRef.TT037E00_EPG1(),
                               new BPTLFEZ_RT01E037_SrvRef.TT037E00_EEZPG2(),
                               new BPTLFEZ_RT01E037_SrvRef.TT037E00_NEW2014FIELDS(),
                               out _EBPTResponse,
                               out _EPG1Response,
                               out _EEZPG2Response,
                               out _NEW2014FIELDSResponse
                               );



            e = __Fill(_SMAResponse, _EBPTResponse, _EPG1Response, _EEZPG2Response, _NEW2014FIELDSResponse);
            return(e);
        }
Ejemplo n.º 2
0
        private static COPXmlFactory.RTTIE037_2015.BPTezReturn __RTTIE037_F_U(COPXmlFactory.RTTIE037_2015.BPTezReturn e)
        {
            BPTLFEZ_RT01E037_SrvRef.TT037E00               serv_req       = new BPTLFEZ_RT01E037_SrvRef.TT037E00();
            BPTLFEZ_RT01E037_SrvRef.TT037E00_SMA           _SMA           = new BPTLFEZ_RT01E037_SrvRef.TT037E00_SMA();
            BPTLFEZ_RT01E037_SrvRef.TT037E00_EBPT          _EBPT          = new BPTLFEZ_RT01E037_SrvRef.TT037E00_EBPT();
            BPTLFEZ_RT01E037_SrvRef.TT037E00_EPG1          _EPG1          = new BPTLFEZ_RT01E037_SrvRef.TT037E00_EPG1();
            BPTLFEZ_RT01E037_SrvRef.TT037E00_EEZPG2        _EEZPG2        = new BPTLFEZ_RT01E037_SrvRef.TT037E00_EEZPG2();
            BPTLFEZ_RT01E037_SrvRef.TT037E00_NEW2014FIELDS _NEW2014FIELDS = new BPTLFEZ_RT01E037_SrvRef.TT037E00_NEW2014FIELDS();

            serv_req.Timeout = 120000;
            BPTLFEZ_RT01E037_SrvRef.TT037E00Response_SMA           _SMAResponse           = new BPTLFEZ_RT01E037_SrvRef.TT037E00Response_SMA();
            BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EBPT          _EBPTResponse          = new BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EBPT();
            BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EPG1          _EPG1Response          = new BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EPG1();
            BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EEZPG2        _EEZPG2Response        = new BPTLFEZ_RT01E037_SrvRef.TT037E00Response_EEZPG2();
            BPTLFEZ_RT01E037_SrvRef.TT037E00Response_NEW2014FIELDS _NEW2014FIELDSResponse = new BPTLFEZ_RT01E037_SrvRef.TT037E00Response_NEW2014FIELDS();

            _SMA.ERRORLINE   = string.Empty;
            _SMA.MESSAGE     = string.Empty;
            _SMA.SYSTEMERROR = string.Empty;

            _EBPT.ACCOUNTID              = e.BPT_INFO.ACCOUNT_ID;
            _EBPT.VERSIONX               = "";
            _EBPT.PERIODX                = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.PERIOD);
            _EBPT.RETURNSTATUS           = "";
            _EBPT.LASTUPDATEDATEX        = "";
            _EBPT.RECORDINGDATEX         = "";
            _EBPT.EXTENSIONDATEX         = "";
            _EBPT.SEQUENCENUM            = "";
            _EBPT.ADJUSTMENTREFERENCENUM = "";
            _EBPT.USERID                 = "";
            _EBPT.NETRATE                = e.BPT_INFO.NET_RATE;
            _EBPT.GROSSRATE              = e.BPT_INFO.GROSS_RATE;
            _EBPT.PREPARERNAME           = e.BPT_INFO.PREPARER_NAME;
            _EBPT.PREPARERPHONESpecified = true;

            _EBPT.PREPARERPHONE = CopMvcUtil.GetDecimal(e.BPT_INFO.PREPARER_PHONE.ToString());


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

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

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

            _NEW2014FIELDS.STATEXCLUSIONEZX   = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.STAT_EXCLUSION_EZ_X);
            _NEW2014FIELDS.STATNETDEDUCTION1X = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.STAT_NET_DEDUCTION_1_X);
            _NEW2014FIELDS.TAXABLESUBTOTALEZX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.TAXABLE_SUBTOTAL_EZ_X);



            string SMA           = CopMvcUtil.GetXMlFromObject(_SMA);
            string EBPT          = CopMvcUtil.GetXMlFromObject(_EBPT);
            string EPG1          = CopMvcUtil.GetXMlFromObject(_EPG1);
            string EEZPG2        = CopMvcUtil.GetXMlFromObject(_EEZPG2);
            string NEW2014FIELDS = CopMvcUtil.GetXMlFromObject(_NEW2014FIELDS);


            _SMAResponse = serv_req.CallTT037E00
                               (_SMA, _EBPT, _EPG1, _EEZPG2, _NEW2014FIELDS, out _EBPTResponse,
                               out _EPG1Response,
                               out _EEZPG2Response,
                               out _NEW2014FIELDSResponse
                               );



            e = __Fill(_SMAResponse, _EBPTResponse, _EPG1Response, _EEZPG2Response, _NEW2014FIELDSResponse);

            return(e);
        }
Ejemplo n.º 3
0
        private static COPXmlFactory.RTTIE037_2015.BPTezReturn __RTTIE037_F_U(COPXmlFactory.RTTIE037_2015.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);

            serv_req._NEW2014FIELDS = new RTTIE237_SrvRef._NEW2014FIELDS();
            serv_req._NEW2014FIELDS.STATEXCLUSIONEZX   = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.STAT_EXCLUSION_EZ_X);
            serv_req._NEW2014FIELDS.STATNETDEDUCTION1X = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.STAT_NET_DEDUCTION_1_X);
            serv_req._NEW2014FIELDS.TAXABLESUBTOTALEZX = CopMvcUtil.ConvCurrencyToDigit(e.BPT_PG2.TAXABLE_SUBTOTAL_EZ_X);

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

            e = __Fill(response);

            return(e);
        }