Exemple #1
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            COPXmlFactory.RTTIE016.PAYCOUPON acct;

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

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

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

            return(RevenueGovXMLFactory.GetXmlDocument(acct));
        }
Exemple #2
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE016.PAYCOUPON xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE016.PAYCOUPON>(Request);

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

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Exemple #3
0
        private static COPXmlFactory.RTTIE016.PAYCOUPON __Fill(RTTIE016_SrvRef.RTTIE216Response e)
        {
            COPXmlFactory.RTTIE016.PAYCOUPON fobj = RevenueGovXMLFactory.GetPAYCOUPON();

            //LOAD ERRORS INTO OBJECT
            fobj.ERROR_INFO = new ERROR_INFO();

            fobj.ERROR_INFO.PROGRAM = e._SMA._SYSTEMMESSAGEAREA._PROGRAM;
            fobj.ERROR_INFO.LINE    = e._SMA._SYSTEMMESSAGEAREA.ERROR.ToString();
            fobj.ERROR_INFO.MESSAGE = e._SMA._SYSTEMMESSAGEAREA.MESSAGE;
            fobj.ERROR_INFO.ERROR   = e._SMA._SYSTEMMESSAGEAREA.ERROR.ToString();

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

            //LOAD TAX ACCT s
            fobj.TAX_ACCT = new List <TAX_ACCT>();
            for (int i = 0; i < e._ETA._ENTITYTAXACCOUNTSs.Length; i++)
            {
                fobj.TAX_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetPAYCOUPON_TAX_ACCT());
                fobj.TAX_ACCT[i].FUNC_CODE  = e._ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE;
                fobj.TAX_ACCT[i].ACCOUNT    = CopMvcUtil.GetDecimal(e._ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT).ToString();
                fobj.TAX_ACCT[i].ACCOUNT_ID = e._ETA._ENTITYTAXACCOUNTSs[i].ACCOUNTID;
                fobj.TAX_ACCT[i].START_DATE = CopMvcUtil.ConvDate(e._ETA._ENTITYTAXACCOUNTSs[i].STARTDATE);
                fobj.TAX_ACCT[i].END_DATE   = CopMvcUtil.ConvDate(e._ETA._ENTITYTAXACCOUNTSs[i].ENDDATE);
                // fobj.TAX_ACCT[i].BRT_ACCOUNT = e._ETA._ENTITYTAXACCOUNTSs[i].br
                fobj.TAX_ACCT[i].BRT_ADDRESS1   = e._ETA._ENTITYTAXACCOUNTSs[i].BRTADDRESS;
                fobj.TAX_ACCT[i].FREQUENCY_CODE = e._ETA._ENTITYTAXACCOUNTSs[i].FREQUENCY;
            }

            //LOAD WAGE_NTL
            fobj.WAGE_NTL                        = new WAGE_NTL();
            fobj.WAGE_NTL.ACCOUNT_ID             = e._EWAGNTL.ACCOUNTID;
            fobj.WAGE_NTL.PERIOD                 = CopMvcUtil.ConvDate(e._EWAGNTL.PERIODX.PERIOD);
            fobj.WAGE_NTL.FREQUENCY_CODE         = e._EWAGNTL.FREQUENCY;
            fobj.WAGE_NTL.ADJ_REF_NO             = e._EWAGNTL.ADJREFNO;
            fobj.WAGE_NTL.PREPARER_NAME          = e._EWAGNTL.PREPARERNAME;
            fobj.WAGE_NTL.PREPARER_PHONE         = e._EWAGNTL.PREPARERPHONE;
            fobj.WAGE_NTL.PREPARER_PHONE_EXT     = e._EWAGNTL.PREPARERPHONEEXT;
            fobj.WAGE_NTL.PREPARER_IP_ADDRESS    = e._EWAGNTL.PREPARERIPADDRESS;
            fobj.WAGE_NTL.PREPARER_EMAIL_ADDRESS = e._EWAGNTL.PREPAREREMAIL;
            fobj.WAGE_NTL.PREPARER_WHO           = e._EWAGNTL.PREPARERTYPE;

            ////LOAD COUPON_FORM
            //fobj.COUPON_FORM = new COUPON_FORM();
            //fobj.COUPON_FORM.CPN_ACCOUNT =
            //fobj.COUPON_FORM.CPN_ACCOUNT_TYPE = CopMvcUtil.ConvDate(e._EWAGNTL.PERIODX.PERIOD);
            //fobj.COUPON_FORM.CPN_NAME = e._EWAGNTL.FREQUENCY;
            //fobj.COUPON_FORM.CPN_ADDR = e._EWAGNTL.ADJREFNO;
            //fobj.COUPON_FORM.CPN_ADDR2 = e._EWAGNTL.PREPARERNAME;
            //fobj.COUPON_FORM.CPN_ADDR3 = e._EWAGNTL.PREPARERPHONE;
            //fobj.COUPON_FORM.CPN_CITY = e._EWAGNTL.PREPARERPHONEEXT;
            //fobj.COUPON_FORM.CPN_STATE = e._EWAGNTL.PREPARERIPADDRESS;
            //fobj.COUPON_FORM.CPN_ZIP_CODE = e._EWAGNTL.PREPAREREMAIL;
            //fobj.COUPON_FORM.CPN_SCAN = e._EWAGNTL.PREPARERTYPE;
            //fobj.COUPON_FORM.CPN_PERIOD = e._EWAGNTL.PREPARERIPADDRESS;
            //fobj.COUPON_FORM.CPN_YEAR = e._EWAGNTL.PREPAREREMAIL;
            //fobj.COUPON_FORM.CPN_FORM = e._EWAGNTL.PREPARERTYPE;

            //LOAD LOGIN_FROM
            //fobj.LOGIN_FROM = new LOGIN_FROM();
            //fobj.LOGIN_FROM.NTL_ONLY = e.;

            return(fobj);
        }
Exemple #4
0
        private static COPXmlFactory.RTTIE016.PAYCOUPON __Fill(RTTIE016_SrvRef.TT016E00Response_SMA _SMA, RTTIE016_SrvRef.TT016E00Response_EMI _EMI, RTTIE016_SrvRef.TT016E00Response_ETA _ETA, RTTIE016_SrvRef.TT016E00Response_EWAGNTL _EWAGNTL)
        {
            COPXmlFactory.RTTIE016.PAYCOUPON fobj = RevenueGovXMLFactory.GetPAYCOUPON();

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

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

            //LOAD TAX ACCT s
            fobj.TAX_ACCT = new List <TAX_ACCT>();
            if (_ETA._ENTITYTAXACCOUNTSs != null)
            {
                for (int i = 0; i < _ETA._ENTITYTAXACCOUNTSs.Length; i++)
                {
                    fobj.TAX_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetPAYCOUPON_TAX_ACCT());
                    fobj.TAX_ACCT[i].FUNC_CODE      = _ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE;
                    fobj.TAX_ACCT[i].ACCOUNT        = CopMvcUtil.GetDecimal(_ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT).ToString();
                    fobj.TAX_ACCT[i].ACCOUNT_ID     = _ETA._ENTITYTAXACCOUNTSs[i].ACCOUNTID;
                    fobj.TAX_ACCT[i].START_DATE     = CopMvcUtil.ConvDate(_ETA._ENTITYTAXACCOUNTSs[i].STARTDATE);
                    fobj.TAX_ACCT[i].END_DATE       = CopMvcUtil.ConvDate(_ETA._ENTITYTAXACCOUNTSs[i].ENDDATE);
                    fobj.TAX_ACCT[i].BRT_ADDRESS1   = _ETA._ENTITYTAXACCOUNTSs[i].BRTADDRESS;
                    fobj.TAX_ACCT[i].FREQUENCY_CODE = _ETA._ENTITYTAXACCOUNTSs[i].FREQUENCY;
                }
            }

            //LOAD WAGE_NTL
            fobj.WAGE_NTL = new WAGE_NTL();
            if (_EWAGNTL.ACCOUNTID != null)
            {
                fobj.WAGE_NTL.ACCOUNT_ID             = _EWAGNTL.ACCOUNTID;
                fobj.WAGE_NTL.PERIOD                 = CopMvcUtil.ConvDate(_EWAGNTL.PERIODX.PERIOD);
                fobj.WAGE_NTL.FREQUENCY_CODE         = _EWAGNTL.FREQUENCY;
                fobj.WAGE_NTL.ADJ_REF_NO             = _EWAGNTL.ADJREFNO;
                fobj.WAGE_NTL.PREPARER_NAME          = _EWAGNTL.PREPARERNAME;
                fobj.WAGE_NTL.PREPARER_PHONE         = _EWAGNTL.PREPARERPHONE;
                fobj.WAGE_NTL.PREPARER_PHONE_EXT     = _EWAGNTL.PREPARERPHONEEXT;
                fobj.WAGE_NTL.PREPARER_IP_ADDRESS    = _EWAGNTL.PREPARERIPADDRESS;
                fobj.WAGE_NTL.PREPARER_EMAIL_ADDRESS = _EWAGNTL.PREPAREREMAIL;
                fobj.WAGE_NTL.PREPARER_WHO           = _EWAGNTL.PREPARERTYPE;
            }
            else
            {
                fobj.WAGE_NTL.ACCOUNT_ID             = "";
                fobj.WAGE_NTL.PERIOD                 = "";
                fobj.WAGE_NTL.FREQUENCY_CODE         = "";
                fobj.WAGE_NTL.ADJ_REF_NO             = "";
                fobj.WAGE_NTL.PREPARER_NAME          = "";
                fobj.WAGE_NTL.PREPARER_PHONE         = "";
                fobj.WAGE_NTL.PREPARER_PHONE_EXT     = "";
                fobj.WAGE_NTL.PREPARER_IP_ADDRESS    = "";
                fobj.WAGE_NTL.PREPARER_EMAIL_ADDRESS = "";
                fobj.WAGE_NTL.PREPARER_WHO           = "";
            }
            //LOAD COUPON_FORM
            fobj.COUPON_FORM = new COUPON_FORM();
            if (_EWAGNTL.ACCOUNTID != null)
            {
                fobj.COUPON_FORM.CPN_ACCOUNT      = "";
                fobj.COUPON_FORM.CPN_ACCOUNT_TYPE = "";
                fobj.COUPON_FORM.CPN_NAME         = "";
                fobj.COUPON_FORM.CPN_ADDR         = "";
                fobj.COUPON_FORM.CPN_ADDR2        = "";
                fobj.COUPON_FORM.CPN_ADDR3        = "";
                fobj.COUPON_FORM.CPN_CITY         = "";
                fobj.COUPON_FORM.CPN_STATE        = "";
                fobj.COUPON_FORM.CPN_ZIP_CODE     = "";
                fobj.COUPON_FORM.CPN_SCAN         = "";
                fobj.COUPON_FORM.CPN_PERIOD       = "";
                fobj.COUPON_FORM.CPN_YEAR         = "";
                fobj.COUPON_FORM.CPN_FORM         = "";
            }

            return(fobj);
        }