コード例 #1
0
ファイル: RTTIE016.cs プロジェクト: DCSUser1/eGovPhase2
        private static COPXmlFactory.RTTIE016.PAYCOUPON __RTTIE016_F_I(COPXmlFactory.RTTIE016.PAYCOUPON e)
        {
            RTTIE016_SrvRef.TT016E00                 rttie016         = new RTTIE016_SrvRef.TT016E00();
            RTTIE016_SrvRef.TT016E00_EMI             _EMI             = new RTTIE016_SrvRef.TT016E00_EMI();
            RTTIE016_SrvRef.TT016E00Response_SMA     _SMAReponse      = new RTTIE016_SrvRef.TT016E00Response_SMA();
            RTTIE016_SrvRef.TT016E00Response_EMI     _EMIResponse     = new RTTIE016_SrvRef.TT016E00Response_EMI();
            RTTIE016_SrvRef.TT016E00Response_ETA     _ETAResponse     = new RTTIE016_SrvRef.TT016E00Response_ETA();
            RTTIE016_SrvRef.TT016E00Response_EWAGNTL _EWAGNTLResponse = new RTTIE016_SrvRef.TT016E00Response_EWAGNTL();

            _EMI._ENTITYMASTERINFO              = new RTTIE016_SrvRef.TT016E00_EMI_ENTITYMASTERINFO();
            _EMI._ENTITYMASTERINFO.ENTITYID     = e.ENTITY_INFO.ENTITY_ID;
            _EMI._ENTITYMASTERINFO.FUNCTIONCODE = e.ENTITY_INFO.ENT_TYPE;

            _SMAReponse = rttie016.CallTT016E00(
                new RTTIE016_SrvRef.TT016E00_SMA(),
                _EMI,
                new RTTIE016_SrvRef.TT016E00_ETA(),
                new RTTIE016_SrvRef.TT016E00_EWAGNTL(),
                out _EMIResponse,
                out _ETAResponse,
                out _EWAGNTLResponse

                );

            e = __Fill(_SMAReponse, _EMIResponse, _ETAResponse, _EWAGNTLResponse);

            return(e);
        }
コード例 #2
0
ファイル: RTTIE016.cs プロジェクト: DCSUser1/eGovPhase2
        private static COPXmlFactory.RTTIE016.PAYCOUPON __RTTIE016_F_U(COPXmlFactory.RTTIE016.PAYCOUPON e)
        {
            RTTIE016_SrvRef.TT016E00         rttie016 = new RTTIE016_SrvRef.TT016E00();
            RTTIE016_SrvRef.TT016E00_EMI     _EMI     = new RTTIE016_SrvRef.TT016E00_EMI();
            RTTIE016_SrvRef.TT016E00_ETA     _ETA     = new RTTIE016_SrvRef.TT016E00_ETA();
            RTTIE016_SrvRef.TT016E00_EWAGNTL _EWAGNTL = new RTTIE016_SrvRef.TT016E00_EWAGNTL();

            RTTIE016_SrvRef.TT016E00Response_SMA     _SMAReponse      = new RTTIE016_SrvRef.TT016E00Response_SMA();
            RTTIE016_SrvRef.TT016E00Response_EMI     _EMIResponse     = new RTTIE016_SrvRef.TT016E00Response_EMI();
            RTTIE016_SrvRef.TT016E00Response_ETA     _ETAResponse     = new RTTIE016_SrvRef.TT016E00Response_ETA();
            RTTIE016_SrvRef.TT016E00Response_EWAGNTL _EWAGNTLResponse = new RTTIE016_SrvRef.TT016E00Response_EWAGNTL();


            //LOAD ENTITY_INFO
            _EMI._ENTITYMASTERINFO = new RTTIE016_SrvRef.TT016E00_EMI_ENTITYMASTERINFO();

            _EMI._ENTITYMASTERINFO.FUNCTIONCODE = e.ENTITY_INFO.FUNCTION_CODE;
            _EMI._ENTITYMASTERINFO.ENTITYTYPE   = CopMvcUtil.GetDecimal(e.ENTITY_INFO.ENT_TYPE);
            _EMI._ENTITYMASTERINFO.ENTITYID     = e.ENTITY_INFO.ENTITY_ID;
            _EMI._ENTITYMASTERINFO.ACCTID       = e.ENTITY_INFO.ACCT_ID;
            _EMI._ENTITYMASTERINFO.ENTITYNAME   = e.ENTITY_INFO.NAME;
            _EMI._ENTITYMASTERINFO.ADDRESSLINE  = e.ENTITY_INFO.ADDRESS1;
            _EMI._ENTITYMASTERINFO.ADDRESSLINE2 = e.ENTITY_INFO.ADDRESS2;
            _EMI._ENTITYMASTERINFO.ADDRESSLINE3 = e.ENTITY_INFO.ADDRESS3;
            _EMI._ENTITYMASTERINFO.CITY         = e.ENTITY_INFO.CITY;
            _EMI._ENTITYMASTERINFO.STATE        = e.ENTITY_INFO.STATE;
            _EMI._ENTITYMASTERINFO.ZIPCODE      = e.ENTITY_INFO.ZIP_CODE;

            if (e.TAX_ACCT.Count > 0)
            {
                _ETA._ENTITYTAXACCOUNTSs = new RTTIE016_SrvRef.TT016E00_ETA_ENTITYTAXACCOUNTS[e.TAX_ACCT.Count];

                for (int i = 0; i < e.TAX_ACCT.Count; i++)
                {
                    _ETA._ENTITYTAXACCOUNTSs[i] = new RTTIE016_SrvRef.TT016E00_ETA_ENTITYTAXACCOUNTS();

                    _ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE = CopMvcUtil.GetString(e.TAX_ACCT[i].FUNC_CODE);


                    _ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT = CopMvcUtil.GetDecimal(e.TAX_ACCT[i].ACCOUNT);

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


                    _ETA._ENTITYTAXACCOUNTSs[i].STARTDATE = CopMvcUtil.GetDecimal(e.TAX_ACCT[i].START_DATE);


                    _ETA._ENTITYTAXACCOUNTSs[i].ENDDATE = CopMvcUtil.GetDecimal(e.TAX_ACCT[i].END_DATE);

                    _ETA._ENTITYTAXACCOUNTSs[i].BRTADDRESS = CopMvcUtil.GetString(e.TAX_ACCT[i].BRT_ADDRESS1);

                    _ETA._ENTITYTAXACCOUNTSs[i].FREQUENCY = e.TAX_ACCT[i].FREQUENCY_CODE;
                }
            }

            _EWAGNTL.ACCOUNTID = e.WAGE_NTL.ACCOUNT_ID;



            _EWAGNTL.FREQUENCY         = e.WAGE_NTL.FREQUENCY_CODE;
            _EWAGNTL.ADJREFNO          = e.WAGE_NTL.ADJ_REF_NO;
            _EWAGNTL.PREPARERNAME      = e.WAGE_NTL.PREPARER_NAME;
            _EWAGNTL.PREPARERPHONE     = e.WAGE_NTL.PREPARER_PHONE;
            _EWAGNTL.PREPARERPHONEEXT  = e.WAGE_NTL.PREPARER_PHONE_EXT;
            _EWAGNTL.PREPARERIPADDRESS = e.WAGE_NTL.PREPARER_IP_ADDRESS;
            _EWAGNTL.PREPAREREMAIL     = e.WAGE_NTL.PREPARER_EMAIL_ADDRESS;
            _EWAGNTL.PREPARERTYPE      = e.WAGE_NTL.PREPARER_WHO;

            _EMI._ENTITYMASTERINFO.FUNCTIONCODE = e.ENTITY_INFO.FUNCTION_CODE;
            _EMI._ENTITYMASTERINFO.ENTITYTYPE   = CopMvcUtil.GetDecimal(e.ENTITY_INFO.ENT_TYPE);
            _EMI._ENTITYMASTERINFO.ENTITYID     = e.ENTITY_INFO.ENTITY_ID;
            _EMI._ENTITYMASTERINFO.ACCTID       = e.ENTITY_INFO.ACCT_ID;
            _EMI._ENTITYMASTERINFO.ENTITYNAME   = e.ENTITY_INFO.NAME;
            _EMI._ENTITYMASTERINFO.ADDRESSLINE  = e.ENTITY_INFO.ADDRESS1;
            _EMI._ENTITYMASTERINFO.ADDRESSLINE2 = e.ENTITY_INFO.ADDRESS2;
            _EMI._ENTITYMASTERINFO.ADDRESSLINE3 = e.ENTITY_INFO.ADDRESS3;
            _EMI._ENTITYMASTERINFO.CITY         = e.ENTITY_INFO.CITY;
            _EMI._ENTITYMASTERINFO.STATE        = e.ENTITY_INFO.STATE;
            _EMI._ENTITYMASTERINFO.ZIPCODE      = e.ENTITY_INFO.ZIP_CODE;

            _EWAGNTL.PERIODX = new RTTIE016_SrvRef.TT016E00_EWAGNTLPERIODX();

            _EWAGNTL.PERIODX.PERIOD          = CopMvcUtil.GetDecimal(e.WAGE_NTL.PERIOD);
            _EWAGNTL.PERIODX.PERIODSpecified = true;
            _SMAReponse = rttie016.CallTT016E00(
                new RTTIE016_SrvRef.TT016E00_SMA(),
                _EMI,
                _ETA,
                _EWAGNTL,
                out _EMIResponse,
                out _ETAResponse,
                out _EWAGNTLResponse

                );

            e = __Fill(_SMAReponse, _EMIResponse, _ETAResponse, _EWAGNTLResponse);


            return(e);
        }