# Customized Panes for 'xxxxxxxx' Created: 2010/03/03 # PANE:Warehouse Control Information [PANE] ADMIN ARSPENLZ 01001Warehouse Control Information 090settings\ADMIN_VBS_ARSPEN01.XML 000000500000ARSPEN010M000 0000 00000 [VBSCRIPT] ' This script contains functions for form and field events. ' You must not modify the name of the functions. Option Explicit Function CustomizedPane_OnLoad() Dim FormProps FormProps = "
" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "
" CustomizedPane.CodeObject.FormProperties = FormProps End Function Function CustomizedPane_OnRefresh() ' Specify the variables to be used when calling the business object dim XMLOut, XMLParam, Warehouse, FormData CustomizedPane.CodeObject.UpdateFormValues = " " ' Populate the SalesOrder variable with the refresh value Warehouse = CustomizedPane.CodeObject.RefreshValue if Warehouse = "" then exit function end if ' Build up the XML to be passed to the business object XMLParam = XMLParam & " " XMLParam = XMLParam & " InvWhControl" XMLParam = XMLParam & " " & Warehouse & "" XMLParam = XMLParam & " " on error resume next ' Call the business object, supplying the XML and putting the result in to XMLOut XMLOut = CallBO("COMFCH",XMLParam,"auto") if err then exit function end if ' Switch on error handling on error goto 0 ' Define the variables required for extracting the information from the DOM. Dim XMLDoc, WH, WHDesc, STTicket, STFlag, Nation, Costing, CostingDesc Dim WHToUse, Route, WHControl, WHVariance, GRNSuspense, GITControl, Disp, WIPInsp, WIPControl, WIPVar, AutoClearVar Dim DelAddr1, DelAddr2, DelAddr3, DelAddr4, DelAddr5, DelAddrPC Dim FaxSCT, SCTFaxNum, SCTFaxContact, SCTDefDocFormat, WMSFlag, GITBranch, GITArea, GTRPrefix, GTRNextNum Dim POPrefix, PONextNum, GRNPrefix, GRNNextNum ' Load the output from the business object in to the DOM Set XMLDoc = createobject("MSXML2.DOMDocument") XMLDoc.async = false XMLDoc.LoadXML(XMLOut) ' Populate the values for the fields WH = XMLDoc.SelectSingleNode("//Warehouse").Text WHDesc = XMLDoc.SelectSingleNode("//Description").Text STTicket = XMLDoc.SelectSingleNode("//NextTicketNo").Text STFlag = XMLDoc.SelectSingleNode("//StockTakeFlag").Text Nation= XMLDoc.SelectSingleNode("//Nationality").Text Costing= XMLDoc.SelectSingleNode("//CostingMethod").Text Select Case Costing Case "A" CostingDesc = "Average" Case "S" CostingDesc = "Standard" Case "L" CostingDesc = "Last" Case Else CostingDesc = "Company" End select WHToUse = XMLDoc.SelectSingleNode("//WhForComp").Text Route = XMLDoc.SelectSingleNode("//Route").Text WHControl = XMLDoc.SelectSingleNode("//WhLdgCtlAcc").Text WHVariance = XMLDoc.SelectSingleNode("//WhVarLdg").Text GRNSuspense = XMLDoc.SelectSingleNode("//GrnLdgAcc").Text GITControl = XMLDoc.SelectSingleNode("//GtrCtlAccl").Text Disp = XMLDoc.SelectSingleNode("//GitAdjAcc").Text WIPInsp = XMLDoc.SelectSingleNode("//WipInspectGlCode").Text WIPControl = XMLDoc.SelectSingleNode("//WipControlGlCode").Text WIPVar = XMLDoc.SelectSingleNode("//WipVarCtlGlCode").Text AutoClearVar = XMLDoc.SelectSingleNode("//WipAutoVarGlCode").Text DelAddr1 = XMLDoc.SelectSingleNode("//DeliveryAddr1").Text DelAddr2 = XMLDoc.SelectSingleNode("//DeliveryAddr2").Text DelAddr3 = XMLDoc.SelectSingleNode("//DeliveryAddr3").Text DelAddr4 = XMLDoc.SelectSingleNode("//DeliveryAddr4").Text DelAddr5 = XMLDoc.SelectSingleNode("//DeliveryAddr5").Text DelAddrPC = XMLDoc.SelectSingleNode("//PostalCode").Text FaxSCT = XMLDoc.SelectSingleNode("//FaxDocIwsFlag").Text SCTFaxNum = XMLDoc.SelectSingleNode("//Fax").Text SCTFaxContact = XMLDoc.SelectSingleNode("//FaxContact").Text SCTDefDocFormat = XMLDoc.SelectSingleNode("//SoDefaultDoc").Text WMSFlag = XMLDoc.SelectSingleNode("//WmsActive").Text GITBranch = XMLDoc.SelectSingleNode("//Branch").Text GITArea = XMLDoc.SelectSingleNode("//Area").Text GTRPrefix = XMLDoc.SelectSingleNode("//GtrPrefix").Text GTRNextNum = XMLDoc.SelectSingleNode("//GtrNextNo").Text POPrefix = XMLDoc.SelectSingleNode("//PoPrefix").Text PONextNum = XMLDoc.SelectSingleNode("//PoNextNumber").Text GRNPrefix = XMLDoc.SelectSingleNode("//GrnPrefix").Text GRNNextNum = XMLDoc.SelectSingleNode("//GrnNextNumber").Text FormData = "
" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "
" CustomizedPane.CodeObject.UpdateFormValues = FormData End Function