Beispiel #1
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE027.WAGERETURN xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE027.WAGERETURN>(Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo =
                    RevenueGovXMLFactory.GetWageReturn();

                xo.ERROR_INFO         = new ERROR_INFO();
                xo.ERROR_INFO.ERROR   = 11.ToString();
                xo.ERROR_INFO.MESSAGE = ex.StackTrace;
            }

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Beispiel #2
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            COPXmlFactory.RTTIE027.WAGERETURN acct;

            try
            {
                string InnerXML = Request.InnerXml;
                acct = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE027.WAGERETURN>(InnerXML);

                acct = __Call(acct);
            }
            catch (Exception ex)
            {
                acct = RevenueGovXMLFactory.GetWageReturn();

                acct.ERROR_INFO         = new ERROR_INFO();
                acct.ERROR_INFO.ERROR   = 11.ToString();
                acct.ERROR_INFO.MESSAGE = ex.StackTrace;
            }

            return(RevenueGovXMLFactory.GetXmlDocument(acct));
        }
Beispiel #3
0
        private static COPXmlFactory.RTTIE027.WAGERETURN _Fill(WAGE_RTTIE027_SrvRef.TT027E00Response_SMA _SMA, WAGE_RTTIE027_SrvRef.TT027E00Response_EWAG _EWAG, WAGE_RTTIE027_SrvRef.TT027E00Response_EAMT _EAMT, WAGE_RTTIE027_SrvRef.TT027E00Response_SERR _SERR)
        {
            COPXmlFactory.RTTIE027.WAGERETURN fobj = RevenueGovXMLFactory.GetWageReturn();

            //LOAD ERRORS INTO OBJECT
            fobj.ERROR_INFO = new ERROR_INFO();
            if (_SMA != null)
            {
                fobj.ERROR_INFO.PROGRAM = _SMA._PROGRAM;
                fobj.ERROR_INFO.LINE    = _SMA.ERRORLINE.ToString();
                fobj.ERROR_INFO.MESSAGE = _SMA.MESSAGE;
                fobj.ERROR_INFO.ERROR   = _SMA.SYSTEMERROR.ToString();
            }

            //LOAD WAGE_INFO
            fobj.WAGE_INFO = new WAGE_INFO();

            fobj.WAGE_INFO.ACCOUNT_ID        = _EWAG.ACCOUNTID;
            fobj.WAGE_INFO.PERIOD            = CopMvcUtil.ConvDate(_EWAG.PERIODX);
            fobj.WAGE_INFO.VERSION           = _EWAG.VERSIONX;
            fobj.WAGE_INFO.SEQUENCE          = _EWAG.SEQUENCENUM;
            fobj.WAGE_INFO.RETURN_STATUS     = _EWAG.RETURNSTATUS;
            fobj.WAGE_INFO.LAST_UPD_DATE     = CopMvcUtil.ConvDate(_EWAG.LASTUPDATEDATEX);
            fobj.WAGE_INFO.DOCUMENT_CONTROL  = _EWAG.DOCUMENTCONTROLX;
            fobj.WAGE_INFO.ADJ_REFNO_CONTROL = _EWAG.ADJREFNO;
            //fobj.WAGE_INFO.ENTITY_ID=e._EWA

            fobj.WAGE_INFO.NO_OF_NONRESIDENTS = CopMvcUtil.ConvDigitToInt(_EWAG.NUMBEROFNONRESIDENTSX);

            fobj.WAGE_INFO.NO_OF_RESIDENTS = CopMvcUtil.ConvDigitToInt(_EWAG.NUMBEROFRESIDENTSX);
            fobj.WAGE_INFO.PHILA_EMPLOYEES = CopMvcUtil.ConvDigitToInt(_EWAG.PHILAEMPLOYEESX);
            fobj.WAGE_INFO.TOTAL_EMPLOYEES = CopMvcUtil.ConvDigitToInt(_EWAG.TOTALEMPLOYEESX);

            fobj.WAGE_INFO.RESTAX_A    = CopMvcUtil.ConvDigitToDouble9(_EWAG.RESRATEA);
            fobj.WAGE_INFO.RESTAX_B    = CopMvcUtil.ConvDigitToDouble9(_EWAG.RESRATEB);
            fobj.WAGE_INFO.NONRESTAX_A = CopMvcUtil.ConvDigitToDouble9(_EWAG.NONRATEA);
            fobj.WAGE_INFO.NONRESTAX_B = CopMvcUtil.ConvDigitToDouble9(_EWAG.NONRATEB);
            fobj.WAGE_INFO.FREQUENCY   = _EWAG.FREQUENCY;

            fobj.WAGE_INFO.DUE_DATE = CopMvcUtil.ConvDate(_EWAG.DUEDATE);

            fobj.WAGE_INFO.PREPARER_NAME          = _EWAG.PREPARERNAME;
            fobj.WAGE_INFO.PREPARER_PHONE         = Convert.ToString(_EWAG.PREPARERPHONE);
            fobj.WAGE_INFO.PREPARER_PHONE_EXT     = _EWAG.PREPARERPHONEEXT;
            fobj.WAGE_INFO.PREPARER_IP_ADDRESS    = _EWAG.PREPARERIPADDRESS;
            fobj.WAGE_INFO.PREPARER_EMAIL_ADDRESS = _EWAG.PREPAREREMAILADDRESS;
            fobj.WAGE_INFO.PREPARER_WHO           = _EWAG.PREPARERTYPE;


            //LOAD AMT_INFO
            fobj.AMT_INFO = new AMT_INFO();

            fobj.AMT_INFO.GROSS_COMP          = CopMvcUtil.ConvDigitToCurrency(_EAMT.GROSSCOMPENSATIONX).ToString();
            fobj.AMT_INFO.TIPS_WAGES          = CopMvcUtil.ConvDigitToCurrency(_EAMT.TIPSWAGESX).ToString();
            fobj.AMT_INFO.NON_TAXABLE_COMP    = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONTAXABLECOMPX).ToString();
            fobj.AMT_INFO.NET_COMP            = CopMvcUtil.ConvDigitToCurrency(_EAMT.NETCOMPENSATIONX).ToString();
            fobj.AMT_INFO.RESIDENT_PAYROLL_A  = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTPAYROLLAX);
            fobj.AMT_INFO.RESIDENT_TAX_DUE_A  = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTTAXDUEAX).ToString();
            fobj.AMT_INFO.RESIDENT_PAYROLL_B  = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTPAYROLLBX).ToString();
            fobj.AMT_INFO.RESIDENT_TAX_DUE_B  = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTTAXDUEBX).ToString();
            fobj.AMT_INFO.NON_RES_PAYROLL_A   = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESPAYROLLAX);
            fobj.AMT_INFO.NON_RES_TAX_DUE_A   = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESTAXDUEAX).ToString();
            fobj.AMT_INFO.NON_RES_PAYROLL_B   = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESPAYROLLBX).ToString();
            fobj.AMT_INFO.NON_RES_TAX_DUE_B   = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESTAXDUEBX).ToString();
            fobj.AMT_INFO.TOTAL_GROSS_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.TOTALGROSSTAXDUEX);
            fobj.AMT_INFO.TAX_PAID            = CopMvcUtil.ConvDigitToCurrency(_EAMT.TAXPAIDX);
            fobj.AMT_INFO.TAX_DUE             = CopMvcUtil.ConvDigitToCurrency(_EAMT.TAXDUEX);
            fobj.AMT_INFO.TAX_OVERPAID        = CopMvcUtil.ConvDigitToCurrency(_EAMT.TAXOVERPAIDX);
            fobj.AMT_INFO.POSTING_DATE        = CopMvcUtil.ConvDate(_EAMT.POSTINGDATEX);
            fobj.AMT_INFO.FILING_DATE         = CopMvcUtil.ConvDate(_EAMT.FILINGDATEX);
            fobj.AMT_INFO.USER_ID             = _EAMT.USERID;



            return(fobj);
        }