Exemple #1
0
        private static COPXmlFactory.RTTIE028.TOBACCORETURN __RTTIE028_F_I(COPXmlFactory.RTTIE028.TOBACCORETURN e)
        {
            TOBACCO_RTTIE028_SrvRef.TT028E00_ETOB         _ETOB         = new TOBACCO_RTTIE028_SrvRef.TT028E00_ETOB();
            TOBACCO_RTTIE028_SrvRef.TT028E00              serv_req      = new TOBACCO_RTTIE028_SrvRef.TT028E00();
            TOBACCO_RTTIE028_SrvRef.TT028E00Response_SMA  _SMAResponse  = new TOBACCO_RTTIE028_SrvRef.TT028E00Response_SMA();
            TOBACCO_RTTIE028_SrvRef.TT028E00Response_ETOB _ETOBResponse = new TOBACCO_RTTIE028_SrvRef.TT028E00Response_ETOB();
            TOBACCO_RTTIE028_SrvRef.TT028E00Response_EAMT _EAMTResponse = new TOBACCO_RTTIE028_SrvRef.TT028E00Response_EAMT();



            _ETOB.ACCOUNTID    = e.TOBACCO_INFO.ACCOUNT_ID;
            _ETOB.PERIODX      = CopMvcUtil.ConvDateDecimal(e.TOBACCO_INFO.PERIOD).ToString();
            _ETOB.RETURNSTATUS = e.TOBACCO_INFO.RETURN_STATUS;


            _SMAResponse = serv_req.CallTT028E00
                               (new TOBACCO_RTTIE028_SrvRef.TT028E00_SMA(), _ETOB,
                               new TOBACCO_RTTIE028_SrvRef.TT028E00_EAMT(),
                               out _ETOBResponse,
                               out _EAMTResponse
                               );



            e = __Fill(_SMAResponse, _ETOBResponse, _EAMTResponse);
            return(e);
        }
Exemple #2
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);
        }
Exemple #3
0
        private static COPXmlFactory.RTTIE028.TOBACCORETURN __RTTIE028_F_U(COPXmlFactory.RTTIE028.TOBACCORETURN e)
        {
            RTTIE228_SrvRef.RTTIE228 serv_req = new RTTIE228_SrvRef.RTTIE228();

            serv_req._ETOB                        = new RTTIE228_SrvRef._ETOB();
            serv_req._ETOB.ACCOUNTID              = e.TOBACCO_INFO.ACCOUNT_ID;
            serv_req._ETOB.VERSIONX               = e.TOBACCO_INFO.VERSION;
            serv_req._ETOB.PERIODX                = CopMvcUtil.ConvDateDecimal(e.TOBACCO_INFO.PERIOD).ToString();
            serv_req._ETOB.LASTUPDATEDATEX        = CopMvcUtil.ConvDateDecimal(e.TOBACCO_INFO.LAST_UPD_DATE).ToString();
            serv_req._ETOB.USERID                 = e.TOBACCO_INFO.USER_ID;
            serv_req._ETOB.RECORDINGDATEX         = CopMvcUtil.ConvDateDecimal(e.TOBACCO_INFO.RECORDING_DATE).ToString();
            serv_req._ETOB.SEQUENCENUM            = e.TOBACCO_INFO.SEQUENCE;
            serv_req._ETOB.ADJUSTMENTREFERENCENUM = e.TOBACCO_INFO.ADJUSTMENT_REF_NO;
            serv_req._ETOB.RATEITEM               = CopMvcUtil.ConvNumberToDigit9(e.TOBACCO_INFO.RATE_ITEM);
            serv_req._ETOB.RATEPACK               = CopMvcUtil.ConvNumberToDigit9(e.TOBACCO_INFO.RATE_PACK);
            serv_req._ETOB.RATEPAPER              = CopMvcUtil.ConvNumberToDigit9(e.TOBACCO_INFO.RATE_PAPER);
            serv_req._ETOB.PREPARERNAME           = e.TOBACCO_INFO.PREPARER_NAME;
            serv_req._ETOB.PREPARERPHONE          = e.TOBACCO_INFO.PREPARER_PHONE;
            serv_req._ETOB.PREPARERPHONEEXT       = e.TOBACCO_INFO.PREPARER_PHONE_EXT;
            serv_req._ETOB.PREPARERIPADDRESS      = e.TOBACCO_INFO.PREPARER_IP_ADDRESS;
            serv_req._ETOB.PREPAREREMAILADDRESS   = e.TOBACCO_INFO.PREPARER_EMAIL_ADDRESS;
            serv_req._ETOB.PREPARERTYPE           = e.TOBACCO_INFO.PREPARER_WHO;;


            serv_req._EAMT                  = new RTTIE228_SrvRef._EAMT();
            serv_req._EAMT.ITEMTOTALX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.ITEM_TOTAL);
            serv_req._EAMT.ITEMNOTPHILAX    = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.ITEM_NOT_PHILA).ToString();
            serv_req._EAMT.ITEMPHILAX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.ITEM_PHILA).ToString();
            serv_req._EAMT.ITEMTAXDUEX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.ITEM_TAX_DUE).ToString();
            serv_req._EAMT.PACKTOTALX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PACK_TOTAL).ToString();
            serv_req._EAMT.PACKNOTPHILAX    = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PACK_NOT_PHILA).ToString();
            serv_req._EAMT.PACKPHILAX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PACK_PHILA).ToString();
            serv_req._EAMT.PACKTAXDUEX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PACK_TAX_DUE).ToString();
            serv_req._EAMT.PAPERTOTALX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PAPER_TOTAL).ToString();
            serv_req._EAMT.PAPERNOTPHILAX   = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PAPER_NOT_PHILA).ToString();
            serv_req._EAMT.PAPERPHILAX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PAPER_PHILA).ToString();
            serv_req._EAMT.PAPERTAXDUEX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PAPER_TAX_DUE).ToString();
            serv_req._EAMT.TOTALTAXDUEX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TOTAL_TAX_DUE).ToString();
            serv_req._EAMT.CREDITSX         = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.CREDITS).ToString();
            serv_req._EAMT.NETTAXDUEX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NET_TAX_DUE).ToString();
            serv_req._EAMT.INTERESTPENALTYX = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.INTEREST_PENALTY).ToString();
            serv_req._EAMT.TOTALAMTDUEX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TOTAL_AMOUNT_DUE).ToString();
            serv_req._EAMT.REFUNDX          = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.REFUND).ToString();
            serv_req._EAMT.ROLLFORWARDX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.ROLL_FORWARD).ToString();



            RTTIE228_SrvRef.RTTIE228Response response = _client.RTTIE228(serv_req);

            e = __Fill(response);

            return(e);
        }
Exemple #4
0
        private static COPXmlFactory.RTTIE036.SCHOOLRETURN __RTTIE036_F_U(COPXmlFactory.RTTIE036.SCHOOLRETURN e)
        {
            RTTIE236_SrvRef.RTTIE236 serv_req = new RTTIE236_SrvRef.RTTIE236();

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


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

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



            RTTIE236_SrvRef.RTTIE236Response response = _client.RTTIE236(serv_req);

            e = _Fill(response);

            return(e);
        }
Exemple #5
0
        private static COPXmlFactory.RTTIE029.LIQUORRETURN __RTTIE029_F_I(COPXmlFactory.RTTIE029.LIQUORRETURN e)
        {
            RTTIE229_SrvRef.RTTIE229 serv_req = new RTTIE229_SrvRef.RTTIE229();

            serv_req._ELIQ = new RTTIE229_SrvRef._ELIQ();

            // serv_req._ELIQ.ACCOUNTID = e.LIQUOR_INFO.ACCOUNT_ID;
            serv_req._ELIQ.ACCOUNTID    = "9916537";
            serv_req._ELIQ.PERIODX      = CopMvcUtil.ConvDateDecimal(e.LIQUOR_INFO.PERIOD).ToString();
            serv_req._ELIQ.RETURNSTATUS = e.LIQUOR_INFO.RETURN_STATUS;

            RTTIE229_SrvRef.RTTIE229Response response = _client.RTTIE229(serv_req);

            e = __Fill(response);

            return(e);
        }
Exemple #6
0
        private static COPXmlFactory.RTTIE039_2015.NPTRETURN __RTTIE039_F_I(COPXmlFactory.RTTIE039_2015.NPTRETURN e)
        {
            RTTIE040_SrvRef.TT040E00_ENPT _ENPT    = new RTTIE040_SrvRef.TT040E00_ENPT();
            RTTIE040_SrvRef.TT040E00      rttie040 = new RTTIE040_SrvRef.TT040E00();
            //
            _ENPT.ACCOUNTID    = e.NPT_INFO.ACCOUNT_ID;
            _ENPT.PERIODX      = CopMvcUtil.ConvDateDecimal(e.NPT_INFO.PERIOD).ToString();
            _ENPT.RETURNSTATUS = e.NPT_INFO.RETURN_STATUS;
            //
            RTTIE040_SrvRef.TT040E00Response_SMA   _SMAResponse   = new RTTIE040_SrvRef.TT040E00Response_SMA();
            RTTIE040_SrvRef.TT040E00Response_ENPT  _ENPTResponse  = new RTTIE040_SrvRef.TT040E00Response_ENPT();
            RTTIE040_SrvRef.TT040E00Response_EAMTS _EAMTSResponse = new RTTIE040_SrvRef.TT040E00Response_EAMTS();
            RTTIE040_SrvRef.TT040E00Response_SERR  _SERRRespose   = new RTTIE040_SrvRef.TT040E00Response_SERR();
            //
            _SMAResponse = rttie040.CallTT040E00(new RTTIE040_SrvRef.TT040E00_SMA(), _ENPT, new RTTIE040_SrvRef.TT040E00_EAMTS(), new RTTIE040_SrvRef.TT040E00_SERR(),
                                                 out _ENPTResponse, out _EAMTSResponse, out _SERRRespose);

            e = __Fill(_SMAResponse, _ENPTResponse, _EAMTSResponse, _SERRRespose);
            return(e);
        }
Exemple #7
0
        private static COPXmlFactory.RTTIE029.LIQUORRETURN __RTTIE029_F_U(COPXmlFactory.RTTIE029.LIQUORRETURN e)
        {
            RTTIE229_SrvRef.RTTIE229 serv_req = new RTTIE229_SrvRef.RTTIE229();

            serv_req._ELIQ                        = new RTTIE229_SrvRef._ELIQ();
            serv_req._ELIQ.ACCOUNTID              = e.LIQUOR_INFO.ACCOUNT_ID;
            serv_req._ELIQ.VERSIONX               = e.LIQUOR_INFO.VERSION;
            serv_req._ELIQ.PERIODX                = CopMvcUtil.ConvDateDecimal(e.LIQUOR_INFO.PERIOD).ToString();
            serv_req._ELIQ.LASTUPDATEDATEX        = CopMvcUtil.ConvDateDecimal(e.LIQUOR_INFO.LAST_UPD_DATE).ToString();
            serv_req._ELIQ.USERID                 = e.LIQUOR_INFO.USER_ID;
            serv_req._ELIQ.RECORDINGDATEX         = CopMvcUtil.ConvDateDecimal(e.LIQUOR_INFO.RECORDING_DATE).ToString();
            serv_req._ELIQ.SEQUENCENUM            = e.LIQUOR_INFO.SEQUENCE_NO;
            serv_req._ELIQ.ADJUSTMENTREFERENCENUM = e.LIQUOR_INFO.ADJUSTMENT_REF_NO;
            serv_req._ELIQ.RATE                   = CopMvcUtil.ConvNumberToDigit9(e.LIQUOR_INFO.RATE);

            serv_req._ELIQ.PREPARERNAME         = e.LIQUOR_INFO.PREPARER_NAME;
            serv_req._ELIQ.PREPARERPHONE        = CopMvcUtil.ConvDecimal(e.LIQUOR_INFO.PREPARER_PHONE);
            serv_req._ELIQ.PREPARERPHONEEXT     = e.LIQUOR_INFO.PREPARER_PHONE_EXT;
            serv_req._ELIQ.PREPARERIPADDRESS    = e.LIQUOR_INFO.PREPARER_IP_ADDRESS;
            serv_req._ELIQ.PREPAREREMAILADDRESS = e.LIQUOR_INFO.PREPARER_EMAIL_ADDRESS;
            serv_req._ELIQ.PREPARERTYPE         = e.LIQUOR_INFO.PREPARER_WHO;;


            serv_req._EAMT                 = new RTTIE229_SrvRef._EAMT();
            serv_req._EAMT.TOTALGROSSX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TOTAL_GROSS);
            serv_req._EAMT.FOODEXCLUSIONX  = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.FOOD_EXCLUSION).ToString();
            serv_req._EAMT.OTHEREXCLUSIONX = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.OTHER_EXCLUSION).ToString();
            serv_req._EAMT.TOTALEXCLUSIONX = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TOTAL_EXCLUSION).ToString();
            serv_req._EAMT.TAXABLEX        = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TAXABLE).ToString();
            serv_req._EAMT.TOTALTAXX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TOTAL_TAX).ToString();
            serv_req._EAMT.TAXPAIDX        = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TAX_PAID).ToString();
            serv_req._EAMT.NETTAXDUEX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NET_TAX_DUE).ToString();
            serv_req._EAMT.TAXOVERPAIDX    = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TAX_OVERPAID).ToString();


            RTTIE229_SrvRef.RTTIE229Response response = _client.RTTIE229(serv_req);

            e = __Fill(response);

            return(e);
        }
Exemple #8
0
        private static COPXmlFactory.RTTIE035.UOFORM __RTTIE035_F_U(COPXmlFactory.RTTIE035.UOFORM e)
        {
            UOForm_RTTIE035_SrvRef.TT035E00       serv_req = new UOForm_RTTIE035_SrvRef.TT035E00();
            UOForm_RTTIE035_SrvRef.TT035E00_SMA   _SMA     = new UOForm_RTTIE035_SrvRef.TT035E00_SMA();
            UOForm_RTTIE035_SrvRef.TT035E00_EUOL  _EUOL    = new UOForm_RTTIE035_SrvRef.TT035E00_EUOL();
            UOForm_RTTIE035_SrvRef.TT035E00_EAMTS _EAMTS   = new UOForm_RTTIE035_SrvRef.TT035E00_EAMTS();
            UOForm_RTTIE035_SrvRef.TT035E00_EUO3  _EUO3    = new UOForm_RTTIE035_SrvRef.TT035E00_EUO3();

            serv_req.Timeout = 120000;
            UOForm_RTTIE035_SrvRef.TT035E00Response_SMA   _SMAResponse   = new UOForm_RTTIE035_SrvRef.TT035E00Response_SMA();
            UOForm_RTTIE035_SrvRef.TT035E00Response_EUOL  _EUOLResponse  = new UOForm_RTTIE035_SrvRef.TT035E00Response_EUOL();
            UOForm_RTTIE035_SrvRef.TT035E00Response_EAMTS _EAMTSResponse = new UOForm_RTTIE035_SrvRef.TT035E00Response_EAMTS();
            UOForm_RTTIE035_SrvRef.TT035E00Response_EUO3  _EUO3Response  = new UOForm_RTTIE035_SrvRef.TT035E00Response_EUO3();


            _EUOL.ACCOUNTID              = e.UO_ACCT.ACCOUNT_ID;
            _EUOL.VERSIONX               = e.UO_ACCT.VERSION;
            _EUOL.PERIODX                = CopMvcUtil.ConvDateDecimal(e.UO_ACCT.PERIOD).ToString();
            _EUOL.LASTUPDATEDATEX        = CopMvcUtil.ConvDateDecimal(e.UO_ACCT.LAST_UPD_DATE).ToString();
            _EUOL.USERID                 = e.UO_ACCT.USER_ID;
            _EUOL.RECORDINGDATEX         = CopMvcUtil.ConvDateDecimal(e.UO_ACCT.RECORDING_DATE).ToString();
            _EUOL.SEQUENCENUM            = e.UO_ACCT.SEQUENCE;
            _EUOL.ADJUSTMENTREFERENCENUM = e.UO_ACCT.ADJUSTMENT_REF_NO;
            _EUOL.RATE           = CopMvcUtil.ConvNumberToDigit9(e.UO_ACCT.RATE);
            _EUOL.BRTNUMBER      = CopMvcUtil.ConvNumberToDigit9(e.UO_ACCT.BRT_NUMBER);
            _EUOL.LOCATION       = CopMvcUtil.GetString(e.UO_ACCT.LOCATION);
            _EUOL.DUEDATE        = CopMvcUtil.ConvDateDecimal(e.UO_ACCT.DUE_DATE).ToString();
            _EUOL.ASSESSEDVALUEX = e.UO_ACCT.ASSESSED_VALUE;
            _EUOL.FREQUENCY      = e.UO_ACCT.FREQUENCY;
            _EUOL.PERIODCODE     = e.UO_ACCT.PERIOD_CODE;
            _EUOL.PERIODYY       = e.UO_ACCT.PERIOD_YY;

            _EUOL.PREPARERNAME         = e.UO_ACCT.PREPARER_NAME;
            _EUOL.PREPARERPHONE        = CopMvcUtil.GetDecimal(e.UO_ACCT.PREPARER_PHONE);
            _EUOL.PREPARERPHONEEXT     = e.UO_ACCT.PREPARER_PHONE_EXT;
            _EUOL.PREPARERIPADDRESS    = e.UO_ACCT.PREPARER_IP_ADDRESS;
            _EUOL.PREPAREREMAILADDRESS = e.UO_ACCT.PREPARER_EMAIL_ADDRESS;
            _EUOL.PREPARERTYPE         = e.UO_ACCT.PREPARER_WHO;;


            _EAMTS.MAXTAXX                = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.MAX_TAX);
            _EAMTS.VACANCYX               = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.VACANCY);
            _EAMTS.EXEMPTX                = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.EXEMPT);
            _EAMTS.RESIDENTIALX           = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.RESIDENTIAL);
            _EAMTS.DELINQUENTX            = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.DELINQUENT);
            _EAMTS.EDICREDITX             = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.KOZ_CREDIT);
            _EAMTS.TOTALDEDUCTIONSX       = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.TOTAL_DEDUCTIONS);
            _EAMTS.PERIODTAXX             = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.PERIOD_TAX);
            _EAMTS.DISCOUNTX              = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.DISCOUNT);
            _EAMTS.TAXDUEX                = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.TAX_DUE);
            _EAMTS.INTERESTPENALTYX       = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.INTEREST_PENALTY);
            _EAMTS.TOTALDUEX              = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.TOTAL_DUE);
            _EAMTS.DELINQUENTTENANTCOUNTX = e.UO_AMTS.DELINQUENT_TENANT_COUNT;



            if (e.UO3_PAGE.Count > 0)
            {
                int r = 0;

                for (int s = 0; s < e.UO3_PAGE.Count; s++)
                {
                    if (e.UO3_PAGE[s].ACCOUNT_ID.Value != null)
                    {
                        r++;
                    }
                }

                if (r > 0)
                {
                    _EUO3._DELQs = new UOForm_RTTIE035_SrvRef.TT035E00_EUO3_DELQ[r];
                }

                for (int i = 0; i <= r; i++)
                {
                    if (e.UO3_PAGE[i].ACCOUNT_ID.Value != null)
                    {
                        _EUO3._DELQs[i] = new UOForm_RTTIE035_SrvRef.TT035E00_EUO3_DELQ();
                        _EUO3._DELQs[i].PROCESSCODED = CopMvcUtil.GetString(e.UO3_PAGE[i].PROCESS_CODE);
                        _EUO3._DELQs[i].NAMED        = CopMvcUtil.GetString(e.UO3_PAGE[i].TENANT_NAME);
                        _EUO3._DELQs[i].ACCOUNTIDD   = CopMvcUtil.GetString(e.UO3_PAGE[i].ACCOUNT_ID);
                        _EUO3._DELQs[i].ENTITYIDD    = CopMvcUtil.GetString(e.UO3_PAGE[i].TENANT_ID);
                        _EUO3._DELQs[i].DELQAMTD     = CopMvcUtil.ConvCurrencyToDigit(e.UO3_PAGE[i].AMOUNT);
                    }
                }
            }

            _SMAResponse = serv_req.CallTT035E00
                               (_SMA, _EUOL,
                               _EAMTS,
                               _EUO3,
                               out _EUOLResponse,
                               out _EAMTSResponse,
                               out _EUO3Response
                               );



            e = __Fill(_SMAResponse, _EUOLResponse, _EAMTSResponse, _EUO3Response);
            return(e);
        }
Exemple #9
0
        private static COPXmlFactory.RTTIE028.TOBACCORETURN __RTTIE028_F_U(COPXmlFactory.RTTIE028.TOBACCORETURN e)
        {
            TOBACCO_RTTIE028_SrvRef.TT028E00      serv_req = new TOBACCO_RTTIE028_SrvRef.TT028E00();
            TOBACCO_RTTIE028_SrvRef.TT028E00_SMA  _SMA     = new TOBACCO_RTTIE028_SrvRef.TT028E00_SMA();
            TOBACCO_RTTIE028_SrvRef.TT028E00_ETOB _ETOB    = new TOBACCO_RTTIE028_SrvRef.TT028E00_ETOB();
            TOBACCO_RTTIE028_SrvRef.TT028E00_EAMT _EAMT    = new TOBACCO_RTTIE028_SrvRef.TT028E00_EAMT();

            TOBACCO_RTTIE028_SrvRef.TT028E00Response_SMA  _SMAResponse  = new TOBACCO_RTTIE028_SrvRef.TT028E00Response_SMA();
            TOBACCO_RTTIE028_SrvRef.TT028E00Response_ETOB _ETOBResponse = new TOBACCO_RTTIE028_SrvRef.TT028E00Response_ETOB();
            TOBACCO_RTTIE028_SrvRef.TT028E00Response_EAMT _EAMTResponse = new TOBACCO_RTTIE028_SrvRef.TT028E00Response_EAMT();


            _ETOB.ACCOUNTID              = e.TOBACCO_INFO.ACCOUNT_ID;
            _ETOB.VERSIONX               = e.TOBACCO_INFO.VERSION;
            _ETOB.PERIODX                = CopMvcUtil.ConvDateDecimal(e.TOBACCO_INFO.PERIOD).ToString();
            _ETOB.LASTUPDATEDATEX        = CopMvcUtil.ConvDateDecimal(e.TOBACCO_INFO.LAST_UPD_DATE).ToString();
            _ETOB.USERID                 = e.TOBACCO_INFO.USER_ID;
            _ETOB.RECORDINGDATEX         = CopMvcUtil.ConvDateDecimal(e.TOBACCO_INFO.RECORDING_DATE).ToString();
            _ETOB.SEQUENCENUM            = e.TOBACCO_INFO.SEQUENCE;
            _ETOB.ADJUSTMENTREFERENCENUM = e.TOBACCO_INFO.ADJUSTMENT_REF_NO;
            _ETOB.RATEITEM               = CopMvcUtil.ConvNumberToDigit9(e.TOBACCO_INFO.RATE_ITEM);
            _ETOB.RATEPACK               = CopMvcUtil.ConvNumberToDigit9(e.TOBACCO_INFO.RATE_PACK);
            _ETOB.RATEPAPER              = CopMvcUtil.ConvNumberToDigit9(e.TOBACCO_INFO.RATE_PAPER);
            _ETOB.PREPARERNAME           = e.TOBACCO_INFO.PREPARER_NAME;
            _ETOB.PREPARERPHONE          = CopMvcUtil.GetDecimal(e.TOBACCO_INFO.PREPARER_PHONE);
            _ETOB.PREPARERPHONEEXT       = e.TOBACCO_INFO.PREPARER_PHONE_EXT;
            _ETOB.PREPARERIPADDRESS      = e.TOBACCO_INFO.PREPARER_IP_ADDRESS;
            _ETOB.PREPAREREMAILADDRESS   = e.TOBACCO_INFO.PREPARER_EMAIL_ADDRESS;
            _ETOB.PREPARERTYPE           = e.TOBACCO_INFO.PREPARER_WHO;
            _ETOB.PREPARERPHONESpecified = true;


            _EAMT.ITEMTOTALX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.ITEM_TOTAL);
            _EAMT.ITEMNOTPHILAX    = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.ITEM_NOT_PHILA).ToString();
            _EAMT.ITEMPHILAX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.ITEM_PHILA).ToString();
            _EAMT.ITEMTAXDUEX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.ITEM_TAX_DUE).ToString();
            _EAMT.PACKTOTALX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PACK_TOTAL).ToString();
            _EAMT.PACKNOTPHILAX    = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PACK_NOT_PHILA).ToString();
            _EAMT.PACKPHILAX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PACK_PHILA).ToString();
            _EAMT.PACKTAXDUEX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PACK_TAX_DUE).ToString();
            _EAMT.PAPERTOTALX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PAPER_TOTAL).ToString();
            _EAMT.PAPERNOTPHILAX   = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PAPER_NOT_PHILA).ToString();
            _EAMT.PAPERPHILAX      = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PAPER_PHILA).ToString();
            _EAMT.PAPERTAXDUEX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.PAPER_TAX_DUE).ToString();
            _EAMT.TOTALTAXDUEX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TOTAL_TAX_DUE).ToString();
            _EAMT.CREDITSX         = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.CREDITS).ToString();
            _EAMT.NETTAXDUEX       = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.NET_TAX_DUE).ToString();
            _EAMT.INTERESTPENALTYX = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.INTEREST_PENALTY).ToString();
            _EAMT.TOTALAMTDUEX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.TOTAL_AMOUNT_DUE).ToString();
            _EAMT.REFUNDX          = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.REFUND).ToString();
            _EAMT.ROLLFORWARDX     = CopMvcUtil.ConvCurrencyToDigit(e.AMT_INFO.ROLL_FORWARD).ToString();
            string ETOB = CopMvcUtil.GetXMlFromObject(_ETOB);
            string EAMT = CopMvcUtil.GetXMlFromObject(_EAMT);

            _SMAResponse = serv_req.CallTT028E00
                               (_SMA, _ETOB,
                               _EAMT,
                               out _ETOBResponse,
                               out _EAMTResponse
                               );



            e = __Fill(_SMAResponse, _ETOBResponse, _EAMTResponse);
            return(e);
        }
Exemple #10
0
        private static COPXmlFactory.RTTIE016.PAYCOUPON __RTTIE016_F_U(COPXmlFactory.RTTIE016.PAYCOUPON e)
        {
            RTTIE016_SrvRef.RTTIE216 serv_req = new RTTIE016_SrvRef.RTTIE216();

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



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

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

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

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

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

                    serv_req._ETA._ENTITYTAXACCOUNTSs[i].STARTDATESpecified = CopMvcUtil.IsSpecified(e.TAX_ACCT[i].START_DATE);
                    serv_req._ETA._ENTITYTAXACCOUNTSs[i].STARTDATE          = CopMvcUtil.ConvDateDecimal(e.TAX_ACCT[i].START_DATE);

                    serv_req._ETA._ENTITYTAXACCOUNTSs[i].ENDDATESpecified = CopMvcUtil.IsSpecified(e.TAX_ACCT[i].END_DATE);
                    serv_req._ETA._ENTITYTAXACCOUNTSs[i].ENDDATE          = CopMvcUtil.ConvDateDecimal(e.TAX_ACCT[i].END_DATE);

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

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


            serv_req._EWAGNTL           = new RTTIE016_SrvRef._EWAGNTL();
            serv_req._EWAGNTL.ACCOUNTID = e.WAGE_NTL.ACCOUNT_ID;



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

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

            serv_req._EWAGNTL.PERIODX = new RTTIE016_SrvRef.PERIODX();
            serv_req._EWAGNTL.PERIODX.PERIODSpecified = CopMvcUtil.IsSpecified(e.WAGE_NTL.PERIOD);
            serv_req._EWAGNTL.PERIODX.PERIOD          = CopMvcUtil.ConvDecimal(e.WAGE_NTL.PERIOD);



            RTTIE016_SrvRef.RTTIE216Response response = _client.RTTIE216(serv_req);

            e = __Fill(response);

            return(e);
        }
Exemple #11
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);
        }
Exemple #12
0
        private static COPXmlFactory.RTTIE035new.UOFORM __RTTIE035_F_U(COPXmlFactory.RTTIE035new.UOFORM e)
        {
            RTTIE035_SrvRef.RTTIE235 serv_req = new RTTIE035_SrvRef.RTTIE235();

            serv_req._EUOL           = new RTTIE035_SrvRef._EUOL();
            serv_req._EUOL.ACCOUNTID = e.UO_ACCT.ACCOUNT_ID;
            serv_req._EUOL.VERSIONX  = e.UO_ACCT.VERSION;
            // serv_req._EUOL.PERIODX = CopMvcUtil.ConvDateDecimal("12/31/2012").ToString();
            serv_req._EUOL.PERIODX                = CopMvcUtil.ConvDateDecimal(e.UO_ACCT.PERIOD).ToString();
            serv_req._EUOL.LASTUPDATEDATEX        = CopMvcUtil.ConvDateDecimal(e.UO_ACCT.LAST_UPD_DATE).ToString();
            serv_req._EUOL.USERID                 = e.UO_ACCT.USER_ID;
            serv_req._EUOL.RECORDINGDATEX         = CopMvcUtil.ConvDateDecimal(e.UO_ACCT.RECORDING_DATE).ToString();
            serv_req._EUOL.SEQUENCENUM            = e.UO_ACCT.SEQUENCE;
            serv_req._EUOL.ADJUSTMENTREFERENCENUM = e.UO_ACCT.ADJUSTMENT_REF_NO;
            serv_req._EUOL.RATE           = CopMvcUtil.ConvNumberToDigit9(e.UO_ACCT.RATE);
            serv_req._EUOL.BRTNUMBER      = CopMvcUtil.ConvNumberToDigit9(e.UO_ACCT.BRT_NUMBER);
            serv_req._EUOL.LOCATION       = CopMvcUtil.GetString(e.UO_ACCT.LOCATION);
            serv_req._EUOL.DUEDATE        = CopMvcUtil.ConvDateDecimal(e.UO_ACCT.DUE_DATE).ToString();
            serv_req._EUOL.ASSESSEDVALUEX = e.UO_ACCT.ASSESSED_VALUE;
            serv_req._EUOL.FREQUENCY      = e.UO_ACCT.FREQUENCY;
            serv_req._EUOL.PERIODCODE     = e.UO_ACCT.PERIOD_CODE;
            serv_req._EUOL.PERIODYY       = e.UO_ACCT.PERIOD_YY;

            serv_req._EUOL.PREPARERNAME         = e.UO_ACCT.PREPARER_NAME;
            serv_req._EUOL.PREPARERPHONE        = e.UO_ACCT.PREPARER_PHONE;
            serv_req._EUOL.PREPARERPHONEEXT     = e.UO_ACCT.PREPARER_PHONE_EXT;
            serv_req._EUOL.PREPARERIPADDRESS    = e.UO_ACCT.PREPARER_IP_ADDRESS;
            serv_req._EUOL.PREPAREREMAILADDRESS = e.UO_ACCT.PREPARER_EMAIL_ADDRESS;
            serv_req._EUOL.PREPARERTYPE         = e.UO_ACCT.PREPARER_WHO;;

            serv_req._EAMTS                        = new RTTIE035_SrvRef._EAMTS();
            serv_req._EAMTS.MAXTAXX                = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.MAX_TAX);
            serv_req._EAMTS.VACANCYX               = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.VACANCY);
            serv_req._EAMTS.EXEMPTX                = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.EXEMPT);
            serv_req._EAMTS.RESIDENTIALX           = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.RESIDENTIAL);
            serv_req._EAMTS.DELINQUENTX            = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.DELINQUENT);
            serv_req._EAMTS.EDICREDITX             = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.KOZ_CREDIT);
            serv_req._EAMTS.TOTALDEDUCTIONSX       = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.TOTAL_DEDUCTIONS);
            serv_req._EAMTS.PERIODTAXX             = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.PERIOD_TAX);
            serv_req._EAMTS.DISCOUNTX              = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.DISCOUNT);
            serv_req._EAMTS.TAXDUEX                = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.TAX_DUE);
            serv_req._EAMTS.INTERESTPENALTYX       = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.INTEREST_PENALTY);
            serv_req._EAMTS.TOTALDUEX              = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.TOTAL_DUE);
            serv_req._EAMTS.DELINQUENTTENANTCOUNTX = e.UO_AMTS.DELINQUENT_TENANT_COUNT;

            serv_req._EAMTS.FIXEDEXEMPTNX = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.FIXED_EXEMPTN);
            serv_req._EAMTS.ADJUSTEDTAXX  = CopMvcUtil.ConvCurrencyToDigit(e.UO_AMTS.ADJUSTED_TAX);



            if (e.UO3_PAGE.Count > 0)
            {
                serv_req._EUO3 = new RTTIE035_SrvRef._EUO3();
                int r = 0;

                for (int s = 0; s < e.UO3_PAGE.Count; s++)
                {
                    if (e.UO3_PAGE[s].ACCOUNT_ID.Value != null)
                    {
                        r++;
                    }
                }

                if (r > 0)
                {
                    serv_req._EUO3._DELQs = new RTTIE035_SrvRef._DELQ[r];
                }
                r = 0;
                for (int i = 0; i < e.UO3_PAGE.Count; i++)
                {
                    if (e.UO3_PAGE[i].ACCOUNT_ID.Value != null)
                    {
                        serv_req._EUO3._DELQs[r] = new RTTIE035_SrvRef._DELQ();

                        serv_req._EUO3._DELQs[r].PROCESSCODED = CopMvcUtil.GetString(e.UO3_PAGE[i].PROCESS_CODE);
                        serv_req._EUO3._DELQs[r].NAMED        = CopMvcUtil.GetString(e.UO3_PAGE[i].TENANT_NAME);
                        serv_req._EUO3._DELQs[r].ACCOUNTIDD   = CopMvcUtil.GetString(e.UO3_PAGE[i].ACCOUNT_ID);
                        serv_req._EUO3._DELQs[r].ENTITYIDD    = CopMvcUtil.GetString(e.UO3_PAGE[i].TENANT_ID);
                        serv_req._EUO3._DELQs[r].DELQAMTD     = CopMvcUtil.ConvCurrencyToDigit(e.UO3_PAGE[i].AMOUNT);
                    }
                }
            }


            RTTIE035_SrvRef.RTTIE235Response response = _client.RTTIE235(serv_req);

            e = __Fill(response);

            return(e);
        }
Exemple #13
0
        private static COPXmlFactory.RTTIE010.ACCTTEMPLATE __RTTIE010_F_U(COPXmlFactory.RTTIE010.ACCTTEMPLATE e)
        {
            RTTIE210_SrvRef.RTTIE210 serv_req = new RTTIE210_SrvRef.RTTIE210();

            serv_req._EMI = new RTTIE210_SrvRef._EMI();
            serv_req._EMI._ENTITYMASTERINFO = new RTTIE210_SrvRef._ENTITYMASTERINFO();
            serv_req._EMI._ENTITYMASTERINFO.FUNCTIONCODE = e.ENTITY_INFO.FUNCTION_CODE;
            serv_req._EMI._ENTITYMASTERINFO.ENTITYID     = e.ENTITY_INFO.ENTITY_ID;
            serv_req._EMI._ENTITYMASTERINFO.ACCOUNTID    = CopMvcUtil.GetString(e.ENTITY_INFO.ACCOUNT_ID);

            serv_req._EMI._ENTITYMASTERINFO.ENTITYTYPESpecified = CopMvcUtil.IsSpecified(e.ENTITY_INFO.TYPE);
            serv_req._EMI._ENTITYMASTERINFO.ENTITYTYPE          = CopMvcUtil.GetDecimal(e.ENTITY_INFO.TYPE);

            serv_req._EMI._ENTITYMASTERINFO.NAICFEDERALCODESpecified = CopMvcUtil.IsSpecified(e.ENTITY_INFO.NAIC_CODE);
            serv_req._EMI._ENTITYMASTERINFO.NAICFEDERALCODE          = CopMvcUtil.GetDecimal(e.ENTITY_INFO.NAIC_CODE);

            serv_req._EMI._ENTITYMASTERINFO.SICFEDERALCODESpecified = CopMvcUtil.IsSpecified(e.ENTITY_INFO.SIC_CODE);
            serv_req._EMI._ENTITYMASTERINFO.SICFEDERALCODE          = CopMvcUtil.GetDecimal(e.ENTITY_INFO.SIC_CODE);

            serv_req._EMI._ENTITYMASTERINFO.BUSINESSSTARTDATESpecified = CopMvcUtil.IsSpecified(e.ENTITY_INFO.START_DATE);
            serv_req._EMI._ENTITYMASTERINFO.BUSINESSSTARTDATE          = CopMvcUtil.ConvDateDecimal(e.ENTITY_INFO.START_DATE);
            //serv_req._EMI._ENTITYMASTERINFO.BUSINESSSTARTDATE = CopMvcUtil.ConvDateDecimal("05/05/2010");



            serv_req._EMI._ENTITYMASTERINFO.ORGANIZATIONTYPESpecified = CopMvcUtil.IsSpecified(e.ENTITY_INFO.ORGTYPE);
            serv_req._EMI._ENTITYMASTERINFO.ORGANIZATIONTYPE          = CopMvcUtil.GetDecimal(e.ENTITY_INFO.ORGTYPE);

            serv_req._EMI._ENTITYMASTERINFO.BUSINESSGENDER = CopMvcUtil.GetString(e.ENTITY_INFO.GENDER);
            serv_req._EMI._ENTITYMASTERINFO.BUSINESSOTHER  = CopMvcUtil.GetString(e.ENTITY_INFO.OTHER);


            serv_req._EMI._ENTITYMASTERINFO.PINNUMBERSpecified = CopMvcUtil.IsSpecified(e.ENTITY_INFO.PIN);
            serv_req._EMI._ENTITYMASTERINFO.PINNUMBER          = CopMvcUtil.GetDecimal(e.ENTITY_INFO.PIN);

            serv_req._EMI._ENTITYMASTERINFO.PINSWITCH = CopMvcUtil.GetString(e.ENTITY_INFO.FORCEPINCHG);

            //serv_req._EMI._ENTITYMASTERINFO.for


            //serv_req._ENA1 = new RTTIE010_SrvRef._ENA1();
            if (e.NAME_ADDRESS.Count > 0)
            {
                //e.NAME_ADDRESS.Count
                int r = 0;

                for (int s = 0; s < e.NAME_ADDRESS.Count; s++)
                {
                    if (e.NAME_ADDRESS[s].ID.Value != null)
                    {
                        r++;
                    }
                }

                if (r > 0)
                {
                    serv_req._ENA1            = new RTTIE210_SrvRef._ENA1();
                    serv_req._ENA1._NAMADDR1s = new RTTIE210_SrvRef._NAMADDR1[r];
                    serv_req._ENA2            = new RTTIE210_SrvRef._ENA2();
                    serv_req._ENA2._NAMADDR2s = new RTTIE210_SrvRef._NAMADDR2[r];
                }

                r = 0;
                for (int i = 0; i < e.NAME_ADDRESS.Count; i++)
                {
                    if (e.NAME_ADDRESS[i].ID.Value != null)
                    {
                        // ENA 1
                        serv_req._ENA1._NAMADDR1s[r] = new RTTIE210_SrvRef._NAMADDR1();


                        serv_req._ENA1._NAMADDR1s[r].FUNCTIONCODE        = CopMvcUtil.GetString(e.NAME_ADDRESS[i].FUNCTION_CODE);
                        serv_req._ENA1._NAMADDR1s[r].ENTITYTYPESpecified = CopMvcUtil.IsSpecified(e.NAME_ADDRESS[i].TYPE);
                        serv_req._ENA1._NAMADDR1s[r].ENTITYTYPE          = CopMvcUtil.GetDecimal(e.NAME_ADDRESS[i].TYPE);
                        serv_req._ENA1._NAMADDR1s[r].ENTITYID            = CopMvcUtil.GetString(e.NAME_ADDRESS[i].ID);
                        serv_req._ENA1._NAMADDR1s[r].ENTITYNAME          = CopMvcUtil.GetString(e.NAME_ADDRESS[i].NAME);
                        serv_req._ENA1._NAMADDR1s[r].TRADENAME           = CopMvcUtil.GetString(e.NAME_ADDRESS[i].TRADE_NAME);

                        serv_req._ENA1._NAMADDR1s[r].ADDRESSTYPESpecified = CopMvcUtil.IsSpecified(e.NAME_ADDRESS[i].ADDRESS_TYPE);
                        serv_req._ENA1._NAMADDR1s[r].ADDRESSTYPE          = CopMvcUtil.GetDecimal(e.NAME_ADDRESS[i].ADDRESS_TYPE);

                        serv_req._ENA1._NAMADDR1s[r].RELATIONSHIPCODESpecified = CopMvcUtil.IsSpecified(e.NAME_ADDRESS[i].RELATIONSHIP_CODE);
                        serv_req._ENA1._NAMADDR1s[r].RELATIONSHIPCODE          = CopMvcUtil.GetDecimal(e.NAME_ADDRESS[i].RELATIONSHIP_CODE);


                        // ENA 2
                        serv_req._ENA2._NAMADDR2s[r] = new RTTIE210_SrvRef._NAMADDR2();

                        serv_req._ENA2._NAMADDR2s[r].ATTENTION    = CopMvcUtil.GetString(e.NAME_ADDRESS[i].ATTENTION);
                        serv_req._ENA2._NAMADDR2s[r].ADDRESSLINE1 = CopMvcUtil.GetString(e.NAME_ADDRESS[i].ADDRESS1);
                        serv_req._ENA2._NAMADDR2s[r].ADDRESSLINE2 = CopMvcUtil.GetString(e.NAME_ADDRESS[i].ADDRESS2);

                        serv_req._ENA2._NAMADDR2s[r].CITY    = CopMvcUtil.GetString(e.NAME_ADDRESS[i].CITY);
                        serv_req._ENA2._NAMADDR2s[r].STATE   = CopMvcUtil.GetString(e.NAME_ADDRESS[i].STATE);
                        serv_req._ENA2._NAMADDR2s[r].ZIPCODE = CopMvcUtil.GetString(e.NAME_ADDRESS[i].ZIP);

                        serv_req._ENA2._NAMADDR2s[r].BUSINESSPHONENUMBERSpecified = CopMvcUtil.IsSpecified(e.NAME_ADDRESS[i].WORK_PHONE);
                        serv_req._ENA2._NAMADDR2s[r].BUSINESSPHONENUMBER          = CopMvcUtil.GetDecimal(e.NAME_ADDRESS[i].WORK_PHONE);

                        serv_req._ENA2._NAMADDR2s[r].BUSINESSPHONEEXTENSION = CopMvcUtil.GetString(e.NAME_ADDRESS[i].WORK_PHONE);

                        serv_req._ENA2._NAMADDR2s[r].BUSINESSFAXSpecified = CopMvcUtil.IsSpecified(e.NAME_ADDRESS[i].WORK_FAX);
                        serv_req._ENA2._NAMADDR2s[r].BUSINESSFAX          = CopMvcUtil.GetDecimal(e.NAME_ADDRESS[i].WORK_FAX);

                        serv_req._ENA2._NAMADDR2s[r].OTHERPHONENUMBERSpecified = CopMvcUtil.IsSpecified(e.NAME_ADDRESS[i].OTHER_PHONE);
                        serv_req._ENA2._NAMADDR2s[r].OTHERPHONENUMBER          = CopMvcUtil.GetDecimal(e.NAME_ADDRESS[i].OTHER_PHONE);

                        serv_req._ENA2._NAMADDR2s[r].EMAILADDR = CopMvcUtil.GetString(e.NAME_ADDRESS[i].EMAIL);

                        serv_req._ENA2._NAMADDR2s[r].TIADRSEQUENCENUMBERSpecified = CopMvcUtil.IsSpecified(e.NAME_ADDRESS[i].TRACE_NUMBER);
                        serv_req._ENA2._NAMADDR2s[r].TIADRSEQUENCENUMBER          = CopMvcUtil.GetDecimal(e.NAME_ADDRESS[i].TRACE_NUMBER);



                        r++;
                    }
                }
            }

            //LOAD TAX ACCT s
            if (e.TAX_ACCT.Count > 0)
            {
                serv_req._ETA = new RTTIE210_SrvRef._ETA();
                serv_req._ETA._ENTITYTAXACCOUNTSs = new RTTIE210_SrvRef._ENTITYTAXACCOUNTS[e.TAX_ACCT.Count];

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

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

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

                    serv_req._ETA._ENTITYTAXACCOUNTSs[i].STARTDATESpecified = CopMvcUtil.IsSpecified(e.TAX_ACCT[i].START_DATE);
                    serv_req._ETA._ENTITYTAXACCOUNTSs[i].STARTDATE          = CopMvcUtil.ConvDateDecimal(e.TAX_ACCT[i].START_DATE);
                    // serv_req._ETA._ENTITYTAXACCOUNTSs[i].STARTDATE = CopMvcUtil.ConvDateDecimal("05/05/2010");

                    serv_req._ETA._ENTITYTAXACCOUNTSs[i].WAGMONTHLYGROSS = CopMvcUtil.GetString(e.TAX_ACCT[i].WAGE_MONTHLY_GROSS);

                    serv_req._ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION             = new RTTIE210_SrvRef.BPTNEWAPPLICATION();
                    serv_req._ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNASTATUS = CopMvcUtil.GetString(e.TAX_ACCT[i].UOL_BRT);
                    serv_req._ETA._ENTITYTAXACCOUNTSs[i].PRKID = CopMvcUtil.GetString(e.TAX_ACCT[i].PRK_ID);
                }
            }

            serv_req._ECHK         = new RTTIE210_SrvRef._ECHK();
            serv_req._ECHK._ECHECK = new RTTIE210_SrvRef._ECHECK();

            serv_req._ECHK._ECHECK.FUNCTIONCODE         = CopMvcUtil.GetString(e.ECHECK.FUNCTION_CODE);
            serv_req._ECHK._ECHECK.TRANSITROUTINGNUMBER = CopMvcUtil.GetString(e.ECHECK.ROUTING_NUMBER);
            serv_req._ECHK._ECHECK.BANKACCOUNTNUMBER    = CopMvcUtil.GetString(e.ECHECK.ACCOUNT_NUMBER);
            serv_req._ECHK._ECHECK.BANKACCOUNTTYPE      = CopMvcUtil.GetString(e.ECHECK.ACCOUNT_TYPE);


            RTTIE210_SrvRef.RTTIE210Response response = _client.RTTIE210(serv_req);

            e = __Fill(response);

            return(e);
        }