예제 #1
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);
        }
예제 #2
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);
        }