최초커밋

This commit is contained in:
2025-09-29 17:55:08 +09:00
parent 90af30c0d0
commit e39813395a
3334 changed files with 338522 additions and 0 deletions

689
barobill/BaroService_TI.asp Normal file
View File

@@ -0,0 +1,689 @@
<%
'================================================================================================
'<27>ٷκ<D9B7> <20><><EFBFBD>ڼ<EFBFBD><DABC>ݰ<EFBFBD><DDB0>꼭 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'version : 3.8 (2015-10)
'
'<27>ٷκ<D9B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ
'http://dev.barobill.co.kr/
'================================================================================================
Class BaroService_TI
Private BAROSERVICE_URL
'------------------------------------------------------------------------------------------------
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
'------------------------------------------------------------------------------------------------
Private Sub Class_Initialize()
'------------------------------------------------------------------------------------------------
'<27>ٷκ<D9B7> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(WebService Reference) URL
'BAROSERVICE_URL = "http://testws.baroservice.com/TI.asmx?WSDL" '<27>׽<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
BAROSERVICE_URL = "http://ws.baroservice.com/TI.asmx?WSDL" '<27>Ǽ<EFBFBD><C7BC>񽺿<EFBFBD>
End Sub
'------------------------------------------------------------------------------------------------
' <20>Ҹ<EFBFBD><D2B8><EFBFBD>
'------------------------------------------------------------------------------------------------
Private Sub Class_Terminate()
BAROSERVICE_URL = ""
End Sub
'------------------------------------------------------------------------------------------------
' <20><><EFBFBD><EFBFBD>
'------------------------------------------------------------------------------------------------
'SOAP <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
Private Function BaroService_SOAPCALL(ByVal FunctionName, ByVal SOAPBODY)
Set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlHTTP.open "POST", BAROSERVICE_URL, False
xmlHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
xmlHTTP.setRequestHeader "SOAPAction", "http://ws.baroservice.com/" & FunctionName
xmlHTTP.send _
"<?xml version=""1.0"" encoding=""utf-8""?>" & _
"<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
" <soap:Body>" & _
SOAPBODY & _
" </soap:Body>" & _
"</soap:Envelope>"
If xmlHTTP.status <> 200 Then
BaroService_SOAPCALL = ""
Exit Function
End If
BaroService_SOAPCALL = xmlHTTP.responsetext
End Function
'Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ġȯ
Private Function ReplaceSpecialString(ByVal Str)
If IsNull(Str) Then
ReplaceSpecialString = ""
Exit Function
End If
Output = Replace(Str,"&","&amp;")
Output = Replace(Output,"<","&lt;")
Output = Replace(Output,">","&gt;")
ReplaceSpecialString = Output
End Function
'<27><><EFBFBD><EFBFBD> <20><> <20><>ȯ
Private Function GetNodeText(ByVal Node, ByVal Path)
If Node is nothing Then
GetNodeText = ""
Else
Set CheckNode = Node.selectsinglenode(Path)
If Not CheckNode Is Nothing Then
GetNodeText = CheckNode.text
Else
GetNodeText = ""
End If
End If
End Function
'<27><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ȯ
Public Function GetErrString(ByVal CERTKEY, ByVal ErrCode)
If ErrCode = "-9999" Then
GetErrString = "SOAP<41><50><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br><br>1. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>URL<52><4C> Ȯ<><C8AE><EFBFBD>Ͻʽÿ<CABD>.<br>2. ȣ<><C8A3><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD> <20>Ķ<EFBFBD><C4B6><EFBFBD><EFBFBD>͸<EFBFBD> Ȯ<><C8AE><EFBFBD>Ͻʽÿ<CABD>."
Else
SOAPBODY = _
" <GetErrString xmlns=""http://ws.baroservice.com/"">" & _
" <CERTKEY>" & CERTKEY & "</CERTKEY>" & _
" <ErrCode>" & ErrCode & "</ErrCode>" & _
" </GetErrString>"
Result = BaroService_SOAPCALL("GetErrString",SOAPBODY)
If Result <> "" Then
Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument")
xmlDoc.Loadxml(Result)
GetErrString = xmldoc.selectsinglenode("//GetErrStringResult").text
Else
GetErrString = "SOAP<41><50><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><br><br>1. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>URL<52><4C> Ȯ<><C8AE><EFBFBD>Ͻʽÿ<CABD>.<br>2. ȣ<><C8A3><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD> <20>Ķ<EFBFBD><C4B6><EFBFBD><EFBFBD>͸<EFBFBD> Ȯ<><C8AE><EFBFBD>Ͻʽÿ<CABD>."
End If
End If
End Function
'Ping
Public Function Ping()
SOAPBODY = _
" <Ping xmlns=""http://ws.baroservice.com/""/>"
Result = BaroService_SOAPCALL("Ping",SOAPBODY)
If Result <> "" Then
Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument")
xmlDoc.Loadxml(Result)
Ping = Result
Else
Ping = "-9999"
End If
End Function
'------------------------------------------------------------------------------------------------
' <20><><EFBFBD>ڼ<EFBFBD><DABC>ݰ<EFBFBD><DDB0>꼭 <20><><EFBFBD><EFBFBD> API
'------------------------------------------------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>NK
Public Function GetTaxInvoiceNK(ByVal CERTKEY, ByVal CorpNum, ByVal NTSConfirmNum)
SOAPBODY = _
" <GetTaxInvoiceNK xmlns=""http://ws.baroservice.com/"">" & _
" <CERTKEY>" & CERTKEY & "</CERTKEY>" & _
" <CorpNum>" & ReplaceSpecialString(CorpNum) & "</CorpNum>" & _
" <NTSConfirmNum>" & ReplaceSpecialString(NTSConfirmNum) & "</NTSConfirmNum>" & _
" </GetTaxInvoiceNK>"
Result = BaroService_SOAPCALL("GetTaxInvoiceNK",SOAPBODY)
Dim clsTI
Set clsTI = New TaxInvoice
If Result <> "" Then
Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument")
xmlDoc.Loadxml(Result)
Set NodeList = xmlDoc.selectNodes("//GetTaxInvoiceNKResult")
If NodeList.length > 0 Then
clsTI.InvoiceKey = GetNodeText(NodeList(0),"./InvoiceKey")
clsTI.InvoiceeASPEmail = GetNodeText(NodeList(0),"./InvoiceeASPEmail")
clsTI.IssueDirection = GetNodeText(NodeList(0),"./IssueDirection")
clsTI.TaxInvoiceType = GetNodeText(NodeList(0),"./TaxInvoiceType")
clsTI.TaxType = GetNodeText(NodeList(0),"./TaxType")
clsTI.TaxCalcType = GetNodeText(NodeList(0),"./TaxCalcType")
clsTI.PurposeType = GetNodeText(NodeList(0),"./PurposeType")
clsTI.ModifyCode = GetNodeText(NodeList(0),"./ModifyCode")
clsTI.Kwon = GetNodeText(NodeList(0),"./Kwon")
clsTI.Ho = GetNodeText(NodeList(0),"./Ho")
clsTI.SerialNum = GetNodeText(NodeList(0),"./SerialNum")
clsTI.Cash = GetNodeText(NodeList(0),"./Cash")
clsTI.ChkBill = GetNodeText(NodeList(0),"./ChkBill")
clsTI.Note = GetNodeText(NodeList(0),"./Note")
clsTI.Credit = GetNodeText(NodeList(0),"./Credit")
clsTI.WriteDate = GetNodeText(NodeList(0),"./WriteDate")
clsTI.AmountTotal = GetNodeText(NodeList(0),"./AmountTotal")
clsTI.TaxTotal = GetNodeText(NodeList(0),"./TaxTotal")
clsTI.TotalAmount = GetNodeText(NodeList(0),"./TotalAmount")
clsTI.Remark1 = GetNodeText(NodeList(0),"./Remark1")
clsTI.Remark2 = GetNodeText(NodeList(0),"./Remark2")
clsTI.Remark3 = GetNodeText(NodeList(0),"./Remark3")
Set clsTI.InvoicerParty = New InvoiceParty
Set NodeInvoicerList = xmlDoc.selectNodes("//InvoicerParty")
clsTI.InvoicerParty.MgtNum = GetNodeText(NodeInvoicerList(0),"./MgtNum")
clsTI.InvoicerParty.CorpNum = GetNodeText(NodeInvoicerList(0),"./CorpNum")
clsTI.InvoicerParty.TaxRegID = GetNodeText(NodeInvoicerList(0),"./TaxRegID")
clsTI.InvoicerParty.CorpName = GetNodeText(NodeInvoicerList(0),"./CorpName")
clsTI.InvoicerParty.CEOName = GetNodeText(NodeInvoicerList(0),"./CEOName")
clsTI.InvoicerParty.Addr = GetNodeText(NodeInvoicerList(0),"./Addr")
clsTI.InvoicerParty.BizClass = GetNodeText(NodeInvoicerList(0),"./BizClass")
clsTI.InvoicerParty.BizType = GetNodeText(NodeInvoicerList(0),"./BizType")
clsTI.InvoicerParty.ContactID = GetNodeText(NodeInvoicerList(0),"./ContactID")
clsTI.InvoicerParty.ContactName = GetNodeText(NodeInvoicerList(0),"./ContactName")
clsTI.InvoicerParty.TEL = GetNodeText(NodeInvoicerList(0),"./TEL")
clsTI.InvoicerParty.HP = GetNodeText(NodeInvoicerList(0),"./HP")
clsTI.InvoicerParty.Email = GetNodeText(NodeInvoicerList(0),"./Email")
Set clsTI.InvoiceeParty = New InvoiceParty
Set NodeInvoiceeList = xmlDoc.selectNodes("//InvoiceeParty")
clsTI.InvoiceeParty.MgtNum = GetNodeText(NodeInvoiceeList(0),"./MgtNum")
clsTI.InvoiceeParty.CorpNum = GetNodeText(NodeInvoiceeList(0),"./CorpNum")
clsTI.InvoiceeParty.TaxRegID = GetNodeText(NodeInvoiceeList(0),"./TaxRegID")
clsTI.InvoiceeParty.CorpName = GetNodeText(NodeInvoiceeList(0),"./CorpName")
clsTI.InvoiceeParty.CEOName = GetNodeText(NodeInvoiceeList(0),"./CEOName")
clsTI.InvoiceeParty.Addr = GetNodeText(NodeInvoiceeList(0),"./Addr")
clsTI.InvoiceeParty.BizClass = GetNodeText(NodeInvoiceeList(0),"./BizClass")
clsTI.InvoiceeParty.BizType = GetNodeText(NodeInvoiceeList(0),"./BizType")
clsTI.InvoiceeParty.ContactID = GetNodeText(NodeInvoiceeList(0),"./ContactID")
clsTI.InvoiceeParty.ContactName = GetNodeText(NodeInvoiceeList(0),"./ContactName")
clsTI.InvoiceeParty.TEL = GetNodeText(NodeInvoiceeList(0),"./TEL")
clsTI.InvoiceeParty.HP = GetNodeText(NodeInvoiceeList(0),"./HP")
clsTI.InvoiceeParty.Email = GetNodeText(NodeInvoiceeList(0),"./Email")
Set clsTI.BrokerParty = New InvoiceParty
Set NodeBrokerList = xmlDoc.selectNodes("//BrokerParty")
clsTI.BrokerParty.MgtNum = GetNodeText(NodeBrokerList(0),"./MgtNum")
clsTI.BrokerParty.CorpNum = GetNodeText(NodeBrokerList(0),"./CorpNum")
clsTI.BrokerParty.TaxRegID = GetNodeText(NodeBrokerList(0),"./TaxRegID")
clsTI.BrokerParty.CorpName = GetNodeText(NodeBrokerList(0),"./CorpName")
clsTI.BrokerParty.CEOName = GetNodeText(NodeBrokerList(0),"./CEOName")
clsTI.BrokerParty.Addr = GetNodeText(NodeBrokerList(0),"./Addr")
clsTI.BrokerParty.BizClass = GetNodeText(NodeBrokerList(0),"./BizClass")
clsTI.BrokerParty.BizType = GetNodeText(NodeBrokerList(0),"./BizType")
clsTI.BrokerParty.ContactID = GetNodeText(NodeBrokerList(0),"./ContactID")
clsTI.BrokerParty.ContactName = GetNodeText(NodeBrokerList(0),"./ContactName")
clsTI.BrokerParty.TEL = GetNodeText(NodeBrokerList(0),"./TEL")
clsTI.BrokerParty.HP = GetNodeText(NodeBrokerList(0),"./HP")
clsTI.BrokerParty.Email = GetNodeText(NodeBrokerList(0),"./Email")
Set NodeItemList = xmldoc.selectNodes("//TaxInvoiceTradeLineItem")
If NodeItemList.length > 0 Then
Dim ItemList(), clsItem
ReDim ItemList(NodeItemList.length - 1)
For i = 0 To NodeItemList.length - 1
Set clsItem = New TaxInvoiceTradeLineItem
clsItem.PurchaseExpiry = GetNodeText(NodeItemList(i), "./PurchaseExpiry")
clsItem.Name = GetNodeText(NodeItemList(i), "./Name")
clsItem.Information = GetNodeText(NodeItemList(i), "./Information")
clsItem.ChargeableUnit = GetNodeText(NodeItemList(i), "./ChargeableUnit")
clsItem.UnitPrice = GetNodeText(NodeItemList(i), "./UnitPrice")
clsItem.Amount = GetNodeText(NodeItemList(i), "./Amount")
clsItem.Tax = GetNodeText(NodeItemList(i), "./Tax")
clsItem.Description = GetNodeText(NodeItemList(i), "./Description")
Set ItemList(i) = clsItem
Next
clsTI.TaxInvoiceTradeLineItems = ItemList
Else
clsTI.TaxInvoiceTradeLineItems = Null
End If
End If
Set GetTaxInvoiceNK = clsTI
Else
Set GetTaxInvoiceNK = clsTI
End If
End Function
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD>뺸<EFBFBD><EBBAB8> <20>˾<EFBFBD> URL (<28><><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD>ι<EFBFBD>ȣ)
Public Function GetTaxInvoicePopUpURLNK(ByVal CERTKEY, ByVal CorpNum, ByVal NTSConfirmNum, ByVal UserID, ByVal PWD)
SOAPBODY = _
" <GetTaxInvoicePopUpURLNK xmlns=""http://ws.baroservice.com/"">" & _
" <CERTKEY>" & CERTKEY & "</CERTKEY>" & _
" <CorpNum>" & ReplaceSpecialString(CorpNum) & "</CorpNum>" & _
" <NTSConfirmNum>" & ReplaceSpecialString(NTSConfirmNum) & "</NTSConfirmNum>" & _
" <ID>" & ReplaceSpecialString(UserID) & "</ID>" & _
" <PWD>" & ReplaceSpecialString(PWD) & "</PWD>" & _
" </GetTaxInvoicePopUpURLNK>"
Result = BaroService_SOAPCALL("GetTaxInvoicePopUpURLNK",SOAPBODY)
If Result <> "" Then
Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument")
xmlDoc.Loadxml(Result)
GetTaxInvoicePopUpURLNK = xmldoc.selectsinglenode("//GetTaxInvoicePopUpURLNKResult").text
Else
GetTaxInvoicePopUpURLNK = "-9999"
End If
End Function
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>û <20><><EFBFBD>ݰ<EFBFBD><DDB0>꼭 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28><>ǥǰ<C7A5><C7B0> <20><><EFBFBD><EFBFBD>)
Public Function GetMonthlyTaxInvoicePurchaseList(ByVal CERTKEY, ByVal CorpNum, ByVal UserID, ByVal TaxType, ByVal DateType, ByVal BaseMonth, ByVal CountPerPage, ByVal CurrentPage, ByVal OrderDirection)
SOAPBODY = _
" <GetMonthlyTaxInvoicePurchaseList xmlns=""http://ws.baroservice.com/"">" & _
" <CERTKEY>" & CERTKEY & "</CERTKEY>" & _
" <CorpNum>" & ReplaceSpecialString(CorpNum) & "</CorpNum>" & _
" <UserID>" & ReplaceSpecialString(UserID) & "</UserID>" & _
" <TaxType>" & ReplaceSpecialString(TaxType) & "</TaxType>" & _
" <DateType>" & ReplaceSpecialString(DateType) & "</DateType>" & _
" <BaseMonth>" & ReplaceSpecialString(BaseMonth) & "</BaseMonth>" & _
" <CountPerPage>" & ReplaceSpecialString(CountPerPage) & "</CountPerPage>" & _
" <CurrentPage>" & ReplaceSpecialString(CurrentPage) & "</CurrentPage>" & _
" <OrderDirection>" & ReplaceSpecialString(OrderDirection) & "</OrderDirection>" & _
" </GetMonthlyTaxInvoicePurchaseList>"
Result = BaroService_SOAPCALL("GetMonthlyTaxInvoicePurchaseList", SOAPBODY)
If (Result <> "") Then
Set xmlDoc = CreateObject("MSXML2.DOMDocument")
xmlDoc.Loadxml (Result)
Set SimpleTaxInvoiceExs = xmlDoc.selectNodes("//SimpleTaxInvoiceEx")
Dim newPagedTaxInvoiceEx
Set newPagedTaxInvoiceEx = New PagedTaxInvoiceEx
Set NodeList = xmlDoc.selectsinglenode("//GetMonthlyTaxInvoicePurchaseListResult")
newPagedTaxInvoiceEx.CurrentPage = NodeList.selectsinglenode("./CurrentPage").Text
newPagedTaxInvoiceEx.MaxIndex = NodeList.selectsinglenode("./MaxIndex").Text
newPagedTaxInvoiceEx.CountPerPage = NodeList.selectsinglenode("./CountPerPage").Text
newPagedTaxInvoiceEx.MaxPageNum = NodeList.selectsinglenode("./MaxPageNum").Text
Dim SimpleTaxInvoiceExList()
If SimpleTaxInvoiceExs.Length > 0 Then
ReDim SimpleTaxInvoiceExList(SimpleTaxInvoiceExs.Length - 1)
Dim newSimpleTaxInvoiceEx
For i = 0 To SimpleTaxInvoiceExs.Length - 1
Set newSimpleTaxInvoiceEx = New SimpleTaxInvoiceEx
newSimpleTaxInvoiceEx.NTSSendKey = SimpleTaxInvoiceExs(i).selectsinglenode("./NTSSendKey").Text
newSimpleTaxInvoiceEx.NTSSendDT = SimpleTaxInvoiceExs(i).selectsinglenode("./NTSSendDT").Text
newSimpleTaxInvoiceEx.IssueDT = SimpleTaxInvoiceExs(i).selectsinglenode("./IssueDT").Text
newSimpleTaxInvoiceEx.WriteDate = SimpleTaxInvoiceExs(i).selectsinglenode("./WriteDate").Text
newSimpleTaxInvoiceEx.ModifyCode = SimpleTaxInvoiceExs(i).selectsinglenode("./ModifyCode").Text
newSimpleTaxInvoiceEx.TaxType = SimpleTaxInvoiceExs(i).selectsinglenode("./TaxType").Text
newSimpleTaxInvoiceEx.PurposeType = SimpleTaxInvoiceExs(i).selectsinglenode("./PurposeType").Text
newSimpleTaxInvoiceEx.InvoicerCorpNum = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoicerCorpNum").Text
newSimpleTaxInvoiceEx.InvoicerTaxRegID = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoicerTaxRegID").Text
newSimpleTaxInvoiceEx.InvoicerCorpName = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoicerCorpName").Text
newSimpleTaxInvoiceEx.InvoicerCEOName = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoicerCEOName").Text
newSimpleTaxInvoiceEx.InvoicerAddr = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoicerAddr").Text
newSimpleTaxInvoiceEx.InvoicerBizType = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoicerBizType").Text
newSimpleTaxInvoiceEx.InvoicerBizClass = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoicerBizClass").Text
newSimpleTaxInvoiceEx.InvoicerContactName = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoicerContactName").Text
newSimpleTaxInvoiceEx.InvoicerEmail = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoicerEmail").Text
newSimpleTaxInvoiceEx.InvoiceeCorpNum = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoiceeCorpNum").Text
newSimpleTaxInvoiceEx.InvoiceeTaxRegID = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoiceeTaxRegID").Text
newSimpleTaxInvoiceEx.InvoiceeCorpName = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoiceeCorpName").Text
newSimpleTaxInvoiceEx.InvoiceeCEOName = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoiceeCEOName").Text
newSimpleTaxInvoiceEx.InvoiceeAddr = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoiceeAddr").Text
newSimpleTaxInvoiceEx.InvoiceeBizType = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoiceeBizType").Text
newSimpleTaxInvoiceEx.InvoiceeBizClass = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoiceeBizClass").Text
newSimpleTaxInvoiceEx.InvoiceeContactName = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoiceeContactName").Text
newSimpleTaxInvoiceEx.InvoiceeEmail = SimpleTaxInvoiceExs(i).selectsinglenode("./InvoiceeEmail").Text
newSimpleTaxInvoiceEx.BrokerCorpNum = SimpleTaxInvoiceExs(i).selectsinglenode("./BrokerCorpNum").Text
newSimpleTaxInvoiceEx.BrokerTaxRegID = SimpleTaxInvoiceExs(i).selectsinglenode("./BrokerTaxRegID").Text
newSimpleTaxInvoiceEx.BrokerCorpName = SimpleTaxInvoiceExs(i).selectsinglenode("./BrokerCorpName").Text
newSimpleTaxInvoiceEx.BrokerCEOName = SimpleTaxInvoiceExs(i).selectsinglenode("./BrokerCEOName").Text
newSimpleTaxInvoiceEx.BrokerAddr = SimpleTaxInvoiceExs(i).selectsinglenode("./BrokerAddr").Text
newSimpleTaxInvoiceEx.BrokerBizType = SimpleTaxInvoiceExs(i).selectsinglenode("./BrokerBizType").Text
newSimpleTaxInvoiceEx.BrokerBizClass = SimpleTaxInvoiceExs(i).selectsinglenode("./BrokerBizClass").Text
newSimpleTaxInvoiceEx.BrokerContactName = SimpleTaxInvoiceExs(i).selectsinglenode("./BrokerContactName").Text
newSimpleTaxInvoiceEx.BrokerEmail = SimpleTaxInvoiceExs(i).selectsinglenode("./BrokerEmail").Text
newSimpleTaxInvoiceEx.AmountTotal = SimpleTaxInvoiceExs(i).selectsinglenode("./AmountTotal").Text
newSimpleTaxInvoiceEx.TaxTotal = SimpleTaxInvoiceExs(i).selectsinglenode("./TaxTotal").Text
newSimpleTaxInvoiceEx.TotalAmount = SimpleTaxInvoiceExs(i).selectsinglenode("./TotalAmount").Text
newSimpleTaxInvoiceEx.Cash = SimpleTaxInvoiceExs(i).selectsinglenode("./Cash").Text
newSimpleTaxInvoiceEx.ChkBill = SimpleTaxInvoiceExs(i).selectsinglenode("./ChkBill").Text
newSimpleTaxInvoiceEx.Note = SimpleTaxInvoiceExs(i).selectsinglenode("./Note").Text
newSimpleTaxInvoiceEx.Credit = SimpleTaxInvoiceExs(i).selectsinglenode("./Credit").Text
newSimpleTaxInvoiceEx.Remark1 = SimpleTaxInvoiceExs(i).selectsinglenode("./Remark1").Text
newSimpleTaxInvoiceEx.Remark2 = SimpleTaxInvoiceExs(i).selectsinglenode("./Remark2").Text
newSimpleTaxInvoiceEx.Remark3 = SimpleTaxInvoiceExs(i).selectsinglenode("./Remark3").Text
newSimpleTaxInvoiceEx.ItemName = SimpleTaxInvoiceExs(i).selectsinglenode("./ItemName").Text
newSimpleTaxInvoiceEx.CorpNum = SimpleTaxInvoiceExs(i).selectsinglenode("./CorpNum").Text
newSimpleTaxInvoiceEx.TaxRegID = SimpleTaxInvoiceExs(i).selectsinglenode("./TaxRegID").Text
newSimpleTaxInvoiceEx.CorpName = SimpleTaxInvoiceExs(i).selectsinglenode("./CorpName").Text
newSimpleTaxInvoiceEx.CEOName = SimpleTaxInvoiceExs(i).selectsinglenode("./CEOName").Text
Set SimpleTaxInvoiceExList(i) = newSimpleTaxInvoiceEx
Next
newPagedTaxInvoiceEx.SimpleTaxInvoiceExList = SimpleTaxInvoiceExList
Else
newPagedTaxInvoiceEx.SimpleTaxInvoiceExList = Null
End If
Set GetMonthlyTaxInvoicePurchaseList = newPagedTaxInvoiceEx
Else
Set GetMonthlyTaxInvoicePurchaseList = newPagedTaxInvoiceEx
End If
End Function
End Class
'<27>ٷκ<D9B7> <20><><EFBFBD>ڼ<EFBFBD><DABC>ݰ<EFBFBD><DDB0>꼭 Ŭ<><C5AC><EFBFBD><EFBFBD>
Class TaxInvoice
Public InvoiceKey
Public InvoicerParty
Public InvoiceeParty
Public BrokerParty
Public InvoiceeASPEmail
Public IssueDirection
Public TaxInvoiceType
Public TaxType
Public TaxCalcType
Public PurposeType
Public ModifyCode
Public Kwon
Public Ho
Public SerialNum
Public Cash
Public ChkBill
Public Note
Public Credit
Public WriteDate
Public AmountTotal
Public TaxTotal
Public TotalAmount
Public Remark1
Public Remark2
Public Remark3
Public TaxInvoiceTradeLineItems
Public Function toJson()
tmpStr = "{"
tmpStr = tmpStr & """InvoiceKey"":"""& InvoiceKey &""","
tmpStr = tmpStr & """InvoicerParty"":"& InvoicerParty.toJson() &","
tmpStr = tmpStr & """InvoiceeParty"":"& InvoiceeParty.toJson() &","
tmpStr = tmpStr & """BrokerParty"":"& BrokerParty.toJson() &","
tmpStr = tmpStr & """InvoiceeASPEmail"":"""& InvoiceeASPEmail &""","
tmpStr = tmpStr & """IssueDirection"":"""& IssueDirection &""","
tmpStr = tmpStr & """TaxInvoiceType"":"""& TaxInvoiceType &""","
tmpStr = tmpStr & """TaxType"":"""& TaxType &""","
tmpStr = tmpStr & """TaxCalcType"":"""& TaxCalcType &""","
tmpStr = tmpStr & """PurposeType"":"""& PurposeType &""","
tmpStr = tmpStr & """ModifyCode"":"""& ModifyCode &""","
tmpStr = tmpStr & """Kwon"":"""& Kwon &""","
tmpStr = tmpStr & """Ho"":"""& Ho &""","
tmpStr = tmpStr & """SerialNum"":"""& SerialNum &""","
tmpStr = tmpStr & """Cash"":"""& Cash &""","
tmpStr = tmpStr & """ChkBill"":"""& ChkBill &""","
tmpStr = tmpStr & """Note"":"""& Note &""","
tmpStr = tmpStr & """Credit"":"""& Credit &""","
tmpStr = tmpStr & """WriteDate"":"""& WriteDate &""","
tmpStr = tmpStr & """AmountTotal"":"""& AmountTotal &""","
tmpStr = tmpStr & """TaxTotal"":"""& TaxTotal &""","
tmpStr = tmpStr & """TotalAmount"":"""& TotalAmount &""","
tmpStr = tmpStr & """Remark1"":"""& Remark1 &""","
tmpStr = tmpStr & """Remark2"":"""& Remark2 &""","
tmpStr = tmpStr & """Remark3"":"""& Remark3 &""","
tmpStr = tmpStr & """TaxInvoiceTradeLineItems"":"& arrJson(TaxInvoiceTradeLineItems) &","
tmpStr = mid(tmpStr, 1, len(tmpStr)-1)
tmpStr = tmpStr & "}"
toJson = tmpStr
End Function
End Class
'<27>ٷκ<D9B7> <20><><EFBFBD>ڼ<EFBFBD><DABC>ݰ<EFBFBD><DDB0>꼭 Party Ŭ<><C5AC><EFBFBD><EFBFBD>
Class InvoiceParty
Public ContactID
Public CorpNum
Public MgtNum
Public CorpName
Public TaxRegID
Public CEOName
Public Addr
Public BizClass
Public BizType
Public ContactName
Public TEL
Public HP
Public Email
Public Function toJson()
tmpStr = "{"
tmpStr = tmpStr & """ContactID"":"""& ContactID &""","
tmpStr = tmpStr & """CorpNum"":"""& CorpNum &""","
tmpStr = tmpStr & """MgtNum"":"""& MgtNum &""","
tmpStr = tmpStr & """CorpName"":"""& CorpName &""","
tmpStr = tmpStr & """TaxRegID"":"""& TaxRegID &""","
tmpStr = tmpStr & """CEOName"":"""& CEOName &""","
tmpStr = tmpStr & """Addr"":"""& Addr &""","
tmpStr = tmpStr & """BizClass"":"""& BizClass &""","
tmpStr = tmpStr & """BizType"":"""& BizType &""","
tmpStr = tmpStr & """ContactName"":"""& ContactName &""","
tmpStr = tmpStr & """TEL"":"""& TEL &""","
tmpStr = tmpStr & """HP"":"""& HP &""","
tmpStr = tmpStr & """Email"":"""& Email &""","
tmpStr = mid(tmpStr, 1, len(tmpStr)-1)
tmpStr = tmpStr & "}"
toJson = tmpStr
End Function
End Class
'<27>ٷκ<D9B7> <20><><EFBFBD>ڼ<EFBFBD><DABC>ݰ<EFBFBD><DDB0>꼭 ǰ<><C7B0> Ŭ<><C5AC><EFBFBD><EFBFBD>
Class TaxInvoiceTradeLineItem
Public PurchaseExpiry
Public Name
Public Information
Public ChargeableUnit
Public UnitPrice
Public Amount
Public Tax
Public Description
Public Function toJson()
tmpStr = "{"
tmpStr = tmpStr & """PurchaseExpiry"":"""& PurchaseExpiry &""","
tmpStr = tmpStr & """Name"":"""& Name &""","
tmpStr = tmpStr & """Information"":"""& Information &""","
tmpStr = tmpStr & """ChargeableUnit"":"""& ChargeableUnit &""","
tmpStr = tmpStr & """UnitPrice"":"""& UnitPrice &""","
tmpStr = tmpStr & """Amount"":"""& Amount &""","
tmpStr = tmpStr & """Tax"":"""& Tax &""","
tmpStr = tmpStr & """Description"":"""& Description &""","
tmpStr = mid(tmpStr, 1, len(tmpStr)-1)
tmpStr = tmpStr & "}"
toJson = tmpStr
End Function
End Class
'<27>ٷκ<D9B7> <20><><EFBFBD><EFBFBD>û <20><><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28><>ǥǰ<C7A5><C7B0> <20>߰<EFBFBD>)
Class PagedTaxInvoiceEx
Public CurrentPage
Public MaxIndex
Public CountPerPage
Public MaxPageNum
Public SimpleTaxInvoiceExList
Public Function toJson()
tmpStr = "{"
tmpStr = tmpStr & """CurrentPage"":"""& CurrentPage &""","
tmpStr = tmpStr & """MaxIndex"":"""& MaxIndex &""","
tmpStr = tmpStr & """CountPerPage"":"""& CountPerPage &""","
tmpStr = tmpStr & """MaxPageNum"":"""& MaxPageNum &""","
tmpStr = tmpStr & """SimpleTaxInvoiceExList"":"& arrJson(SimpleTaxInvoiceExList) &","
tmpStr = mid(tmpStr, 1, len(tmpStr)-1)
tmpStr = tmpStr & "}"
toJson = tmpStr
End Function
End Class
'<27>ٷκ<D9B7> <20><><EFBFBD><EFBFBD>û <20><><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD> (<28><>ǥǰ<C7A5><C7B0> <20>߰<EFBFBD>)
Class SimpleTaxInvoiceEx
Public NTSSendKey
Public NTSSendDT
Public IssueDT
Public WriteDate
Public ModifyCode
Public TaxType
Public PurposeType
Public InvoicerCorpNum
Public InvoicerTaxRegID
Public InvoicerCorpName
Public InvoicerCEOName
Public InvoicerAddr
Public InvoicerBizType
Public InvoicerBizClass
Public InvoicerContactName
Public InvoicerEmail
Public InvoiceeCorpNum
Public InvoiceeTaxRegID
Public InvoiceeCorpName
Public InvoiceeCEOName
Public InvoiceeAddr
Public InvoiceeBizType
Public InvoiceeBizClass
Public InvoiceeContactName
Public InvoiceeEmail
Public BrokerCorpNum
Public BrokerTaxRegID
Public BrokerCorpName
Public BrokerCEOName
Public BrokerAddr
Public BrokerBizType
Public BrokerBizClass
Public BrokerContactName
Public BrokerEmail
Public AmountTotal
Public TaxTotal
Public TotalAmount
Public Cash
Public ChkBill
Public Note
Public Credit
Public Remark1
Public Remark2
Public Remark3
Public ItemName
Public CorpNum
Public TaxRegID
Public CorpName
Public CEOName
Public Function toJson()
tmpStr = "{"
tmpStr = tmpStr & """NTSSendKey"":"""& NTSSendKey &""","
tmpStr = tmpStr & """NTSSendDT"":"""& NTSSendDT &""","
tmpStr = tmpStr & """IssueDT"":"""& IssueDT &""","
tmpStr = tmpStr & """WriteDate"":"""& WriteDate &""","
tmpStr = tmpStr & """ModifyCode"":"""& ModifyCode &""","
tmpStr = tmpStr & """TaxType"":"""& TaxType &""","
tmpStr = tmpStr & """PurposeType"":"""& PurposeType &""","
tmpStr = tmpStr & """InvoicerCorpNum"":"""& InvoicerCorpNum &""","
tmpStr = tmpStr & """InvoicerTaxRegID"":"""& InvoicerTaxRegID &""","
tmpStr = tmpStr & """InvoicerCorpName"":"""& InvoicerCorpName &""","
tmpStr = tmpStr & """InvoicerCEOName"":"""& InvoicerCEOName &""","
tmpStr = tmpStr & """InvoicerAddr"":"""& InvoicerAddr &""","
tmpStr = tmpStr & """InvoicerBizType"":"""& InvoicerBizType &""","
tmpStr = tmpStr & """InvoicerBizClass"":"""& InvoicerBizClass &""","
tmpStr = tmpStr & """InvoicerContactName"":"""& InvoicerContactName &""","
tmpStr = tmpStr & """InvoicerEmail"":"""& InvoicerEmail &""","
tmpStr = tmpStr & """InvoiceeCorpNum"":"""& InvoiceeCorpNum &""","
tmpStr = tmpStr & """InvoiceeTaxRegID"":"""& InvoiceeTaxRegID &""","
tmpStr = tmpStr & """InvoiceeCorpName"":"""& InvoiceeCorpName &""","
tmpStr = tmpStr & """InvoiceeCEOName"":"""& InvoiceeCEOName &""","
tmpStr = tmpStr & """InvoiceeAddr"":"""& InvoiceeAddr &""","
tmpStr = tmpStr & """InvoiceeBizType"":"""& InvoiceeBizType &""","
tmpStr = tmpStr & """InvoiceeBizClass"":"""& InvoiceeBizClass &""","
tmpStr = tmpStr & """InvoiceeContactName"":"""& InvoiceeContactName &""","
tmpStr = tmpStr & """InvoiceeEmail"":"""& InvoiceeEmail &""","
tmpStr = tmpStr & """BrokerCorpNum"":"""& BrokerCorpNum &""","
tmpStr = tmpStr & """BrokerTaxRegID"":"""& BrokerTaxRegID &""","
tmpStr = tmpStr & """BrokerCorpName"":"""& BrokerCorpName &""","
tmpStr = tmpStr & """BrokerCEOName"":"""& BrokerCEOName &""","
tmpStr = tmpStr & """BrokerAddr"":"""& BrokerAddr &""","
tmpStr = tmpStr & """BrokerBizType"":"""& BrokerBizType &""","
tmpStr = tmpStr & """BrokerBizClass"":"""& BrokerBizClass &""","
tmpStr = tmpStr & """BrokerContactName"":"""& BrokerContactName &""","
tmpStr = tmpStr & """BrokerEmail"":"""& BrokerEmail &""","
tmpStr = tmpStr & """AmountTotal"":"""& AmountTotal &""","
tmpStr = tmpStr & """TaxTotal"":"""& TaxTotal &""","
tmpStr = tmpStr & """TotalAmount"":"""& TotalAmount &""","
tmpStr = tmpStr & """Cash"":"""& Cash &""","
tmpStr = tmpStr & """ChkBill"":"""& ChkBill &""","
tmpStr = tmpStr & """Note"":"""& Note &""","
tmpStr = tmpStr & """Credit"":"""& Credit &""","
tmpStr = tmpStr & """Remark1"":"""& Remark1 &""","
tmpStr = tmpStr & """Remark2"":"""& Remark2 &""","
tmpStr = tmpStr & """Remark3"":"""& Remark3 &""","
tmpStr = tmpStr & """ItemName"":"""& ItemName &""","
tmpStr = tmpStr & """CorpNum"":"""& CorpNum &""","
tmpStr = tmpStr & """TaxRegID"":"""& TaxRegID &""","
tmpStr = tmpStr & """CorpName"":"""& CorpName &""","
tmpStr = tmpStr & """CEOName"":"""& CEOName &""","
tmpStr = mid(tmpStr, 1, len(tmpStr)-1)
tmpStr = tmpStr & "}"
toJson = tmpStr
End Function
End Class
Function arrJson(ByVal arr)
If isArray(arr) = True Then
tmpStr = "["
For i=0 To UBound(arr)
If VarType(arr(i)) = 9 Then
tmpStr = tmpStr & arr(i).toJson() & ","
Else
tmpStr = tmpStr & arr(i) & ","
End If
Next
tmpStr = mid(tmpStr, 1, len(tmpStr)-1)
tmpStr = tmpStr & "]"
arrJson = tmpStr
Else
arrJson = "[]"
End If
End Function
%>