コード例 #1
0
        private static COPXmlFactory.RTTIE036.SCHOOLRETURN __RTTIE036_F_I(COPXmlFactory.RTTIE036.SCHOOLRETURN e)
        {
            SIT_RTTIE036_SrvRef.TT036E00_ESIT _ESIT    = new SIT_RTTIE036_SrvRef.TT036E00_ESIT();
            SIT_RTTIE036_SrvRef.TT036E00      serv_req = new SIT_RTTIE036_SrvRef.TT036E00();

            SIT_RTTIE036_SrvRef.TT036E00Response_SMA  _SMAResponse  = new SIT_RTTIE036_SrvRef.TT036E00Response_SMA();
            SIT_RTTIE036_SrvRef.TT036E00Response_ESIT _ESITResponse = new SIT_RTTIE036_SrvRef.TT036E00Response_ESIT();
            SIT_RTTIE036_SrvRef.TT036E00Response_EAMT _EAMTResponse = new SIT_RTTIE036_SrvRef.TT036E00Response_EAMT();

            _ESIT.ACCOUNTID    = e.SCHOOL_INFO.ACCOUNT_ID;
            _ESIT.PERIODX      = CopMvcUtil.ConvDateDecimal(e.SCHOOL_INFO.PERIOD).ToString();
            _ESIT.RETURNSTATUS = e.SCHOOL_INFO.RETURN_STATUS;


            _SMAResponse = serv_req.CallTT036E00
                               (new SIT_RTTIE036_SrvRef.TT036E00_SMA(), _ESIT,
                               new SIT_RTTIE036_SrvRef.TT036E00_EAMT(),
                               out _ESITResponse,
                               out _EAMTResponse
                               );



            e = _Fill(_SMAResponse, _ESITResponse, _EAMTResponse);

            return(e);
        }
コード例 #2
0
        private static COPXmlFactory.RTTIE036.SCHOOLRETURN __RTTIE036_F_U(COPXmlFactory.RTTIE036.SCHOOLRETURN e)
        {
            SIT_RTTIE036_SrvRef.TT036E00      serv_req = new SIT_RTTIE036_SrvRef.TT036E00();
            SIT_RTTIE036_SrvRef.TT036E00_SMA  _SMA     = new SIT_RTTIE036_SrvRef.TT036E00_SMA();
            SIT_RTTIE036_SrvRef.TT036E00_ESIT _ESIT    = new SIT_RTTIE036_SrvRef.TT036E00_ESIT();
            SIT_RTTIE036_SrvRef.TT036E00_EAMT _EAMT    = new SIT_RTTIE036_SrvRef.TT036E00_EAMT();


            SIT_RTTIE036_SrvRef.TT036E00Response_SMA  _SMAResponse  = new SIT_RTTIE036_SrvRef.TT036E00Response_SMA();
            SIT_RTTIE036_SrvRef.TT036E00Response_ESIT _ESITResponse = new SIT_RTTIE036_SrvRef.TT036E00Response_ESIT();
            SIT_RTTIE036_SrvRef.TT036E00Response_EAMT _EAMTResponse = new SIT_RTTIE036_SrvRef.TT036E00Response_EAMT();


            _ESIT.ACCOUNTID              = e.SCHOOL_INFO.ACCOUNT_ID;
            _ESIT.VERSIONX               = e.SCHOOL_INFO.VERSION;
            _ESIT.PERIODX                = CopMvcUtil.ConvDateDecimal(e.SCHOOL_INFO.PERIOD).ToString();
            _ESIT.LASTUPDATEDATEX        = CopMvcUtil.ConvDateDecimal(e.SCHOOL_INFO.LAST_UPD_DATE).ToString();
            _ESIT.EXTENSIONDATEX         = CopMvcUtil.ConvDateDecimal(e.SCHOOL_INFO.EXTENSION_DATE).ToString();
            _ESIT.RECORDINGDATEX         = CopMvcUtil.ConvDateDecimal(e.SCHOOL_INFO.RECORDING_DATE).ToString();
            _ESIT.SEQUENCENUM            = e.SCHOOL_INFO.SEQUENCE;
            _ESIT.ADJUSTMENTREFERENCENUM = e.SCHOOL_INFO.ADJUSTMENT_REF_NO;
            _ESIT.RATE                   = CopMvcUtil.ConvNumberToDigit9(e.SCHOOL_INFO.RATE);
            _ESIT.PREPARERNAME           = e.SCHOOL_INFO.PREPARER_NAME;
            _ESIT.PREPARERPHONE          = CopMvcUtil.GetDecimal(e.SCHOOL_INFO.PREPARER_PHONE);
            _ESIT.PREPARERPHONEEXT       = e.SCHOOL_INFO.PREPARER_PHONE_EXT;
            _ESIT.PREPARERIPADDRESS      = e.SCHOOL_INFO.PREPARER_IP_ADDRESS;
            _ESIT.PREPAREREMAILADDRESS   = e.SCHOOL_INFO.PREPARER_EMAIL_ADDRESS;
            _ESIT.PREPARERTYPE           = e.SCHOOL_INFO.PREPARER_WHO;;
            _ESIT.PREPARERPHONESpecified = true;


            _EAMT.NETTAXABLEDIVIDENDSX = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NET_TAX_DIVIDENDS);
            _EAMT.TAXABLEINTERESTX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TAXABLE_INTEREST).ToString();
            _EAMT.SCORPDISTRIBUTIONSX  = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.S_CORP_DISTRIBUTIONS).ToString();
            _EAMT.PARTNERSHIPINCOMEX   = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PARTNERSHIP_INCOME).ToString();
            _EAMT.BENEFICIARYINCOMEX   = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.BENEFICIARY_INCOME).ToString();
            _EAMT.SHORTTERMGAINSX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.SHORT_TERM_GAINS).ToString();
            _EAMT.NETRENTALINCOMEX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NET_RENTAL_INCOME).ToString();
            _EAMT.OTHERTAXABLEINCOMEX  = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.OTHER_TAXABLE_INCOME).ToString();
            _EAMT.TOTALTAXABLEINCOMEX  = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TOTAL_TAXABLE_INCOME).ToString();
            _EAMT.DEDUCTIBLEEXPENSESX  = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.DEDUCTIBLE_EXPENSES).ToString();
            _EAMT.NETTAXABLEINCOMEX    = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NET_TAXABLE_INCOME).ToString();
            _EAMT.GROSSTAXDUEX         = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.GROSS_TAX_DUE).ToString();

            _EAMT.CREDITSX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.CREDITS).ToString();
            _EAMT.TAXDUEX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TAX_DUE).ToString();
            _EAMT.REFUNDAMTX   = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TAX_REFUND).ToString();
            _EAMT.OVERPAYMENTX = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TAX_OVERPAID).ToString();
            _EAMT.USERID       = e.AMT_INFO.USER_ID;

            string _ESITT = CopMvcUtil.GetXMlFromObject(_ESIT);
            string _EAMTT = CopMvcUtil.GetXMlFromObject(_EAMT);

            _SMAResponse = serv_req.CallTT036E00
                               (_SMA, _ESIT, _EAMT, out _ESITResponse,
                               out _EAMTResponse

                               );



            e = _Fill(_SMAResponse, _ESITResponse, _EAMTResponse);

            return(e);
        }