Esempio n. 1
0
        private static COPXmlFactory.RTTIE022.DelinquentForm __RTTIE222_F_I(COPXmlFactory.RTTIE022.DelinquentForm e)
        {
            RTTIE022_SrvRef.TT022E00_EMI _EMI     = new RTTIE022_SrvRef.TT022E00_EMI();
            RTTIE022_SrvRef.TT022E00     rttie022 = new RTTIE022_SrvRef.TT022E00();

            RTTIE022_SrvRef.TT022E00Response_EMI _EMIResponse = new RTTIE022_SrvRef.TT022E00Response_EMI();
            RTTIE022_SrvRef.TT022E00Response_SMA _SMAResponse = new RTTIE022_SrvRef.TT022E00Response_SMA();
            RTTIE022_SrvRef.TT022E00Response_ETA _ETAResponse = new RTTIE022_SrvRef.TT022E00Response_ETA();

            //RTTIE022_SrvRef.TT022E00Response_EMI _EMIResponseNoticeNo = new RTTIE022_SrvRef.TT022E00Response_EMI();
            //RTTIE022_SrvRef.TT022E00Response_SMA _SMAResponseNoticeNo = new RTTIE022_SrvRef.TT022E00Response_SMA();
            //RTTIE022_SrvRef.TT022E00Response_ETA _ETAResponseNoticeNo = 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;


            _SMAResponse = rttie022.CallTT022E00( //calling the service for status...
                new RTTIE022_SrvRef.TT022E00_SMA(),
                _EMI,
                new RTTIE022_SrvRef.TT022E00_ETA(),
                out _EMIResponse,
                out _ETAResponse
                );
            //_EMI._ENTITYMASTERINFO.ENTITYTYPE = CopMvcUtil.GetDecimal(e.DEL_INFO.ENTITY_TYPE);
            //_EMI._ENTITYMASTERINFO.ENTITYID = e.DEL_INFO.ENTITY_ID;
            //_EMI._ENTITYMASTERINFO.FUNCTION = "P";
            //_EMI._ENTITYMASTERINFO.ENTITYTYPESpecified = true;

            //_SMAResponseNoticeNo = rttie022.CallTT022E00( //calling the service for status...
            //                                 new RTTIE022_SrvRef.TT022E00_SMA(),
            //                                 _EMI,
            //                                 new RTTIE022_SrvRef.TT022E00_ETA(),
            //                                 out _EMIResponseNoticeNo,
            //                                 out _ETAResponseNoticeNo
            //                                 );
            e = _Fill(_SMAResponse, _EMIResponse, _ETAResponse);

            return(e);
        }
Esempio n. 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);
        }