Esempio n. 1
0
        private static COPXmlFactory.RTTIE037.BPTezReturn __RTTIE037_F_I(COPXmlFactory.RTTIE037.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);
        }
Esempio n. 2
0
        private static COPXmlFactory.RTTIE037.BPTezReturn __RTTIE037_F_U(COPXmlFactory.RTTIE037.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);

            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);
        }