Example #1
0
        //private static COPXmlFactory.RTTIE030_2014.BPTlfReturn __RTTIE030_F_I(COPXmlFactory.RTTIE030_2014.BPTlfReturn e)
        private static COPXmlFactory.RTTIE030_2014.BPTlfReturn __RTTIE030_F_I(string ReplyXMLPath)
        {
            //RTTIE230_SrvRef.RTTIE230 serv_req = new RTTIE230_SrvRef.RTTIE230();

            //serv_req._ELFBPT = new RTTIE230_SrvRef._ELFBPT();

            //serv_req._ELFBPT.ACCOUNTID = e.BPT_INFO.ACCOUNT_ID;
            //serv_req._ELFBPT.PERIODX = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.PERIOD);
            //serv_req._ELFBPT.RETURNSTATUS = e.BPT_INFO.RETURN_STATUS;

            //RTTIE230_SrvRef.RTTIE230Response response = _client.RTTIE230(serv_req);

            //e = __Fill(response);

            //return e;
            CopMvcUtil utl = new CopMvcUtil();

            string xmlstring = utl.GetXMLString(ReplyXMLPath);

            COPXmlFactory.RTTIE030_2014.BPTlfReturn acct;

            acct = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE030_2014.BPTlfReturn>(
                xmlstring);


            return(acct);
        }
Example #2
0
        private static c1match __Call(c1match e)
        {
            string Code1response;

            if (e.Address2.Value == null)
            {
                e.Address2 = string.Empty;
            }
            Code1response = _client.Code1(e.Address1, e.Address2, e.Zip);

            e = RevenueGovXMLFactory.GetObject <COPXmlFactory.Code1AddressCheck.c1match>(Code1response);
            return(e);
        }
Example #3
0
        private static COPXmlFactory.RTTIE039_2015.NPTRETURN __RTTIE039_F_I(string ReplyXMLPath)
        {
            //Read from XML file and return the object

            CopMvcUtil utl = new CopMvcUtil();

            string xmlstring = utl.GetXMLString(ReplyXMLPath);

            COPXmlFactory.RTTIE039_2015.NPTRETURN e;

            e = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE039_2015.NPTRETURN>(
                xmlstring);


            return(e);
        }
Example #4
0
        private static COPXmlFactory.RTTIE010.ACCTTEMPLATE __RTTIE010_F_I(string ReplyXMLPath)
        {
            //Read from XML file and return the object

            CopMvcUtil utl = new CopMvcUtil();

            string xmlstring = utl.GetXMLString(ReplyXMLPath);

            COPXmlFactory.RTTIE010.ACCTTEMPLATE acct;

            acct = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE010.ACCTTEMPLATE>(
                xmlstring);


            return(acct);
        }
Example #5
0
        //private static COPXmlFactory.RTTIE037_2014.BPTezReturn __RTTIE037_F_I(COPXmlFactory.RTTIE037_2014.BPTezReturn e)
        //{
        //    RTTIE237_SrvRef.RTTIE237 serv_req = new RTTIE237_SrvRef.RTTIE237();

        //    serv_req._EBPT = new RTTIE237_SrvRef._EBPT();

        //    serv_req._EBPT.ACCOUNTID = e.BPT_INFO.ACCOUNT_ID;
        //    serv_req._EBPT.PERIODX = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.PERIOD);
        //    serv_req._EBPT.RETURNSTATUS = e.BPT_INFO.RETURN_STATUS;
        //    serv_req._EBPT.PREPARERPHONESpecified = true;

        //    RTTIE237_SrvRef.RTTIE237Response response = _client.RTTIE237(serv_req);

        //    e = __Fill(response);

        //    return e;

        //}

        private static COPXmlFactory.RTTIE037_2014.BPTezReturn __RTTIE037_F_I(string ReplyXMLPath)
        {
            //Read from XML file and return the object

            CopMvcUtil utl = new CopMvcUtil();

            string xmlstring = utl.GetXMLString(ReplyXMLPath);

            COPXmlFactory.RTTIE037_2014.BPTezReturn sch;

            sch = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE037_2014.BPTezReturn>(
                xmlstring);


            return(sch);
        }
Example #6
0
        //private static COPXmlFactory.RTTIE036.SCHOOLRETURN __RTTIE036_F_I(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.PERIODX = CopMvcUtil.ConvDateDecimal(e.SCHOOL_INFO.PERIOD).ToString();
        //    serv_req._ESIT.RETURNSTATUS = e.SCHOOL_INFO.RETURN_STATUS;

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

        //    e = _Fill(response);

        //    return e;
        //}
        private static COPXmlFactory.RTTIE036.SCHOOLRETURN __RTTIE036_F_I(string ReplyXMLPath)
        {
            //Read from XML file and return the object

            CopMvcUtil utl = new CopMvcUtil();

            string xmlstring = utl.GetXMLString(ReplyXMLPath);

            COPXmlFactory.RTTIE036.SCHOOLRETURN sch;

            sch = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE036.SCHOOLRETURN>(
                xmlstring);


            return(sch);
        }
Example #7
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            XmlDocument xm = new XmlDocument();

            COPXmlFactory.Code1AddressCheck.c1match xo;

            try
            {
                string InnerXML = Request.InnerXml;
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.Code1AddressCheck.c1match>(InnerXML);
                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo         = RevenueGovXMLFactory.GetCode1AddressCheck();
                xo.Message = ex.Message;
            }
            return(RevenueGovXMLFactory.GetXmlDocument(xo));
        }
Example #8
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE030_2014.BPTlfReturn xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE030_2014.BPTlfReturn>(Request);

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

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Example #9
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            COPXmlFactory.RTTIE035.UOFORM acct;

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

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

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

            return(RevenueGovXMLFactory.GetXmlDocument(acct));
        }
Example #10
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE028.TOBACCORETURN xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE028.TOBACCORETURN>(Request);

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

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Example #11
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE031.LossCarryForward xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE031.LossCarryForward>(Request);

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

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Example #12
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));
        }
Example #13
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));
        }
Example #14
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE010.ACCTTEMPLATE xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE010.ACCTTEMPLATE>(
                    Request);

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

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }