Beispiel #1
0
        private static COPXmlFactory.RTTIE029.LIQUORRETURN __Fill(RTTIE229_SrvRef.RTTIE229Response e)
        {
            COPXmlFactory.RTTIE029.LIQUORRETURN fobj = RevenueGovXMLFactory.GetLIQUORRETURN();

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

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

            //LOAD LIQUOR_INFO
            fobj.LIQUOR_INFO                   = new LIQUOR_INFO();
            fobj.LIQUOR_INFO.ACCOUNT_ID        = e._ELIQ.ACCOUNTID;
            fobj.LIQUOR_INFO.PERIOD            = CopMvcUtil.ConvDate(e._ELIQ.PERIODX);
            fobj.LIQUOR_INFO.VERSION           = e._ELIQ.VERSIONX;
            fobj.LIQUOR_INFO.RETURN_STATUS     = e._ELIQ.RETURNSTATUS;
            fobj.LIQUOR_INFO.LAST_UPD_DATE     = CopMvcUtil.ConvDate(e._ELIQ.LASTUPDATEDATEX);
            fobj.LIQUOR_INFO.USER_ID           = e._ELIQ.USERID;
            fobj.LIQUOR_INFO.RECORDING_DATE    = CopMvcUtil.ConvDate(e._ELIQ.RECORDINGDATEX);
            fobj.LIQUOR_INFO.SEQUENCE_NO       = e._ELIQ.SEQUENCENUM;
            fobj.LIQUOR_INFO.ADJUSTMENT_REF_NO = e._ELIQ.ADJUSTMENTREFERENCENUM;
            fobj.LIQUOR_INFO.RATE              = CopMvcUtil.ConvDigitToDouble9(e._ELIQ.RATE);

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



            //LOAD AMT_INFO
            fobj.AMT_INFO                 = new AMT_INFO();
            fobj.AMT_INFO.TOTAL_GROSS     = CopMvcUtil.GetDouble(e._EAMT.TOTALGROSSX).ToString();
            fobj.AMT_INFO.FOOD_EXCLUSION  = CopMvcUtil.GetDouble(e._EAMT.FOODEXCLUSIONX).ToString();
            fobj.AMT_INFO.OTHER_EXCLUSION = CopMvcUtil.GetDouble(e._EAMT.OTHEREXCLUSIONX).ToString();
            fobj.AMT_INFO.TOTAL_EXCLUSION = CopMvcUtil.ConvDigitToCurrency(e._EAMT.TOTALEXCLUSIONX);
            fobj.AMT_INFO.TAXABLE         = CopMvcUtil.GetDouble(e._EAMT.TAXABLEX).ToString();
            fobj.AMT_INFO.TOTAL_TAX       = CopMvcUtil.GetDouble(e._EAMT.TOTALTAXX).ToString();
            fobj.AMT_INFO.TAX_PAID        = CopMvcUtil.GetDouble(e._EAMT.TAXPAIDX).ToString();
            fobj.AMT_INFO.NET_TAX_DUE     = CopMvcUtil.ConvDigitToCurrency(e._EAMT.NETTAXDUEX);
            fobj.AMT_INFO.TAX_OVERPAID    = CopMvcUtil.GetDouble(e._EAMT.TAXOVERPAIDX).ToString();



            return(fobj);
        }
Beispiel #2
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            COPXmlFactory.RTTIE029.LIQUORRETURN acct;

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

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

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

            return(RevenueGovXMLFactory.GetXmlDocument(acct));
        }
Beispiel #3
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE029.LIQUORRETURN xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE029.LIQUORRETURN>(Request);

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

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }