diff --git a/b6/commander4j.install4j b/b6/commander4j.install4j deleted file mode 100644 index ae73e660b..000000000 --- a/b6/commander4j.install4j +++ /dev/null @@ -1,1402 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This installation will install all components. Typically you might want to do this on a server. - - - - - - - - - - - - - Client Java Application - - - - - - - - - - Java Service that processes XML interface messages. Normally installed on a server. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Djava.library.path=./lib/db --Dfile.encoding=Cp1252 --Dlog4j.configurationFile=./xml/log/log4j2.xml - - - - - - - - - - - - - - - - - - - - - - - -Djava.library.path=./lib/db --Dfile.encoding=Cp1252 --Dlog4j.configurationFile=./xml/log/log4j2.xml - - - - - - - - - - - - - - - - - - - - - - - -Djava.library.path=./lib/db --Dfile.encoding=Cp1252 --Dlog4j.configurationFile=./xml/log/log4j2.xml - - - - - - - - - - - - - - - - - - - - - - - -Djava.library.path=./lib/db --Dfile.encoding=Cp1252 --Dlog4j.configurationFile=./xml/log/log4j2.xml - - - - - - - - - - - - - - - - - - - - - - - -Djava.library.path=./lib/db --Dfile.encoding=Cp1252 --Dlog4j.configurationFile=./xml/log/log4j2.xml - - - - - - - - - - - - - - - - - - - - - - - -Djava.library.path=./lib/db --Dfile.encoding=Cp1252 --Dlog4j.configurationFile=./xml/log/log4j2.xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ./images/icons/CMD4j_Icons/MyIcon.iconset/icon_16x16.png - - - - - ./images/icons/CMD4j_Icons/MyIcon.iconset/icon_32x32.png - - - - - ./images/icons/CMD4j_Icons/MyIcon.iconset/icon_48x48.png - - - - - ./images/icons/CMD4j_Icons/MyIcon.iconset/icon_128x128.png - - - - - ./images/icons/CMD4j_Icons/MyIcon.iconset/icon_256x256.png - - - - - - - - - - - - - - - - - - context.getBooleanVariable("sys.confirmedUpdateInstallation") - - - - - - ${form:welcomeMessage} - - !context.isConsole() - - - - - - String message = context.getMessage("ConsoleWelcomeLabel", context.getApplicationName()); -return console.askOkCancel(message, true); - - - - - - - - updateCheck - - - - - ${i18n:ClickNext} - - - - - - !context.isUpdateInstallation() - - - - ${i18n:LicenseLabel3} - - - - - - - - en - - ./Commander4j GNU GENERAL PUBLIC LICENSE.txt - - - - - - - - textSource - displayedText - displayedTextFile - variableName - acceptInitiallySelected - readAllRequired - - - - - - !context.getBooleanVariable("sys.confirmedUpdateInstallation") - - - context.getVariable("sys.responseFile") == null - - - - - - ${i18n:SelectDirLabel(${compiler:sys.fullName})} - - - - - - - - suggestAppDir - validateApplicationId - existingDirWarning - checkWritable - manualEntryAllowed - checkFreeSpace - showRequiredDiskSpace - showFreeDiskSpace - allowSpacesOnUnix - validationScript - standardValidation - - - - - - - - - ${i18n:SelectComponentsLabel2} - - !context.isConsole() - - - - - - - selectionChangedScript - - - - - - ${i18n:ReadyMemoDir} - - !context.getBooleanVariable("sys.confirmedUpdateInstallation") - - - - - - ${compiler:sys.fullName} - - !context.getBooleanVariable("sys.confirmedUpdateInstallation") - - - - - - - - - - - - - ${i18n:UninstallerMenuEntry(${compiler:sys.fullName})} - - !context.getBooleanVariable("sys.programGroupDisabled") - - - - ${compiler:sys.fullName} ${compiler:sys.version} - - - - - - - xml/hosts - - - - - - ${installer:sys.mediaDir}/hosts.xml - - - - - - - - - - - - lib/db - - - - - - lib/db/auth/x64 - - - - - - - - if (Util.isWindows()) -{ - Util.logInfo(null, "Check for Windows 64bit"); - return Util.is64BitWindows(); -} -else -{ - Util.logInfo(null, "Not Windows"); - return false; -} - - - - - - lib/db - - - - - - lib/db/auth/x86 - - - - - - - - if (Util.isWindows()) -{ - Util.logInfo(null, "Check for Windows 32bit"); - return !Util.is64BitWindows(); -} -else -{ - Util.logInfo(null, "Not Windows"); - return false; -} - - - - - - xml/config - - - - - - ${installer:sys.mediaDir}/email.xml - - - - - - - - - - - - ${i18n:WizardPreparing} - - - - - - - - - ${form:finishedMessage} - - - - - - - - - ${i18n:UninstallerMenuEntry(${compiler:sys.fullName})} - - - - - - - - - - - - - - - - - ${form:welcomeMessage} - - !context.isConsole() - - - - - - String message = context.getMessage("ConfirmUninstall", context.getApplicationName()); -return console.askYesNo(message, true); - - - - - - - - - - - - - - - ${i18n:UninstallerPreparing} - - - - - - - - - - ${form:successMessage} - - - - - - - - - - - - ${compiler:sys.install4jHome}/resource/updater_16.png - - - - - ${compiler:sys.install4jHome}/resource/updater_32.png - - - - - ${compiler:sys.install4jHome}/resource/updater_48.png - - - - c5jupdater - - Updating - - ${i18n:updater.WindowTitle("${compiler:sys.fullName}")} - - - - - - - - ${compiler:sys.updatesUrl} - updateDescriptor - - - - - - - - ((UpdateDescriptor)context.getVariable("updateDescriptor")).getPossibleUpdateEntry() - - - updateDescriptorEntry - - - - - - - context.getVariable("updateDescriptorEntry") != null - - - - - - - - - ((UpdateDescriptorEntry)context.getVariable("updateDescriptorEntry")).getNewVersion() - - - updaterNewVersion - - - - - - - ((UpdateDescriptorEntry)context.getVariable("updateDescriptorEntry")).getFileSizeVerbose() - - - updaterDownloadSize - - - - - - - ((UpdateDescriptorEntry)context.getVariable("updateDescriptorEntry")).getComment() - - - updaterComment - - - - - - - Util.getUserHome() - - - updaterDownloadDir - - - - - - - ((UpdateDescriptorEntry)context.getVariable("updateDescriptorEntry")).getURL().toExternalForm() - - - updaterDownloadUrl - - - - - - - ((UpdateDescriptorEntry)context.getVariable("updateDescriptorEntry")).isArchive() ? Boolean.TRUE : Boolean.FALSE - - - isArchive - - - - - - - - - - - - - context.getVariable("updateDescriptorEntry") != null - - - - - - - ${i18n:updater.NewVersionAvailableSubtitle("${compiler:sys.fullName}")} - ${i18n:updater.NewVersionAvailableTitle} - - - - - ${i18n:updater.CurrentVersionLabel} - - - 128 - 0 - 0 - 255 - - - - - dialog - 1 - 0 - - - - ${installer:sys.version} - - - - - - - ${i18n:updater.NewVersionLabel} - - - 0 - 128 - 0 - 255 - - - - - dialog - 1 - 0 - - - - ${installer:updaterNewVersion} - - - - - - - context.goForward(1, false, false); - - - ${i18n:updater.ShowComments} - - ((String)context.getVariable("updaterComment")).length() > 0 - - - - - - - ${i18n:updater.DownloadLocationLabel} - - - - - ${installer:updaterDownloadDir} - ${i18n:updater.DownloadToLabel} - - updaterDownloadLocation - - - - - ${i18n:updater.DownloadSizeLabel} - ${installer:updaterDownloadSize} - - - - - - - - ${i18n:updater.CommentsSubTitle} - ${i18n:updater.CommentsTitle} - - false // This screen is only shown if the user clicks the "Show comments" hyperlink label in the previous screen. - - if (context.isConsole()) { - context.goBackInHistory(1); -} -return true; - WizardContext wizardContext = context.getWizardContext(); -wizardContext.setControlButtonVisible(ControlButtonType.NEXT, false); -wizardContext.setControlButtonVisible(ControlButtonType.CANCEL, false); - - - - - ${i18n:updater.CommentsLabel} - - !context.isConsole() - - labelText - - - - - ${installer:updaterComment} - - - - - textSource - displayedText - displayedTextFile - variableName - - - - - - - console.waitForEnter(); -return true; - - - - - - - - - - ${i18n:updater.DownloadSubTitle} - ${i18n:updater.DownloadTitle} - - context.getWizardContext().setControlButtonVisible(ControlButtonType.NEXT, false); -context.getWizardContext().setControlButtonVisible(ControlButtonType.PREVIOUS, false); -context.goForward(1, true, true); - - - - - - - context.getVariable("updaterDownloadLocation") + File.separator + ((UpdateDescriptorEntry)context.getVariable("updateDescriptorEntry")).getFileName() - - - updaterDownloadFile - - - - - - - ${installer:updaterDownloadFile} - - - ${installer:updaterDownloadUrl} - - - - - - - - ${installer:updaterDownloadFile} - - - - 755 - - - - - - - statusVisible - initialStatusMessage - - - - - - - ${i18n:updater.FinishTitle} - - - - - - - !context.getBooleanVariable("isArchive") && ((Integer)context.getVariable("updaterLaunchSelection")).intValue() == 0 - - - - - - - - - String updateMode="MANUAL"; - -updateMode = (String)context.getVariable("C4JUpdateMode"); - -if (updateMode.equals("AUTOMATIC")) -{ - return new String[] {"-q","-splash","Updating", "-wait", "20", "-overwrite","-dir", context.getInstallationDirectory().getPath()}; -} - -if (updateMode.equals("MANUAL")) -{ - return new String[] {"-g", "-dir","-overwrite","-dir", context.getInstallationDirectory().getPath()}; -} -else -{ - return ""; -} - - - installerArguments - - - - - - - ${installer:installerArguments} - - - - ${installer:updaterDownloadFile} - - - - - ${installer:updaterDownloadLocation} - - - - - - - - - - - - ${i18n:updater.FinishInfoText("${compiler:sys.fullName}")} - - !context.isConsole() - - labelText - - - - - ${i18n:updater.LaunchUpdaterQuestion} - - - - - - - - - - - ${i18n:updater.LaunchUpdaterLabel} - ${i18n:updater.DoNotLaunchUpdaterLabel} - - updaterLaunchSelection - - !context.getBooleanVariable("isArchive") - - - - - - Util.showPath((String)context.getVariable("updaterDownloadFile")); - - - ${i18n:updater.OpenContainingFolderLabel} - - !context.isConsole() - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/b6/commander4j.jar b/b6/commander4j.jar index 5a3cab509..3a173d0e9 100644 Binary files a/b6/commander4j.jar and b/b6/commander4j.jar differ diff --git a/b6/images/16x16/bar-code.png b/b6/images/16x16/bar-code.png new file mode 100644 index 000000000..289c4857c Binary files /dev/null and b/b6/images/16x16/bar-code.png differ diff --git a/b6/images/16x16/barcode.png b/b6/images/16x16/barcode.png new file mode 100644 index 000000000..535fae88b Binary files /dev/null and b/b6/images/16x16/barcode.png differ diff --git a/b6/images/16x16/clear.gif b/b6/images/16x16/clear.gif new file mode 100644 index 000000000..8eb10148f Binary files /dev/null and b/b6/images/16x16/clear.gif differ diff --git a/b6/images/16x16/clock.png b/b6/images/16x16/clock.png new file mode 100644 index 000000000..6073850c2 Binary files /dev/null and b/b6/images/16x16/clock.png differ diff --git a/b6/images/16x16/defaults.png b/b6/images/16x16/defaults.png new file mode 100644 index 000000000..6f0bd5523 Binary files /dev/null and b/b6/images/16x16/defaults.png differ diff --git a/b6/images/16x16/elements.png b/b6/images/16x16/elements.png new file mode 100644 index 000000000..c99879a1c Binary files /dev/null and b/b6/images/16x16/elements.png differ diff --git a/b6/images/16x16/info.png b/b6/images/16x16/info.png new file mode 100644 index 000000000..caabbdd59 Binary files /dev/null and b/b6/images/16x16/info.png differ diff --git a/b6/images/16x16/input.png b/b6/images/16x16/input.png new file mode 100644 index 000000000..ce1019f03 Binary files /dev/null and b/b6/images/16x16/input.png differ diff --git a/b6/images/16x16/lane_group.png b/b6/images/16x16/lane_group.png new file mode 100644 index 000000000..b7349f945 Binary files /dev/null and b/b6/images/16x16/lane_group.png differ diff --git a/b6/images/16x16/lanes.png b/b6/images/16x16/lanes.png new file mode 100644 index 000000000..f7dbbb497 Binary files /dev/null and b/b6/images/16x16/lanes.png differ diff --git a/b6/images/16x16/line.png b/b6/images/16x16/line.png new file mode 100644 index 000000000..684633406 Binary files /dev/null and b/b6/images/16x16/line.png differ diff --git a/b6/images/16x16/list.png b/b6/images/16x16/list.png new file mode 100644 index 000000000..2984eb14d Binary files /dev/null and b/b6/images/16x16/list.png differ diff --git a/b6/images/16x16/output.png b/b6/images/16x16/output.png new file mode 100644 index 000000000..b976e4cee Binary files /dev/null and b/b6/images/16x16/output.png differ diff --git a/b6/images/16x16/quantity.gif b/b6/images/16x16/quantity.gif new file mode 100644 index 000000000..97d7fbd4a Binary files /dev/null and b/b6/images/16x16/quantity.gif differ diff --git a/b6/images/16x16/recipe.gif b/b6/images/16x16/recipe.gif new file mode 100644 index 000000000..47574fb7e Binary files /dev/null and b/b6/images/16x16/recipe.gif differ diff --git a/b6/images/16x16/recipe.png b/b6/images/16x16/recipe.png new file mode 100644 index 000000000..6bfdcb067 Binary files /dev/null and b/b6/images/16x16/recipe.png differ diff --git a/b6/images/16x16/schedule.png b/b6/images/16x16/schedule.png new file mode 100644 index 000000000..9026b9fa0 Binary files /dev/null and b/b6/images/16x16/schedule.png differ diff --git a/b6/images/16x16/sequence.png b/b6/images/16x16/sequence.png new file mode 100644 index 000000000..c6b78e180 Binary files /dev/null and b/b6/images/16x16/sequence.png differ diff --git a/b6/images/16x16/stage.png b/b6/images/16x16/stage.png new file mode 100644 index 000000000..956e51f8f Binary files /dev/null and b/b6/images/16x16/stage.png differ diff --git a/b6/images/16x16/structure.gif b/b6/images/16x16/structure.gif new file mode 100644 index 000000000..5d30ab8ce Binary files /dev/null and b/b6/images/16x16/structure.gif differ diff --git a/b6/images/16x16/unit.png b/b6/images/16x16/unit.png new file mode 100644 index 000000000..73c25d68a Binary files /dev/null and b/b6/images/16x16/unit.png differ diff --git a/b6/images/24x24/defaults.png b/b6/images/24x24/defaults.png new file mode 100644 index 000000000..f42519468 Binary files /dev/null and b/b6/images/24x24/defaults.png differ diff --git a/b6/images/24x24/elements.png b/b6/images/24x24/elements.png new file mode 100644 index 000000000..8bbb01ae6 Binary files /dev/null and b/b6/images/24x24/elements.png differ diff --git a/b6/images/24x24/list.png b/b6/images/24x24/list.png new file mode 100644 index 000000000..1fc2c48ea Binary files /dev/null and b/b6/images/24x24/list.png differ diff --git a/b6/images/24x24/recipe.gif b/b6/images/24x24/recipe.gif new file mode 100644 index 000000000..fac1713b7 Binary files /dev/null and b/b6/images/24x24/recipe.gif differ diff --git a/b6/images/24x24/structure.gif b/b6/images/24x24/structure.gif new file mode 100644 index 000000000..461aa814e Binary files /dev/null and b/b6/images/24x24/structure.gif differ diff --git a/b6/images/32x32/defaults.png b/b6/images/32x32/defaults.png new file mode 100644 index 000000000..8e3cc00bf Binary files /dev/null and b/b6/images/32x32/defaults.png differ diff --git a/b6/images/32x32/elements.png b/b6/images/32x32/elements.png new file mode 100644 index 000000000..6ff9345e8 Binary files /dev/null and b/b6/images/32x32/elements.png differ diff --git a/b6/images/32x32/list.png b/b6/images/32x32/list.png new file mode 100644 index 000000000..879969d90 Binary files /dev/null and b/b6/images/32x32/list.png differ diff --git a/b6/images/32x32/recipe.gif b/b6/images/32x32/recipe.gif new file mode 100644 index 000000000..851263077 Binary files /dev/null and b/b6/images/32x32/recipe.gif differ diff --git a/b6/images/32x32/structure.gif b/b6/images/32x32/structure.gif new file mode 100644 index 000000000..528dc1cfc Binary files /dev/null and b/b6/images/32x32/structure.gif differ diff --git a/b6/lib/devonly/i4jruntime.jar b/b6/lib/devonly/i4jruntime.jar index 1c582c296..006edfba2 100644 Binary files a/b6/lib/devonly/i4jruntime.jar and b/b6/lib/devonly/i4jruntime.jar differ diff --git a/b6/reports/bom_defaults.jrxml b/b6/reports/bom_defaults.jrxml new file mode 100644 index 000000000..61c49697f --- /dev/null +++ b/b6/reports/bom_defaults.jrxml @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <element kind="textField" uuid="5779783a-7160-4b3e-a7a3-0ad698fb4153" x="0" y="0" width="370" height="46" fontName="SansSerif" fontSize="18.0" vTextAlign="Middle"> + <expression><![CDATA[$P{COMPANY_NAME}]]></expression> + </element> + <element kind="staticText" uuid="0a4450b2-2eb7-4cee-8c6e-f0625c97bb7b" x="338" y="0" width="216" height="46" fontSize="24.0" hTextAlign="Right" vTextAlign="Middle"> + <text><![CDATA[BOM Defaults]]></text> + </element> + <property name="local_mesure_unitheight" value="pixel"/> + <property name="com.jaspersoft.studio.unit.height" value="px"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/b6/reports/bom_elements.jrxml b/b6/reports/bom_elements.jrxml new file mode 100644 index 000000000..07684e622 --- /dev/null +++ b/b6/reports/bom_elements.jrxml @@ -0,0 +1,416 @@ + + + + + + + + + + net.sf.jasperreports.engine.* + java.util.* + net.sf.jasperreports.engine.data.* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <element kind="staticText" uuid="8e134bf0-3b44-4ac5-9284-97de68bb84de" key="staticText" x="517" y="5" width="262" height="40" fontSize="30.0" hTextAlign="Right"> + <text><![CDATA[BOM Elements]]></text> + <box> + <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> + <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> + <bottomPen lineWidth="0.0" lineColor="#000000"/> + <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> + </box> + </element> + <element kind="textField" uuid="be0bef9d-a612-4df3-9a61-ea4cc8da9825" key="textField-1" x="0" y="0" width="510" height="46" fontSize="16.0" blankWhenNull="false" vTextAlign="Middle"> + <expression><![CDATA[$P{COMPANY_NAME}]]></expression> + <property name="local_mesure_unitx" value="pixel"/> + <property name="com.jaspersoft.studio.unit.x" value="px"/> + <property name="local_mesure_unity" value="pixel"/> + <property name="com.jaspersoft.studio.unit.y" value="px"/> + <property name="local_mesure_unitheight" value="pixel"/> + <property name="com.jaspersoft.studio.unit.height" value="px"/> + <box> + <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> + <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> + <bottomPen lineWidth="0.0" lineColor="#000000"/> + <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> + </box> + </element> + <property name="local_mesure_unitheight" value="pixel"/> + <property name="com.jaspersoft.studio.unit.height" value="px"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/b6/reports/bom_lists.jrxml b/b6/reports/bom_lists.jrxml new file mode 100644 index 000000000..0f370f53f --- /dev/null +++ b/b6/reports/bom_lists.jrxml @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <element kind="textField" uuid="5779783a-7160-4b3e-a7a3-0ad698fb4153" x="0" y="0" width="370" height="46" fontName="SansSerif" fontSize="18.0" vTextAlign="Middle"> + <expression><![CDATA[$P{COMPANY_NAME}]]></expression> + </element> + <element kind="staticText" uuid="0a4450b2-2eb7-4cee-8c6e-f0625c97bb7b" x="338" y="0" width="216" height="46" fontSize="24.0" hTextAlign="Right" vTextAlign="Middle"> + <text><![CDATA[BOM Lists]]></text> + </element> + <property name="local_mesure_unitheight" value="pixel"/> + <property name="com.jaspersoft.studio.unit.height" value="px"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/b6/reports/bom_structure.jrxml b/b6/reports/bom_structure.jrxml new file mode 100644 index 000000000..4b03cc064 --- /dev/null +++ b/b6/reports/bom_structure.jrxml @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + <element kind="textField" uuid="5779783a-7160-4b3e-a7a3-0ad698fb4153" x="0" y="0" width="370" height="46" fontName="SansSerif" fontSize="18.0" vTextAlign="Middle"> + <expression><![CDATA[$P{COMPANY_NAME}]]></expression> + </element> + <element kind="staticText" uuid="0a4450b2-2eb7-4cee-8c6e-f0625c97bb7b" x="338" y="0" width="216" height="46" fontSize="24.0" hTextAlign="Right" vTextAlign="Middle"> + <text><![CDATA[BOM Structure]]></text> + </element> + <property name="local_mesure_unitheight" value="pixel"/> + <property name="com.jaspersoft.studio.unit.height" value="px"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/b6/src/com/commander4j/app/JInternalFrameLocationProperties.java b/b6/src/com/commander4j/app/JInternalFrameLocationProperties.java index 8a745f5f8..787d02674 100755 --- a/b6/src/com/commander4j/app/JInternalFrameLocationProperties.java +++ b/b6/src/com/commander4j/app/JInternalFrameLocationProperties.java @@ -87,6 +87,7 @@ public class JInternalFrameLocationProperties extends JInternalFrame private JButton4j jButtonHelp; private JButton4j jButtonSave; private JLabel4j_std jLabel9; + private JLabel4j_std jLabelBarcodeId; private JTextField4j jTextFieldStorageSection; private JTextField4j jTextFieldStorageType; private JLabel4j_std jLabel7; @@ -102,6 +103,7 @@ public class JInternalFrameLocationProperties extends JInternalFrame private String llocation; private JDBLocation location = new JDBLocation(Common.selectedHostID, Common.sessionID); private JTextField4j jTextFieldEquipmentTrackingID; + private JTextField4j jTextFieldBarcodeID; private JLabel4j_std lblMsgDespatchConfirm; private JLabel4j_std lblMsgPreAdvice; private JLabel4j_std lblMsgPalletSplit; @@ -117,6 +119,8 @@ public class JInternalFrameLocationProperties extends JInternalFrame private JCheckBox4j checkBox_Production_Confirmation; private JCheckBox4j checkBox_Production_UnConfirm; private JCheckBox4j checkBox_PalletDelete; + private JCheckBox4j checkBox_PalletIssue; + private JCheckBox4j checkBox_PalletReturn; private JScrollPane scrollPane; private JList4j palletStatusList; private JList4j batchStatusList; @@ -176,6 +180,7 @@ public void setLocationID(String loc) jTextFieldStorageSection.setText(location.getStorageSection()); jTextFieldStorageBin.setText(location.getStorageBin()); jTextFieldEquipmentTrackingID.setText(location.getEquipmentTrackingID()); + jTextFieldBarcodeID.setText(location.getBarcodeId()); chckbxEnabled.setSelected(location.isEnabled()); checkBox_DespatchConfirm.setSelected(location.isDespatchConfirmationMessageRequired()); checkBox_PreAdvice.setSelected(location.isDespatchPreAdviceMessageRequired()); @@ -184,6 +189,8 @@ public void setLocationID(String loc) checkBox_PalletSplit.setSelected(location.isPalletSplitMessageRequired()); checkBox_JourneyRef.setSelected(location.isJourneyRefRequired()); checkBox_PalletDelete.setSelected(location.isPalletDeleteMessageRequired()); + checkBox_PalletIssue.setSelected(location.isPalletIssueMessageRequired()); + checkBox_PalletReturn.setSelected(location.isPalletReturnMessageRequired()); checkBox_Equipment_Tracking.setSelected(location.isDespatchEquipmentTrackingMessageRequired()); checkBox_Production_Confirmation.setSelected(location.isProductionConfirmationMessageRequired()); checkBox_Production_UnConfirm.setSelected(location.isProductionUnConfirmMessageRequired()); @@ -257,12 +264,15 @@ private boolean save() location.setStorageSection(jTextFieldStorageSection.getText()); location.setStorageBin(jTextFieldStorageBin.getText()); location.setEquipmentTrackingID(jTextFieldEquipmentTrackingID.getText()); + location.setBarcodeId(jTextFieldBarcodeID.getText()); location.setMsgDespatchConfirm(checkBox_DespatchConfirm.isSelected()); location.setMsgDespatchEquipTrack(checkBox_Equipment_Tracking.isSelected()); location.setMsgDespatchPreadvice(checkBox_PreAdvice.isSelected()); location.setMsgStatusChange(checkBox_StatusChange.isSelected()); location.setMsgProdConfirm(checkBox_Production_Confirmation.isSelected()); location.setMsgPalletSplit(checkBox_PalletSplit.isSelected()); + location.setMsgPalletIssue(checkBox_PalletIssue.isSelected()); + location.setMsgPalletReturn(checkBox_PalletReturn.isSelected()); location.setMsgDelete(checkBox_PalletDelete.isSelected()); location.setEnabled(chckbxEnabled.isSelected()); location.setMsgJourneyRef(checkBox_JourneyRef.isSelected()); @@ -318,7 +328,7 @@ private void initGUI() { try { this.setPreferredSize(new java.awt.Dimension(450, 340)); - this.setBounds(0, 0, 489, 666); + this.setBounds(0, 0, 515, 592); setVisible(true); this.setClosable(true); this.setIconifiable(true); @@ -329,7 +339,7 @@ private void initGUI() { getContentPane().add(jDesktopPane1, BorderLayout.CENTER); { scrollPane = new JScrollPane(); - scrollPane.setBounds(52, 480, 163, 84); + scrollPane.setBounds(100, 414, 163, 84); palletStatusList = new JList4j(); DefaultListModel lmod1 = new DefaultListModel(); for (int temp=0;temp(); DefaultListModel lmod2 = new DefaultListModel(); for (int temp=0;temp= 0) { - String llocation = jTable1.getValueAt(row, 4).toString(); + String llocation = jTable1.getValueAt(row, JDBProcessOrderTableModel.Process_Order_Location_Col).toString(); JLaunchMenu.runForm("FRM_ADMIN_LOCATION_EDIT", llocation); } } @@ -920,7 +921,7 @@ public void actionPerformed(ActionEvent arg0) int row = jTable1.getSelectedRow(); if (row >= 0) { - String lmaterial = jTable1.getValueAt(row, 1).toString(); + String lmaterial = jTable1.getValueAt(row, JDBProcessOrderTableModel.Process_Order_Material_Col).toString(); JLaunchMenu.runForm("FRM_ADMIN_MATERIAL_EDIT", lmaterial); } } @@ -929,6 +930,26 @@ public void actionPerformed(ActionEvent arg0) mntmEditMaterial.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_EDIT")); mntmEditMaterial.setIcon(Common.icon_material_16x16); } + + { + mntmEditBOM = new JMenuItem4j(lang.get("mod_MENU_BOM")); + mntmEditBOM.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent arg0) + { + int row = jTable1.getSelectedRow(); + if (row >= 0) + { + String lbom = jTable1.getValueAt(row, JDBProcessOrderTableModel.Process_Order_Recipe_Col).toString(); + String lversion = jTable1.getValueAt(row, JDBProcessOrderTableModel.Process_Order_Recipe_Version_Col).toString(); + JLaunchMenu.runForm("FRM_BOM_ADMIN", lbom,lversion); + } + } + }); + mnReferenceData.add(mntmEditBOM); + mntmEditBOM.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_ADMIN")); + mntmEditBOM.setIcon(Common.icon_bom_16x16); + } } diff --git a/b6/src/com/commander4j/app/JInternalFrameProcessOrderProperties.java b/b6/src/com/commander4j/app/JInternalFrameProcessOrderProperties.java index f67bcaeb6..e85703565 100755 --- a/b6/src/com/commander4j/app/JInternalFrameProcessOrderProperties.java +++ b/b6/src/com/commander4j/app/JInternalFrameProcessOrderProperties.java @@ -64,6 +64,7 @@ import com.commander4j.gui.JTextField4j; import com.commander4j.sys.Common; import com.commander4j.sys.JLaunchLookup; +import com.commander4j.sys.JLaunchMenu; import com.commander4j.util.JDateControl; import com.commander4j.util.JHelp; import com.commander4j.util.JQuantityInput; @@ -93,6 +94,7 @@ public class JInternalFrameProcessOrderProperties extends JInternalFrame { private JButton4j jButtonLocationLookup; private JButton4j jButtonResourceLookup; private JButton4j jButtonMaterialLookup; + private JButton4j jButtonBOMLookup; private JButton4j jButtonClose; private JButton4j jButtonHelp; private JButton4j jButtonSave; @@ -344,7 +346,7 @@ public void keyTyped(KeyEvent evt) jDesktopPane1.add(jLabelRecipeVersion); jLabelRecipeVersion.setText("/"); jLabelRecipeVersion.setHorizontalAlignment(SwingConstants.CENTER); - jLabelRecipeVersion.setBounds(288, 136, 21, 21); + jLabelRecipeVersion.setBounds(287, 136, 10, 21); } { lblInspectionID = new JLabel4j_std(); @@ -368,7 +370,7 @@ public void keyTyped(KeyEvent evt) { jTextFieldRecipeVersion = new JTextField4j(JDBProcessOrder.field_recipe_version); jDesktopPane1.add(jTextFieldRecipeVersion); - jTextFieldRecipeVersion.setBounds(310, 136, 66, 21); + jTextFieldRecipeVersion.setBounds(298, 136, 66, 21); jTextFieldRecipeVersion.addKeyListener(new KeyAdapter() { public void keyTyped(KeyEvent evt) @@ -550,6 +552,21 @@ public void actionPerformed(ActionEvent evt) } }); } + { + jButtonBOMLookup = new JButton4j(Common.icon_bom_16x16); + jButtonBOMLookup.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_ADMIN")); + jDesktopPane1.add(jButtonBOMLookup); + jButtonBOMLookup.setBounds(364, 136, 21, 21); + jButtonBOMLookup.setToolTipText(lang.get("mod_MENU_BOM")); + jButtonBOMLookup.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + JLaunchMenu.runForm("FRM_BOM_ADMIN", jTextFieldRecipeID.getText(), jTextFieldRecipeVersion.getText()); + } + }); + } + { jButtonLocationLookup = new JButton4j(Common.icon_lookup_16x16); jDesktopPane1.add(jButtonLocationLookup); diff --git a/b6/src/com/commander4j/app/JVersion.java b/b6/src/com/commander4j/app/JVersion.java index a935b8cf3..2841ddc1b 100644 --- a/b6/src/com/commander4j/app/JVersion.java +++ b/b6/src/com/commander4j/app/JVersion.java @@ -31,7 +31,7 @@ public class JVersion { public static String getProgramVersion() { - return "11.08"; + return "11.20"; } public static Double getProgramVersionValue() { @@ -39,7 +39,7 @@ public static Double getProgramVersionValue() { } public static int getSchemaVersion() { - return 196; + return 199; } } diff --git a/b6/src/com/commander4j/bom/BomImport.java b/b6/src/com/commander4j/bom/BomImport.java new file mode 100644 index 000000000..162386fe8 --- /dev/null +++ b/b6/src/com/commander4j/bom/BomImport.java @@ -0,0 +1,142 @@ +package com.commander4j.bom; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; + +import com.commander4j.sys.Common; +import com.commander4j.util.JUtility; +import com.commander4j.xml.JXMLDocument; + +public class BomImport +{ + + Map inputOutputMap = new HashMap<>(); + private JXMLDocument xmlMessage; + UUID uuid = UUID.randomUUID(); + JDBBom bomdb; + + + private String hostID; + private String sessionID; + private String errorMessage; + + public String getErrorMessage() + { + return errorMessage; + } + + private void setErrorMessage(String errorMessage) + { + this.errorMessage = errorMessage; + } + + public String getHostID() + { + return hostID; + } + + public void setHostID(String hostID) + { + this.hostID = hostID; + } + + public String getSessionID() + { + return sessionID; + } + + public void setSessionID(String sessionID) + { + this.sessionID = sessionID; + } + + public BomImport(String host, String session) + { + setSessionID(session); + setHostID(host); + setErrorMessage(""); + bomdb = new JDBBom(getHostID(),getSessionID()); + } + + + public void parse(String bom_id, String bom_version, JXMLDocument xmlMessage, String xpath, String parent_uuid) + { + int sequence = 1; + String valueString = ""; + Timestamp valueTimestamp = JUtility.getSQLDateTime(); + BigDecimal valueBigDecimal = new BigDecimal("0.000"); + + while (JUtility.replaceNullStringwithBlank(xmlMessage.findXPath(xpath + "[" + sequence + "]" + "/@data_id").trim()).equals("") == false) + { + + String newPath = xpath + "[" + sequence + "]"; + String data_id = JUtility.replaceNullStringwithBlank(xmlMessage.findXPath(newPath + "/@data_id").trim()); + String type = JUtility.replaceNullStringwithBlank(xmlMessage.findXPath(newPath + "/@type").trim()); + + uuid = UUID.randomUUID(); + String uuidString = uuid.toString(); + + System.out.print("bom_id="+bom_id+" bom_version="+bom_version+" newPath=" + newPath + " data_id=" + data_id + " type=" + type); + + switch (type) + { + case "string": + valueString = JUtility.replaceNullStringwithBlank(xmlMessage.findXPath(newPath + "/@value").trim()); + System.out.print(" value=" + valueString); + bomdb.write(bom_id, bom_version, data_id, type, valueString, uuidString, parent_uuid); + break; + case "timestamp": + valueTimestamp = JUtility.getTimeStampFromISOString(JUtility.replaceNullStringwithBlank(xmlMessage.findXPath(newPath + "/@value").trim())); + System.out.print(" value=" + valueTimestamp); + bomdb.write(bom_id, bom_version, data_id, type, valueTimestamp, uuidString, parent_uuid); + break; + case "decimal": + valueBigDecimal = new BigDecimal(JUtility.replaceNullStringwithBlank(xmlMessage.findXPath(newPath + "/@value").trim())); + System.out.print(" value=" + valueBigDecimal); + bomdb.write(bom_id, bom_version, data_id, type, valueBigDecimal, uuidString, parent_uuid); + break; + default: + break; + } + System.out.println(" uuid=" + uuidString + " parent_uuid=" + parent_uuid); + + + // check if element has children + + parse(bom_id, bom_version, xmlMessage, newPath + "/element", uuidString); + + sequence++; + } + } + + public JDBBomRecord importBom(String filename) + { + + JDBBomRecord result = new JDBBomRecord(Common.selectedHostID,Common.sessionID); + JDBBom bomdb = new JDBBom(Common.selectedHostID,Common.sessionID); + + xmlMessage = new JXMLDocument(); + xmlMessage.setDocument(filename); + + String recipeID = JUtility.replaceNullStringwithBlank(xmlMessage.findXPath("/message/messageData[1]/bom[1]/@id").trim()); + String recipeVersion = JUtility.replaceNullStringwithBlank(xmlMessage.findXPath("/message/messageData[1]/bom[1]/@version").trim()); + + result.setBOMId(recipeID); + result.setBOMVersion(recipeVersion); + + bomdb.deleteBOM(recipeID, recipeVersion); + bomdb.init(); + + uuid = UUID.randomUUID(); + String uuidRecipe = uuid.toString(); + + bomdb.write(recipeID, recipeVersion, "root", "string", "", uuidRecipe, ""); + + parse(recipeID, recipeVersion, xmlMessage, "/message/messageData/bom/element", uuidRecipe); + + return result; + } +} diff --git a/b6/src/com/commander4j/bom/BomMaterials.java b/b6/src/com/commander4j/bom/BomMaterials.java new file mode 100644 index 000000000..a8d1a30ee --- /dev/null +++ b/b6/src/com/commander4j/bom/BomMaterials.java @@ -0,0 +1,74 @@ +package com.commander4j.bom; + +import com.commander4j.util.JUtility; + +public class BomMaterials +{ + public String material = ""; + public String material_uuid = ""; + public String default_location = ""; + public Integer locationsRequired = 0; + + public Integer getSortKey() + { + Integer result = 0; + + if (getDefault_location().equals("")) + { + result = 99999; + } + else + { + result = 0; + } + result = result + locationsRequired; + + + return result; + } + + public Integer getLocationsRequired() + { + return locationsRequired; + } + + public void setLocationsRequired(Integer locationsRequired) + { + this.locationsRequired = locationsRequired; + } + + public String getDefault_location() + { + return default_location; + } + + public void setDefault_location(String default_location) + { + this.default_location = JUtility.replaceNullStringwithBlank(default_location); + } + + public String getMaterial() + { + return material; + } + + public void setMaterial(String material) + { + this.material = JUtility.replaceNullStringwithBlank(material); + } + + public String getMaterial_uuid() + { + return material_uuid; + } + + public void setMaterial_uuid(String material_uuid) + { + this.material_uuid = JUtility.replaceNullStringwithBlank(material_uuid); + } + + public String toString() + { + return "material=["+material+"] material_uuid=["+material_uuid+"] default_location=["+default_location+"] locationsRequired=["+locationsRequired+"]"; + } +} diff --git a/b6/src/com/commander4j/bom/BomTreeRenderer.java b/b6/src/com/commander4j/bom/BomTreeRenderer.java new file mode 100644 index 000000000..b3cb782e0 --- /dev/null +++ b/b6/src/com/commander4j/bom/BomTreeRenderer.java @@ -0,0 +1,54 @@ +package com.commander4j.bom; + +import java.awt.Component; + +import javax.swing.JTree; +import javax.swing.tree.DefaultMutableTreeNode; +import javax.swing.tree.DefaultTreeCellRenderer; + +import com.commander4j.sys.Common; + + +public class BomTreeRenderer extends DefaultTreeCellRenderer +{ + private static final long serialVersionUID = 1; + + public BomTreeRenderer() + { + + } + + + public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) + { + + try + { + setFont(Common.font_tree); + + super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus); + + Object nodeObj = ((DefaultMutableTreeNode) value).getUserObject(); + + setIcon(((JDBBomRecord) nodeObj).getIcon()); + + setToolTipText(getMenuHint(value)); + } + catch (Exception ex) + { + + } + + return this; + } + + + protected String getMenuHint(Object value) { + + Object nodeObj = ((DefaultMutableTreeNode) value).getUserObject(); + + String type = "       uuid="+((JDBBomRecord) nodeObj).getUuid() +"
parent_uuid="+((JDBBomRecord) nodeObj).getParent_uuid()+"
sequence="+((JDBBomRecord) nodeObj).getBOMSequence()+""; + return type; + } + +} diff --git a/b6/src/com/commander4j/bom/BomValidate.java b/b6/src/com/commander4j/bom/BomValidate.java new file mode 100644 index 000000000..3b27da174 --- /dev/null +++ b/b6/src/com/commander4j/bom/BomValidate.java @@ -0,0 +1,277 @@ +package com.commander4j.bom; + +import java.math.BigDecimal; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.LinkedList; +import java.util.UUID; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.sys.Common; + +public class BomValidate +{ + UUID uuid = UUID.randomUUID(); + JDBBom bomDB = new JDBBom(Common.selectedHostID,Common.sessionID); + public static Integer mode_firstAvailable = 0; + public static Integer mode_adjacent = 1; + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(BomValidate.class); + + public BigDecimal getRequiredQuantity(String bom_id, String bom_version,String stage) + { + BigDecimal result = new BigDecimal(0); + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(Common.selectedHostID).getConnection(Common.sessionID).prepareStatement("select * from VIEW_BOM where bom_id = ? and bom_version = ? and input_output = ? and stage = ?"); + + stmt.setString(1, bom_id); + stmt.setString(2, bom_version); + stmt.setString(3, "output"); + stmt.setString(4, stage); + + rs = stmt.executeQuery(); + + if (rs.next()) + { + result = rs.getBigDecimal("quantity"); + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + logger.debug(e.getMessage()); + } + + return result; + } + + public void allocateLocations(String bom_id, String bom_version, String inputoutput,String stage, int mode) + { + + BigDecimal outputQuantity = getRequiredQuantity(bom_id, bom_version,stage); + + LinkedList material = new LinkedList(); + + JDBViewBomRecord vbr = new JDBViewBomRecord(Common.selectedHostID,Common.sessionID); + + JDBBomDefaults def = new JDBBomDefaults(Common.selectedHostID,Common.sessionID); + + LinkedList vblist = vbr.getBomMaterials(bom_id, bom_version, inputoutput,stage); + + int locationsRequired = 0; + + logger.debug(""); + + for (int x = 0; x < vblist.size(); x++) + { + BigDecimal materialRequiredQuantity = vblist.get(x).getQuantity(); + + locationsRequired = 0; + + do + { + locationsRequired++; + materialRequiredQuantity = materialRequiredQuantity.subtract(outputQuantity); + } + while (materialRequiredQuantity.compareTo(outputQuantity) >= 0); + + BomMaterials matLocation = new BomMaterials(); + + matLocation.setMaterial(vblist.get(x).getMaterial()); + matLocation.setMaterial_uuid(vblist.get(x).getMaterial_uuid()); + matLocation.setDefault_location(def.defaultValue("material", vblist.get(x).getMaterial(), "location_id")); + matLocation.setLocationsRequired(locationsRequired); + + boolean found = false; + for (int y = 0; y < material.size(); y++) + { + if (material.get(y).getMaterial_uuid().equals(matLocation.getMaterial_uuid())) + { + found = true; + } + } + + if (found == false) + { + material.addLast(matLocation); + logger.debug(matLocation); + } + } + + logger.debug(""); + + if (mode == mode_firstAvailable) + { + logger.debug("<<<<<< Mode = firstFree >>>>>>"); + Collections.sort(material, Comparator.comparingInt(BomMaterials::getSortKey)); + + for (int x = 0; x < material.size(); x++) + { + logger.debug(material.get(x)); + } + } + else + { + logger.debug("<<<<<< Mode = adjacent >>>>>>"); + } + + JDBBomList ll = new JDBBomList(Common.selectedHostID,Common.sessionID); + + LinkedList availableLocations = ll.getValues(Common.hostList.getHost(Common.selectedHostID).getSqlstatements().getSQL("JDBBomList.getLocationIDs"), "ITEM"); + LinkedList assignedLocations = new LinkedList(); + + HashMap materialNewlyAssignedLocations = new HashMap(); + HashMap materialCurrentlyAssignedLocations = new HashMap(); + + logger.debug(""); + + logger.debug("Available Locations " + availableLocations); + + boolean newLocationRequired = false; + + String defaultAssignment = ""; + assignedLocations.clear(); + + for (int x = 0; x < material.size(); x++) + { + logger.debug("\n***********************************"); + logger.debug("Processing " + material.get(x).material); + + logger.debug("Locations Required " + material.get(x).getLocationsRequired()); + + materialCurrentlyAssignedLocations.clear(); + materialNewlyAssignedLocations.clear(); + + for (int y = 1; y <= material.get(x).getLocationsRequired(); y++) + { + System.out.print("\n====Location " + y + " of " + material.get(x).getLocationsRequired() + "====\n"); + + logger.debug("Available Locations = " + availableLocations); + + defaultAssignment = (material.get(x).default_location); + + if (defaultAssignment.equals("")) + { + newLocationRequired = true; + } + else + { + if (availableLocations.contains(defaultAssignment) == false) + { + newLocationRequired = true; + } + } + + if (newLocationRequired) + { + if (availableLocations.size() > 0) + { + defaultAssignment = availableLocations.getFirst(); + } + } + + // logger.debug("Before assignedLocations = "+assignedLocations); + // logger.debug("Before availableLocations = + // "+availableLocations); + + logger.debug("Preferred Location = [" + defaultAssignment + "]"); + + assignedLocations.add(defaultAssignment); + + + JDBBomRecord newLocation = new JDBBomRecord(Common.selectedHostID,Common.sessionID); + newLocation.setBOMId(bom_id); + newLocation.setBOMVersion(bom_version); + newLocation.setDataId("location_id"); + newLocation.setDataType("string"); + newLocation.setDataString(defaultAssignment); + newLocation.setParent_uuid(material.get(x).getMaterial_uuid()); + newLocation.setUuid(UUID.randomUUID().toString()); + newLocation.setBOMSequence(bomDB.getSequence("location_id", material.get(x).getMaterial_uuid())); + + materialNewlyAssignedLocations.put(defaultAssignment, newLocation); + + availableLocations.remove(defaultAssignment); + + // logger.debug("Assigned Locations = "+assignedLocations); + logger.debug("Assign " + materialNewlyAssignedLocations + " to [" + material.get(x).material + "]"); + + } + + // Get locations currently assigned. + + JDBBom bom = new JDBBom(Common.selectedHostID,Common.sessionID); + + JDBBomRecord rec = bom.getProperties(material.get(x).getMaterial_uuid()); + + LinkedList child = bom.getChildUUIDs(rec); + + for (int z = child.size() - 1; z >= 0; z--) + { + if (child.get(z).getDataId().equals("location_id") == false) + { + child.remove(z); + } + } + + for (int z = 0; z < child.size(); z++) + { + // logger.debug("current location assigned " + child.get(z)); + materialCurrentlyAssignedLocations.put(child.get(z).getDataString(), child.get(z)); + } + + // Collections.sort(currentLocations); + logger.debug("Currently Assigned = " + materialCurrentlyAssignedLocations); + + + String checkCreate = ""; + int sequenceIncrement = 0; + + for (HashMap.Entry set : materialNewlyAssignedLocations.entrySet()) + { + checkCreate = set.getKey(); + + + if (materialCurrentlyAssignedLocations.containsKey(checkCreate) == false) + { + sequenceIncrement = sequenceIncrement + 10; + + set.getValue().setBOMSequence(set.getValue().getBOMSequence()+sequenceIncrement); + + bomDB.writeRecord( set.getValue()); + } + } + + String checkDelete = ""; + + for (HashMap.Entry set : materialCurrentlyAssignedLocations.entrySet()) + { + checkDelete = set.getKey(); + + if (materialNewlyAssignedLocations.containsKey(checkDelete) == false) + { + bomDB.deleteUUID(set.getValue().getUuid()); + } + } + + + logger.debug("***********************************"); + } + + logger.debug("\n"); + logger.debug("Final assignedLocations = " + assignedLocations); + logger.debug("Final availableLocations = " + availableLocations); + } +} diff --git a/b6/src/com/commander4j/bom/JDBBom.java b/b6/src/com/commander4j/bom/JDBBom.java new file mode 100644 index 000000000..db6fedf93 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBom.java @@ -0,0 +1,619 @@ +package com.commander4j.bom; + +import java.math.BigDecimal; +import java.sql.Date; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Timestamp; +import java.util.HashMap; +import java.util.LinkedList; +import java.util.UUID; + +import javax.swing.tree.DefaultMutableTreeNode; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.sys.Common; + +public class JDBBom +{ + UUID uuid = UUID.randomUUID(); + JDBBomRecord rec; + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(JDBBom.class); + + Integer sequence = 0; + + private String hostID; + private String sessionID; + + public void init() + { + sequence = 0; + } + + private void setHostID(String host) + { + hostID = host; + } + + private String getHostID() + { + return hostID; + } + + private String getSessionID() + { + return sessionID; + } + + private void setSessionID(String session) + { + sessionID = session; + } + + public JDBBom(String host, String session) + { + setHostID(host); + setSessionID(session); + rec = new JDBBomRecord(getHostID(), getSessionID()); + } + + public String getRootUuid(String bomID, String bomVersion) + { + String result = ""; + + PreparedStatement stmt; + ResultSet rs; + + try + { + // stmt = Common.host.con.prepareStatement("SELECT * FROM APP_BOM + // where BOM_ID = ? and BOM_VERSION = ? and DATA_ID = 'root'"); + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.getRootUuid")); + stmt.setFetchSize(1); + stmt.setString(1, bomID); + stmt.setString(2, bomVersion); + rs = stmt.executeQuery(); + if (rs.next()) + { + result = rs.getString("UUID"); + + } + rs.close(); + stmt.close(); + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = ""; + } + + return result; + } + + public HashMap getElementCount(JDBBomRecord rec) + { + HashMap result = new HashMap(); + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.getElementCount")); + + // stmt = Common.host.con.prepareStatement("SELECT * FROM APP_BOM + // WHERE PARENT_UUID = ? ORDER BY BOM_SEQUENCE"); + stmt.setString(1, rec.getUuid()); + + rs = stmt.executeQuery(); + + while (rs.next()) + { + String key = ""; + + key = "[" + rs.getString("data_id") + "]"; + + if (result.containsKey(key)) + { + result.put(key, result.get(key) + 1); + } + else + { + result.put(key, 1); + } + } + } + catch (Exception e) + { + logger.error(e.getMessage()); + } + + return result; + } + + public int getSequence(String data_id, String parent_uuid) + { + int result = 0; + + try + { + PreparedStatement stmt; + ResultSet rs; + + // stmt = Common.host.con.prepareStatement("SELECT * FROM APP_BOM + // WHERE PARENT_UUID = ? ORDER BY BOM_SEQUENCE"); + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.getSequence")); + + stmt.setString(1, parent_uuid); + + rs = stmt.executeQuery(); + + while (rs.next()) + { + result = rs.getInt("BOM_SEQUENCE"); + + if (rs.getString("DATA_ID").equals(data_id)) + { + break; + } + } + } + catch (Exception e) + { + logger.error(e.getMessage()); + } + + return result; + } + + public DefaultMutableTreeNode recurseBOM(DefaultMutableTreeNode node, String uuid, int level,String stage) + { + + try + { + PreparedStatement stmt; + + ResultSet rs; + + if (level == 0) + { + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.recurseBOM1")); + } + else + { + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.recurseBOM2")); + } + + stmt.setString(1, uuid); + + rs = stmt.executeQuery(); + + level++; + + while (rs.next()) + { + + JDBBomRecord rec = new JDBBomRecord(getHostID(), getSessionID()); + + rec.getPropertiesFromResultSet(rs); + + boolean stageOK = false; + + if (rec.getDataId().equals("stage")) + { + if (rec.getDataString().equals(stage)) + { + stageOK = true; + } + } + else + { + stageOK = true; + } + + if (stageOK) + { + + DefaultMutableTreeNode leaf = new DefaultMutableTreeNode(rec, true); + + if (level > 1) + { + node.add(leaf); + } + else + { + node = leaf; + } + + recurseBOM(leaf, rs.getString("UUID"), level,stage); + } + } + + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + } + + return node; + } + + public String cloneTree(JDBBomRecord current, JDBBomRecord newRecord) + { + String result = ""; + + JDBBomRecord nextRecord = cloneRecord(current, newRecord); + + LinkedList children = getChildUUIDs(current); + + for (int x = 0; x < children.size(); x++) + { + cloneTree(children.get(x), nextRecord); + } + + return result; + } + + public String deleteTree(JDBBomRecord current) + { + String result = ""; + + LinkedList children = getChildUUIDs(current); + + for (int x = 0; x < children.size(); x++) + { + deleteTree(children.get(x)); + } + + deleteUUID(current.getUuid()); + + return result; + } + + public LinkedList getChildUUIDs(JDBBomRecord current) + { + LinkedList result = new LinkedList(); + + try + { + PreparedStatement stmt; + ResultSet rs; + + // stmt = Common.host.con.prepareStatement("select * from APP_BOM + // where parent_uuid = ?"); + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.getChildUuids")); + + stmt.setString(1, current.getUuid()); + + rs = stmt.executeQuery(); + + while (rs.next()) + { + JDBBomRecord temp = new JDBBomRecord(getHostID(), getSessionID()); + temp.getPropertiesFromResultSet(rs); + result.add(temp); + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + } + + return result; + } + + public JDBBomRecord cloneRecord(JDBBomRecord current, JDBBomRecord nextRecord) + { + String uuidnew = ""; + + JDBBomRecord newRecord = cloneBomObject(current); + + uuid = UUID.randomUUID(); + + uuidnew = uuid.toString(); + + newRecord.setUuid(uuidnew); + + if (nextRecord == null) + { + newRecord.setParent_uuid(current.getParent_uuid()); + } + else + { + newRecord.setParent_uuid(nextRecord.getUuid()); + } + + writeRecord(newRecord); + + return newRecord; + } + + public JDBBomRecord cloneBomObject(JDBBomRecord from) + { + JDBBomRecord to = new JDBBomRecord(getHostID(), getSessionID()); + + to.setBOMId(from.getBOMId()); + to.setDataId(from.getDataId()); + to.setBOMSequence(from.getBOMSequence()); + to.setBOMVersion(from.getBOMVersion()); + to.setDataDate(from.getDataDate()); + to.setDataString(from.getDataString()); + to.setDataType(from.getDataType()); + to.setDataTimestamp(from.getDataTimestamp()); + to.setDataDecimal(from.getDataDecimal()); + to.setUuid(from.getUuid()); + to.setParent_uuid(from.getParent_uuid()); + + return to; + } + + public JDBBomRecord getProperties(String uuid) + { + JDBBomRecord currentRecord = new JDBBomRecord(getHostID(), getSessionID()); + + try + { + PreparedStatement stmt; + ResultSet rs; + + // stmt = Common.host.con.prepareStatement("select * from APP_BOM + // where uuid = ?"); + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.getProperties")); + + stmt.setString(1, uuid); + + rs = stmt.executeQuery(); + + if (rs.next()) + { + currentRecord.getPropertiesFromResultSet(rs); + + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + } + + return currentRecord; + } + + public boolean deleteBOM(String bom_id, String bom_version) + { + boolean result = true; + + init(); + + try + { + PreparedStatement stmtupdate; + + // stmtupdate = Common.host.con.prepareStatement("delete from + // APP_BOM where BOM_ID = ? and BOM_VERSION = ?"); + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.deleteBOM")); + + stmtupdate.setString(1, bom_id); + stmtupdate.setString(2, bom_version); + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + + return result; + } + + public boolean deleteUUID(String uuid) + { + boolean result = true; + + init(); + + try + { + PreparedStatement stmtupdate; + + // stmtupdate = Common.host.con.prepareStatement("delete from + // APP_BOM where UUID = ?"); + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.deleteUuid")); + + stmtupdate.setString(1, uuid); + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + + return result; + } + + public boolean write(String bom_id, String bom_version, String data_id, String data_type, Object value, String uuid, String parent_uuid) + { + boolean result = true; + JDBBomRecord rec = new JDBBomRecord(getHostID(), getSessionID()); + + rec.clear(); + + rec.setBOMId(bom_id); + rec.setBOMVersion(bom_version); + + rec.setBOMSequence(sequence); + sequence = sequence + 10; + + rec.setDataId(data_id); + rec.setDataType(data_type); + rec.setUuid(uuid); + rec.setParent_uuid(parent_uuid); + + switch (data_type) + { + case "string": + rec.setDataString((String) value); + break; + case "decimal": + rec.setDataDecimal((BigDecimal) value); + break; + case "date": + rec.setDataDate((Date) value); + break; + case "timestamp": + rec.setDataTimestamp((Timestamp) value); + break; + default: + rec.setDataString("unknown type"); + break; + } + + result = writeRecord(rec); + + return result; + } + + public boolean writeRecord(JDBBomRecord rec) + { + boolean result = true; + try + { + PreparedStatement stmtupdate; + + // stmtupdate = Common.host.con.prepareStatement("insert into + // `APP_BOM` (`BOM_ID`,`BOM_VERSION`,`BOM_SEQUENCE`, `DATA_ID`, + // `DATA_TYPE`, `DATA_STRING`, `DATA_DECIMAL`, `DATA_DATE`, + // `DATA_TIMESTAMP`, `UUID`, `PARENT_UUID`) VALUES (?,?, ?, ?, ?, ?, + // ?, ?, ?, ?, ?)"); + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.writeRecord")); + + setStatementParams(stmtupdate, rec); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + return result; + + } + + private void setStatementParams(PreparedStatement stmtupdate, JDBBomRecord rec) + { + try + { + stmtupdate.setString(1, rec.getBOMId()); + stmtupdate.setString(2, rec.getBOMVersion()); + stmtupdate.setInt(3, rec.getBOMSequence()); + stmtupdate.setString(4, rec.getDataId()); + stmtupdate.setString(5, rec.getDataType()); + stmtupdate.setString(6, rec.getDataString()); + stmtupdate.setBigDecimal(7, rec.getDataDecimal()); + stmtupdate.setDate(8, rec.getDataDate()); + stmtupdate.setTimestamp(9, rec.getDataTimestamp()); + stmtupdate.setString(10, rec.getUuid()); + stmtupdate.setString(11, rec.getParent_uuid()); + } + catch (SQLException e) + { + logger.error(e.getMessage()); + } + } + + public boolean updateRecord(JDBBomRecord rec) + { + boolean result = false; + + try + { + PreparedStatement stmtupdate; + + // stmtupdate = Common.host.con.prepareStatement("UPDATE APP_BOM SET + // DATA_STRING = ?,DATA_DECIMAL = ?,DATA_DATE = ?,DATA_TIMESTAMP = ? + // WHERE UUID = ?"); + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.updateRecord")); + + stmtupdate.setString(1, rec.getDataString()); + stmtupdate.setBigDecimal(2, rec.getDataDecimal()); + stmtupdate.setDate(3, rec.getDataDate()); + stmtupdate.setTimestamp(4, rec.getDataTimestamp()); + stmtupdate.setString(5, rec.getUuid()); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + + return result; + } + + public boolean updateSequence(JDBBomRecord rec) + { + boolean result = false; + + try + { + PreparedStatement stmtupdate; + + // stmtupdate = Common.host.con.prepareStatement("UPDATE APP_BOM SET + // BOM_SEQUENCE = ? WHERE UUID = ?"); + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBom.updateSequence")); + + stmtupdate.setInt(1, rec.getBOMSequence()); + stmtupdate.setString(2, rec.getUuid()); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + + return result; + } +} diff --git a/b6/src/com/commander4j/bom/JDBBomDefaults.java b/b6/src/com/commander4j/bom/JDBBomDefaults.java new file mode 100644 index 000000000..0c596af71 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBomDefaults.java @@ -0,0 +1,326 @@ +package com.commander4j.bom; + +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.sys.Common; + + +public class JDBBomDefaults +{ + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(JDBBomDefaults.class); + + private String source_field = ""; + private String source_value = ""; + private String destination_field = ""; + private String destination_value = ""; + private String hostID; + private String sessionID; + private String dbErrorMessage = ""; + + public static int field_source_field = 32; + public static int field_source_value = 50; + public static int field_destination_field = 32; + public static int field_destination_value = 50; + + private void setHostID(String host) + { + hostID = host; + } + + private String getHostID() + { + return hostID; + } + + private String getSessionID() + { + return sessionID; + } + + private void setSessionID(String session) + { + sessionID = session; + } + + private void setErrorMessage(String errorMsg) + { + dbErrorMessage = errorMsg; + } + + public String getErrorMessage() + { + return dbErrorMessage; + } + + public JDBBomDefaults(String host, String session) + { + setHostID(host); + setSessionID(session); + } + + public void clear() + { + setSourceField(""); + setSourceValue(""); + setDestinationField(""); + setDestinationValue(""); + setErrorMessage(""); + } + + public String getSouceField() + { + return source_field; + } + + public void setSourceField(String sourceField) + { + this.source_field = sourceField; + } + + public String getSourceValue() + { + return source_value; + } + + public void setSourceValue(String sourceValue) + { + this.source_value = sourceValue; + } + + public String getDestinationField() + { + return destination_field; + } + + public void setDestinationField(String destinationField) + { + this.destination_field = destinationField; + } + + public String getDestinationValue() + { + return destination_value; + } + + public void setDestinationValue(String destinationValue) + { + this.destination_value = destinationValue; + } + + public String defaultValue(String sourceField,String sourceValue,String destinationField) + { + String result = ""; + + if (getProperties(sourceField,sourceValue,destinationField)) + { + result = getDestinationValue(); + } + + return result; + } + + public boolean getProperties(String sourceField,String sourceValue,String destinationField) + { + boolean result = false; + + clear(); + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomDefaults.getProperties")); + + stmt.setString(1, sourceField); + stmt.setString(2, sourceValue); + stmt.setString(3, destinationField); + + rs = stmt.executeQuery(); + + if (rs.next()) + { + setSourceField(rs.getString("source_field")); + setSourceValue(rs.getString("source_value")); + setDestinationField(rs.getString("destination_field")); + setDestinationValue(rs.getString("destination_value")); + result = true; + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + setErrorMessage(e.getMessage()); + result = false; + } + + return result; + } + + public boolean delete(String sourceField,String sourceValue,String destinationField) + { + boolean result = true; + setErrorMessage(""); + + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomDefaults.delete")); + stmtupdate.setString(1, sourceField); + stmtupdate.setString(2, sourceValue); + stmtupdate.setString(3, destinationField); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + setErrorMessage(e.getMessage()); + result = false; + } + + return result; + } + + public boolean create(String sourceField,String sourceValue,String destinationField,String destinationValue) + { + boolean result = true; + setErrorMessage(""); + + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomDefaults.create")); + + stmtupdate.setString(1, sourceField); + stmtupdate.setString(2, sourceValue); + stmtupdate.setString(3, destinationField); + stmtupdate.setString(4, destinationValue); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + setErrorMessage(e.getMessage()); + result = false; + } + + return result; + } + + public boolean update(String sourceField,String sourceValue,String destinationField,String destinationValue) + { + boolean result = false; + setErrorMessage(""); + + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomDefaults.update")); + + stmtupdate.setString(1, destinationValue); + stmtupdate.setString(2, sourceField); + stmtupdate.setString(3, sourceValue); + stmtupdate.setString(4, destinationField); + + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + setErrorMessage(e.getMessage()); + result = false; + } + + return result; + } + + public String toString() { + String result = ""; + + result = getDestinationValue(); + + return result; + } + + public ResultSet getMaterialBatchDataResultSet(PreparedStatement criteria) + { + ResultSet rs; + setErrorMessage(""); + + try + { + rs = criteria.executeQuery(); + } + catch (Exception e) + { + rs = null; + setErrorMessage(e.getMessage()); + } + + return rs; + } + + public void getPropertiesfromResultSet(ResultSet rs) + { + try + { + clear(); + setSourceField(rs.getString("source_field")); + setSourceValue(rs.getString("source_value")); + setDestinationField(rs.getString("destination_field")); + setDestinationValue(rs.getString("destination_value")); + } + catch (SQLException e) + { + setErrorMessage(e.getMessage()); + } + } + + public ResultSet getBomDefaultsResultSet(PreparedStatement criteria) + { + + ResultSet rs; + + try + { + rs = criteria.executeQuery(); + + } catch (Exception e) + { + rs = null; + setErrorMessage(e.getMessage()); + } + + return rs; + } +} diff --git a/b6/src/com/commander4j/bom/JDBBomDefaultsTableModel.java b/b6/src/com/commander4j/bom/JDBBomDefaultsTableModel.java new file mode 100644 index 000000000..e850b6565 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBomDefaultsTableModel.java @@ -0,0 +1,169 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JDBBomDefaultsTableModel.java + * + * Package Name : com.commander4j.tablemodel + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.sql.ResultSet; +import java.util.HashMap; + +import javax.swing.ImageIcon; +import javax.swing.table.AbstractTableModel; + +import com.commander4j.sys.Common; + +/** + */ +public class JDBBomDefaultsTableModel extends AbstractTableModel +{ + private static final long serialVersionUID = 1; + + public static final int source_field_desc_col = 0; + public static final int source_field_icon_col = 1; + public static final int source_field_col = 2; + public static final int source_value_col = 3; + public static final int destination_field_desc_col = 4; + public static final int destination_field_icon_col = 5; + public static final int destination_field_col = 6; + public static final int destination_value_col = 7; + + // Names of the columns + private String[] mcolNames = + { "Source Name","", "Source Field", "Source Value", "Destination Name","", "Destination Field", "Destination Value" }; + private ResultSet mResultSet; + private int prowCount = -1; + private HashMap cache = new HashMap(); + private JDBBomElement elemSource; + private JDBBomElement elemDestination; + + public JDBBomDefaultsTableModel(String hostID, String sessionID, ResultSet rs) + { + super(); + + elemSource = new JDBBomElement(hostID, sessionID); + elemDestination = new JDBBomElement(hostID, sessionID); + + prowCount = -1; + mResultSet = rs; + } + + public int getColumnCount() + { + return mcolNames.length; + } + + public int getRowCount() + { + try + { + if (prowCount <= 0) + { + mResultSet.last(); + prowCount = mResultSet.getRow(); + mResultSet.beforeFirst(); + } + return prowCount; + + } + catch (Exception e) + { + return 0; + } + } + + public void setValueAt(Object value, int row, int col) + { + + } + + public String getColumnName(int col) + { + return mcolNames[col]; + } + + public Class getColumnClass(int column) + { + Class result; + + switch (column) + { + case source_field_icon_col: + result = ImageIcon.class; + break; + case destination_field_icon_col: + result = ImageIcon.class; + break; + default: + result = Object.class; + } + + return result; + } + + public Object getValueAt(int row, int col) + { + try + { + if (cache.containsKey(row) == false) + { + mResultSet.absolute(row + 1); + final JDBBomDefaults prow = new JDBBomDefaults(Common.selectedHostID, Common.sessionID); + prow.getPropertiesfromResultSet(mResultSet); + + elemSource.getProperties(prow.getSouceField()); + elemDestination.getProperties(prow.getDestinationField()); + + cache.put(row, prow); + } + + switch (col) + { + case source_field_col: + return cache.get(row).getSouceField(); + case source_field_desc_col: + return elemSource.getElementRecord().getDescription(); + case source_field_icon_col: + return elemSource.getElementRecord().getIcon(); + case source_value_col: + return cache.get(row).getSourceValue(); + case destination_field_col: + return cache.get(row).getDestinationField(); + case destination_value_col: + return cache.get(row).getDestinationValue(); + case destination_field_desc_col: + return elemDestination.getElementRecord().getDescription(); + case destination_field_icon_col: + return elemDestination.getElementRecord().getIcon(); + } + } + catch (Exception ex) + { + return "Error"; + } + + return new String(); + } +} diff --git a/b6/src/com/commander4j/bom/JDBBomElement.java b/b6/src/com/commander4j/bom/JDBBomElement.java new file mode 100644 index 000000000..9ebf8fc41 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBomElement.java @@ -0,0 +1,358 @@ +package com.commander4j.bom; + +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.LinkedList; + +import javax.swing.Icon; +import javax.swing.ImageIcon; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.db.JDBListData; +import com.commander4j.sys.Common; + +public class JDBBomElement +{ + + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(JDBBomElement.class); + + Integer sequence = 0; + + private String data_id = ""; + private JDBBomElementRecord element = new JDBBomElementRecord(); + private String hostID; + private String sessionID; + private String dbErrorMessage = ""; + + public static int field_data_id = 20; + public static int field_data_type = 20; + public static int field_data_description = 80; + public static int field_icon_filename = 80; + public static int field_lookup_sql = 255; + public static int field_lookup_field = 32; + + private void setHostID(String host) + { + hostID = host; + } + + private String getHostID() + { + return hostID; + } + + private String getSessionID() + { + return sessionID; + } + + private void setSessionID(String session) + { + sessionID = session; + } + + private void setErrorMessage(String errorMsg) + { + dbErrorMessage = errorMsg; + } + + public String getErrorMessage() + { + return dbErrorMessage; + } + + public JDBBomElement(String host, String session) + { + setHostID(host); + setSessionID(session); + } + + public JDBBomElementRecord getElementRecord() + { + return element; + } + + public String getDataId() + { + return data_id; + } + + public void setDataId(String id) + { + this.data_id = id; + } + + public boolean getProperties(String id) + { + boolean result = false; + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomElement.getProperties")); + + stmt.setString(1, id); + + rs = stmt.executeQuery(); + + if (rs.next()) + { + setDataId(rs.getString("data_id")); + + element.getPropertiesFromResultSet(rs); + + result = true; + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + + return result; + } + + public boolean isValid(String id) + { + boolean result = false; + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomElement.getProperties")); + + stmt.setString(1, id); + + rs = stmt.executeQuery(); + + if (rs.next()) + { + result = true; + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + + return result; + } + + public boolean delete(String id) + { + boolean result = false; + + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomElement.delete")); + + stmtupdate.setString(1, id); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + stmtupdate.close(); + + result = true; + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + + return result; + } + + public boolean create(String id,JDBBomElementRecord rec) + { + boolean result = false; + + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomElement.create")); + + stmtupdate.setString(1, id); + stmtupdate.setString(2, rec.getDataType()); + stmtupdate.setString(3, rec.getEnable_edit()); + stmtupdate.setString(4, rec.getEnable_create()); + stmtupdate.setString(5, rec.getEnable_delete()); + stmtupdate.setString(6, rec.getEnable_duplicate()); + stmtupdate.setString(7, rec.getEnable_clipboard()); + stmtupdate.setString(8, rec.getEnable_lookup()); + stmtupdate.setInt(9, rec.getMax_occur_level()); + stmtupdate.setString(10, rec.getLookup_sql()); + stmtupdate.setString(11, rec.getLookup_field()); + stmtupdate.setString(12, rec.getIcon_filename()); + stmtupdate.setString(13, rec.getDescription()); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + stmtupdate.close(); + + result = true; + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + + return result; + } + + public boolean update(String id,JDBBomElementRecord rec) + { + boolean result = false; + + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomElement.update")); + + stmtupdate.setString(1, rec.getDataType()); + stmtupdate.setString(2, rec.getEnable_edit()); + stmtupdate.setString(3, rec.getEnable_create()); + stmtupdate.setString(4, rec.getEnable_delete()); + stmtupdate.setString(5, rec.getEnable_duplicate()); + stmtupdate.setString(6, rec.getEnable_clipboard()); + stmtupdate.setString(7, rec.getEnable_lookup()); + stmtupdate.setInt(8, rec.getMax_occur_level()); + stmtupdate.setString(9, rec.getLookup_sql()); + stmtupdate.setString(10, rec.getLookup_field()); + stmtupdate.setString(11, rec.getIcon_filename()); + stmtupdate.setString(12, rec.getDescription()); + stmtupdate.setString(13, id); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + stmtupdate.close(); + + result = true; + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + + return result; + } + + public String toString() { + String result = ""; + + result = getDataId(); + + return result; + } + + public String getElementDescription(String item) + { + String result = ""; + + if (getProperties(item)) + { + result = getElementRecord().getDescription(); + } + else + { + result = item; + } + + return result; + } + + public ResultSet getBomElementsResultSet(PreparedStatement criteria) + { + + ResultSet rs; + + try + { + rs = criteria.executeQuery(); + + } catch (Exception e) + { + rs = null; + setErrorMessage(e.getMessage()); + } + + return rs; + } + + public LinkedList getElementIds(boolean blankfirst) + { + LinkedList elementList = new LinkedList(); + + setErrorMessage(""); + Icon icon = new ImageIcon(); + int index = 0; + + if (blankfirst) + { + JDBBomElementRecord blank = new JDBBomElementRecord(); + blank.setDataId(""); + blank.setDataType(""); + blank.setIcon_filename("clear.gif"); + JDBListData item = new JDBListData(blank.getIcon(), 0, true,blank); + elementList.add(item); + } + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomElement.getList")); + rs = stmt.executeQuery(); + + while (rs.next()) + { + JDBBomElementRecord currentRecord = new JDBBomElementRecord(); + currentRecord.getPropertiesFromResultSet(rs); + + icon = currentRecord.getIcon(); + JDBListData mld = new JDBListData(icon, index, true, currentRecord); + elementList.addLast(mld); + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + } + catch (Exception ex) + { + logger.error(ex.getMessage()); + } + + return elementList; + } +} diff --git a/b6/src/com/commander4j/bom/JDBBomElementRecord.java b/b6/src/com/commander4j/bom/JDBBomElementRecord.java new file mode 100644 index 000000000..9c2398ec6 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBomElementRecord.java @@ -0,0 +1,389 @@ +package com.commander4j.bom; + +import java.io.File; +import java.sql.ResultSet; +import java.sql.SQLException; + +import javax.swing.ImageIcon; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.util.JUtility; + +public class JDBBomElementRecord +{ + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(JDBBomElementRecord.class); + + private String data_id = ""; + private String data_type = ""; + private String enable_edit = ""; + private String enable_delete = ""; + private String enable_create = ""; + private String enable_duplicate = ""; + private String enable_clipboard = ""; + private String enable_lookup = ""; + private String lookup_sql = ""; + private String lookup_field = ""; + private String icon_filename = ""; + private int max_occur_level = 0; + private String description = ""; + private String imagePath16 = System.getProperty("user.dir") + File.separator + "images" + File.separator + "16x16" + File.separator; + private ImageIcon icon; + public static int field_data_id = 20; + + public void clear() + { + + setDataId(""); + setDataType(""); + setEnable_edit(""); + setEnable_delete(""); + setEnable_create(""); + setEnable_duplicate(""); + setEnable_clipboard(""); + setEnable_lookup(""); + setLookup_sql(""); + setLookup_field(""); + setIcon_filename(""); + setMax_occur_level(0); + setDescription(""); + } + + public String getDescription() + { + return description; + } + + public void setDescription(String description) + { + this.description = description; + } + + public int getMax_occur_level() + { + return max_occur_level; + } + + public void setMax_occur_level(int max_occur_level) + { + this.max_occur_level = max_occur_level; + } + + public String getIcon_filename() + { + return JUtility.replaceNullStringwithBlank(icon_filename); + } + + public ImageIcon getIcon() + { + + String filename = getIcon_filename(); + + if (filename.equals("")) + { + filename = "default.png"; + } + + icon = new ImageIcon(imagePath16 + filename); + + return icon; + } + + public void setIcon_filename(String icon_filename) + { + this.icon_filename = icon_filename; + } + + public String getLookup_sql() + { + return lookup_sql; + } + + public void setLookup_sql(String lookup_sql) + { + this.lookup_sql = lookup_sql; + } + + public String getLookup_field() + { + return lookup_field; + } + + public void setLookup_field(String lookup_field) + { + this.lookup_field = lookup_field; + } + + public void getPropertiesFromResultSet(ResultSet rs) + { + try + { + setDataId(rs.getString("data_id")); + setDataType(rs.getString("data_type")); + setEnable_edit(rs.getString("enable_edit")); + setEnable_delete(rs.getString("enable_delete")); + setEnable_create(rs.getString("enable_create")); + setEnable_duplicate(rs.getString("enable_duplicate")); + setEnable_clipboard(rs.getString("enable_clipboard")); + setEnable_lookup(rs.getString("enable_lookup")); + setLookup_sql(rs.getString("lookup_sql")); + setLookup_field(rs.getString("lookup_field")); + setIcon_filename(rs.getString("icon_filename")); + setMax_occur_level(rs.getInt("max_occur_level")); + setDescription(rs.getString("description")); + } + catch (SQLException e) + { + logger.error(e.getMessage()); + } + + } + + public String getEnable_lookup() + { + return enable_lookup; + } + + public boolean isEnable_lookup() + { + boolean result; + + if (enable_lookup.toUpperCase().equals("Y")) + { + result = true; + } + else + { + result = false; + } + return result; + } + + public String getEnable_edit() + { + return enable_edit; + } + + public boolean isEnable_edit() + { + boolean result; + + if (enable_edit.toUpperCase().equals("Y")) + { + result = true; + } + else + { + result = false; + } + return result; + } + + public boolean isEnable_delete() + { + boolean result; + + if (enable_delete.toUpperCase().equals("Y")) + { + result = true; + } + else + { + result = false; + } + return result; + } + + public boolean isEnable_create() + { + boolean result; + + if (enable_create.toUpperCase().equals("Y")) + { + result = true; + } + else + { + result = false; + } + return result; + } + + public boolean isEnable_duplicate() + { + boolean result; + + if (enable_duplicate.toUpperCase().equals("Y")) + { + result = true; + } + else + { + result = false; + } + return result; + } + + public boolean isEnable_clipboard() + { + boolean result; + + if (enable_clipboard.toUpperCase().equals("Y")) + { + result = true; + } + else + { + result = false; + } + return result; + } + + public void setEnable_edit(String enable_edit) + { + this.enable_edit = enable_edit; + } + + public void setEnable_edit(boolean selected) + { + if (selected) + { + setEnable_edit("Y"); + } + else + { + setEnable_edit("N"); + } + } + + public void setEnable_lookup(String enable_lookup) + { + this.enable_lookup = enable_lookup; + } + + public void setEnable_lookup(boolean selected) + { + if (selected) + { + setEnable_lookup("Y"); + } + else + { + setEnable_lookup("N"); + } + } + + public String getEnable_delete() + { + return enable_delete; + } + + public void setEnable_delete(String enable_delete) + { + this.enable_delete = enable_delete; + } + + public void setEnable_delete(boolean selected) + { + if (selected) + { + setEnable_delete("Y"); + } + else + { + setEnable_delete("N"); + } + } + + public String getEnable_create() + { + return enable_create; + } + + public void setEnable_create(String enable_create) + { + this.enable_create = enable_create; + } + + public void setEnable_create(boolean selected) + { + if (selected) + { + setEnable_create("Y"); + } + else + { + setEnable_create("N"); + } + } + + public String getEnable_duplicate() + { + return enable_duplicate; + } + + public void setEnable_duplicate(String enable_duplicate) + { + this.enable_duplicate = enable_duplicate; + } + + public void setEnable_duplicate(boolean selected) + { + if (selected) + { + setEnable_duplicate("Y"); + } + else + { + setEnable_duplicate("N"); + } + } + + public String getEnable_clipboard() + { + return enable_clipboard; + } + + public void setEnable_clipboard(String enable_clipboard) + { + this.enable_clipboard = enable_clipboard; + } + + public void setEnable_clipboard(boolean selected) + { + if (selected) + { + setEnable_clipboard("Y"); + } + else + { + setEnable_clipboard("N"); + } + } + + public String getDataType() + { + return data_type; + } + + public void setDataType(String data) + { + this.data_type = JUtility.replaceNullStringwithBlank(data); + } + + public String getDataId() + { + return data_id; + } + + public void setDataId(String id) + { + this.data_id = JUtility.replaceNullStringwithBlank(id); + } + + public String toString() + { + return getDataId(); + } + +} diff --git a/b6/src/com/commander4j/bom/JDBBomElementsTableModel.java b/b6/src/com/commander4j/bom/JDBBomElementsTableModel.java new file mode 100644 index 000000000..6aa1b05a3 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBomElementsTableModel.java @@ -0,0 +1,179 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JDBBomElementsTableModel.java + * + * Package Name : com.commander4j.tablemodel + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.sql.ResultSet; +import java.util.HashMap; + +import javax.swing.ImageIcon; +import javax.swing.table.AbstractTableModel; + +import com.commander4j.sys.Common; + +/** + */ +public class JDBBomElementsTableModel extends AbstractTableModel +{ + private static final long serialVersionUID = 1; + + public static final int data_id_col = 0; + public static final int data_type_col = 1; + public static final int description_col = 2; + public static final int icon_filename_col = 3; + public static final int icon_image_col = 4; + public static final int mac_occurs_level_col = 5; + public static final int enable_create_col = 6; + public static final int enable_edit_col = 7; + public static final int enable_delete_col = 8; + public static final int enable_duplicate_col = 9; + public static final int enable_clipboard_col = 10; + public static final int enable_lookup_col = 11; + public static final int lookup_sql_col = 12; + public static final int lookup_field_col = 13; + + private String[] mcolNames = { "Data ID", + "Data Type", + "Display Name", + "Icon Filename", + "", + "
Max
Occurs
", + "
Enable
Create
", + "
Enable
Edit
", + "
Enable
Delete
", + "
Enable
Duplicate
", + "
Enable
Clipboard
", + "
Enable
Lookup
", + "Lookup SQL", + "Lookup Field"}; + + private ResultSet mResultSet; + private int prowCount = -1; + private HashMap cache = new HashMap(); + + public JDBBomElementsTableModel(String hostID,String sessionID,ResultSet rs) + { + super(); + + prowCount = -1; + mResultSet = rs; + } + + public int getColumnCount() { + return mcolNames.length; + } + + public int getRowCount() { + try + { + if (prowCount <= 0) + { + mResultSet.last(); + prowCount = mResultSet.getRow(); + mResultSet.beforeFirst(); + } + return prowCount; + + } + catch (Exception e) + { + return 0; + } + } + + public void setValueAt(Object value, int row, int col) { + + } + + public String getColumnName(int col) { + return mcolNames[col]; + } + + public Class getColumnClass(int column) + { + if (column == icon_image_col) { + return ImageIcon.class; + } + else + { + return Object.class; + } + + } + + public Object getValueAt(int row, int col) { + try + { + if (cache.containsKey(row)==false) + { + mResultSet.absolute(row + 1); + final JDBBomElement prow = new JDBBomElement(Common.selectedHostID, Common.sessionID); + prow.getElementRecord().getPropertiesFromResultSet(mResultSet); + cache.put(row, prow); + } + + switch (col) + { + case data_id_col: + return cache.get(row).getElementRecord().getDataId(); + case data_type_col: + return cache.get(row).getElementRecord().getDataType(); + case description_col: + return cache.get(row).getElementRecord().getDescription(); + case icon_filename_col: + return cache.get(row).getElementRecord().getIcon_filename(); + case icon_image_col: + return cache.get(row).getElementRecord().getIcon(); + case mac_occurs_level_col: + return cache.get(row).getElementRecord().getMax_occur_level(); + case enable_create_col: + return cache.get(row).getElementRecord().isEnable_create(); + case enable_edit_col: + return cache.get(row).getElementRecord().isEnable_edit(); + case enable_delete_col: + return cache.get(row).getElementRecord().isEnable_delete(); + case enable_duplicate_col: + return cache.get(row).getElementRecord().isEnable_duplicate(); + case enable_clipboard_col: + return cache.get(row).getElementRecord().isEnable_clipboard(); + case enable_lookup_col: + return cache.get(row).getElementRecord().isEnable_lookup(); + case lookup_sql_col: + return cache.get(row).getElementRecord().getLookup_sql(); + case lookup_field_col: + return cache.get(row).getElementRecord().getLookup_field(); + + } + } + catch (Exception ex) + { + return "Error"; + } + + return new String(); + } +} diff --git a/b6/src/com/commander4j/bom/JDBBomList.java b/b6/src/com/commander4j/bom/JDBBomList.java new file mode 100644 index 000000000..7f9689fd6 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBomList.java @@ -0,0 +1,350 @@ +package com.commander4j.bom; + +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.Collections; +import java.util.LinkedList; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.sys.Common; +import com.commander4j.util.JUtility; + +public class JDBBomList +{ + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(JDBViewBomRecord.class); + private String hostID; + private String sessionID; + private String dbErrorMessage; + private JDBBomListRecord listRecord = new JDBBomListRecord(); + + public JDBBomListRecord getListRecord() + { + return listRecord; + } + + public String getErrorMessage() + { + return dbErrorMessage; + } + + private void setErrorMessage(String ErrorMsg) + { + dbErrorMessage = ErrorMsg; + logger.debug(ErrorMsg); + } + + public JDBBomList(String host, String session) + { + setHostID(host); + setSessionID(session); + } + + private void setHostID(String host) + { + hostID = host; + } + + private String getHostID() + { + return hostID; + } + + private String getSessionID() + { + return sessionID; + } + + private void setSessionID(String session) + { + sessionID = session; + } + + public boolean delete(JDBBomListRecord rec) + { + boolean result = true; + + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomList.delete")); + + stmtupdate.setString(1, rec.getList_id()); + stmtupdate.setString(2, rec.getItem()); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + } + catch (Exception e) + { + setErrorMessage(e.getMessage()); + result = false; + } + + return result; + } + + public boolean create(JDBBomListRecord rec) + { + boolean result = false; + + listRecord = rec; + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomList.create")); + + stmtupdate.setString(1, rec.getList_id()); + stmtupdate.setString(2, rec.getItem()); + stmtupdate.setInt(3, rec.getSequence()); + stmtupdate.setString(4, rec.getEnabled()); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + result = true; + + } + catch (Exception e) + { + setErrorMessage(e.getMessage()); + result = false; + } + return result; + + } + + public boolean update(JDBBomListRecord to) + { + boolean result = false; + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomList.update")); + + stmtupdate.setInt(1, to.getSequence()); + stmtupdate.setString(2, to.getEnabled()); + + stmtupdate.setString(3, to.getList_id()); + stmtupdate.setString(4, to.getItem()); + + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + listRecord = to; + + result = true; + + } + catch (Exception e) + { + setErrorMessage(e.getMessage()); + result = false; + } + return result; + + } + + public LinkedList getListItems(String list_id) + { + LinkedList result = new LinkedList(); + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomList.getValues")); + + + stmt.setString(1, list_id); + + rs = stmt.executeQuery(); + + while (rs.next()) + { + String listitem = JUtility.replaceNullStringwithBlank(rs.getString("item")); + + result.addLast(listitem); + } + + stmt.clearParameters(); + + rs.close(); + stmt.close(); + } + catch (Exception e) + { + setErrorMessage(e.getMessage()); + } + + return result; + } + + + public boolean getProperties(JDBBomListRecord rec) + { + boolean result = false; + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomList.getProperties")); + + stmt.setString(1, rec.getList_id()); + stmt.setString(2, rec.getItem()); + + rs = stmt.executeQuery(); + + if (rs.next()) + { + listRecord.getPropertiesFromResultSet(rs); + result = true; + } + + stmt.clearParameters(); + + rs.close(); + stmt.close(); + } + catch (Exception e) + { + setErrorMessage(e.getMessage()); + } + + return result; + } + + public LinkedList getListValues(String list_id) + { + LinkedList result = new LinkedList(); + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomList.getValues")); + + + stmt.setString(1, list_id); + + rs = stmt.executeQuery(); + + while (rs.next()) + { + JDBBomListRecord listitem = new JDBBomListRecord(); + + listitem.getPropertiesFromResultSet(rs); + result.addLast(listitem); + } + + stmt.clearParameters(); + + rs.close(); + stmt.close(); + } + catch (Exception e) + { + setErrorMessage(e.getMessage()); + } + + return result; + } + + public LinkedList getValues(String sql,String fieldname) + { + LinkedList result = new LinkedList(); + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(sql); + + rs = stmt.executeQuery(); + + while (rs.next()) + { + String item = JUtility.replaceNullStringwithBlank(rs.getString(fieldname)); + result.add(item); + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + setErrorMessage(e.getMessage()); + } + + Collections.sort(result); + + return result; + } + + public LinkedList getListIds(Boolean enabled) + { + LinkedList result = new LinkedList(); + String criteria = ""; + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomList.getListIds")); + + if (enabled) + { + criteria = "Y"; + } + else + { + criteria = "N"; + } + + stmt.setString(1, criteria); + + rs = stmt.executeQuery(); + + while (rs.next()) + { + JDBBomListRecord listitem = new JDBBomListRecord(); + + listitem.getPropertiesFromResultSet(rs); + result.addLast(listitem); + } + + stmt.clearParameters(); + + rs.close(); + stmt.close(); + } + catch (Exception e) + { + setErrorMessage(e.getMessage()); + } + + return result; + } + +} diff --git a/b6/src/com/commander4j/bom/JDBBomListRecord.java b/b6/src/com/commander4j/bom/JDBBomListRecord.java new file mode 100644 index 000000000..a0a0c2d1a --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBomListRecord.java @@ -0,0 +1,121 @@ +package com.commander4j.bom; + +import java.sql.ResultSet; +import java.sql.SQLException; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.util.JUtility; + +public class JDBBomListRecord +{ + + private String list_id = ""; + private String item = ""; + private Integer sequence = 0; + private String enabled = ""; + private String description = ""; + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(JDBBomListRecord.class); + + public static int field_list_id = 25; + public static int field_list_item = 50; + public static int field_list_item_sequence = 5; + public static int field_list_item_enabled = 1; + + public String getList_id() + { + return list_id; + } + + public void setList_id(String list_id) + { + this.list_id = list_id; + } + + public String getItem() + { + return item; + } + + public void setItem(String item) + { + this.item = item; + } + + public Integer getSequence() + { + return sequence; + } + + public void setSequence(Integer sequence) + { + this.sequence = sequence; + } + + public String getEnabled() + { + return enabled; + } + + public void setEnabled(String enabled) + { + this.enabled = enabled; + } + + public void setEnabled(boolean yesno) + { + if (yesno) + { + this.enabled = "Y"; + } + else + { + this.enabled = "N"; + } + } + + public boolean isEnabled() + { + if (this.enabled.equals("Y")==true) + { + return true; + } + else + { + return false; + } + } + + public String getDescription() + { + return description; + } + + public void setDescription(String description) + { + this.description = description; + } + + public void getPropertiesFromResultSet(ResultSet rs) + { + try + { + setList_id(rs.getString("list_id")); + setItem(rs.getString("item")); + setSequence(rs.getInt("sequence")); + setEnabled(rs.getString("enabled")); + + } + catch (SQLException e) + { + logger.error(e.getMessage()); + } + } + + public String toString() + { + return JUtility.padString(getList_id(), true, field_list_id, " ") +" "+JUtility.padString(getItem(), true, field_list_id, " ")+" "+JUtility.padString(getSequence().toString(), false, field_list_item_sequence, " "); + + } + +} diff --git a/b6/src/com/commander4j/bom/JDBBomRecord.java b/b6/src/com/commander4j/bom/JDBBomRecord.java new file mode 100644 index 000000000..8f90bb912 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBomRecord.java @@ -0,0 +1,350 @@ +package com.commander4j.bom; + +import java.io.File; +import java.math.BigDecimal; +import java.sql.Date; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Timestamp; +import java.util.UUID; + +import javax.swing.ImageIcon; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.util.JUtility; + +public class JDBBomRecord +{ + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(JDBBomRecord.class); + + private boolean modified = false; + + private String hostID; + private String sessionID; + + private String bom_id = ""; + + private String bom_version = ""; + private Integer bom_sequence = 0; + + private String data_id = ""; + private String data_type = ""; + private String data_string = ""; + private BigDecimal data_decimal = new BigDecimal("0"); + private Date data_date; + private Timestamp data_timestamp; + private String uuid = ""; + private String parent_uuid = ""; + private ImageIcon icon; + private String iconFilename = ""; + private String imagePath16 = System.getProperty("user.dir") + File.separator + "images" + File.separator + "16x16" + File.separator; + private UUID uuidnew = UUID.randomUUID(); + private JDBBomElement element; + + + private void setHostID(String host) + { + hostID = host; + } + + private String getHostID() + { + return hostID; + } + + private String getSessionID() + { + return sessionID; + } + + private void setSessionID(String session) + { + sessionID = session; + } + + public JDBBomRecord(String host, String session) + { + setHostID(host); + setSessionID(session); + + element = new JDBBomElement(getHostID(),getSessionID()); + } + + public void clear() + { + setBOMId(""); + setBOMVersion(""); + setBOMSequence(0); + setDataId(""); + setDataType(""); + setDataString(null); + setDataDecimal(null); + setDataDate(null); + setDataTimestamp(null); + setUuid(""); + setParent_uuid(null); + } + + public boolean isModified() + { + return modified; + } + + public void setModified(boolean modified) + { + this.modified = modified; + } + + public JDBBomElement getElement() + { + return element; + } + + public String newUUID() + { + String result = ""; + result = uuidnew.toString(); + + return result; + } + + public void setBOMSequence(Integer seq) + { + bom_sequence = seq; + } + + public Integer getBOMSequence() + { + return bom_sequence; + } + + + public Timestamp getDataTimestamp() + { + return data_timestamp; + } + + public void setDataTimestamp(Timestamp datevalue) + { + this.data_timestamp = datevalue; + } + + public Date getDataDate() + { + return data_date; + } + + public void setDataDate(Date datevalue) + { + this.data_date = datevalue; + } + + public void setIconFilename(String filename) + { + iconFilename = JUtility.replaceNullStringwithBlank(filename); + } + + public String getIconFilename() + { + return iconFilename; + } + + public String getBOMId() + { + return bom_id; + } + + public void setBOMId(String id) + { + this.bom_id = JUtility.replaceNullStringwithBlank(id); + } + + public String getBOMVersion() + { + return bom_version; + } + + public void setBOMVersion(String ver) + { + this.bom_version = JUtility.replaceNullStringwithBlank(ver); + } + + public String getDataType() + { + return data_type; + } + + public void setDataType(String data) + { + this.data_type = JUtility.replaceNullStringwithBlank(data); + } + + public String getDataId() + { + return data_id; + } + + public void setDataId(String id) + { + this.data_id = JUtility.replaceNullStringwithBlank(id); + } + + public String getUuid() + { + return uuid; + } + + public void setUuid(String uid) + { + this.uuid = JUtility.replaceNullStringwithBlank(uid); + } + + public String getDataString() + { + return data_string; + } + + public void setDataString(String data) + { + this.data_string = JUtility.replaceNullStringwithBlank(data); + } + + public BigDecimal getDataDecimal() + { + return data_decimal; + } + + public void setDataDecimal(BigDecimal data) + { + this.data_decimal = data; + } + + public String getParent_uuid() + { + return parent_uuid; + } + + public void setParent_uuid(String parent_uid) + { + this.parent_uuid = JUtility.replaceNullStringwithBlank(parent_uid); + } + + public ImageIcon getIcon() + { + + String filename = element.getElementRecord().getIcon_filename(); + + if (filename.equals("")) + { + filename = "default.png"; + } + + setIconFilename(imagePath16 + filename); + + + icon = new ImageIcon(getIconFilename()); + + return icon; + } + + public String getString() + { + String result = ""; + + + if (getDataId().equals("root")) + { + result = getBOMId()+"/"+getBOMVersion(); + } + else + { + + switch (getDataType()) + { + case "string": + result = getDataString(); + break; + case "decimal": + result = getDataDecimal().toString(); + break; + case "date": + result = JUtility.getISODateStringFormat(getDataDate()); + break; + case "timestamp": + result = JUtility.getISOTimeStampStringFormat(getDataTimestamp()); + result = result.replace("T", " "); + break; + default: + } + } + + return result; + } + + public String toString() + { + String result = ""; + + if (getDataId().equals("root")) + { + result = element.getElementRecord().getDescription() + " = [" + getBOMId()+"/"+getBOMVersion() + "]"; + } + else + { + if (getString().equals("")) + { + result = element.getElementRecord().getDescription(); + } + else + { + result = element.getElementRecord().getDescription() + " = [" + getString() + "]"; + } + } + + return result; + } + + public void getPropertiesFromResultSet(ResultSet rs) + { + clear(); + try + { + setBOMId(JUtility.replaceNullStringwithBlank(rs.getString("bom_id"))); + setBOMVersion(JUtility.replaceNullStringwithBlank(rs.getString("bom_version"))); + setBOMSequence(rs.getInt("bom_sequence")); + + setDataId(JUtility.replaceNullStringwithBlank(rs.getString("data_id"))); + setDataType(JUtility.replaceNullStringwithBlank(rs.getString("data_type"))); + + switch (getDataType()) + { + case "string": + setDataString(JUtility.replaceNullStringwithBlank(rs.getString("data_string"))); + break; + case "decimal": + setDataDecimal(rs.getBigDecimal("data_decimal")); + break; + case "date": + setDataDate(rs.getDate("data_date")); + break; + case "timestamp": + setDataTimestamp(rs.getTimestamp("data_timestamp")); + break; + default: + } + + setUuid(JUtility.replaceNullStringwithBlank(rs.getString("uuid"))); + + setParent_uuid(JUtility.replaceNullStringwithBlank(rs.getString("parent_uuid"))); + + element.getProperties( getDataId()); + + } + catch (SQLException e) + { + logger.error(e.getMessage()); + } + } + +} diff --git a/b6/src/com/commander4j/bom/JDBBomStructure.java b/b6/src/com/commander4j/bom/JDBBomStructure.java new file mode 100644 index 000000000..e897df58e --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBomStructure.java @@ -0,0 +1,374 @@ +package com.commander4j.bom; + +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.LinkedList; + +import javax.swing.Icon; +import javax.swing.ImageIcon; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.db.JDBListData; +import com.commander4j.sys.Common; + +public class JDBBomStructure +{ + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(JDBBomStructure.class); + JDBBomStructureRecord structureRecord = new JDBBomStructureRecord(); + JDBBomElement bomElement; + + private String hostID; + private String sessionID; + private String dbErrorMessage; + + public String getErrorMessage() + { + return dbErrorMessage; + } + + private void setErrorMessage(String ErrorMsg) + { + dbErrorMessage = ErrorMsg; + } + + private void setHostID(String host) + { + hostID = host; + } + + private String getHostID() + { + return hostID; + } + + private String getSessionID() + { + return sessionID; + } + + private void setSessionID(String session) + { + sessionID = session; + } + + public JDBBomStructure(String host, String session) + { + setHostID(host); + setSessionID(session); + bomElement = new JDBBomElement(getHostID(), getSessionID()); + + } + + public JDBBomStructureRecord getProperties(JDBBomStructureRecord rec) + { + JDBBomStructureRecord currentRecord = new JDBBomStructureRecord(); + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBViewBomStructure.getProperties")); + + stmt.setString(1, rec.getDataId()); + stmt.setString(2, rec.getDataIDParent()); + + rs = stmt.executeQuery(); + + if (rs.next()) + { + currentRecord.getPropertiesFromResultSet(rs); + + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + } + + return currentRecord; + } + + public boolean isValid(JDBBomStructureRecord rec) + { + boolean result = false; + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBViewBomStructure.getProperties")); + + stmt.setString(1, rec.getDataId()); + stmt.setString(2, rec.getDataIDParent()); + + rs = stmt.executeQuery(); + + if (rs.next()) + { + result = true; + + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + } + + return result; + } + + public LinkedList getAllowedChildren(JDBBomRecord rec) + { + LinkedList result = new LinkedList(); + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBViewBomStructure.getAllowedChildren")); + + stmt.setString(1, rec.getDataId()); + + rs = stmt.executeQuery(); + + while (rs.next()) + { + JDBBomStructureRecord newrec = new JDBBomStructureRecord(); + + newrec.getPropertiesFromResultSet(rs); + result.add(newrec); + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + } + + return result; + } + + public boolean delete(JDBBomStructureRecord rec) + { + boolean result = true; + + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomStructure.delete")); + + stmtupdate.setString(1, rec.getDataId()); + stmtupdate.setString(2, rec.getDataIDParent()); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + + return result; + } + + private boolean create(JDBBomStructureRecord rec) + { + boolean result = true; + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomStructure.create")); + + stmtupdate.setString(1, rec.getDataId()); + stmtupdate.setString(2, rec.getDataIDParent()); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + return result; + + } + + public boolean isBlankRecord(JDBBomStructureRecord rec) + { + boolean result = true; + + if (rec.getDataId().equals("")==false) + { + result = false; + } + + if (rec.getDataIDParent().equals("")==false) + { + result = false; + } + + + return result; + } + + public boolean update(JDBBomStructureRecord fromrec, JDBBomStructureRecord torec) + { + boolean result = false; + + logger.debug("fromrec data_id = ["+fromrec.getDataId()+"] parent_data_id = ["+fromrec.getDataIDParent()+"]"); + logger.debug("torec data_id = ["+torec.getDataId()+"] parent_data_id = ["+torec.getDataIDParent()+"]"); + + // compare old and new to see if a change has been made + + // if old <> new and new does not exist + + boolean changed = true; + + if (fromrec.getDataId().equals(torec.getDataId())) + { + if (fromrec.getDataIDParent().equals(torec.getDataIDParent())) + { + + changed = false; + + } + } + + if (changed) + { + logger.debug("fromrec and torec are DIFFERENT"); + + if (isValid(torec)) + { + // New record already exists + + logger.debug("torec already exists - abort update"); + result = false; + setErrorMessage("Duplicate record cannot be created."); + } + else + { + if ((isValid(fromrec) || !isBlankRecord(fromrec))) + { + // Rename - UPDATE + logger.debug("fromrec already exists - apply update sql"); + + try + { + PreparedStatement stmtupdate; + + stmtupdate = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBBomStructure.update")); + + stmtupdate.setString(1, torec.getDataId()); + stmtupdate.setString(2, torec.getDataIDParent()); + + stmtupdate.setString(3, fromrec.getDataId()); + stmtupdate.setString(4, fromrec.getDataIDParent()); + + logger.debug(stmtupdate); + + stmtupdate.execute(); + stmtupdate.clearParameters(); + Common.hostList.getHost(getHostID()).getConnection(getSessionID()).commit(); + + stmtupdate.close(); + + result = true; + } + catch (Exception e) + { + logger.error(e.getMessage()); + result = false; + } + } + else + { + // CREATE + logger.debug("fromrec does not exist - apply create sql"); + result = create(torec); + } + } + } + else + { + // No changes made + logger.debug("from and to are SAME"); + result = true; + } + + return result; + } + + public LinkedList getStructureIds() + { + LinkedList structureList = new LinkedList(); + + setErrorMessage(""); + Icon icon = new ImageIcon(); + int index = 0; + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBViewBomStructure.getList")); + + rs = stmt.executeQuery(); + + while (rs.next()) + + { + JDBBomStructureRecord currentRecord = new JDBBomStructureRecord(); + currentRecord.getPropertiesFromResultSet(rs); + + bomElement.getProperties(currentRecord.getDataIDParent()); + icon = bomElement.getElementRecord().getIcon(); + + JDBListData mld = new JDBListData(icon, index, true, currentRecord); + structureList.addLast(mld); + } + + stmt.clearParameters(); + rs.close(); + stmt.close(); + } + catch (Exception ex) + { + logger.error(ex.getMessage()); + } + + return structureList; + } + +} diff --git a/b6/src/com/commander4j/bom/JDBBomStructureRecord.java b/b6/src/com/commander4j/bom/JDBBomStructureRecord.java new file mode 100644 index 000000000..efce8c7b4 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBBomStructureRecord.java @@ -0,0 +1,71 @@ +package com.commander4j.bom; + +import java.sql.ResultSet; +import java.sql.SQLException; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.util.JUtility; + +public class JDBBomStructureRecord +{ + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(JDBBomStructureRecord.class); + private String data_id = ""; + private String data_id_parent = ""; + + private JDBBomElementRecord element = new JDBBomElementRecord(); + + public void clear() + { + setDataId(""); + setDataIDParent(""); + element.clear(); + } + + public JDBBomElementRecord getElementRecord() + { + return element; + } + + + public void getPropertiesFromResultSet(ResultSet rs) + { + try + { + setDataId(rs.getString("data_id")); + setDataIDParent(rs.getString("parent_data_id")); + element.getPropertiesFromResultSet(rs); + + } + catch (SQLException e) + { + logger.error(e.getMessage()); + } + } + + public String getDataId() + { + return data_id; + } + + public void setDataId(String id) + { + this.data_id = JUtility.replaceNullStringwithBlank(id); + } + + public String getDataIDParent() + { + return data_id_parent; + } + + public void setDataIDParent(String data) + { + this.data_id_parent = JUtility.replaceNullStringwithBlank(data); + } + + public String toString() + { + return JUtility.padString(getDataIDParent(), true, JDBBomElementRecord.field_data_id, " ") + " " + JUtility.padString(getDataId(), true, JDBBomElementRecord.field_data_id, " ") ; + } + +} diff --git a/b6/src/com/commander4j/bom/JDBViewBomRecord.java b/b6/src/com/commander4j/bom/JDBViewBomRecord.java new file mode 100644 index 000000000..660a2b417 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBViewBomRecord.java @@ -0,0 +1,338 @@ +package com.commander4j.bom; + +import java.math.BigDecimal; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.LinkedList; + +import org.apache.logging.log4j.Logger; + +import com.commander4j.sys.Common; + + +public class JDBViewBomRecord +{ + private final Logger logger = org.apache.logging.log4j.LogManager.getLogger(JDBViewBomRecord.class); + private String bom_id = ""; + private String bom_version = ""; + private Integer display_order = 0; + private String input_output = ""; + private String stage = ""; + private String sequence = ""; + private String material = ""; + private String material_uuid = ""; + private String description = ""; + private BigDecimal quantity = new BigDecimal(0); + private String type = ""; + private String uom = ""; + private String gtin = ""; + private String variant = ""; + private String location_id = ""; + private String location_uuid = ""; + + private String hostID; + private String sessionID; + + private void setHostID(String host) + { + hostID = host; + } + + private String getHostID() + { + return hostID; + } + + private String getSessionID() + { + return sessionID; + } + + private void setSessionID(String session) + { + sessionID = session; + } + + public JDBViewBomRecord(String host, String session) + { + setHostID(host); + setSessionID(session); + + } + + public void clear() + { + setBom_id(""); + setBom_version(""); + setDescription(""); + setInputOutput(""); + setDisplay_order(0); + setGtin(""); + setLocation_id(""); + setLlocation_uuid(""); + setMaterial(""); + setQuantity(new BigDecimal(0)); + setSequence(""); + setStage(""); + setType(""); + setUom(""); + setVariant(""); + } + + public void getPropertiesFromResultSet(ResultSet rs) + { + clear(); + + try + { + setBom_id(rs.getString("bom_id")); + setBom_version(rs.getString("bom_version")); + setDescription(rs.getString("description")); + setInputOutput(rs.getString("input_output")); + setDisplay_order(rs.getInt("display_order")); + setGtin(rs.getString("gtin")); + setLocation_id(rs.getString("location_id")); + setLlocation_uuid(rs.getString("location_uuid")); + setMaterial(rs.getString("material")); + setMaterial_uuid(rs.getString("material_uuid")); + setQuantity(rs.getBigDecimal("quantity")); + setSequence(rs.getString("sequence")); + setStage(rs.getString("stage")); + setType(rs.getString("type")); + setUom(rs.getString("uom")); + setVariant(rs.getString("variant")); + + } + catch (SQLException e) + { + logger.error(e.getMessage()); + } + } + + public LinkedList getBomMaterials(String bom_id, String bom_version,String inputoutput,String stage) + { + LinkedList result = new LinkedList(); + + try + { + PreparedStatement stmt; + ResultSet rs; + + //stmt = Common.host.con.prepareStatement("select * from VIEW_BOM where bom_id = ? and bom_version = ? and input_output = ? and stage = ?"); + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBViewBomRecord.getBomMaterials")); + + + stmt.setString(1, bom_id); + stmt.setString(2, bom_version); + stmt.setString(3, inputoutput); + stmt.setString(4, stage); + + rs = stmt.executeQuery(); + + while (rs.next()) + { + + JDBViewBomRecord vb = new JDBViewBomRecord(getHostID(),getSessionID()); + vb.getPropertiesFromResultSet(rs); + + result.addLast(vb); + + } + + stmt.clearParameters(); + + rs.close(); + stmt.close(); + } + catch (Exception e) + { + logger.error(e.getMessage()); + } + + return result; + } + + public LinkedList getBomIndex() + { + LinkedList result = new LinkedList(); + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBViewBomRecord.getIndex")); + + rs = stmt.executeQuery(); + + while (rs.next()) + { + JDBViewBomRecord vb = new JDBViewBomRecord(getHostID(),getSessionID()); + vb.getPropertiesFromResultSet(rs); + result.addLast(vb); + } + + stmt.clearParameters(); + + rs.close(); + stmt.close(); + } + catch (Exception e) + { + logger.error(e.getMessage()); + } + + return result; + } + + public void setInputOutput(String val) + { + this.input_output = val; + } + + public String getInputOutput() + { + return this.input_output; + } + + public String getBom_id() + { + return bom_id; + } + public void setBom_id(String bom_id) + { + this.bom_id = bom_id; + } + public String getBom_version() + { + return bom_version; + } + public void setBom_version(String bom_version) + { + this.bom_version = bom_version; + } + public Integer getDisplay_order() + { + return display_order; + } + public void setDisplay_order(Integer display_order) + { + this.display_order = display_order; + } + public String getStage() + { + return stage; + } + public void setStage(String stage) + { + this.stage = stage; + } + public String getSequence() + { + return sequence; + } + public void setSequence(String sequence) + { + this.sequence = sequence; + } + public String getMaterial() + { + return material; + } + public void setMaterial(String material) + { + this.material = material; + } + public String getMaterial_uuid() + { + return material_uuid; + } + public void setMaterial_uuid(String material_uuid) + { + this.material_uuid = material_uuid; + } + public String getDescription() + { + return description; + } + public void setDescription(String description) + { + this.description = description; + } + public BigDecimal getQuantity() + { + return quantity; + } + public void setQuantity(BigDecimal quantity) + { + this.quantity = quantity; + } + public String getType() + { + return type; + } + public void setType(String type) + { + this.type = type; + } + public String getUom() + { + return uom; + } + public void setUom(String uom) + { + this.uom = uom; + } + public String getGtin() + { + return gtin; + } + public void setGtin(String gtin) + { + this.gtin = gtin; + } + public String getVariant() + { + return variant; + } + public void setVariant(String variant) + { + this.variant = variant; + } + public String getLocation_id() + { + return location_id; + } + public void setLocation_id(String location_id) + { + this.location_id = location_id; + } + public String getLocation_uuid() + { + return location_uuid; + } + public void setLlocation_uuid(String location_uuid) + { + this.location_uuid = location_uuid; + } + + public ResultSet getViewBomResultSet(PreparedStatement criteria) + { + + ResultSet rs; + + try + { + rs = criteria.executeQuery(); + + } + catch (Exception e) + { + rs = null; + + } + + return rs; + } +} diff --git a/b6/src/com/commander4j/bom/JDBViewBomTableModel.java b/b6/src/com/commander4j/bom/JDBViewBomTableModel.java new file mode 100644 index 000000000..1fc320990 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDBViewBomTableModel.java @@ -0,0 +1,163 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JDBBomElementsTableModel.java + * + * Package Name : com.commander4j.tablemodel + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.sql.ResultSet; +import java.util.HashMap; + +import javax.swing.table.AbstractTableModel; + +import com.commander4j.sys.Common; + +/** + */ +public class JDBViewBomTableModel extends AbstractTableModel +{ + private static final long serialVersionUID = 1; + + public static final int bom_id_col = 0; + public static final int bom_version_col = 1; + public static final int bom_stage_col = 2; + public static final int bom_input_output_col = 3; + public static final int bom_sequence_col = 4; + public static final int bom_material_col = 5; + public static final int bom_material_type = 6; + public static final int bom_description_col = 7; + public static final int bom_quantity_col = 8; + public static final int bom_uom_col = 9; + public static final int bom_location_col = 10; + + + private String[] mcolNames = { "Bom ID", + "
Bom
Version
", + "Stage", + "
Input
Output
", + "Sequence", + "Material", + "Type", + "Description", + "Quantity", + "UOM", + "Location"}; + + private ResultSet mResultSet; + private int prowCount = -1; + private HashMap cache = new HashMap(); + + public JDBViewBomTableModel(ResultSet rs) + { + super(); + prowCount = -1; + mResultSet = rs; + } + + public JDBViewBomTableModel(String hostID,String sessionID,ResultSet rs) + { + super(); + + prowCount = -1; + mResultSet = rs; + } + + public int getColumnCount() { + return mcolNames.length; + } + + public int getRowCount() { + try + { + if (prowCount <= 0) + { + mResultSet.last(); + prowCount = mResultSet.getRow(); + mResultSet.beforeFirst(); + } + return prowCount; + + } + catch (Exception e) + { + return 0; + } + } + + public void setValueAt(Object value, int row, int col) { + + } + + public String getColumnName(int col) { + return mcolNames[col]; + } + + public Object getValueAt(int row, int col) { + try + { + if (cache.containsKey(row)==false) + { + mResultSet.absolute(row + 1); + final JDBViewBomRecord prow = new JDBViewBomRecord(Common.selectedHostID, Common.sessionID); + prow.getPropertiesFromResultSet(mResultSet); + cache.put(row, prow); + } + + switch (col) + { + case bom_id_col: + return cache.get(row).getBom_id(); + case bom_version_col: + return cache.get(row).getBom_version(); + case bom_input_output_col: + return cache.get(row).getInputOutput(); + case bom_stage_col: + return cache.get(row).getStage(); + case bom_sequence_col: + return cache.get(row).getSequence(); + case bom_material_col: + return cache.get(row).getMaterial(); + case bom_material_type: + return cache.get(row).getType(); + case bom_description_col: + return cache.get(row).getDescription(); + case bom_quantity_col: + return cache.get(row).getQuantity(); + case bom_uom_col: + return cache.get(row).getUom(); + case bom_location_col: + return cache.get(row).getLocation_id(); + + + } + } + catch (Exception ex) + { + return "Error"; + } + + return new String(); + } +} diff --git a/b6/src/com/commander4j/bom/JDialogBomDefaultsProperties.java b/b6/src/com/commander4j/bom/JDialogBomDefaultsProperties.java new file mode 100644 index 000000000..23de37fc6 --- /dev/null +++ b/b6/src/com/commander4j/bom/JDialogBomDefaultsProperties.java @@ -0,0 +1,214 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JDialogBomDefaultsProperties.java + * + * Package Name : com.commander4j.sys + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.awt.Dimension; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyAdapter; +import java.awt.event.KeyEvent; + +import javax.swing.JDesktopPane; +import javax.swing.JDialog; +import javax.swing.JFrame; +import javax.swing.SwingConstants; +import javax.swing.SwingUtilities; + +import com.commander4j.db.JDBControl; +import com.commander4j.db.JDBLanguage; +import com.commander4j.gui.JButton4j; +import com.commander4j.gui.JLabel4j_std; +import com.commander4j.gui.JTextField4j; +import com.commander4j.sys.Common; +import com.commander4j.util.JHelp; +import com.commander4j.util.JUtility; + +public class JDialogBomDefaultsProperties extends JDialog +{ + private static final long serialVersionUID = 1; + private JDesktopPane jDesktopPane1; + private JLabel4j_std jLabelSourceValue; + private JButton4j jButtonClose; + private JButton4j jButtonHelp; + private JTextField4j jTextFieldDestinationValue; + private JTextField4j jTextFieldSourceValue; + private JButton4j jButtonUpdate; + private JLabel4j_std jLabelDestinationValue; + private String lsourcefield; + private String lsourcevalue; + private String ldestinationfield; + private JDBBomDefaults bomdefaults = new JDBBomDefaults(Common.selectedHostID, Common.sessionID); + private JDBBomElement elem = new JDBBomElement(Common.selectedHostID, Common.sessionID); + private JDBLanguage lang = new JDBLanguage(Common.selectedHostID, Common.sessionID); + + public JDialogBomDefaultsProperties(JFrame parent, String sourceField,String sourceValue,String destinationField) + { + + super(parent,"BOM Default Values",ModalityType.APPLICATION_MODAL); + + lsourcefield = sourceField; + lsourcevalue = sourceValue; + ldestinationfield = destinationField; + + initGUI(); + + final JHelp help = new JHelp(); + help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_BOM_DEFAULTS_EDIT")); + + jLabelSourceValue.setText(elem.getElementDescription(sourceField)); + + jTextFieldSourceValue.setText(sourceValue); + + jLabelDestinationValue.setText(elem.getElementDescription(destinationField)); + + bomdefaults.getProperties(lsourcefield,lsourcevalue,destinationField); + + jTextFieldDestinationValue.setText(bomdefaults.getDestinationValue()); + + SwingUtilities.invokeLater(new Runnable() + { + public void run() + { + jTextFieldDestinationValue.requestFocus(); + jTextFieldDestinationValue.setCaretPosition(jTextFieldDestinationValue.getText().length()); + } + }); + } + + private void initGUI() + { + try + { + // setDefaultLookAndFeelDecorated(true); + setPreferredSize(new java.awt.Dimension(460, 163)); + this.setBounds(25, 25, 437, 167); + setModal(true); + this.setTitle("Bill of Material Defaults"); + getContentPane().setLayout(null); + + { + jDesktopPane1 = new JDesktopPane(); + jDesktopPane1.setBounds(0, 0, 433, 172); + jDesktopPane1.setBackground(Common.color_edit_properties); + this.getContentPane().add(jDesktopPane1); + jDesktopPane1.setPreferredSize(new Dimension(452, 140)); + jDesktopPane1.setLayout(null); + { + jLabelDestinationValue = new JLabel4j_std(); + jLabelDestinationValue.setBounds(9, 54, 138, 19); + jDesktopPane1.add(jLabelDestinationValue); + jLabelDestinationValue.setText(lang.get("lbl_Destination_Value")); + jLabelDestinationValue.setHorizontalAlignment(SwingConstants.RIGHT); + jLabelDestinationValue.setHorizontalTextPosition(SwingConstants.RIGHT); + } + { + jLabelSourceValue = new JLabel4j_std(); + jLabelSourceValue.setBounds(10, 25, 137, 19); + jDesktopPane1.add(jLabelSourceValue); + jLabelSourceValue.setText(lang.get("lbl_Source_Value")); + jLabelSourceValue.setHorizontalAlignment(SwingConstants.RIGHT); + jLabelSourceValue.setHorizontalTextPosition(SwingConstants.RIGHT); + } + { + + jButtonUpdate = new JButton4j(Common.icon_update_16x16); + jButtonUpdate.setBounds(48, 85, 110, 32); + jDesktopPane1.add(jButtonUpdate); + jButtonUpdate.setText(lang.get("btn_Save")); + jButtonUpdate.setMnemonic(java.awt.event.KeyEvent.VK_S); + jButtonUpdate.setEnabled(false); + jButtonUpdate.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + if (bomdefaults.getProperties(lsourcefield,lsourcevalue,ldestinationfield)) + { + bomdefaults.update(lsourcefield,lsourcevalue,ldestinationfield,jTextFieldDestinationValue.getText()); + } + else + { + bomdefaults.create(lsourcefield,lsourcevalue,ldestinationfield,jTextFieldDestinationValue.getText()); + } + jButtonUpdate.setEnabled(false); + dispose(); + } + }); + } + { + jButtonClose = new JButton4j(Common.icon_close_16x16); + jButtonClose.setBounds(269, 85, 110, 32); + jDesktopPane1.add(jButtonClose); + jButtonClose.setText(lang.get("btn_Close")); + jButtonClose.setMnemonic(java.awt.event.KeyEvent.VK_C); + jButtonClose.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + dispose(); + } + }); + } + { + jTextFieldSourceValue = new JTextField4j(JDBControl.field_key_value); + jTextFieldSourceValue.setBounds(159, 19, 252, 25); + jDesktopPane1.add(jTextFieldSourceValue); + jTextFieldSourceValue.setPreferredSize(new java.awt.Dimension(40, 20)); + jTextFieldSourceValue.setFocusCycleRoot(false); + jTextFieldSourceValue.setEditable(false); + + } + + { + jTextFieldDestinationValue = new JTextField4j(JDBControl.field_description); + jTextFieldDestinationValue.setBounds(159, 48, 252, 25); + jDesktopPane1.add(jTextFieldDestinationValue); + jTextFieldDestinationValue.setPreferredSize(new java.awt.Dimension(40, 20)); + jTextFieldDestinationValue.setFocusCycleRoot(true); + jTextFieldDestinationValue.addKeyListener(new KeyAdapter() + { + public void keyTyped(KeyEvent evt) + { + jButtonUpdate.setEnabled(true); + } + }); + } + { + jButtonHelp = new JButton4j(Common.icon_help_16x16); + jButtonHelp.setBounds(163, 85, 100, 32); + jDesktopPane1.add(jButtonHelp); + jButtonHelp.setText(lang.get("btn_Help")); + jButtonHelp.setMnemonic(java.awt.event.KeyEvent.VK_H); + } + } + } catch (Exception e) + { + e.printStackTrace(); + } + } + +} diff --git a/b6/src/com/commander4j/bom/JInternalFrameBom.java b/b6/src/com/commander4j/bom/JInternalFrameBom.java new file mode 100644 index 000000000..09624076c --- /dev/null +++ b/b6/src/com/commander4j/bom/JInternalFrameBom.java @@ -0,0 +1,929 @@ +package com.commander4j.bom; + +import java.awt.BorderLayout; +import java.awt.Dimension; +import java.awt.Toolkit; +import java.awt.datatransfer.Clipboard; +import java.awt.datatransfer.StringSelection; +import java.awt.datatransfer.Transferable; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.io.File; +import java.math.BigDecimal; +import java.sql.Timestamp; +import java.util.Calendar; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.LinkedList; + +import javax.swing.DefaultComboBoxModel; +import javax.swing.JButton; +import javax.swing.JFileChooser; +import javax.swing.JInternalFrame; +import javax.swing.JMenu; +import javax.swing.JMenuItem; +import javax.swing.JOptionPane; +import javax.swing.JPanel; +import javax.swing.JPopupMenu; +import javax.swing.JScrollPane; +import javax.swing.JToolBar; +import javax.swing.JTree; +import javax.swing.SwingUtilities; +import javax.swing.ToolTipManager; +import javax.swing.UIManager; +import javax.swing.border.EmptyBorder; +import javax.swing.event.DocumentEvent; +import javax.swing.event.DocumentListener; +import javax.swing.event.TreeSelectionEvent; +import javax.swing.event.TreeSelectionListener; +import javax.swing.tree.DefaultMutableTreeNode; +import javax.swing.tree.DefaultTreeModel; +import javax.swing.tree.TreeNode; +import javax.swing.tree.TreePath; +import javax.swing.tree.TreeSelectionModel; + +import org.apache.commons.lang3.math.NumberUtils; + +import com.commander4j.calendar.JCalendarDialog2; +import com.commander4j.db.JDBLanguage; +import com.commander4j.gui.JComboBox4j; +import com.commander4j.gui.JLabel4j_std; +import com.commander4j.gui.JTextField4j; +import com.commander4j.sys.Common; +import com.commander4j.util.JFileFilterXML; +import com.commander4j.util.JUtility; + +public class JInternalFrameBom extends JInternalFrame +{ + + private static final long serialVersionUID = 1L; + private static JTree tree; + private static BomTreeRenderer bomTreeRenderer = new BomTreeRenderer(); + private static DefaultMutableTreeNode root = new DefaultMutableTreeNode("root"); + + private Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); + private Transferable transferable; + private JPanel contentPane; + private JToolBar jtreeToolbar; + private JButton btnExpandAll; + private JButton btnExpandNode; + private JButton btnCollapseAll; + private JButton btnCollapseNode; + + private JButton btnImport; + private JButton btnSearch; + private JButton btnProcess; + private JButton btnClose; + private JScrollPane scrollPane = new JScrollPane(); + private JTextField4j textFieldVersion; + private JTextField4j textFieldBOM; + private JLabel4j_std lblBOM; + private JLabel4j_std lblVersion; + private JLabel4j_std lblStage; + private String bom_id = ""; + private String bom_version = ""; + private JDBLanguage lang = new JDBLanguage(Common.selectedHostID, Common.sessionID); + private JDBBom bomDB = new JDBBom(Common.selectedHostID, Common.sessionID); + private JDBBomList bomListsDB = new JDBBomList(Common.selectedHostID, Common.sessionID); + private JComboBox4j comboBoxMode; + private JComboBox4j comboBoxStage; + + public JInternalFrameBom(String bom, String version) + { + super(); + + setVisible(true); + + setTitle("Bill of Materials"); + setBounds(100, 100, 820, 730); + contentPane = new JPanel(); + + UIManager.put("ToolTip.font", Common.font_tree_tooltip); + + ButtonHandler buttonhandler = new ButtonHandler(); + + jtreeToolbar = new JToolBar(); + jtreeToolbar.setOrientation(JToolBar.HORIZONTAL); + jtreeToolbar.setFloatable(false); + jtreeToolbar.setBorder(new EmptyBorder(2, 2, 2, 2)); + + btnExpandAll = new JButton(Common.icon_expand_all_16x16); + btnExpandAll.addActionListener(buttonhandler); + btnExpandAll.setToolTipText("Expand all menu items"); + btnExpandAll.setSize(30, 30); + btnExpandAll.setMaximumSize(new Dimension(30, 30)); + btnExpandAll.setMinimumSize(new Dimension(30, 30)); + btnExpandAll.setPreferredSize(new Dimension(30, 30)); + + btnExpandNode = new JButton(Common.icon_expand_node_16x16); + btnExpandNode.addActionListener(buttonhandler); + btnExpandNode.setToolTipText("Expand selected menu branch"); + btnExpandNode.setSize(30, 30); + btnExpandNode.setMaximumSize(new Dimension(30, 30)); + btnExpandNode.setMinimumSize(new Dimension(30, 30)); + btnExpandNode.setPreferredSize(new Dimension(30, 30)); + + btnCollapseAll = new JButton(Common.icon_collapse_all_16x16); + btnCollapseAll.addActionListener(buttonhandler); + btnCollapseAll.setToolTipText("Collapse menu tree"); + btnCollapseAll.setSize(30, 30); + btnCollapseAll.setMaximumSize(new Dimension(30, 30)); + btnCollapseAll.setMinimumSize(new Dimension(30, 30)); + btnCollapseAll.setPreferredSize(new Dimension(30, 30)); + + btnCollapseNode = new JButton(Common.icon_collapse_node_16x16); + btnCollapseNode.addActionListener(buttonhandler); + btnCollapseNode.setToolTipText("Collapse selected menu branch"); + btnCollapseNode.setSize(30, 30); + btnCollapseNode.setMaximumSize(new Dimension(30, 30)); + btnCollapseNode.setMinimumSize(new Dimension(30, 30)); + btnCollapseNode.setPreferredSize(new Dimension(30, 30)); + + btnImport = new JButton(Common.icon_import_16x16); + btnImport.addActionListener(buttonhandler); + btnImport.setToolTipText(lang.get("btn_Import")); + btnImport.setSize(30, 30); + btnImport.setMaximumSize(new Dimension(30, 30)); + btnImport.setMinimumSize(new Dimension(30, 30)); + btnImport.setPreferredSize(new Dimension(30, 30)); + + btnSearch = new JButton(Common.icon_search_16x16); + btnSearch.addActionListener(buttonhandler); + btnSearch.setToolTipText(lang.get("btn_Search")); + btnSearch.setSize(30, 30); + btnSearch.setMaximumSize(new Dimension(30, 30)); + btnSearch.setMinimumSize(new Dimension(30, 30)); + btnSearch.setPreferredSize(new Dimension(30, 30)); + + btnProcess = new JButton(Common.icon_execute_16x16); + btnProcess.addActionListener(buttonhandler); + btnProcess.setToolTipText(lang.get("btn_Run")); + btnProcess.setSize(30, 30); + btnProcess.setMaximumSize(new Dimension(30, 30)); + btnProcess.setMinimumSize(new Dimension(30, 30)); + btnProcess.setPreferredSize(new Dimension(30, 30)); + + btnClose = new JButton(Common.icon_close_16x16); + btnClose.addActionListener(buttonhandler); + btnClose.setToolTipText(lang.get("btn_Close")); + btnClose.setSize(30, 30); + btnClose.setMaximumSize(new Dimension(30, 30)); + btnClose.setMinimumSize(new Dimension(30, 30)); + btnClose.setPreferredSize(new Dimension(30, 30)); + + comboBoxMode = new JComboBox4j(); + comboBoxMode.setSize(120,28); + comboBoxMode.setMinimumSize(new Dimension(110,28)); + comboBoxMode.setMaximumSize(new Dimension(110,28)); + DefaultComboBoxModel model = new DefaultComboBoxModel(new String[] { "adjacent", "first available" }); + comboBoxMode.setModel(model); + comboBoxMode.setFont(Common.font_input_large); + comboBoxMode.setToolTipText("Update Lanes based selected mode"); + + lblBOM = new JLabel4j_std("BOM Id"); + lblBOM.setSize(new Dimension( 50, 30)); + lblBOM.setMinimumSize(new Dimension( 50, 30)); + lblBOM.setMaximumSize(new Dimension( 50, 30)); + lblBOM.setFont(Common.font_input_large); + + textFieldBOM = new JTextField4j(); + textFieldBOM.setSize(110, 30); + textFieldBOM.setMaximumSize(new Dimension(110, 30)); + textFieldBOM.setFont(Common.font_input_large); + textFieldBOM.setText(bom_id); + textFieldBOM.getDocument().addDocumentListener(new DocumentListener() + { + @Override + public void insertUpdate(DocumentEvent e) + { + bom_id = textFieldBOM.getText(); + } + + @Override + public void removeUpdate(DocumentEvent e) + { + bom_id = textFieldBOM.getText(); + } + + @Override + public void changedUpdate(DocumentEvent e) + { + bom_id = textFieldBOM.getText(); + } + }); + + lblVersion = new JLabel4j_std("Version"); + lblVersion.setSize(50, 30); + lblVersion.setMinimumSize(new Dimension( 50, 30)); + lblVersion.setMaximumSize(new Dimension( 50, 30)); + lblVersion.setFont(Common.font_input_large); + + textFieldVersion = new JTextField4j(); + textFieldVersion.setSize( 40, 27); + textFieldVersion.setFont(Common.font_input_large); + textFieldVersion.setMinimumSize(new Dimension(40, 27)); + textFieldVersion.setMaximumSize(new Dimension(40, 27)); + textFieldVersion.setText(bom_version); + textFieldVersion.getDocument().addDocumentListener(new DocumentListener() + { + @Override + public void insertUpdate(DocumentEvent e) + { + bom_version = textFieldVersion.getText(); + } + + @Override + public void removeUpdate(DocumentEvent e) + { + bom_version = textFieldVersion.getText(); + } + + @Override + public void changedUpdate(DocumentEvent e) + { + bom_version = textFieldVersion.getText(); + } + }); + + LinkedList listValues = bomListsDB.getListItems("stage"); + String[] valarray = listValues.toArray(new String[listValues.size()]); + DefaultComboBoxModel stages = new DefaultComboBoxModel(valarray); + + lblStage = new JLabel4j_std("Stage"); + lblStage.setSize(40, 28); + lblStage.setFont(Common.font_input_large); + lblStage.setMinimumSize(new Dimension(40, 28)); + lblStage.setMaximumSize(new Dimension(40, 28)); + + comboBoxStage = new JComboBox4j(); + comboBoxStage.setSize(70, 30); + comboBoxStage.setMaximumSize(new Dimension(70,30)); + comboBoxStage.setModel(stages); + comboBoxStage.setFont(Common.font_input_large); + + + jtreeToolbar.addSeparator(); + jtreeToolbar.add(btnExpandAll); + jtreeToolbar.add(btnExpandNode); + jtreeToolbar.add(btnCollapseAll); + jtreeToolbar.add(btnCollapseNode); + jtreeToolbar.addSeparator(); + jtreeToolbar.add(btnImport); + jtreeToolbar.addSeparator(); + jtreeToolbar.add(comboBoxMode); + jtreeToolbar.add(btnProcess); + jtreeToolbar.addSeparator(); + jtreeToolbar.add(lblBOM); + jtreeToolbar.addSeparator(); + jtreeToolbar.add(textFieldBOM); + jtreeToolbar.addSeparator(); + jtreeToolbar.add(lblVersion); + jtreeToolbar.addSeparator(); + jtreeToolbar.add(textFieldVersion); + jtreeToolbar.addSeparator(); + jtreeToolbar.add(lblStage); + jtreeToolbar.addSeparator(); + jtreeToolbar.add(comboBoxStage); + jtreeToolbar.add(btnSearch); + jtreeToolbar.addSeparator(); + jtreeToolbar.add(btnClose); + + textFieldBOM.requestFocus(); + textFieldBOM.setCaretPosition(textFieldBOM.getText().length()); + + contentPane.setBorder(new EmptyBorder(0, 0, 0, 0)); + contentPane.setLayout(new BorderLayout(0, 0)); + + setContentPane(contentPane); + + contentPane.add(jtreeToolbar, BorderLayout.NORTH); + + contentPane.add(scrollPane, BorderLayout.CENTER); + + loadBOM(bom,version); + } + + public void refresh(String bom, String version) + { + setBOMId(bom,version); + loadBOM(bom,version); + moveToFront(); + setVisible(true); + } + + //Set BOM ID and Version Variables + public void setBOMId(String bom, String version) + { + bom_id = bom; + bom_version = version; + + textFieldBOM.setText(bom_id); + textFieldVersion.setText(bom_version); + + SwingUtilities.invokeLater(new Runnable() + { + public void run() + { + textFieldBOM.requestFocus(); + textFieldBOM.setCaretPosition(textFieldBOM.getText().length()); + } + }); + } + + //Read XML and insert into database + private void importBOM() + { + JFileChooser chooser = new JFileChooser(System.getProperty("user.dir") + File.separator + "xml" + File.separator + "import" + File.separator + "bom"); + JFileFilterXML xmlFilter = new JFileFilterXML(); + chooser.setFileFilter(xmlFilter); + chooser.setFileSelectionMode(JFileChooser.FILES_ONLY); + chooser.addChoosableFileFilter(xmlFilter); + + int returnVal = chooser.showOpenDialog(this); + if (returnVal == JFileChooser.APPROVE_OPTION) + { + String importFile = chooser.getSelectedFile().getAbsolutePath(); + + BomImport bomImport = new BomImport(Common.selectedHostID,Common.sessionID); + + JDBBomRecord result = bomImport.importBom(importFile); + + bom_id = result.getBOMId(); + bom_version = result.getBOMVersion(); + + setBOMId(bom_id,bom_version); + } + } + + private void validateBOM(String bomID, String bomVersion,String stage) + { + BomValidate val = new BomValidate(); + + if (comboBoxMode.getSelectedItem().toString().equals("first available")) + { + val.allocateLocations(bom_id, bom_version, "input", stage,BomValidate.mode_firstAvailable); + } + + if (comboBoxMode.getSelectedItem().toString().equals("adjacent")) + { + val.allocateLocations(bom_id, bom_version, "input",stage, BomValidate.mode_adjacent); + } + } + + //Load BOM from Database into Tree + private void loadBOM(String bomID, String bomVersion) + { + + setBOMId(bomID, bomVersion); + + root = new DefaultMutableTreeNode("root"); + String uuid = bomDB.getRootUuid(bomID, bomVersion); + + String stage = comboBoxStage.getSelectedItem().toString(); + root = bomDB.recurseBOM(root, uuid, 0,stage); + + tree = new JTree(root); + tree.setToggleClickCount(0); + + tree.addMouseListener(new MouseAdapter() + { + @Override + public void mouseClicked(MouseEvent e) + { + if (e.getClickCount() == 2) + { + DefaultMutableTreeNode val = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); + Object nodeObj = ((DefaultMutableTreeNode) val).getUserObject(); + JDBBomRecord rec = (JDBBomRecord) nodeObj; + + JDBBomElement element = new JDBBomElement(Common.selectedHostID, Common.sessionID); + element.getProperties(rec.getDataId()); + + boolean edit = element.getElementRecord().isEnable_edit(); + + if (edit) + { + rec = editValue(rec); + + if (rec.isModified()) + { + ((DefaultMutableTreeNode) val).setUserObject(rec); + + bomDB.updateRecord(rec); + + DefaultTreeModel model = (DefaultTreeModel) tree.getModel(); + model.reload(val); + } + } + } + } + }); + + tree.addTreeSelectionListener(new TreeSelectionListener() + { + public void valueChanged(TreeSelectionEvent e) + { + DefaultMutableTreeNode val = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); + Object nodeObj = ((DefaultMutableTreeNode) val).getUserObject(); + try + { + JDBBomRecord rec = (JDBBomRecord) nodeObj; + tree.setComponentPopupMenu(getPopupMenu(rec)); + } + catch (Exception ex) + { + tree.setComponentPopupMenu(null); + } + } + }); + + tree.setBorder(new EmptyBorder(8, 8, 5, 5)); + tree.setFont(Common.font_tree); + tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); + tree.setCellRenderer(bomTreeRenderer); + tree.setRowHeight(17); + + ToolTipManager.sharedInstance().registerComponent(tree); + + scrollPane.setViewportView(tree); + + expandTree(); + } + + private void expandTree() + { + int j = tree.getRowCount(); + int i = 0; + while (i < j) + { + tree.expandRow(i); + i += 1; + j = tree.getRowCount(); + } + } + + private JPopupMenu getPopupMenu(JDBBomRecord rec) + { + JPopupMenu popupMenu = new JPopupMenu(); + + JDBBomElement element = new JDBBomElement(Common.selectedHostID, Common.sessionID); + element.getProperties(rec.getDataId()); + + boolean copytoclipboard = element.getElementRecord().isEnable_clipboard(); + boolean edit = element.getElementRecord().isEnable_edit(); + boolean duplicate = element.getElementRecord().isEnable_duplicate(); + boolean delete = element.getElementRecord().isEnable_delete(); + boolean create = element.getElementRecord().isEnable_create(); + + if (copytoclipboard) + { + JMenuItem menu3 = new JMenuItem(lang.get("lbl_Clipboard_Copy")); + menu3.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent ev) + { + DefaultMutableTreeNode val = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); + Object nodeObj = ((DefaultMutableTreeNode) val).getUserObject(); + JDBBomRecord rec = (JDBBomRecord) nodeObj; + transferable = new StringSelection(rec.getString()); + clipboard.setContents(transferable, null); + } + }); + popupMenu.add(menu3); + } + + if (duplicate) + { + JMenuItem menu4 = new JMenuItem(lang.get("lbl_Duplicate")); + menu4.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent ev) + { + DefaultMutableTreeNode val = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); + Object nodeObj = ((DefaultMutableTreeNode) val).getUserObject(); + JDBBomRecord rec = (JDBBomRecord) nodeObj; + + int response = JOptionPane.showConfirmDialog(JInternalFrameBom.this, lang.get("lbl_Duplicate")+" '" + rec.getElement().getElementRecord().getDescription() + "'?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, + Common.icon_confirm_16x16); + + if (response == JOptionPane.YES_OPTION) + { + bomDB.cloneTree(rec, null); + loadBOM(bom_id, bom_version); + } + } + }); + popupMenu.add(menu4); + } + + if (delete) + { + JMenuItem menu5 = new JMenuItem(lang.get("lbl_Delete")); + menu5.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent ev) + { + DefaultMutableTreeNode val = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); + Object nodeObj = ((DefaultMutableTreeNode) val).getUserObject(); + JDBBomRecord rec = (JDBBomRecord) nodeObj; + + int response = JOptionPane.showConfirmDialog(JInternalFrameBom.this, lang.get("lbl_Delete")+" '" + rec.getElement().getElementRecord().getDescription() + "'?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, + Common.icon_confirm_16x16); + + if (response == JOptionPane.YES_OPTION) + { + bomDB.deleteTree(rec); + loadBOM(bom_id, bom_version); + } + } + }); + popupMenu.add(menu5); + } + + if (edit) + { + JMenuItem menu6 = new JMenuItem(lang.get("lbl_Edit")); + menu6.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent ev) + { + DefaultMutableTreeNode val = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); + Object nodeObj = ((DefaultMutableTreeNode) val).getUserObject(); + + JDBBomRecord rec = (JDBBomRecord) nodeObj; + + rec = editValue(rec); + + if (rec.isModified()) + { + + ((DefaultMutableTreeNode) val).setUserObject(rec); + + bomDB.updateRecord(rec); + + DefaultTreeModel model = (DefaultTreeModel) tree.getModel(); + model.reload(val); + } + } + }); + popupMenu.add(menu6); + } + + if (create) + { + JMenu menu7 = new JMenu(lang.get("lbl_Create")); + + JDBBomStructure struc = new JDBBomStructure(Common.selectedHostID, Common.sessionID); + + LinkedList newlist = struc.getAllowedChildren(rec); + + HashMap occur = bomDB.getElementCount(rec); + + if (newlist.size() > 0) + { + + String key = ""; + int actual = 0; + int max = 0; + int items = 0; + + for (int x = 0; x < newlist.size(); x++) + { + + key = "[" + newlist.get(x).getDataId() + "]"; + + actual = 0; + try + { + actual = occur.get(key); + } + catch (Exception ex) + { + actual = 0; + } + + max = 0; + try + { + max = newlist.get(x).getElementRecord().getMax_occur_level(); + } + catch (Exception ex) + { + max = 0; + } + + if (actual < max) + { + + JMenuItem menu7item = new JMenuItem(newlist.get(x).getElementRecord().getDescription()); + + final String newType = newlist.get(x).getElementRecord().getDataType(); + final String newDescription = newlist.get(x).getElementRecord().getDescription(); + final boolean editEnabled = newlist.get(x).getElementRecord().isEnable_edit(); + final String newId = newlist.get(x).getDataId(); + + menu7item.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent ev) + { + DefaultMutableTreeNode val = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); + Object nodeObj = ((DefaultMutableTreeNode) val).getUserObject(); + + JDBBomRecord currentrec = (JDBBomRecord) nodeObj; + + JDBBomRecord newrec = new JDBBomRecord(Common.selectedHostID, Common.sessionID); + + int response = JOptionPane.showConfirmDialog(JInternalFrameBom.this, lang.get("lbl_Create")+" '" + newDescription + "'?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, Common.icon_confirm_16x16); + + if (response == JOptionPane.YES_OPTION) + { + newrec.setBOMId(currentrec.getBOMId()); + newrec.setBOMVersion(currentrec.getBOMVersion()); + newrec.setDataType(newType); + newrec.setDataId(newId); + newrec.setParent_uuid(currentrec.getUuid()); + newrec.setUuid(currentrec.newUUID()); + newrec.setBOMSequence(bomDB.getSequence(newId, currentrec.getUuid())); + + if (editEnabled) + { + newrec = editValue(newrec); + } + + bomDB.writeRecord(newrec); + + loadBOM(bom_id, bom_version); + } + } + }); + menu7.add(menu7item); + items++; + } + } + + if (items > 0) + { + popupMenu.add(menu7); + } + } + } + + JMenuItem menu8 = new JMenuItem("Display Sequence"); + menu8.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent ev) + { + DefaultMutableTreeNode val = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); + Object nodeObj = ((DefaultMutableTreeNode) val).getUserObject(); + + JDBBomRecord rec = (JDBBomRecord) nodeObj; + + String stringValue = String.valueOf(rec.getBOMSequence()); + + boolean valid = false; + while (valid == false) + { + String temp = (String) JOptionPane.showInputDialog(JInternalFrameBom.this, "Display Sequence", element.getElementRecord().getDescription(), JOptionPane.OK_CANCEL_OPTION, Common.icon_confirm_16x16, null, stringValue); + + if (temp != null) + { + valid = NumberUtils.isCreatable(temp); + + if (valid) + { + rec.setBOMSequence(Integer.valueOf(temp)); + } + } + else + { + valid = true; + } + } + + bomDB.updateSequence(rec); + + loadBOM(bom_id, bom_version); + } + }); + popupMenu.add(menu8); + + return popupMenu; + } + + public class ButtonHandler implements ActionListener + { + public void actionPerformed(ActionEvent event) + { + if (event.getSource() == btnExpandAll) + { + expandAll(tree, true); + } + + if (event.getSource() == btnCollapseAll) + { + expandAll(tree, false); + } + + if (event.getSource() == btnExpandNode) + { + TreePath path = tree.getSelectionPath(); + expandAll(tree, path, true); + } + + if (event.getSource() == btnCollapseNode) + { + TreePath path = tree.getSelectionPath(); + expandAll(tree, path, false); + } + + if (event.getSource() == btnImport) + { + importBOM(); + loadBOM(bom_id, bom_version); + } + + if (event.getSource() == btnProcess) + { + bom_id = textFieldBOM.getText(); + bom_version = textFieldVersion.getText(); + + String stage = comboBoxStage.getSelectedItem().toString(); + validateBOM(bom_id, bom_version,stage); + loadBOM(bom_id, bom_version); + + } + + if (event.getSource() == btnSearch) + { + bom_id = textFieldBOM.getText(); + bom_version = textFieldVersion.getText(); + + //JTreePrintPreview.showPrintPreview(tree); + + loadBOM(bom_id, bom_version); + } + + if (event.getSource() == btnClose) + { + dispose(); + } + } + } + + public void expandAll(JTree tree, boolean expand) + { + TreeNode root = (TreeNode) tree.getModel().getRoot(); + expandAll(tree, new TreePath(root), expand); + } + + private void expandAll(JTree tree, TreePath parent, boolean expand) + { + try + { + TreeNode node = (TreeNode) parent.getLastPathComponent(); + if (node.getChildCount() >= 0) + { + for (Enumeration e = node.children(); e.hasMoreElements();) + { + TreeNode n = (TreeNode) e.nextElement(); + TreePath path = parent.pathByAddingChild(n); + expandAll(tree, path, expand); + } + } + + if (expand) + { + tree.expandPath(parent); + } + else + { + tree.collapsePath(parent); + } + } + catch (Exception e) + { + + } + } + + private JDBBomRecord editValue(JDBBomRecord rec) + { + + rec.setModified(false); + String stringValue = ""; + Calendar timestampValue = Calendar.getInstance(); + JDBBomElement element = new JDBBomElement(Common.selectedHostID, Common.sessionID); + String result = ""; + + element.getProperties(rec.getDataId()); + + if (rec.getDataType().equals("string")) + { + stringValue = rec.getDataString(); + + // Plain string input + if (element.getElementRecord().isEnable_lookup() == false) + { + result = (String) JOptionPane.showInputDialog(JInternalFrameBom.this, lang.get("lbl_Edit")+" "+lang.get("lbl_Value"), element.getElementRecord().getDescription(), JOptionPane.OK_CANCEL_OPTION, Common.icon_confirm_16x16, null, stringValue); + + if (result != null) + { + rec.setDataString(result); + rec.setModified(true); + } + } + else + { + // Lookup list + JDBBomList ll = new JDBBomList(Common.selectedHostID, Common.sessionID); + + LinkedList allitems = ll.getValues(element.getElementRecord().getLookup_sql(), element.getElementRecord().getLookup_field()); + + int found = 0; + + for (int x = 0; x < allitems.size(); x++) + { + if (allitems.get(x).equals(stringValue)) + { + found = x; + break; + } + } + + Object[] array = allitems.toArray(); + + String temp = (String) JOptionPane.showInputDialog(JInternalFrameBom.this, lang.get("btn_Select")+" "+lang.get("lbl_Value"), element.getElementRecord().getDescription(), JOptionPane.OK_CANCEL_OPTION, Common.icon_confirm_16x16, array, array[found]); + + if (temp != null) + { + result = temp; + rec.setDataString(result); + rec.setModified(true); + } + else + { + result = null; + } + } + } + + if (rec.getDataType().equals("decimal")) + { + stringValue = rec.getDataDecimal().toString(); + + boolean valid = false; + while (valid == false) + { + + String temp = (String) JOptionPane.showInputDialog(JInternalFrameBom.this, lang.get("lbl_Edit")+" "+lang.get("lbl_Value"), element.getElementRecord().getDescription(), JOptionPane.OK_CANCEL_OPTION, Common.icon_confirm_16x16, null, stringValue); + + if (temp != null) + { + result = temp; + valid = NumberUtils.isCreatable(result); + if (valid) + { + rec.setDataDecimal(new BigDecimal(result)); + rec.setModified(true); + } + } + else + { + result = null; + valid = true; + } + } + } + + if (rec.getDataType().equals("timestamp")) + { + timestampValue.setTimeInMillis(rec.getDataTimestamp().getTime()); + Calendar backup = (Calendar) timestampValue.clone(); + + backup.setTimeInMillis(rec.getDataTimestamp().getTime()); + + Calendar cldr = Calendar.getInstance(); + cldr = timestampValue; + + JCalendarDialog2 cal = new JCalendarDialog2(JInternalFrameBom.this, cldr); + cal.setVisible(true); + + cldr = cal.getDate(); + + if (cldr.compareTo(backup) != 0) + { + rec.setModified(true); + } + + Timestamp timestamp = new Timestamp(cldr.getTimeInMillis()); + result = JUtility.getISOTimeStampStringFormat(timestamp); + + rec.setDataTimestamp(JUtility.getTimeStampFromISOString(result)); + + } + + return rec; + } +} diff --git a/b6/src/com/commander4j/bom/JInternalFrameBomDefaults.java b/b6/src/com/commander4j/bom/JInternalFrameBomDefaults.java new file mode 100644 index 000000000..4f669337a --- /dev/null +++ b/b6/src/com/commander4j/bom/JInternalFrameBomDefaults.java @@ -0,0 +1,416 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JInternalFrameControlAdmin.java + * + * Package Name : com.commander4j.sys + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.awt.Dimension; +import java.awt.Rectangle; +import java.awt.Toolkit; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.sql.PreparedStatement; +import java.util.LinkedList; + +import javax.swing.DefaultComboBoxModel; +import javax.swing.JComboBox; +import javax.swing.JOptionPane; +import javax.swing.JScrollPane; +import javax.swing.ListSelectionModel; +import javax.swing.table.TableRowSorter; + +import com.commander4j.db.JDBControl; +import com.commander4j.db.JDBLanguage; +import com.commander4j.db.JDBQuery; +import com.commander4j.gui.JButton4j; +import com.commander4j.gui.JTable4j; +import com.commander4j.sys.Common; +import com.commander4j.sys.JLaunchMenu; +import com.commander4j.sys.JLaunchReport; +import com.commander4j.util.JExcel; +import com.commander4j.util.JHelp; +import com.commander4j.util.JUtility; + +public class JInternalFrameBomDefaults extends javax.swing.JInternalFrame +{ + private JButton4j jButtonExcel; + private static final long serialVersionUID = 1; + private JScrollPane jScrollPane1; + private JButton4j jButtonEdit; + private JButton4j jButtonClose; + private JButton4j jButtonHelp; + private JButton4j jButtonPrint; + private JButton4j jButtonRefresh; + private JButton4j jButtonDelete; + private JButton4j jButtonAdd; + private JTable4j jTable1; + private String sourceField; + private String sourceValue; + private String destinationField; + private JDBLanguage lang = new JDBLanguage(Common.selectedHostID, Common.sessionID); + private JDBBomList bomLists = new JDBBomList(Common.selectedHostID, Common.sessionID); + private JDBBomDefaults bomDefault = new JDBBomDefaults(Common.selectedHostID, Common.sessionID); + private PreparedStatement listStatement; + + public JInternalFrameBomDefaults() + { + super(); + initGUI(); + + final JHelp help = new JHelp(); + help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_BOM_DEFAULTS")); + + Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); + Rectangle window = getBounds(); + setLocation((screen.width - window.width) / 2, (screen.height - window.height) / 2); + + } + + private void buildSQL() + { + + JDBQuery.closeStatement(listStatement); + JDBQuery query = new JDBQuery(Common.selectedHostID, Common.sessionID); + + query.clear(); + String schemaName = Common.hostList.getHost(Common.selectedHostID).getDatabaseParameters().getjdbcDatabaseSchema(); + query.addText(JUtility.substSchemaName(schemaName, "select * from {schema}APP_BOM_DEFAULTS order by source_field,source_value,destination_field,destination_value")); + query.applyRestriction(false, "none", 0); + query.bindParams(); + + listStatement = query.getPreparedStatement(); + } + + private PreparedStatement buildSQLr() + { + + JDBQuery.closeStatement(listStatement); + JDBQuery query = new JDBQuery(Common.selectedHostID, Common.sessionID); + + query.clear(); + String schemaName = Common.hostList.getHost(Common.selectedHostID).getDatabaseParameters().getjdbcDatabaseSchema(); + query.addText(JUtility.substSchemaName(schemaName, "select * from {schema}APP_BOM_DEFAULTS order by source_field,source_value,destination_field,destination_value")); + query.applyRestriction(false, "none", 0); + query.bindParams(); + + listStatement = query.getPreparedStatement(); + + return listStatement; + } + + private void populateList(String defaultitem) + { + + JDBControl ctrl = new JDBControl(Common.selectedHostID, Common.sessionID); + buildSQL(); + JDBBomDefaultsTableModel bomdefaultstable = new JDBBomDefaultsTableModel(Common.selectedHostID, Common.sessionID, ctrl.getControlDataResultSet(listStatement)); + TableRowSorter sorter = new TableRowSorter(bomdefaultstable); + + jTable1.setRowSorter(sorter); + jTable1.setModel(bomdefaultstable); + + jScrollPane1.setViewportView(jTable1); + + jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); + + + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.source_field_desc_col).setPreferredWidth(100); + + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.source_field_icon_col).setPreferredWidth(20); + + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.source_value_col).setPreferredWidth(100); + + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.destination_field_desc_col).setPreferredWidth(100); + + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.destination_field_icon_col).setPreferredWidth(20); + + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.destination_value_col).setPreferredWidth(100); + + + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.source_field_col).setWidth(0); + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.source_field_col).setMinWidth(0); + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.source_field_col).setMaxWidth(0); + + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.destination_field_col).setWidth(0); + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.destination_field_col).setMinWidth(0); + jTable1.getColumnModel().getColumn(JDBBomDefaultsTableModel.destination_field_col).setMaxWidth(0); + + jScrollPane1.repaint(); + } + + private void initGUI() + { + try + { + this.setPreferredSize(new java.awt.Dimension(669, 341)); + this.setBounds(0, 0, 586, 438); + setVisible(true); + this.setClosable(true); + this.getContentPane().setLayout(null); + this.setIconifiable(true); + + { + jScrollPane1 = new JScrollPane(); + jScrollPane1.getViewport().setBackground(Common.color_tablebackground); + this.getContentPane().add(jScrollPane1); + jScrollPane1.setBounds(3, 3, 461, 390); + jScrollPane1.setFont(Common.font_std); + { + jTable1 = new JTable4j(); + jTable1.getTableHeader().setBounds(0, 0, 629, 16); + + jTable1.getTableHeader().setFont(Common.font_table_header); + jTable1.getTableHeader().setForeground(Common.color_tableHeaderFont); + jTable1.setDefaultRenderer(Object.class, Common.renderer_table); + jTable1.setFont(Common.font_list); + jTable1.setForeground(Common.color_listFontStandard); + jTable1.addMouseListener(new MouseAdapter() + { + public void mouseClicked(MouseEvent evt) + { + if (evt.getClickCount() == 2) + { + if (Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_DEFAULTS_EDIT") == true) + { + editRecord(); + } + } + } + }); + populateList(""); + + } + + } + { + jButtonEdit = new JButton4j(Common.icon_edit_16x16); + this.getContentPane().add(jButtonEdit); + jButtonEdit.setText(lang.get("btn_Edit")); + jButtonEdit.setBounds(467, 35, 106, 32); + jButtonEdit.setMnemonic(lang.getMnemonicChar()); + jButtonEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_DEFAULTS_EDIT")); + jButtonEdit.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + editRecord(); + } + }); + } + { + jButtonRefresh = new JButton4j(Common.icon_refresh_16x16); + this.getContentPane().add(jButtonRefresh); + jButtonRefresh.setText(lang.get("btn_Refresh")); + jButtonRefresh.setBounds(467, 163, 106, 32); + jButtonRefresh.setMnemonic(lang.getMnemonicChar()); + jButtonRefresh.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + populateList(""); + } + }); + } + { + jButtonClose = new JButton4j(Common.icon_close_16x16); + this.getContentPane().add(jButtonClose); + jButtonClose.setText(lang.get("btn_Close")); + jButtonClose.setBounds(467, 223, 106, 32); + jButtonClose.setMnemonic(lang.getMnemonicChar()); + jButtonClose.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + jButtonCloseActionPerformed(evt); + } + }); + } + { + + jButtonAdd = new JButton4j(Common.icon_add_16x16); + this.getContentPane().add(jButtonAdd); + jButtonAdd.setText(lang.get("btn_Add")); + jButtonAdd.setBounds(467, 3, 106, 32); + jButtonAdd.setMnemonic(lang.getMnemonicChar()); + jButtonAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_DEFAULTS_ADD")); + jButtonAdd.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + // *Source Field** + + DefaultComboBoxModel sourceComboBoxMod = new DefaultComboBoxModel(); + LinkedList listSource = bomLists.getListValues("source_field"); + sourceComboBoxMod.addAll(listSource); + + JComboBox comboBoxSource = new JComboBox(); + comboBoxSource.setModel(sourceComboBoxMod); + + if (listSource.size() > 0) + { + comboBoxSource.setSelectedIndex(0); + } + int result = JOptionPane.showConfirmDialog(Common.mainForm, comboBoxSource, lang.get("lbl_Source_Field"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); + + if (result == JOptionPane.OK_OPTION) + { + + String selectedSource = ((JDBBomListRecord) comboBoxSource.getSelectedItem()).getItem(); + + // Source Value // + String sourceValue = JUtility.replaceNullStringwithBlank(JOptionPane.showInputDialog(Common.mainForm, lang.get("lbl_Source_Value") + " for " + ((JDBBomListRecord) comboBoxSource.getSelectedItem()).getItem())); + + if (sourceValue.equals("") == false) + { + + // *Destination Field** + DefaultComboBoxModel destComboBoxMod = new DefaultComboBoxModel(); + LinkedList listDestination = bomLists.getListValues("destination_field"); + destComboBoxMod.addAll(listDestination); + + JComboBox comboBoxDestination = new JComboBox(); + comboBoxDestination.setModel(destComboBoxMod); + + if (listDestination.size() > 0) + { + comboBoxDestination.setSelectedIndex(0); + } + + result = JOptionPane.showConfirmDialog(Common.mainForm, comboBoxDestination, lang.get("lbl_Destination_Field"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); + + if (result == JOptionPane.OK_OPTION) + { + + String selectedDestination = ((JDBBomListRecord) comboBoxDestination.getSelectedItem()).getItem(); + JLaunchMenu.runDialog("FRM_BOM_DEFAULTS_EDIT", selectedSource, sourceValue, selectedDestination); + populateList(""); + } + } + } + } + }); + } + { + jButtonDelete = new JButton4j(Common.icon_delete_16x16); + this.getContentPane().add(jButtonDelete); + jButtonDelete.setText(lang.get("btn_Delete")); + jButtonDelete.setBounds(467, 67, 106, 32); + jButtonDelete.setMnemonic(lang.getMnemonicChar()); + jButtonDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_DEFAULTS_DELETE")); + jButtonDelete.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + int question = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Delete"), lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm_16x16); + if (question == 0) + { + + int row = jTable1.getSelectedRow(); + if (row >= 0) + { + sourceField = jTable1.getValueAt(row, JDBBomDefaultsTableModel.source_field_col).toString(); + sourceValue = jTable1.getValueAt(row, JDBBomDefaultsTableModel.source_value_col).toString(); + destinationField = jTable1.getValueAt(row, JDBBomDefaultsTableModel.destination_field_col).toString(); + bomDefault.delete(sourceField, sourceValue, destinationField); + populateList(""); + } + } + } + }); + } + { + jButtonPrint = new JButton4j(Common.icon_report_16x16); + this.getContentPane().add(jButtonPrint); + jButtonPrint.setText(lang.get("btn_Print")); + jButtonPrint.setBounds(467, 131, 106, 32); + jButtonPrint.setMnemonic(lang.getMnemonicChar()); + jButtonPrint.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + JLaunchReport.runReport("RPT_BOM_DEFAULTS", null, "", null, ""); + } + }); + } + { + jButtonHelp = new JButton4j(Common.icon_help_16x16); + this.getContentPane().add(jButtonHelp); + jButtonHelp.setText(lang.get("btn_Help")); + jButtonHelp.setBounds(467, 195, 106, 32); + jButtonHelp.setMnemonic(lang.getMnemonicChar()); + + } + + { + jButtonExcel = new JButton4j(Common.icon_XLS_16x16); + jButtonExcel.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + JExcel export = new JExcel(); + PreparedStatement temp = buildSQLr(); + export.saveAs("bom_defaults.xls", bomDefault.getBomDefaultsResultSet(temp), Common.mainForm); + populateList(""); + } + }); + jButtonExcel.setText(lang.get("btn_Excel")); + jButtonExcel.setMnemonic(lang.getMnemonicChar()); + jButtonExcel.setBounds(467, 99, 106, 32); + getContentPane().add(jButtonExcel); + } + + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + private void editRecord() + { + int row = jTable1.getSelectedRow(); + if (row >= 0) + { + + sourceField = jTable1.getValueAt(row, JDBBomDefaultsTableModel.source_field_col).toString(); + sourceValue = jTable1.getValueAt(row, JDBBomDefaultsTableModel.source_value_col).toString(); + destinationField = jTable1.getValueAt(row, JDBBomDefaultsTableModel.destination_field_col).toString(); + + JLaunchMenu.runDialog("FRM_BOM_DEFAULTS_EDIT", sourceField, sourceValue, destinationField); + + populateList(""); + } + } + + private void jButtonCloseActionPerformed(ActionEvent evt) + { + JDBQuery.closeStatement(listStatement); + dispose(); + } + +} diff --git a/b6/src/com/commander4j/bom/JInternalFrameBomElementProperties.java b/b6/src/com/commander4j/bom/JInternalFrameBomElementProperties.java new file mode 100644 index 000000000..133c8617e --- /dev/null +++ b/b6/src/com/commander4j/bom/JInternalFrameBomElementProperties.java @@ -0,0 +1,530 @@ +package com.commander4j.bom; + +import java.awt.Color; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyAdapter; +import java.awt.event.KeyEvent; +import java.io.File; + +import javax.swing.ComboBoxModel; +import javax.swing.DefaultComboBoxModel; +import javax.swing.JDesktopPane; +import javax.swing.JFileChooser; +import javax.swing.JInternalFrame; +import javax.swing.JScrollPane; +import javax.swing.JSpinner; +import javax.swing.JTextArea; +import javax.swing.SpinnerNumberModel; +import javax.swing.SwingConstants; +import javax.swing.SwingUtilities; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; + +import com.commander4j.db.JDBLanguage; +import com.commander4j.gui.JButton4j; +import com.commander4j.gui.JCheckBox4j; +import com.commander4j.gui.JComboBox4j; +import com.commander4j.gui.JLabel4j_std; +import com.commander4j.gui.JTextField4j; +import com.commander4j.sys.Common; +import com.commander4j.sys.JLaunchMenu; +import com.commander4j.util.JFileFilterImages; +import com.commander4j.util.JHelp; +import com.commander4j.util.JUtility; + +public class JInternalFrameBomElementProperties extends JInternalFrame +{ + private static final long serialVersionUID = 1; + + private JDesktopPane jDesktopPane1; + + private JButton4j jButtonClose; + private JButton4j jButtonHelp; + private JButton4j jButtonUpdate; + + private JLabel4j_std jLabel_Data_ID = new JLabel4j_std(); + private JLabel4j_std jLabel_Description = new JLabel4j_std(); + private JLabel4j_std jLabel_DataType = new JLabel4j_std(); + private JLabel4j_std jLabel_IconFilename = new JLabel4j_std(); + private JLabel4j_std jLabel_MaxOccurs = new JLabel4j_std(); + + private JLabel4j_std jLabel_EnableCreate = new JLabel4j_std(); + private JLabel4j_std jLabel_EnableEdit = new JLabel4j_std(); + private JLabel4j_std jLabel_EnableDelete = new JLabel4j_std(); + private JLabel4j_std jLabel_EnableDuplicate = new JLabel4j_std(); + private JLabel4j_std jLabel_Enable_Clipboard = new JLabel4j_std(); + private JLabel4j_std jLabel_Enable_Lookup = new JLabel4j_std(); + + private JLabel4j_std jLabel_LookupSQL = new JLabel4j_std(); + private JLabel4j_std jLabel_LookupField = new JLabel4j_std(); + + private JTextField4j jTextField_DataID = new JTextField4j(JDBBomElement.field_data_id); + private JTextField4j jTextField_Description = new JTextField4j(JDBBomElement.field_data_description); + private JTextField4j jTextField_IconFilename = new JTextField4j(JDBBomElement.field_icon_filename); + private JTextField4j jTextField_LookupField = new JTextField4j(JDBBomElement.field_lookup_field); + + private JCheckBox4j checkBox_EnableCreate = new JCheckBox4j(); + private JCheckBox4j checkBox_EnableEdit = new JCheckBox4j(); + private JCheckBox4j checkBox_EnableDelete = new JCheckBox4j(); + private JCheckBox4j checkBox_EnableDuplicate = new JCheckBox4j(); + private JCheckBox4j checkBox_EnableClipboard = new JCheckBox4j(); + private JCheckBox4j checkBox_EnableLookup = new JCheckBox4j(); + + private JButton4j jButtonIconFileChooser; + + JScrollPane scrollPane = new JScrollPane(); + JTextArea textArea_LookupSQL = new JTextArea(); + + private JSpinner jSpinnerLimit_MaxOccurences; + + private JComboBox4j comboBoxDataType = new JComboBox4j(); + ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(new String[] { "", "decimal", "string", "timestamp" }); + + private String ldata_id = ""; + + private JDBLanguage lang = new JDBLanguage(Common.selectedHostID, Common.sessionID); + private JDBBomElement elements = new JDBBomElement(Common.selectedHostID, Common.sessionID); + + public JInternalFrameBomElementProperties() + { + super(); + + initGUI(); + final JHelp help = new JHelp(); + help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_BOM_ELEMENTS")); + + SwingUtilities.invokeLater(new Runnable() + { + public void run() + { + jTextField_Description.requestFocus(); + jTextField_Description.setCaretPosition(jTextField_Description.getText().length()); + + } + }); + } + + public JInternalFrameBomElementProperties(String id) + { + this(); + setDataID(id); + } + + public void setDataID(String id) + { + jTextField_DataID.setText(id); + + setTitle(getTitle() + " - " + id); + + ldata_id = id; + + getProperties(ldata_id); + + setButtonState(false); + } + + private boolean getProperties(String dataID) + { + boolean result = false; + result = elements.getProperties(dataID); + + jTextField_Description.setText(elements.getElementRecord().getDescription()); + jTextField_IconFilename.setText(elements.getElementRecord().getIcon_filename()); + + jSpinnerLimit_MaxOccurences.setValue(elements.getElementRecord().getMax_occur_level()); + + textArea_LookupSQL.setText(elements.getElementRecord().getLookup_sql()); + + jTextField_LookupField.setText(elements.getElementRecord().getLookup_field()); + + checkBox_EnableCreate.setSelected(elements.getElementRecord().isEnable_create()); + checkBox_EnableEdit.setSelected(elements.getElementRecord().isEnable_edit()); + checkBox_EnableDelete.setSelected(elements.getElementRecord().isEnable_delete()); + checkBox_EnableDuplicate.setSelected(elements.getElementRecord().isEnable_duplicate()); + checkBox_EnableClipboard.setSelected(elements.getElementRecord().isEnable_clipboard()); + checkBox_EnableLookup.setSelected(elements.getElementRecord().isEnable_lookup()); + + comboBoxDataType.setSelectedItem(elements.getElementRecord().getDataType()); + + return result; + } + + private void initGUI() + { + try + { + this.setPreferredSize(new java.awt.Dimension(389, 143)); + this.setBounds(0, 0, 552, 442); + setVisible(true); + this.setIconifiable(true); + this.setClosable(true); + getContentPane().setLayout(null); + { + jDesktopPane1 = new JDesktopPane(); + jDesktopPane1.setBounds(0, 0, 542, 410); + jDesktopPane1.setBackground(Common.color_edit_properties); + getContentPane().add(jDesktopPane1); + jDesktopPane1.setLayout(null); + + jLabel_Data_ID.setBounds(22, 8, 112, 21); + jDesktopPane1.add(jLabel_Data_ID); + jLabel_Data_ID.setText(lang.get("lbl_Data_ID")); + jLabel_Data_ID.setHorizontalAlignment(SwingConstants.RIGHT); + jLabel_Data_ID.setHorizontalTextPosition(SwingConstants.RIGHT); + + jLabel_Description.setBounds(22, 37, 112, 21); + jDesktopPane1.add(jLabel_Description); + jLabel_Description.setText(lang.get("lbl_Description")); + jLabel_Description.setHorizontalAlignment(SwingConstants.RIGHT); + jLabel_Description.setHorizontalTextPosition(SwingConstants.RIGHT); + + jLabel_DataType.setBounds(22, 66, 112, 21); + jLabel_DataType.setText((String) null); + jLabel_DataType.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel_DataType.setHorizontalAlignment(SwingConstants.RIGHT); + jLabel_DataType.setText(lang.get("lbl_Data_Type")); + jDesktopPane1.add(jLabel_DataType); + + jLabel_IconFilename.setBounds(22, 95, 112, 21); + jLabel_IconFilename.setText(lang.get("lbl_Module_Icon_Filename")); + jLabel_IconFilename.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel_IconFilename.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_IconFilename); + + jLabel_MaxOccurs.setBounds(22, 124, 112, 21); + jLabel_MaxOccurs.setText(lang.get("lbl_Max_Occurrences")); + jLabel_MaxOccurs.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel_MaxOccurs.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_MaxOccurs); + + jLabel_EnableCreate.setBounds(22, 167, 112, 21); + jLabel_EnableCreate.setText(lang.get("lbl_Create")); + jLabel_EnableCreate.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel_EnableCreate.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_EnableCreate); + + jLabel_EnableEdit.setBounds(22, 194, 112, 21); + jLabel_EnableEdit.setText(lang.get("lbl_Edit")); + jLabel_EnableEdit.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel_EnableEdit.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_EnableEdit); + + jLabel_Enable_Clipboard.setBounds(22, 275, 112, 21); + jLabel_Enable_Clipboard.setText(lang.get("lbl_Clipboard")); + jLabel_Enable_Clipboard.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel_Enable_Clipboard.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_Enable_Clipboard); + + jLabel_Enable_Lookup.setBounds(22, 302, 112, 21); + jLabel_Enable_Lookup.setText(lang.get("lbl_Lookup")); + jLabel_Enable_Lookup.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel_Enable_Lookup.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_Enable_Lookup); + + jLabel_LookupSQL.setBounds(178, 150, 175, 21); + jLabel_LookupSQL.setText(lang.get("lbl_Lookup_SQL")); + jLabel_LookupSQL.setHorizontalTextPosition(SwingConstants.LEFT); + jLabel_LookupSQL.setHorizontalAlignment(SwingConstants.LEFT); + jDesktopPane1.add(jLabel_LookupSQL); + + jLabel_LookupField.setBounds(52, 325, 112, 21); + jLabel_LookupField.setText(lang.get("lbl_Lookup_Field")); + jLabel_LookupField.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel_LookupField.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_LookupField); + + jLabel_EnableDelete.setBounds(22, 221, 112, 21); + jLabel_EnableDelete.setText(lang.get("lbl_Delete")); + jLabel_EnableDelete.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel_EnableDelete.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_EnableDelete); + + jLabel_EnableDuplicate.setBounds(22, 248, 112, 21); + jLabel_EnableDuplicate.setText(lang.get("lbl_Duplicate")); + jLabel_EnableDuplicate.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel_EnableDuplicate.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_EnableDuplicate); + + jTextField_DataID.setBounds(143, 8, 141, 21); + jDesktopPane1.add(jTextField_DataID); + jTextField_DataID.setHorizontalAlignment(SwingConstants.LEFT); + jTextField_DataID.setEditable(false); + jTextField_DataID.setEnabled(false); + + jTextField_Description.setBounds(143, 37, 332, 21); + jDesktopPane1.add(jTextField_Description); + jTextField_Description.setFocusCycleRoot(true); + jTextField_Description.addKeyListener(new KeyAdapter() + { + public void keyTyped(KeyEvent evt) + { + jButtonUpdate.setEnabled(true); + } + }); + + comboBoxDataType.setBounds(143, 66, 141, 21); + comboBoxDataType.setEnabled(true); + comboBoxDataType.setModel(jComboBox1Model); + jDesktopPane1.add(comboBoxDataType); + comboBoxDataType.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + jButtonUpdate.setEnabled(true); + } + }); + + jTextField_IconFilename.setBounds(143, 95, 184, 21); + jDesktopPane1.add(jTextField_IconFilename); + jTextField_IconFilename.addKeyListener(new KeyAdapter() + { + @Override + public void keyTyped(KeyEvent e) + { + setButtonState(true); + } + }); + + SpinnerNumberModel jSpinnerIntModel = new SpinnerNumberModel(); + jSpinnerIntModel.setMinimum(0); + jSpinnerIntModel.setMaximum(99); + jSpinnerIntModel.setStepSize(1); + + jSpinnerLimit_MaxOccurences = new JSpinner(); + jSpinnerLimit_MaxOccurences.addChangeListener(new ChangeListener() + { + public void stateChanged(ChangeEvent e) + { + setButtonState(true); + } + }); + jDesktopPane1.add(jSpinnerLimit_MaxOccurences); + + jSpinnerLimit_MaxOccurences.setModel(jSpinnerIntModel); + JSpinner.NumberEditor ne_jSpinnerLimit_MaxOccurences = new JSpinner.NumberEditor(jSpinnerLimit_MaxOccurences); + ne_jSpinnerLimit_MaxOccurences.getTextField().setFont(Common.font_input); + jSpinnerLimit_MaxOccurences.setEditor(ne_jSpinnerLimit_MaxOccurences); + jSpinnerLimit_MaxOccurences.setBounds(143, 123, 46, 21); + jSpinnerLimit_MaxOccurences.getEditor().setSize(45, 21); + jSpinnerLimit_MaxOccurences.getEditor().setFont(Common.font_input); + + checkBox_EnableCreate = new JCheckBox4j(); + checkBox_EnableCreate.setBounds(143, 164, 21, 24); + checkBox_EnableCreate.setBackground(Color.WHITE); + jDesktopPane1.add(checkBox_EnableCreate); + checkBox_EnableCreate.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + setButtonState(true); + } + }); + + checkBox_EnableEdit.setBounds(143, 191, 21, 24); + checkBox_EnableEdit.setBackground(Color.WHITE); + jDesktopPane1.add(checkBox_EnableEdit); + checkBox_EnableEdit.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + setButtonState(true); + } + }); + + checkBox_EnableDelete.setBounds(143, 218, 21, 24); + checkBox_EnableDelete.setBackground(Color.WHITE); + jDesktopPane1.add(checkBox_EnableDelete); + checkBox_EnableDelete.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent arg0) + { + setButtonState(true); + } + }); + + checkBox_EnableDuplicate.setBounds(143, 245, 21, 24); + checkBox_EnableDuplicate.setBackground(Color.WHITE); + jDesktopPane1.add(checkBox_EnableDuplicate); + checkBox_EnableDuplicate.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + setButtonState(true); + } + }); + + checkBox_EnableClipboard.setBounds(143, 272, 21, 24); + checkBox_EnableClipboard.setBackground(Color.WHITE); + jDesktopPane1.add(checkBox_EnableClipboard); + checkBox_EnableClipboard.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + setButtonState(true); + } + }); + + checkBox_EnableLookup.setBounds(143, 299, 21, 24); + checkBox_EnableLookup.setBackground(Color.WHITE); + jDesktopPane1.add(checkBox_EnableLookup); + checkBox_EnableLookup.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + setButtonState(true); + } + }); + jTextField_LookupField.setBounds(178, 325, 119, 21); + + scrollPane.setBounds(180, 170, 332, 149); + jDesktopPane1.add(scrollPane); + textArea_LookupSQL.addKeyListener(new KeyAdapter() + { + @Override + public void keyTyped(KeyEvent e) + { + setButtonState(true); + } + }); + textArea_LookupSQL.setLineWrap(true); + scrollPane.setViewportView(textArea_LookupSQL); + + jTextField_LookupField.setColumns(80); + jTextField_LookupField.setFocusCycleRoot(true); + jTextField_LookupField.setCaretPosition(0); + jDesktopPane1.add(jTextField_LookupField); + jTextField_LookupField.addKeyListener(new KeyAdapter() + { + @Override + public void keyTyped(KeyEvent e) + { + setButtonState(true); + } + }); + + jButtonUpdate = new JButton4j(Common.icon_update_16x16); + jButtonUpdate.setBounds(97, 358, 112, 28); + jButtonUpdate.setEnabled(false); + jButtonUpdate.setText(lang.get("btn_Save")); + jButtonUpdate.setMnemonic(lang.getMnemonicChar()); + jButtonUpdate.setHorizontalTextPosition(SwingConstants.RIGHT); + jDesktopPane1.add(jButtonUpdate); + jButtonUpdate.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + + setButtonState(false); + createUpdate(ldata_id); + } + }); + + jButtonClose = new JButton4j(Common.icon_close_16x16); + jButtonClose.setBounds(361, 358, 112, 28); + jDesktopPane1.add(jButtonClose); + jButtonClose.setText(lang.get("btn_Close")); + jButtonClose.setMnemonic(lang.getMnemonicChar()); + jButtonClose.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + dispose(); + } + }); + + jButtonHelp = new JButton4j(Common.icon_help_16x16); + jButtonHelp.setBounds(230, 358, 112, 28); + jDesktopPane1.add(jButtonHelp); + jButtonHelp.setText(lang.get("btn_Help")); + jButtonHelp.setMnemonic(lang.getMnemonicChar()); + + jButtonIconFileChooser = new JButton4j(); + jDesktopPane1.add(jButtonIconFileChooser); + jButtonIconFileChooser.setText(".."); + jButtonIconFileChooser.setBounds(327, 95, 17, 21); + jButtonIconFileChooser.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + + JFileChooser loadIco = new JFileChooser(); + + try + { + File f = new File(new File("./images/16x16").getCanonicalPath()); + loadIco.setCurrentDirectory(f); + loadIco.addChoosableFileFilter(new JFileFilterImages()); + loadIco.setAcceptAllFileFilterUsed(false); + loadIco.setSelectedFile(new File(jTextField_IconFilename.getText())); + } + catch (Exception e) + { + } + + if (loadIco.showOpenDialog(jButtonIconFileChooser) == JFileChooser.APPROVE_OPTION) + { + File selectedFile; + selectedFile = loadIco.getSelectedFile(); + + if (selectedFile != null) + { + if (jTextField_IconFilename.getText().compareTo(selectedFile.getName()) != 0) + { + jTextField_IconFilename.setText(selectedFile.getName()); + setButtonState(true); + } + } + } + } + }); + } + + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + private void createUpdate(String id) + { + + JDBBomElementRecord elrec = new JDBBomElementRecord(); + + elrec.setDataId(ldata_id); + + elrec.setDataType(comboBoxDataType.getSelectedItem().toString()); + elrec.setDescription(jTextField_Description.getText()); + elrec.setIcon_filename(jTextField_IconFilename.getText()); + + elrec.setMax_occur_level(Integer.valueOf(jSpinnerLimit_MaxOccurences.getValue().toString())); + + elrec.setEnable_create(checkBox_EnableCreate.isSelected()); + elrec.setEnable_edit(checkBox_EnableEdit.isSelected()); + elrec.setEnable_delete(checkBox_EnableDelete.isSelected()); + elrec.setEnable_duplicate(checkBox_EnableDuplicate.isSelected()); + elrec.setEnable_clipboard(checkBox_EnableClipboard.isSelected()); + elrec.setEnable_lookup(checkBox_EnableLookup.isSelected()); + + elrec.setLookup_sql(textArea_LookupSQL.getText()); + elrec.setLookup_field(jTextField_LookupField.getText()); + + if (elements.isValid(id)) + { + elements.update(id, elrec); + } + else + { + elements.create(id, elrec); + } + + JLaunchMenu.runForm("FRM_BOM_ELEMENTS", id); + } + + private void setButtonState(boolean modified) + { + jButtonUpdate.setEnabled(modified); + + } +} diff --git a/b6/src/com/commander4j/bom/JInternalFrameBomElements.java b/b6/src/com/commander4j/bom/JInternalFrameBomElements.java new file mode 100644 index 000000000..61a5f63b7 --- /dev/null +++ b/b6/src/com/commander4j/bom/JInternalFrameBomElements.java @@ -0,0 +1,422 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JInternalFrameBomElements.java + * + * Package Name : com.commander4j.sys + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.awt.Dimension; +import java.awt.Rectangle; +import java.awt.Toolkit; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.sql.PreparedStatement; + +import javax.swing.JOptionPane; +import javax.swing.JScrollPane; +import javax.swing.ListSelectionModel; +import javax.swing.table.TableRowSorter; + +import com.commander4j.db.JDBControl; +import com.commander4j.db.JDBLanguage; +import com.commander4j.db.JDBQuery; +import com.commander4j.gui.JButton4j; +import com.commander4j.gui.JTable4j; +import com.commander4j.sys.Common; +import com.commander4j.sys.JLaunchMenu; +import com.commander4j.sys.JLaunchReport; +import com.commander4j.util.JExcel; +import com.commander4j.util.JHelp; +import com.commander4j.util.JUtility; + +public class JInternalFrameBomElements extends javax.swing.JInternalFrame +{ + private JButton4j jButtonExcel; + private static final long serialVersionUID = 1; + private JScrollPane jScrollPane1; + private JButton4j jButtonEdit; + private JButton4j jButtonClose; + private JButton4j jButtonHelp; + private JButton4j jButtonPrint; + private JButton4j jButtonRefresh; + private JButton4j jButtonDelete; + private JButton4j jButtonAdd; + private JTable4j jTable1; + private JDBLanguage lang = new JDBLanguage(Common.selectedHostID, Common.sessionID); + + private JDBBomElement bomElement = new JDBBomElement(Common.selectedHostID, Common.sessionID); + private PreparedStatement listStatement; + + public JInternalFrameBomElements() + { + super(); + initGUI(); + refresh(); + + final JHelp help = new JHelp(); + help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_BOM_ELEMENTS")); + + Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); + Rectangle window = getBounds(); + setLocation((screen.width - window.width) / 2, (screen.height - window.height) / 2); + + } + + private void buildSQL() + { + + JDBQuery.closeStatement(listStatement); + JDBQuery query = new JDBQuery(Common.selectedHostID, Common.sessionID); + + query.clear(); + String schemaName = Common.hostList.getHost(Common.selectedHostID).getDatabaseParameters().getjdbcDatabaseSchema(); + query.addText(JUtility.substSchemaName(schemaName, "select * from {schema}APP_BOM_ELEMENTS order by data_id")); + query.applyRestriction(false, "none", 0); + query.bindParams(); + + listStatement = query.getPreparedStatement(); + } + + public void setDataID(String id) + { + populateList(id); + } + + private PreparedStatement buildSQLr() + { + + JDBQuery.closeStatement(listStatement); + JDBQuery query = new JDBQuery(Common.selectedHostID, Common.sessionID); + + query.clear(); + String schemaName = Common.hostList.getHost(Common.selectedHostID).getDatabaseParameters().getjdbcDatabaseSchema(); + query.addText(JUtility.substSchemaName(schemaName, "select * from {schema}APP_BOM_ELEMENTS order by data_id")); + query.applyRestriction(false, "none", 0); + query.bindParams(); + + listStatement = query.getPreparedStatement(); + + return listStatement; + } + + private void refresh() + { + String data_id = ""; + int row = jTable1.getSelectedRow(); + if (row >= 0) + { + data_id = jTable1.getValueAt(row, JDBBomElementsTableModel.data_id_col).toString(); + } + refresh(data_id); + } + + private void refresh(String id) + { + populateList(id); + } + + private void populateList(String defaultitem) + { + + JDBControl ctrl = new JDBControl(Common.selectedHostID, Common.sessionID); + buildSQL(); + JDBBomElementsTableModel bomelementstable = new JDBBomElementsTableModel(Common.selectedHostID, Common.sessionID, ctrl.getControlDataResultSet(listStatement)); + TableRowSorter sorter = new TableRowSorter(bomelementstable); + + jTable1.setRowSorter(sorter); + jTable1.setModel(bomelementstable); + + jScrollPane1.setViewportView(jTable1); + + jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); + jTable1.getTableHeader().setPreferredSize(new Dimension(jScrollPane1.getWidth(), 35)); + + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.data_id_col).setPreferredWidth(110); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.data_type_col).setPreferredWidth(70); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.description_col).setPreferredWidth(130); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.icon_filename_col).setPreferredWidth(110); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.icon_image_col).setPreferredWidth(20); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.mac_occurs_level_col).setPreferredWidth(50); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.enable_create_col).setPreferredWidth(50); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.enable_edit_col).setPreferredWidth(50); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.enable_delete_col).setPreferredWidth(50); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.enable_duplicate_col).setPreferredWidth(50); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.enable_clipboard_col).setPreferredWidth(50); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.enable_lookup_col).setPreferredWidth(50); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.lookup_sql_col).setPreferredWidth(300); + jTable1.getColumnModel().getColumn(JDBBomElementsTableModel.lookup_field_col).setPreferredWidth(100); + + if (defaultitem.equals("")==false) + { + for (int x = 0; x <= jTable1.getModel().getRowCount(); x++) + { + Object val = jTable1.getModel().getValueAt(x, JDBBomElementsTableModel.data_id_col); + System.out.println(x); + System.out.println(val); + + if (String.valueOf(val).equals(defaultitem)) + { + jTable1.setRowSelectionInterval(x, x); + } + } + } + + jScrollPane1.repaint(); + } + + private void initGUI() + { + try + { + this.setPreferredSize(new java.awt.Dimension(669, 341)); + this.setBounds(0, 0, 1015, 438); + setVisible(true); + this.setClosable(true); + this.getContentPane().setLayout(null); + this.setIconifiable(true); + + { + jScrollPane1 = new JScrollPane(); + jScrollPane1.getViewport().setBackground(Common.color_tablebackground); + this.getContentPane().add(jScrollPane1); + jScrollPane1.setBounds(3, 3, 872, 390); + jScrollPane1.setFont(Common.font_std); + { + jTable1 = new JTable4j(); + jTable1.getTableHeader().setBounds(0, 0, 629, 16); + + jTable1.getTableHeader().setFont(Common.font_table_header); + jTable1.getTableHeader().setForeground(Common.color_tableHeaderFont); + jTable1.setDefaultRenderer(Object.class, Common.renderer_table); + jTable1.setFont(Common.font_list); + jTable1.setForeground(Common.color_listFontStandard); + jTable1.addMouseListener(new MouseAdapter() + { + public void mouseClicked(MouseEvent evt) + { + if (evt.getClickCount() == 2) + { + if (Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_ELEMENTS_EDIT") == true) + { + editRecord(); + } + } + } + }); + } + + } + { + jButtonEdit = new JButton4j(Common.icon_edit_16x16); + this.getContentPane().add(jButtonEdit); + jButtonEdit.setText(lang.get("btn_Edit")); + jButtonEdit.setBounds(887, 35, 106, 32); + jButtonEdit.setMnemonic(lang.getMnemonicChar()); + jButtonEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_ELEMENTS_EDIT")); + jButtonEdit.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + editRecord(); + } + }); + } + { + jButtonRefresh = new JButton4j(Common.icon_refresh_16x16); + this.getContentPane().add(jButtonRefresh); + jButtonRefresh.setText(lang.get("btn_Refresh")); + jButtonRefresh.setBounds(887, 163, 106, 32); + jButtonRefresh.setMnemonic(lang.getMnemonicChar()); + jButtonRefresh.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + refresh(); + } + }); + } + { + jButtonClose = new JButton4j(Common.icon_close_16x16); + this.getContentPane().add(jButtonClose); + jButtonClose.setText(lang.get("btn_Close")); + jButtonClose.setBounds(887, 223, 106, 32); + jButtonClose.setMnemonic(lang.getMnemonicChar()); + jButtonClose.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + jButtonCloseActionPerformed(evt); + } + }); + } + { + + jButtonAdd = new JButton4j(Common.icon_add_16x16); + this.getContentPane().add(jButtonAdd); + jButtonAdd.setText(lang.get("btn_Add")); + jButtonAdd.setBounds(887, 3, 106, 32); + jButtonAdd.setMnemonic(lang.getMnemonicChar()); + jButtonAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_ELEMENTS_ADD")); + jButtonAdd.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + addRecord(); + } + }); + } + { + jButtonDelete = new JButton4j(Common.icon_delete_16x16); + this.getContentPane().add(jButtonDelete); + jButtonDelete.setText(lang.get("btn_Delete")); + jButtonDelete.setBounds(887, 67, 106, 32); + jButtonDelete.setMnemonic(lang.getMnemonicChar()); + jButtonDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_ELEMENTS_DELETE")); + jButtonDelete.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + deleteRecord(); + } + }); + } + { + jButtonPrint = new JButton4j(Common.icon_report_16x16); + this.getContentPane().add(jButtonPrint); + jButtonPrint.setText(lang.get("btn_Print")); + jButtonPrint.setBounds(887, 131, 106, 32); + jButtonPrint.setMnemonic(lang.getMnemonicChar()); + jButtonPrint.setEnabled(true); + jButtonPrint.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + JLaunchReport.runReport("RPT_BOM_ELEMENTS", null, "", null, ""); + } + }); + } + { + jButtonHelp = new JButton4j(Common.icon_help_16x16); + this.getContentPane().add(jButtonHelp); + jButtonHelp.setText(lang.get("btn_Help")); + jButtonHelp.setBounds(887, 195, 106, 32); + jButtonHelp.setMnemonic(lang.getMnemonicChar()); + + } + + { + jButtonExcel = new JButton4j(Common.icon_XLS_16x16); + jButtonExcel.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + JExcel export = new JExcel(); + PreparedStatement temp = buildSQLr(); + export.saveAs("bom_elements.xls", bomElement.getBomElementsResultSet(temp), Common.mainForm); + refresh(); + } + }); + jButtonExcel.setText(lang.get("btn_Excel")); + jButtonExcel.setMnemonic(lang.getMnemonicChar()); + jButtonExcel.setBounds(887, 99, 106, 32); + getContentPane().add(jButtonExcel); + } + + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + private void addRecord() + { + String data_id = (String) JOptionPane.showInputDialog(Common.mainForm, "Data ID", null, JOptionPane.QUESTION_MESSAGE,Common.icon_confirm_16x16, null, null); + if (data_id != null) + { + if (data_id.equals("") == false) + { + data_id = data_id.toLowerCase(); + + if (bomElement.isValid(data_id) == false) + { + JLaunchMenu.runForm("FRM_BOM_ELEMENTS_EDIT", data_id); + + } + else + { + JOptionPane.showMessageDialog(Common.mainForm, "Data ID [" + data_id + "] already exists", lang.get("err_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm_16x16); + } + } + } + } + + private void editRecord() + { + int row = jTable1.getSelectedRow(); + if (row >= 0) + { + + String data_id = jTable1.getValueAt(row, JDBBomElementsTableModel.data_id_col).toString(); + + JLaunchMenu.runForm("FRM_BOM_ELEMENTS_EDIT", data_id); + + } + } + + private void jButtonCloseActionPerformed(ActionEvent evt) + { + JDBQuery.closeStatement(listStatement); + dispose(); + } + + private void deleteRecord() + { + int row = jTable1.getSelectedRow(); + if (row >= 0) + { + String data_id = jTable1.getValueAt(row, JDBBomElementsTableModel.data_id_col).toString(); + + int n = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Delete")+" " + data_id , lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm_16x16); + if (n == 0) + { + + if (bomElement.delete(data_id) == false) + + { + JUtility.errorBeep(); + JOptionPane.showMessageDialog(Common.mainForm, bomElement.getErrorMessage(), "Delete error (" + data_id + ")", JOptionPane.WARNING_MESSAGE); + } + else + { + refresh(); + } + } + } + } + +} diff --git a/b6/src/com/commander4j/bom/JInternalFrameBomListAdmin.java b/b6/src/com/commander4j/bom/JInternalFrameBomListAdmin.java new file mode 100644 index 000000000..eda4569b7 --- /dev/null +++ b/b6/src/com/commander4j/bom/JInternalFrameBomListAdmin.java @@ -0,0 +1,522 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JInternalFrameMHNDecisionAdmin.java + * + * Package Name : com.commander4j.app + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.awt.BorderLayout; +import java.awt.Component; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.LinkedList; + +import javax.swing.ButtonGroup; +import javax.swing.DefaultComboBoxModel; +import javax.swing.JDesktopPane; +import javax.swing.JInternalFrame; +import javax.swing.JOptionPane; +import javax.swing.JPanel; +import javax.swing.JPopupMenu; +import javax.swing.JRadioButton; +import javax.swing.JScrollPane; +import javax.swing.ListModel; +import javax.swing.ListSelectionModel; +import javax.swing.border.EtchedBorder; + +import com.commander4j.db.JDBLanguage; +import com.commander4j.gui.JButton4j; +import com.commander4j.gui.JList4j; +import com.commander4j.gui.JMenuItem4j; +import com.commander4j.sys.Common; +import com.commander4j.sys.JLaunchMenu; +import com.commander4j.sys.JLaunchReport; +import com.commander4j.util.JExcel; +import com.commander4j.util.JHelp; +import com.commander4j.util.JUtility; +import javax.swing.JLabel; +import java.awt.Font; + +public class JInternalFrameBomListAdmin extends JInternalFrame +{ + private static final long serialVersionUID = 1; + private JDesktopPane jDesktopPane1; + private JButton4j jButtonDelete; + private JButton4j jButtonEdit; + private JButton4j jButtonClose; + private JList4j jBomList; + private JScrollPane jScrollPane1; + private JButton4j jButtonRefresh; + private JButton4j jButtonHelp; + private JButton4j jButtonPrint; + private JButton4j jButtonExcel; + private JButton4j jButtonAdd; + private JLabel lbl_Description; + private String list_id; + private String item_id; + private JDBLanguage lang = new JDBLanguage(Common.selectedHostID, Common.sessionID); + private JRadioButton rdbtnEnabled; + private JRadioButton rdbtnDisabled; + + public void setDataID(String id,String parent_id,boolean enabled) + { + if (enabled) + { + rdbtnEnabled.setSelected(true); + } + else + { + rdbtnDisabled.setSelected(true); + } + + populateList(id,parent_id); + } + + private void delete() + { + if (jBomList.isSelectionEmpty() == false) + { + JDBBomListRecord rec = ((JDBBomListRecord) jBomList.getSelectedValue()); + + int question = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Delete") + " " + rec.getList_id()+"/"+rec.getItem() + " ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm_16x16); + if (question == 0) + { + JDBBomList u = new JDBBomList(Common.selectedHostID, Common.sessionID); + + u.delete(rec); + populateList("",""); + } + } + } + + private void create() + { + JDBBomList u = new JDBBomList(Common.selectedHostID, Common.sessionID); + + list_id = JOptionPane.showInputDialog(Common.mainForm, "List ID"); + + if (list_id != null) + { + if (list_id.equals("") == false) + { + list_id = list_id.toLowerCase(); + + item_id = JOptionPane.showInputDialog(Common.mainForm, "Item ID"); + + if (item_id != null) + { + if (item_id.equals("") == false) + { + item_id = item_id.toLowerCase(); + + JDBBomListRecord newrec = new JDBBomListRecord(); + + newrec.setList_id(list_id); + newrec.setItem(item_id); + newrec.setSequence(1); + newrec.setEnabled("Y"); + + + if (u.create(newrec) == false) + { + JUtility.errorBeep(); + JOptionPane.showMessageDialog(Common.mainForm, u.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE, Common.icon_confirm_16x16); + } + else + { + + JLaunchMenu.runForm("FRM_BOM_LIST_EDIT", u.getListRecord().getList_id(),u.getListRecord().getItem()); + } + populateList(list_id,item_id); + } + } + } + } + } + + private void print() + { + JLaunchReport.runReport("RPT_BOM_LIST", null, "", null, ""); + } + + private void populateList(String defaultlist,String defaultitem) + { + + DefaultComboBoxModel DefComboBoxMod = new DefaultComboBoxModel(); + + JDBBomList tempCust = new JDBBomList(Common.selectedHostID, Common.sessionID); + + LinkedList tempCustomerList = tempCust.getListIds(rdbtnEnabled.isSelected()); + int sel = -1; + for (int j = 0; j < tempCustomerList.size(); j++) + { + JDBBomListRecord t = (JDBBomListRecord) tempCustomerList.get(j); + DefComboBoxMod.addElement(t); + + if (t.getList_id().equals(defaultlist)) + { + if (t.getItem().equals(defaultitem)) + { + sel = j; + } + } + } + + ListModel jList1Model = DefComboBoxMod; + jBomList.setModel(jList1Model); + jBomList.setSelectedIndex(sel); + jBomList.setCellRenderer(Common.renderer_list); + jBomList.ensureIndexIsVisible(sel); + } + + public JInternalFrameBomListAdmin() + { + super(); + initGUI(); + final JHelp help = new JHelp(); + help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_BOM_LIST_ADMIN")); + + populateList("",""); + } + + private void editRecord() + { + if (jBomList.isSelectionEmpty() == false) + { + list_id = ((JDBBomListRecord) jBomList.getSelectedValue()).getList_id(); + item_id = ((JDBBomListRecord) jBomList.getSelectedValue()).getItem(); + JLaunchMenu.runForm("FRM_BOM_LIST_EDIT", list_id,item_id); + } + } + + private void initGUI() + { + try + { + this.setPreferredSize(new java.awt.Dimension(375, 402)); + this.setBounds(0, 0, 573, 617); + setVisible(true); + this.setClosable(true); + this.setIconifiable(true); + this.setTitle("BOM List Admin"); + + jDesktopPane1 = new JDesktopPane(); + jDesktopPane1.setBackground(Common.color_app_window); + getContentPane().add(jDesktopPane1, BorderLayout.CENTER); + jDesktopPane1.setLayout(null); + + jButtonAdd = new JButton4j(Common.icon_add_16x16); + jDesktopPane1.add(jButtonAdd); + jButtonAdd.setText(lang.get("btn_Add")); + jButtonAdd.setMnemonic(lang.getMnemonicChar()); + jButtonAdd.setBounds(431, 6, 126, 32); + jButtonAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_LIST_ADD")); + jButtonAdd.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + create(); + } + }); + + jButtonDelete = new JButton4j(Common.icon_delete_16x16); + jDesktopPane1.add(jButtonDelete); + jButtonDelete.setText(lang.get("btn_Delete")); + jButtonDelete.setMnemonic(lang.getMnemonicChar()); + jButtonDelete.setBounds(431, 37, 126, 32); + jButtonDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_LIST_DELETE")); + jButtonDelete.setFocusTraversalKeysEnabled(false); + jButtonDelete.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + delete(); + } + }); + + jButtonEdit = new JButton4j(Common.icon_edit_16x16); + jDesktopPane1.add(jButtonEdit); + jButtonEdit.setText(lang.get("btn_Edit")); + jButtonEdit.setMnemonic(lang.getMnemonicChar()); + jButtonEdit.setBounds(431, 68, 126, 32); + jButtonEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_LIST_EDIT")); + jButtonEdit.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + editRecord(); + } + }); + + jButtonPrint = new JButton4j(Common.icon_report_16x16); + jDesktopPane1.add(jButtonPrint); + jButtonPrint.setText(lang.get("btn_Print")); + jButtonPrint.setMnemonic(lang.getMnemonicChar()); + jButtonPrint.setBounds(431, 99, 126, 32); + jButtonPrint.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + print(); + } + }); + + jButtonExcel = new JButton4j(Common.icon_export_16x16); + jDesktopPane1.add(jButtonExcel); + jButtonExcel.setText(lang.get("btn_Excel")); + jButtonExcel.setMnemonic(lang.getMnemonicChar()); + jButtonExcel.setBounds(431, 130, 126, 32); + jButtonExcel.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + excel(); + } + }); + + jButtonHelp = new JButton4j(Common.icon_help_16x16); + jDesktopPane1.add(jButtonHelp); + jButtonHelp.setText(lang.get("btn_Help")); + jButtonHelp.setMnemonic(lang.getMnemonicChar()); + jButtonHelp.setBounds(431, 161, 126, 32); + + jButtonRefresh = new JButton4j(Common.icon_refresh_16x16); + jDesktopPane1.add(jButtonRefresh); + jButtonRefresh.setText(lang.get("btn_Refresh")); + jButtonRefresh.setMnemonic(lang.getMnemonicChar()); + jButtonRefresh.setBounds(431, 192, 126, 32); + jButtonRefresh.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + populateList("",""); + } + }); + + jButtonClose = new JButton4j(Common.icon_close_16x16); + jDesktopPane1.add(jButtonClose); + jButtonClose.setText(lang.get("btn_Close")); + jButtonClose.setMnemonic(lang.getMnemonicChar()); + jButtonClose.setBounds(431, 223, 126, 32); + jButtonClose.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + dispose(); + } + }); + + ButtonGroup bgroup = new ButtonGroup(); + JPanel panel = new JPanel(); + panel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null)); + panel.setBounds(431, 267, 125, 68); + jDesktopPane1.add(panel); + panel.setLayout(null); + + rdbtnEnabled = new JRadioButton(lang.get("lbl_Enabled")); + rdbtnEnabled.setBounds(8, 8, 102, 23); + panel.add(rdbtnEnabled); + rdbtnEnabled.setFont(Common.font_std); + rdbtnEnabled.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + populateList("",""); + } + }); + rdbtnEnabled.setSelected(true); + bgroup.add(rdbtnEnabled); + + rdbtnDisabled = new JRadioButton(lang.get("lbl_Disabled")); + rdbtnDisabled.setBounds(8, 35, 102, 23); + panel.add(rdbtnDisabled); + rdbtnDisabled.setFont(Common.font_std); + rdbtnDisabled.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + populateList("",""); + } + }); + rdbtnDisabled.setSelected(false); + bgroup.add(rdbtnDisabled); + + jScrollPane1 = new JScrollPane(); + jDesktopPane1.add(jScrollPane1); + jScrollPane1.setBounds(5, 23, 419, 556); + { + ListModel jList1Model = new DefaultComboBoxModel(); + jBomList = new JList4j(); + jBomList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); + jScrollPane1.setViewportView(jBomList); + jBomList.addMouseListener(new MouseAdapter() + { + public void mouseClicked(MouseEvent evt) + { + if (evt.getClickCount() == 2) + { + if (Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_LIST_EDIT") == true) + { + editRecord(); + } + } + } + }); + jBomList.setModel(jList1Model); + } + + final JPopupMenu popupMenu = new JPopupMenu(); + addPopup(jBomList, popupMenu); + + final JMenuItem4j newItemMenuItem1 = new JMenuItem4j(Common.icon_add_16x16); + newItemMenuItem1.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + create(); + } + }); + newItemMenuItem1.setText(lang.get("btn_Add")); + newItemMenuItem1.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_LIST_ADD")); + popupMenu.add(newItemMenuItem1); + + final JMenuItem4j newItemMenuItem2 = new JMenuItem4j(Common.icon_delete_16x16); + newItemMenuItem2.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + delete(); + } + }); + newItemMenuItem2.setText(lang.get("btn_Delete")); + newItemMenuItem2.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_LIST_DELETE")); + popupMenu.add(newItemMenuItem2); + + final JMenuItem4j newItemMenuItem3 = new JMenuItem4j(Common.icon_edit_16x16); + newItemMenuItem3.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + editRecord(); + } + }); + newItemMenuItem3.setText(lang.get("btn_Edit")); + newItemMenuItem3.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_LIST_EDIT")); + popupMenu.add(newItemMenuItem3); + + final JMenuItem4j newItemMenuItem4 = new JMenuItem4j(Common.icon_print_16x16); + newItemMenuItem4.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + print(); + } + }); + newItemMenuItem4.setText(lang.get("btn_Print")); + newItemMenuItem4.setEnabled(true); + popupMenu.add(newItemMenuItem4); + + final JMenuItem4j newItemMenuItem5 = new JMenuItem4j(Common.icon_refresh_16x16); + newItemMenuItem5.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + populateList("",""); + } + }); + newItemMenuItem5.setText(lang.get("btn_Refresh")); + popupMenu.add(newItemMenuItem5); + + lbl_Description = new JLabel("List ID Item ID Sequence"); + lbl_Description.setFont(new Font("Monospaced", Font.BOLD, 11)); + lbl_Description.setBounds(6, 6, 413, 15); + jDesktopPane1.add(lbl_Description); + + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + private void excel() + { + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(Common.selectedHostID).getConnection(Common.sessionID).prepareStatement(Common.hostList.getHost(Common.selectedHostID).getSqlstatements().getSQL("JDBBomList.getList")); + + rs = stmt.executeQuery(); + JExcel export = new JExcel(); + + export.saveAs("bom_lists.xls", rs, Common.mainForm); + + stmt.clearParameters(); + rs.close(); + stmt.close(); + } + catch (Exception ex) + { + + } + + } + + /** + * WindowBuilder generated method.
+ * Please don't remove this method or its invocations.
+ * It used by WindowBuilder to associate the {@link javax.swing.JPopupMenu} + * with parent. + */ + private static void addPopup(Component component, final JPopupMenu popup) + { + component.addMouseListener(new MouseAdapter() + { + public void mousePressed(MouseEvent e) + { + if (e.isPopupTrigger()) + showMenu(e); + } + + public void mouseReleased(MouseEvent e) + { + if (e.isPopupTrigger()) + showMenu(e); + } + + private void showMenu(MouseEvent e) + { + popup.show(e.getComponent(), e.getX(), e.getY()); + } + }); + } +} diff --git a/b6/src/com/commander4j/bom/JInternalFrameBomListProperties.java b/b6/src/com/commander4j/bom/JInternalFrameBomListProperties.java new file mode 100755 index 000000000..a5b5e9f66 --- /dev/null +++ b/b6/src/com/commander4j/bom/JInternalFrameBomListProperties.java @@ -0,0 +1,302 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JInternalFrameUomProperties.java + * + * Package Name : com.commander4j.app + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.awt.BorderLayout; +import java.awt.Dimension; +import java.awt.Rectangle; +import java.awt.Toolkit; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyAdapter; +import java.awt.event.KeyEvent; + +import javax.swing.JDesktopPane; +import javax.swing.JInternalFrame; +import javax.swing.JOptionPane; +import javax.swing.JSpinner; +import javax.swing.SpinnerNumberModel; +import javax.swing.SwingConstants; +import javax.swing.SwingUtilities; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; + +import com.commander4j.db.JDBLanguage; +import com.commander4j.gui.JButton4j; +import com.commander4j.gui.JCheckBox4j; +import com.commander4j.gui.JLabel4j_std; +import com.commander4j.gui.JTextField4j; +import com.commander4j.sys.Common; +import com.commander4j.sys.JLaunchMenu; +import com.commander4j.util.JHelp; +import com.commander4j.util.JUtility; + +public class JInternalFrameBomListProperties extends JInternalFrame +{ + private static final long serialVersionUID = 1; + private JDesktopPane jDesktopPane1; + private JTextField4j jTextFieldListID; + private JLabel4j_std jLabel2; + private JButton4j jButtonClose; + private JCheckBox4j jCheckBoxEnabled; + private JLabel4j_std jLabel3; + private JButton4j jButtonHelp; + private JButton4j jButtonSave; + private JTextField4j jTextFieldItem; + private JLabel4j_std jLabel1; + private JDBBomList bomList = new JDBBomList(Common.selectedHostID, Common.sessionID); + private JLabel4j_std lblLocalUom; + private JDBLanguage lang = new JDBLanguage(Common.selectedHostID, Common.sessionID); + private JSpinner jSpinnerLimit_Sequence; + private JDBBomListRecord listRecord = new JDBBomListRecord(); + + + public JInternalFrameBomListProperties() + { + super(); + initGUI(); + + final JHelp help = new JHelp(); + help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_BOM_LIST")); + + Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); + Rectangle window = getBounds(); + setLocation((screen.width - window.width) / 2, (screen.height - window.height) / 2); + + } + + public void setID(String list_id,String item) + { + + if (jButtonSave.isEnabled()) + { + int question = JOptionPane.showConfirmDialog(Common.mainForm, "Save changes to L [" + list_id + "] ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm_16x16); + if (question == 0) + { + save(); + } + } + + jButtonSave.setEnabled(false); + + listRecord.setList_id(list_id); + listRecord.setItem(item); + + bomList.getProperties(listRecord); + + jTextFieldListID.setText(bomList.getListRecord().getList_id()); + jTextFieldItem.setText(bomList.getListRecord().getItem()); + + jSpinnerLimit_Sequence.setValue(bomList.getListRecord().getSequence()); + + jCheckBoxEnabled.setSelected(bomList.getListRecord().isEnabled()); + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + jTextFieldItem.requestFocus(); + jTextFieldItem.setCaretPosition(jTextFieldItem.getText().length()); + + jButtonSave.setEnabled(false); + } + }); + } + + public JInternalFrameBomListProperties(String list_id,String item) + { + + this(); + + setID(list_id,item); + + } + + private void initGUI() { + try + { + this.setPreferredSize(new java.awt.Dimension(387, 165)); + this.setBounds(25, 25, 424, 224); + setVisible(true); + this.setTitle("List Properties"); + { + jDesktopPane1 = new JDesktopPane(); + jDesktopPane1.setBackground(Common.color_edit_properties); + this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER); + jDesktopPane1.setLayout(null); + { + jLabel1 = new JLabel4j_std(); + jDesktopPane1.add(jLabel1); + jLabel1.setText(lang.get("lbl_List_ID")); + jLabel1.setHorizontalAlignment(SwingConstants.RIGHT); + jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel1.setBounds(0, 10, 110, 21); + } + { + jTextFieldListID = new JTextField4j(); + jTextFieldListID.setEnabled(false); + jTextFieldListID.setEditable(false); + jDesktopPane1.add(jTextFieldListID); + jTextFieldListID.setHorizontalAlignment(SwingConstants.LEFT); + jTextFieldListID.setPreferredSize(new java.awt.Dimension(100, 20)); + jTextFieldListID.setBounds(120, 10, 264, 21); + } + { + jLabel2 = new JLabel4j_std(); + jDesktopPane1.add(jLabel2); + jLabel2.setText(lang.get("lbl_Item")); + jLabel2.setHorizontalAlignment(SwingConstants.RIGHT); + jLabel2.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel2.setBounds(0, 43, 110, 21); + } + { + jTextFieldItem = new JTextField4j(); + jTextFieldItem.setEnabled(false); + jTextFieldItem.setEditable(false); + jDesktopPane1.add(jTextFieldItem); + jTextFieldItem.setPreferredSize(new java.awt.Dimension(40, 20)); + jTextFieldItem.setFocusCycleRoot(true); + jTextFieldItem.setBounds(120, 43, 264, 21); + jTextFieldItem.addKeyListener(new KeyAdapter() { + public void keyTyped(KeyEvent evt) { + jButtonSave.setEnabled(true); + } + }); + } + { + jButtonSave = new JButton4j(Common.icon_update_16x16); + jDesktopPane1.add(jButtonSave); + jButtonSave.setEnabled(false); + jButtonSave.setText(lang.get("btn_Save")); + jButtonSave.setMnemonic(lang.getMnemonicChar()); + jButtonSave.setHorizontalTextPosition(SwingConstants.RIGHT); + jButtonSave.setBounds(45, 142, 110, 32); + jButtonSave.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent evt) { + save(); + } + }); + } + { + jButtonHelp = new JButton4j(Common.icon_help_16x16); + jDesktopPane1.add(jButtonHelp); + jButtonHelp.setText(lang.get("btn_Help")); + jButtonHelp.setMnemonic(lang.getMnemonicChar()); + jButtonHelp.setBounds(157, 142, 110, 32); + } + { + jButtonClose = new JButton4j(Common.icon_close_16x16); + jDesktopPane1.add(jButtonClose); + jButtonClose.setText(lang.get("btn_Close")); + jButtonClose.setMnemonic(lang.getMnemonicChar()); + jButtonClose.setBounds(269, 142, 110, 32); + jButtonClose.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent evt) { + dispose(); + } + }); + } + { + jLabel3 = new JLabel4j_std(); + jDesktopPane1.add(jLabel3); + jLabel3.setText(lang.get("lbl_Enabled")); + jLabel3.setHorizontalAlignment(SwingConstants.RIGHT); + jLabel3.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel3.setBounds(0, 109, 110, 21); + } + + SpinnerNumberModel jSpinnerIntModel = new SpinnerNumberModel(); + jSpinnerIntModel.setMinimum(0); + jSpinnerIntModel.setMaximum(99); + jSpinnerIntModel.setStepSize(1); + + jSpinnerLimit_Sequence = new JSpinner(); + jSpinnerLimit_Sequence.addChangeListener(new ChangeListener() + { + public void stateChanged(ChangeEvent e) + { + jButtonSave.setEnabled(true); + } + }); + jDesktopPane1.add(jSpinnerLimit_Sequence); + + jSpinnerLimit_Sequence.setModel(jSpinnerIntModel); + JSpinner.NumberEditor ne_jSpinnerLimit_Sequence = new JSpinner.NumberEditor(jSpinnerLimit_Sequence); + ne_jSpinnerLimit_Sequence.getTextField().setFont(Common.font_input); + jSpinnerLimit_Sequence.setEditor(ne_jSpinnerLimit_Sequence); + jSpinnerLimit_Sequence.setBounds(120, 76, 46, 21); + jSpinnerLimit_Sequence.getEditor().setSize(45, 21); + jSpinnerLimit_Sequence.getEditor().setFont(Common.font_input); + + + { + lblLocalUom = new JLabel4j_std(); + lblLocalUom.setText(lang.get("lbl_Sequence_ID")); + lblLocalUom.setHorizontalTextPosition(SwingConstants.RIGHT); + lblLocalUom.setHorizontalAlignment(SwingConstants.RIGHT); + lblLocalUom.setBounds(0, 76, 110, 21); + jDesktopPane1.add(lblLocalUom); + } + + { + jCheckBoxEnabled = new JCheckBox4j(); + jCheckBoxEnabled.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + jButtonSave.setEnabled(true); + } + }); + jDesktopPane1.add(jCheckBoxEnabled); + jCheckBoxEnabled.setPreferredSize(new java.awt.Dimension(40, 20)); + jCheckBoxEnabled.setFocusCycleRoot(true); + jCheckBoxEnabled.setBounds(120, 109, 24, 21); + } + + SwingUtilities.invokeLater(new Runnable() { + public void run() { + jSpinnerLimit_Sequence.requestFocus(); + } + }); + } + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + private void save() + { + listRecord.setSequence(Integer.valueOf(jSpinnerLimit_Sequence.getValue().toString())); + + listRecord.setEnabled(jCheckBoxEnabled.isSelected()); + + bomList.update(listRecord); + + JLaunchMenu.runForm("FRM_BOM_LIST", listRecord.getList_id(), listRecord.getItem(), listRecord.isEnabled()); + + jButtonSave.setEnabled(false); + } +} diff --git a/b6/src/com/commander4j/bom/JInternalFrameBomStructureAdmin.java b/b6/src/com/commander4j/bom/JInternalFrameBomStructureAdmin.java new file mode 100644 index 000000000..ee7792417 --- /dev/null +++ b/b6/src/com/commander4j/bom/JInternalFrameBomStructureAdmin.java @@ -0,0 +1,455 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JInternalFrameBomStructureAdmin.java + * + * Package Name : com.commander4j.app + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.awt.BorderLayout; +import java.awt.Component; +import java.awt.Font; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.LinkedList; + +import javax.swing.DefaultComboBoxModel; +import javax.swing.JButton; +import javax.swing.JDesktopPane; +import javax.swing.JLabel; +import javax.swing.JOptionPane; +import javax.swing.JPopupMenu; +import javax.swing.JScrollPane; +import javax.swing.ListModel; + +import com.commander4j.db.JDBLanguage; +import com.commander4j.db.JDBListData; + +import com.commander4j.gui.JButton4j; +import com.commander4j.gui.JList4j; +import com.commander4j.gui.JMenuItem4j; +import com.commander4j.sys.Common; +import com.commander4j.sys.JLaunchMenu; +import com.commander4j.sys.JLaunchReport; +import com.commander4j.util.JExcel; +import com.commander4j.util.JHelp; +import com.commander4j.util.JUtility; + +public class JInternalFrameBomStructureAdmin extends javax.swing.JInternalFrame +{ + private JButton jButtonExcel; + private static final long serialVersionUID = 1; + private JDesktopPane jDesktopPane1; + private JList4j jListBomStructure; + + private JButton4j jButtonClose; + private JButton4j jButtonRefresh; + private JButton4j jButtonHelp; + private JButton4j jButtonPrint; + private JButton4j jButtonEdit; + private JButton4j jButtonDelete; + private JButton4j jButtonAdd; + private JScrollPane jScrollPane1; + + private JLabel lbl_Description; + + private JDBLanguage lang = new JDBLanguage(Common.selectedHostID, Common.sessionID); + + public void setDataID(String id, String parent_id) + { + populateList(id, parent_id); + } + + private void populateList(String id, String parent_id) + { + + DefaultComboBoxModel DefComboBoxMod = new DefaultComboBoxModel(); + + JDBBomStructure tempStruct = new JDBBomStructure(Common.selectedHostID, Common.sessionID); + + LinkedList tempStructList = tempStruct.getStructureIds(); + ; + + int sel = -1; + for (int j = 0; j < tempStructList.size(); j++) + { + DefComboBoxMod.addElement(tempStructList.get(j)); + + JDBBomStructureRecord item = ((JDBBomStructureRecord) tempStructList.get(j).getmData()); + if (item.getDataId().equals(id)) + { + if (item.getDataIDParent().equals(parent_id)) + { + + sel = j; + + } + } + + } + + ListModel jList1Model = DefComboBoxMod; + + jListBomStructure.setModel(jList1Model); + jListBomStructure.setSelectedIndex(sel); + jListBomStructure.setCellRenderer(Common.renderer_list); + jListBomStructure.ensureIndexIsVisible(sel); + + } + + private void addRecord() + { + JLaunchMenu.runForm("FRM_BOM_STRUCTURE_EDIT", "", ""); + } + + private void editRecord() + { + if (jListBomStructure.isSelectionEmpty() == false) + { + JDBListData ddd = jListBomStructure.getSelectedValue(); + JDBBomStructureRecord rrr = ((JDBBomStructureRecord) ddd.getmData()); + + String dataID = rrr.getDataId(); + String parentDataID = rrr.getDataIDParent(); + + JLaunchMenu.runForm("FRM_BOM_STRUCTURE_EDIT", dataID, parentDataID); + } + } + + private void delete() + { + if (jListBomStructure.isSelectionEmpty() == false) + { + JDBBomStructureRecord strucrec = ((JDBBomStructureRecord) jListBomStructure.getSelectedValue().getObject()); + String dataID = ((JDBBomStructureRecord) jListBomStructure.getSelectedValue().getObject()).getDataId(); + String parentDataID = ((JDBBomStructureRecord) jListBomStructure.getSelectedValue().getObject()).getDataIDParent(); + + int n = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Delete") + " [" + dataID + "] - [" + parentDataID + "]", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm_16x16); + if (n == 0) + { + JDBBomStructure u = new JDBBomStructure(Common.selectedHostID, Common.sessionID); + u.delete(strucrec); + populateList(strucrec.getDataId(), strucrec.getDataIDParent()); + } + } + } + + private void print() + { + JLaunchReport.runReport("RPT_BOM_STRUCTURE", null, "", null, ""); + } + + private void excel() + { + + try + { + PreparedStatement stmt; + ResultSet rs; + + stmt = Common.hostList.getHost(Common.selectedHostID).getConnection(Common.sessionID).prepareStatement(Common.hostList.getHost(Common.selectedHostID).getSqlstatements().getSQL("JDBBomStructure.getList")); + + rs = stmt.executeQuery(); + JExcel export = new JExcel(); + + export.saveAs("bom_structure.xls", rs, Common.mainForm); + + stmt.clearParameters(); + rs.close(); + stmt.close(); + } + catch (Exception ex) + { + + } + + } + + public JInternalFrameBomStructureAdmin() + { + super(); + initGUI(); + final JHelp help = new JHelp(); + help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_BOM_STRUCTURE")); + populateList("", ""); + } + + private void initGUI() + { + try + { + this.setPreferredSize(new java.awt.Dimension(455, 518)); + this.setBounds(0, 0, 493, 541); + setVisible(true); + this.setClosable(true); + this.setIconifiable(true); + this.setTitle("Bom Structure"); + + jDesktopPane1 = new JDesktopPane(); + jDesktopPane1.setBackground(Common.color_app_window); + this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER); + jDesktopPane1.setLayout(null); + + jScrollPane1 = new JScrollPane(); + jDesktopPane1.add(jScrollPane1); + jScrollPane1.setBounds(5, 20, 326, 479); + + ListModel jList1Model = new DefaultComboBoxModel(); + jListBomStructure = new JList4j(); + jScrollPane1.setViewportView(jListBomStructure); + jListBomStructure.addMouseListener(new MouseAdapter() + { + public void mouseClicked(MouseEvent evt) + { + if (evt.getClickCount() == 2) + { + if (Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_STRUCTURE_EDIT") == true) + { + editRecord(); + } + } + } + }); + jListBomStructure.setModel(jList1Model); + + final JPopupMenu popupMenu = new JPopupMenu(); + addPopup(jListBomStructure, popupMenu); + + final JMenuItem4j newItemMenuItem1 = new JMenuItem4j(Common.icon_add_16x16); + newItemMenuItem1.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + editRecord(); + } + }); + newItemMenuItem1.setText(lang.get("btn_Add")); + newItemMenuItem1.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_STRUCTURE_ADD")); + popupMenu.add(newItemMenuItem1); + + final JMenuItem4j newItemMenuItem2 = new JMenuItem4j(Common.icon_delete_16x16); + newItemMenuItem2.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + delete(); + } + }); + newItemMenuItem2.setText(lang.get("btn_Delete")); + newItemMenuItem2.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_STRUCTURE_DELETE")); + popupMenu.add(newItemMenuItem2); + + final JMenuItem4j newItemMenuItem3 = new JMenuItem4j(Common.icon_edit_16x16); + newItemMenuItem3.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + editRecord(); + } + }); + newItemMenuItem3.setText(lang.get("btn_Edit")); + newItemMenuItem3.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_STRUCTURE_EDIT")); + popupMenu.add(newItemMenuItem3); + + final JMenuItem4j newItemMenuItem4 = new JMenuItem4j(Common.icon_print_16x16); + newItemMenuItem4.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + print(); + } + }); + newItemMenuItem4.setText(lang.get("btn_Print")); + newItemMenuItem4.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_BOM_STRUCTURE")); + popupMenu.add(newItemMenuItem4); + + final JMenuItem4j newItemMenuItem5 = new JMenuItem4j(Common.icon_XLS_16x16); + newItemMenuItem5.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + excel(); + } + }); + newItemMenuItem5.setText(lang.get("btn_Excel")); + popupMenu.add(newItemMenuItem5); + + final JMenuItem4j newItemMenuItem6 = new JMenuItem4j(Common.icon_refresh_16x16); + newItemMenuItem6.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + populateList("", ""); + } + }); + newItemMenuItem6.setText(lang.get("btn_Refresh")); + popupMenu.add(newItemMenuItem6); + + jButtonAdd = new JButton4j(Common.icon_add_16x16); + jDesktopPane1.add(jButtonAdd); + jButtonAdd.setText(lang.get("btn_Add")); + jButtonAdd.setMnemonic(lang.getMnemonicChar()); + jButtonAdd.setBounds(343, 20, 125, 32); + jButtonAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_STRUCTURE_ADD")); + jButtonAdd.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + addRecord(); + } + }); + + jButtonDelete = new JButton4j(Common.icon_delete_16x16); + jDesktopPane1.add(jButtonDelete); + jButtonDelete.setText(lang.get("btn_Delete")); + jButtonDelete.setMnemonic(lang.getMnemonicChar()); + jButtonDelete.setBounds(343, 51, 125, 32); + jButtonDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_STRUCTURE_DELETE")); + jButtonDelete.setFocusTraversalKeysEnabled(false); + jButtonDelete.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + delete(); + } + }); + + jButtonEdit = new JButton4j(Common.icon_edit_16x16); + jDesktopPane1.add(jButtonEdit); + jButtonEdit.setText(lang.get("btn_Edit")); + jButtonEdit.setMnemonic(lang.getMnemonicChar()); + jButtonEdit.setBounds(343, 82, 125, 32); + jButtonEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_STRUCTURE_EDIT")); + jButtonEdit.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + editRecord(); + } + }); + + jButtonPrint = new JButton4j(Common.icon_print_16x16); + jDesktopPane1.add(jButtonPrint); + jButtonPrint.setText(lang.get("btn_Print")); + jButtonPrint.setMnemonic(lang.getMnemonicChar()); + jButtonPrint.setBounds(343, 114, 125, 32); + jButtonPrint.setEnabled(true); + jButtonPrint.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + print(); + } + }); + + jButtonHelp = new JButton4j(Common.icon_help_16x16); + jDesktopPane1.add(jButtonHelp); + jButtonHelp.setText(lang.get("btn_Help")); + jButtonHelp.setMnemonic(lang.getMnemonicChar()); + jButtonHelp.setBounds(343, 207, 125, 32); + + jButtonRefresh = new JButton4j(Common.icon_refresh_16x16); + jDesktopPane1.add(jButtonRefresh); + jButtonRefresh.setText(lang.get("btn_Refresh")); + jButtonRefresh.setMnemonic(lang.getMnemonicChar()); + jButtonRefresh.setBounds(343, 176, 125, 32); + jButtonRefresh.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + populateList("", ""); + } + }); + + jButtonClose = new JButton4j(Common.icon_close_16x16); + jDesktopPane1.add(jButtonClose); + jButtonClose.setText(lang.get("btn_Close")); + jButtonClose.setMnemonic(lang.getMnemonicChar()); + jButtonClose.setBounds(343, 238, 125, 32); + jButtonClose.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + dispose(); + } + }); + + jButtonExcel = new JButton4j(Common.icon_XLS_16x16); + jButtonExcel.setText(lang.get("btn_Excel")); + jButtonExcel.setMnemonic(lang.getMnemonicChar()); + jButtonExcel.setBounds(343, 145, 125, 32); + jButtonExcel.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + excel(); + } + }); + jDesktopPane1.add(jButtonExcel); + + lbl_Description = new JLabel("Parent ID Data ID"); + lbl_Description.setFont(new Font("Monospaced", Font.BOLD, 11)); + lbl_Description.setBounds(5, 4, 326, 15); + jDesktopPane1.add(lbl_Description); + + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + /** + * WindowBuilder generated method.
+ * Please don't remove this method or its invocations.
+ * It used by WindowBuilder to associate the {@link javax.swing.JPopupMenu} + * with parent. + */ + private static void addPopup(Component component, final JPopupMenu popup) + { + component.addMouseListener(new MouseAdapter() + { + public void mousePressed(MouseEvent e) + { + if (e.isPopupTrigger()) + showMenu(e); + } + + public void mouseReleased(MouseEvent e) + { + if (e.isPopupTrigger()) + showMenu(e); + } + + private void showMenu(MouseEvent e) + { + popup.show(e.getComponent(), e.getX(), e.getY()); + } + }); + } +} diff --git a/b6/src/com/commander4j/bom/JInternalFrameBomStructureProperties.java b/b6/src/com/commander4j/bom/JInternalFrameBomStructureProperties.java new file mode 100644 index 000000000..524c7800d --- /dev/null +++ b/b6/src/com/commander4j/bom/JInternalFrameBomStructureProperties.java @@ -0,0 +1,263 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JInternalFrameBomStructureProperties.java + * + * Package Name : com.commander4j.app + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.awt.BorderLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.util.Vector; + +import javax.swing.ComboBoxModel; +import javax.swing.DefaultComboBoxModel; +import javax.swing.JDesktopPane; +import javax.swing.JInternalFrame; +import javax.swing.SwingConstants; + +import com.commander4j.db.JDBLanguage; +import com.commander4j.db.JDBListData; +import com.commander4j.gui.JButton4j; +import com.commander4j.gui.JComboBox4j; +import com.commander4j.gui.JLabel4j_std; +import com.commander4j.sys.Common; +import com.commander4j.sys.JLaunchMenu; +import com.commander4j.util.JHelp; +import com.commander4j.util.JUtility; + +public class JInternalFrameBomStructureProperties extends JInternalFrame +{ + private static final long serialVersionUID = 1; + + private JDesktopPane jDesktopPane1; + private JButton4j jButtonClose; + private JButton4j jButtonHelp; + private JButton4j jButtonUpdate; + + private JDBBomStructure structure = new JDBBomStructure(Common.selectedHostID, Common.sessionID); + private JDBBomStructureRecord originalRecord = new JDBBomStructureRecord(); + private JDBBomStructureRecord newRecord = new JDBBomStructureRecord(); + + private JDBBomElement element = new JDBBomElement(Common.selectedHostID, Common.sessionID); + private JDBLanguage lang = new JDBLanguage(Common.selectedHostID, Common.sessionID); + + private JComboBox4j comboBoxDataID = new JComboBox4j(); + private JComboBox4j comboBoxParentDataID = new JComboBox4j(); + + + private Vector elementList = new Vector(); + + + private JLabel4j_std jLabel_Data_ID = new JLabel4j_std(); + private JLabel4j_std jLabel_Parent_Data_ID = new JLabel4j_std(); + + + public void updateSearch(String data_id, String parent_data_id) + { + originalRecord.setDataId(data_id); + originalRecord.setDataIDParent(parent_data_id); + + newRecord.setDataId(data_id); + newRecord.setDataIDParent(parent_data_id); + + //structure.getProperties(originalRecord); + + for (int x = 1; x < elementList.size(); x++) + { + if (((JDBBomElementRecord) elementList.get(x).getmData()).getDataId().equals(originalRecord.getDataId())) + { + comboBoxDataID.setSelectedIndex(x); + } + + if (((JDBBomElementRecord) elementList.get(x).getmData()).getDataId().equals(originalRecord.getDataIDParent())) + { + comboBoxParentDataID.setSelectedIndex(x); + } + } + + setButtonState(false); + + } + + public JInternalFrameBomStructureProperties() + { + super(); + + elementList.clear(); + elementList.add(null); + elementList.addAll(element.getElementIds(true)); + + comboBoxDataID.setRenderer(Common.renderer_list); + comboBoxParentDataID.setRenderer(Common.renderer_list); + + initGUI(); + + final JHelp help = new JHelp(); + help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_BOM_STRUCTURE")); + + } + + public JInternalFrameBomStructureProperties(String data_id, String parent_data_id) + { + + this(); + + updateSearch(data_id, parent_data_id); + } + + private void initGUI() + { + try + { + this.setPreferredSize(new java.awt.Dimension(389, 143)); + this.setBounds(0, 0, 464, 175); + setVisible(true); + this.setIconifiable(true); + this.setClosable(true); + { + jDesktopPane1 = new JDesktopPane(); + jDesktopPane1.setBackground(Common.color_edit_properties); + getContentPane().add(jDesktopPane1, BorderLayout.CENTER); + jDesktopPane1.setLayout(null); + { + jButtonUpdate = new JButton4j(Common.icon_update_16x16); + jButtonUpdate.setBounds(49, 96, 112, 28); + jDesktopPane1.add(jButtonUpdate); + jButtonUpdate.setEnabled(false); + jButtonUpdate.setText(lang.get("btn_Save")); + jButtonUpdate.setMnemonic(lang.getMnemonicChar()); + jButtonUpdate.setHorizontalTextPosition(SwingConstants.RIGHT); + jButtonUpdate.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + if (update()) + { + setButtonState(true); + } + } + }); + } + { + jButtonHelp = new JButton4j(Common.icon_help_16x16); + jButtonHelp.setBounds(182, 96, 112, 28); + jDesktopPane1.add(jButtonHelp); + jButtonHelp.setText(lang.get("btn_Help")); + jButtonHelp.setMnemonic(lang.getMnemonicChar()); + } + { + jButtonClose = new JButton4j(Common.icon_close_16x16); + jButtonClose.setBounds(313, 96, 112, 28); + jDesktopPane1.add(jButtonClose); + jButtonClose.setText(lang.get("btn_Close")); + jButtonClose.setMnemonic(lang.getMnemonicChar()); + jButtonClose.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + dispose(); + } + }); + } + + ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(elementList); + comboBoxDataID.setBounds(143, 57, 282, 27); + comboBoxDataID.setModel(jComboBox1Model); + comboBoxDataID.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + setButtonState(true); + } + }); + + jDesktopPane1.add(comboBoxDataID); + + ComboBoxModel jComboBox2Model = new DefaultComboBoxModel(elementList); + comboBoxParentDataID.setBounds(143, 18, 282, 27); + comboBoxParentDataID.setModel(jComboBox2Model); + comboBoxParentDataID.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + setButtonState(true); + } + }); + jDesktopPane1.add(comboBoxParentDataID); + + + jLabel_Data_ID.setBounds(22, 63, 112, 21); + jDesktopPane1.add(jLabel_Data_ID); + jLabel_Data_ID.setText(lang.get("lbl_Data_ID")); + jLabel_Data_ID.setHorizontalAlignment(SwingConstants.RIGHT); + jLabel_Data_ID.setHorizontalTextPosition(SwingConstants.RIGHT); + + jLabel_Parent_Data_ID.setBounds(22, 24, 112, 21); + jDesktopPane1.add(jLabel_Parent_Data_ID); + jLabel_Parent_Data_ID.setText(lang.get("lbl_Parent_Data_ID")); + jLabel_Parent_Data_ID.setHorizontalAlignment(SwingConstants.RIGHT); + jLabel_Data_ID.setHorizontalTextPosition(SwingConstants.RIGHT); + + + } + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + private void setButtonState(boolean truefalse) + { + jButtonUpdate.setEnabled(truefalse); + + } + + private boolean update() + { + boolean result = false; + + String new_id = (((JDBBomElementRecord) ((JDBListData) comboBoxDataID.getSelectedItem()).getmData()).getDataId()); + String new_pid = (((JDBBomElementRecord) ((JDBListData) comboBoxParentDataID.getSelectedItem()).getmData()).getDataId()); + + + newRecord.setDataId(new_id); + newRecord.setDataIDParent(new_pid); + + result = structure.update(originalRecord, newRecord); + + JLaunchMenu.runForm("FRM_BOM_STRUCTURE", newRecord.getDataId(), newRecord.getDataIDParent()); + + if (result) + { + originalRecord.setDataId(newRecord.getDataId()); + originalRecord.setDataIDParent(newRecord.getDataIDParent()); + + } + + return result; + } +} diff --git a/b6/src/com/commander4j/bom/JInternalFrameViewBomEnquiry.java b/b6/src/com/commander4j/bom/JInternalFrameViewBomEnquiry.java new file mode 100644 index 000000000..6844a5297 --- /dev/null +++ b/b6/src/com/commander4j/bom/JInternalFrameViewBomEnquiry.java @@ -0,0 +1,1046 @@ +package com.commander4j.bom; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JInternalFrameMaterialAdmin.java + * + * Package Name : com.commander4j.app + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Component; +import java.awt.Dimension; +import java.awt.Rectangle; +import java.awt.Toolkit; +import java.awt.datatransfer.StringSelection; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.sql.PreparedStatement; +import java.util.Vector; + +import javax.swing.BorderFactory; +import javax.swing.ComboBoxModel; +import javax.swing.DefaultComboBoxModel; +import javax.swing.JDesktopPane; +import javax.swing.JInternalFrame; +import javax.swing.JPopupMenu; +import javax.swing.JScrollPane; +import javax.swing.JSpinner; +import javax.swing.JToggleButton; +import javax.swing.ListSelectionModel; +import javax.swing.SwingConstants; +import javax.swing.border.BevelBorder; +import javax.swing.table.DefaultTableModel; +import javax.swing.table.TableModel; +import javax.swing.table.TableRowSorter; + +import com.commander4j.db.JDBLanguage; +import com.commander4j.db.JDBQuery; +import com.commander4j.gui.JButton4j; +import com.commander4j.gui.JCheckBox4j; +import com.commander4j.gui.JComboBox4j; +import com.commander4j.gui.JLabel4j_std; +import com.commander4j.gui.JMenu4j; +import com.commander4j.gui.JMenuItem4j; +import com.commander4j.gui.JTable4j; +import com.commander4j.gui.JTextField4j; +import com.commander4j.sys.Common; +import com.commander4j.sys.JLaunchMenu; +import com.commander4j.sys.JLaunchReport; +import com.commander4j.util.JHelp; +import com.commander4j.util.JUtility; + +public class JInternalFrameViewBomEnquiry extends JInternalFrame +{ + private static final long serialVersionUID = 1; + private JDesktopPane jDesktopPane1; + + private JButton4j jButtonClear; + private JButton4j jButtonExcel; + private JButton4j jButtonPrint; + private JButton4j jButtonHelp; + private JButton4j jButtonClose; + private JButton4j jButtonSearch; + + private JLabel4j_std jStatusText; + private JLabel4j_std jLabel_UOM; + private JLabel4j_std jLabel_BOM_ID; + private JLabel4j_std jLabel_BOM_Version; + private JLabel4j_std jLabel10; + private JLabel4j_std jLabel_Description; + private JLabel4j_std jLabel1; + private JLabel4j_std jLabel_Type; + private JLabel4j_std jLabel_Location; + private JLabel4j_std jLabel_Stage; + + private JTextField4j jTextFieldDescription; + private JTextField4j jTextFieldBomID; + private JTextField4j jTextFieldBomVersion; + private JTextField4j jTextFieldMaterial; + + private JToggleButton jToggleButtonSequence; + + private JComboBox4j jComboBoxSortBy; + private JComboBox4j jComboBoxUOM; + private JComboBox4j jComboBoxType; + private JComboBox4j jComboBoxLocation; + private JComboBox4j jComboBoxStage; + + private JTable4j jTable1; + + private JScrollPane jScrollPane1; + + private JDBBomList dbList = new JDBBomList(Common.selectedHostID, Common.sessionID); + + private Vector uomList = new Vector(); + private Vector typeList = new Vector(); + private Vector locationList = new Vector(); + private Vector stageList = new Vector(); + + private boolean dlg_sort_descending = false; + private String schemaName = Common.hostList.getHost(Common.selectedHostID).getDatabaseParameters().getjdbcDatabaseSchema(); + private JDBLanguage lang; + + private PreparedStatement listStatement; + + private JCheckBox4j jCheckBoxLimit = new JCheckBox4j(); + private JSpinner jSpinnerLimit = new JSpinner(); + + private void copyToClipboard(String fieldname) + { + StringSelection stringSelection = new StringSelection(""); + + int row = jTable1.getSelectedRow(); + if (row >= 0) + { + + if (fieldname.equals(lang.get("lbl_Material")) == true) + { + stringSelection = new StringSelection(jTable1.getValueAt(row, JDBViewBomTableModel.bom_material_col).toString()); + } + + if (fieldname.equals(lang.get("lbl_Location_ID")) == true) + { + stringSelection = new StringSelection(jTable1.getValueAt(row, JDBViewBomTableModel.bom_location_col).toString()); + } + + if (fieldname.equals(lang.get("lbl_Description")) == true) + { + stringSelection = new StringSelection(jTable1.getValueAt(row, JDBViewBomTableModel.bom_description_col).toString()); + } + + if (fieldname.equals(lang.get("lbl_Process_Order_Recipe")) == true) + { + stringSelection = new StringSelection(jTable1.getValueAt(row, JDBViewBomTableModel.bom_id_col).toString()); + } + + if (fieldname.equals(lang.get("lbl_Pallet_Quantity")) == true) + { + stringSelection = new StringSelection(jTable1.getValueAt(row, JDBViewBomTableModel.bom_quantity_col).toString()); + } + + Toolkit.getDefaultToolkit().getSystemClipboard().setContents(stringSelection, null); + + } + } + + private void clearFilter() + { + + jTextFieldMaterial.setText(""); + + jTextFieldDescription.setText(""); + + jComboBoxUOM.getModel().setSelectedItem(""); + + jComboBoxType.getModel().setSelectedItem(""); + + jComboBoxLocation.getModel().setSelectedItem(""); + + jComboBoxStage.getModel().setSelectedItem(""); + + buildSQL(); + populateList(); + + } + + private void filterBy(String fieldname) + { + int row = jTable1.getSelectedRow(); + if (row >= 0) + { + + if (fieldname.equals(lang.get("lbl_Process_Order_Recipe")) == true) + { + jTextFieldBomID.setText(jTable1.getValueAt(row, JDBViewBomTableModel.bom_id_col).toString()); + } + + if (fieldname.equals(lang.get("lbl_Version")) == true) + { + jTextFieldBomVersion.setText(jTable1.getValueAt(row, JDBViewBomTableModel.bom_version_col).toString()); + } + + if (fieldname.equals(lang.get("lbl_Material")) == true) + { + jTextFieldMaterial.setText(jTable1.getValueAt(row, JDBViewBomTableModel.bom_material_col).toString()); + } + + if (fieldname.equals(lang.get("lbl_Description")) == true) + { + jTextFieldDescription.setText(jTable1.getValueAt(row, JDBViewBomTableModel.bom_description_col).toString()); + } + + if (fieldname.equals(lang.get("lbl_Material_UOM")) == true) + { + jComboBoxUOM.setSelectedItem(jTable1.getValueAt(row, JDBViewBomTableModel.bom_uom_col).toString()); + } + + if (fieldname.equals(lang.get("lbl_Material_Type")) == true) + { + jComboBoxType.setSelectedItem(jTable1.getValueAt(row, JDBViewBomTableModel.bom_material_type).toString()); + } + + if (fieldname.equals(lang.get("lbl_Location_ID")) == true) + { + jComboBoxLocation.setSelectedItem(jTable1.getValueAt(row, JDBViewBomTableModel.bom_location_col).toString()); + } + + if (fieldname.equals(lang.get("lbl_Stage")) == true) + { + jComboBoxStage.setSelectedItem(jTable1.getValueAt(row, JDBViewBomTableModel.bom_stage_col).toString()); + } + + + buildSQL(); + populateList(); + } + } + + private void sortBy(String fieldname) + { + jComboBoxSortBy.setSelectedItem(fieldname); + search(); + } + + private void export() + { + + } + + private void print() + { + PreparedStatement temp = buildSQLr(); + JLaunchReport.runReport("RPT_VIEW_BOM", null, "", temp, ""); + } + + private void search() + { + buildSQL(); + populateList(); + } + + private void populateList() + { + JDBViewBomRecord viewBom = new JDBViewBomRecord(Common.selectedHostID, Common.sessionID); + + JDBViewBomTableModel viewBomTable = new JDBViewBomTableModel(viewBom.getViewBomResultSet(listStatement)); + + TableRowSorter sorter = new TableRowSorter(viewBomTable); + + jTable1.setRowSorter(sorter); + jTable1.setModel(viewBomTable); + + jScrollPane1.setViewportView(jTable1); + JUtility.scrolltoHomePosition(jScrollPane1); + + jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); + jTable1.getTableHeader().setPreferredSize(new Dimension(jScrollPane1.getWidth(), 35)); + + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_id_col).setPreferredWidth(110); + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_version_col).setPreferredWidth(60); + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_input_output_col).setPreferredWidth(50); + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_sequence_col).setPreferredWidth(60); + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_material_col).setPreferredWidth(80); + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_material_type).setPreferredWidth(50); + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_quantity_col).setPreferredWidth(80); + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_location_col).setPreferredWidth(120); + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_stage_col).setPreferredWidth(60); + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_description_col).setPreferredWidth(250); + jTable1.getColumnModel().getColumn(JDBViewBomTableModel.bom_uom_col).setPreferredWidth(40); + jScrollPane1.repaint(); + + JUtility.setResultRecordCountColour(jStatusText, jCheckBoxLimit.isSelected(), Integer.valueOf(jSpinnerLimit.getValue().toString()), viewBomTable.getRowCount()); + } + + private PreparedStatement buildSQLr() + { + + PreparedStatement result; + JDBQuery query = new JDBQuery(Common.selectedHostID, Common.sessionID); + + query.clear(); + query.addText(JUtility.substSchemaName(schemaName, "select * from {schema}VIEW_BOM")); + + query.addParamtoSQL("bom_id=", jTextFieldBomID.getText()); + + query.addParamtoSQL("bom_version=", jTextFieldBomVersion.getText()); + + query.addParamtoSQL("material=", jTextFieldMaterial.getText()); + + query.addParamtoSQL("location_id=", (String) jComboBoxLocation.getSelectedItem()); + + query.addParamtoSQL("uom=", ((String) jComboBoxUOM.getSelectedItem())); + + query.addParamtoSQL("type=", ((String) jComboBoxType.getSelectedItem())); + + query.addParamtoSQL("stage=", ((String) jComboBoxStage.getSelectedItem())); + + if (jTextFieldDescription.getText().equals("") == false) + { + query.addParamtoSQL("upper(description) LIKE ", "%" + jTextFieldDescription.getText().toUpperCase() + "%"); + } + + query.appendSort(jComboBoxSortBy.getSelectedItem().toString(), jToggleButtonSequence.isSelected()); + + query.applyRestriction(jCheckBoxLimit.isSelected(), Common.hostList.getHost(Common.selectedHostID).getDatabaseParameters().getjdbcDatabaseSelectLimit(), jSpinnerLimit.getValue()); + + query.bindParams(); + + result = query.getPreparedStatement(); + return result; + + } + + private void buildSQL() + { + + JDBQuery.closeStatement(listStatement); + + listStatement = buildSQLr(); + } + + public JInternalFrameViewBomEnquiry() + { + super(); + setIconifiable(true); + + lang = new JDBLanguage(Common.selectedHostID, Common.sessionID); + + if (dbList.getListItems("uom").contains("") == false) + { + uomList.add(""); + } + uomList.addAll(dbList.getListItems("uom")); + + if (dbList.getListItems("material_type").contains("") == false) + { + typeList.add(""); + } + typeList.addAll(dbList.getListItems("material_type")); + + if (dbList.getListItems("location_id").contains("") == false) + { + locationList.add(""); + } + locationList.addAll(dbList.getListItems("location_id")); + + if (dbList.getListItems("stage").contains("") == false) + { + stageList.add(""); + } + stageList.addAll(dbList.getListItems("stage")); + + initGUI(); + + JDBQuery query = new JDBQuery(Common.selectedHostID, Common.sessionID); + query.clear(); + query.addText(JUtility.substSchemaName(schemaName, "select * from {schema}VIEW_BOM where 1=2")); + query.applyRestriction(false, "none", 0); + query.bindParams(); + listStatement = query.getPreparedStatement(); + populateList(); + + final JHelp help = new JHelp(); + help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_BOM_ENQUIRY")); + + Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); + Rectangle window = getBounds(); + setLocation((screen.width - window.width) / 2, (screen.height - window.height) / 2); + + setSequence(dlg_sort_descending); + } + + private void setSequence(boolean descending) + { + jToggleButtonSequence.setSelected(descending); + if (jToggleButtonSequence.isSelected()) + { + jToggleButtonSequence.setToolTipText("Descending"); + jToggleButtonSequence.setIcon(Common.icon_descending_16x16); + } + else + { + jToggleButtonSequence.setToolTipText("Ascending"); + jToggleButtonSequence.setIcon(Common.icon_ascending_16x16); + } + } + + private void initGUI() + { + try + { + this.setPreferredSize(new java.awt.Dimension(757, 535)); + this.setBounds(0, 0, 984, 617); + setVisible(true); + this.setTitle("BOM Enquiry"); + this.setClosable(true); + { + jDesktopPane1 = new JDesktopPane(); + jDesktopPane1.setBackground(Common.color_app_window); + this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER); + jDesktopPane1.setPreferredSize(new java.awt.Dimension(645, 460)); + { + jScrollPane1 = new JScrollPane(); + jScrollPane1.getViewport().setBackground(Common.color_tablebackground); + jDesktopPane1.setLayout(null); + jDesktopPane1.add(jScrollPane1); + jScrollPane1.setBounds(0, 156, 968, 405); + { + TableModel jTable1Model = new DefaultTableModel(new String[][] + { + { "One", "Two" }, + { "Three", "Four" } }, new String[] + { "Column 1", "Column 2" }); + jTable1 = new JTable4j(); + jTable1.setDefaultRenderer(Object.class, Common.renderer_table); + jScrollPane1.setViewportView(jTable1); + jTable1.setModel(jTable1Model); + jTable1.setToolTipText(lang.get("lbl_Table_Hint")); + + { + final JPopupMenu popupMenu = new JPopupMenu(); + addPopup(jTable1, popupMenu); + + + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_bom_16x16); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + int row = jTable1.getSelectedRow(); + if (row >= 0) + { + String id = jTable1.getValueAt(row, JDBViewBomTableModel.bom_id_col).toString(); + String ver = jTable1.getValueAt(row, JDBViewBomTableModel.bom_version_col).toString(); + JLaunchMenu.runForm("FRM_BOM_ADMIN", id,ver); + } + } + }); + newItemMenuItem.setText(lang.get("mod_MENU_BOM")); + newItemMenuItem.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_BOM_ADMIN")); + popupMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_search_16x16); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + search(); + } + }); + newItemMenuItem.setText(lang.get("btn_Search")); + popupMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_print_16x16); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + print(); + } + }); + newItemMenuItem.setText(lang.get("btn_Print")); + popupMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_XLS_16x16); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + export(); + } + }); + newItemMenuItem.setText(lang.get("btn_Excel")); + popupMenu.add(newItemMenuItem); + } + + { + final JMenu4j sortByMenu = new JMenu4j(); + sortByMenu.setText(lang.get("lbl_Sort_By")); + popupMenu.add(sortByMenu); + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + sortBy("MATERIAL"); + } + }); + newItemMenuItem.setText(lang.get("lbl_Material")); + sortByMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + sortBy("TYPE"); + } + }); + newItemMenuItem.setText(lang.get("lbl_Material_Type")); + sortByMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + sortBy("DESCRIPTION"); + } + }); + newItemMenuItem.setText(lang.get("lbl_Description")); + sortByMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + sortBy("UOM"); + } + }); + newItemMenuItem.setText(lang.get("lbl_Material_UOM")); + sortByMenu.add(newItemMenuItem); + } + + } + + { + final JMenu4j filterByMenu = new JMenu4j(); + filterByMenu.setText(lang.get("lbl_Filter_By")); + popupMenu.add(filterByMenu); + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + filterBy(newItemMenuItem.getText()); + } + }); + newItemMenuItem.setText(lang.get("lbl_Process_Order_Recipe")); + filterByMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + filterBy(newItemMenuItem.getText()); + } + }); + newItemMenuItem.setText(lang.get("lbl_Version")); + filterByMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + filterBy(newItemMenuItem.getText()); + } + }); + newItemMenuItem.setText(lang.get("lbl_Material")); + filterByMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + filterBy(newItemMenuItem.getText()); + } + }); + newItemMenuItem.setText(lang.get("lbl_Description")); + filterByMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + filterBy(newItemMenuItem.getText()); + } + }); + newItemMenuItem.setText(lang.get("lbl_Material_Type")); + filterByMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + filterBy(newItemMenuItem.getText()); + } + }); + newItemMenuItem.setText(lang.get("lbl_Material_UOM")); + filterByMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + filterBy(newItemMenuItem.getText()); + } + }); + newItemMenuItem.setText(lang.get("lbl_Location_ID")); + filterByMenu.add(newItemMenuItem); + } + + { + filterByMenu.addSeparator(); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + clearFilter(); + } + }); + newItemMenuItem.setText(lang.get("btn_Clear_Filter")); + filterByMenu.add(newItemMenuItem); + } + } + + { + final JMenu4j clipboardMenu = new JMenu4j(); + clipboardMenu.setText(lang.get("lbl_Clipboard_Copy")); + popupMenu.add(clipboardMenu); + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + copyToClipboard(lang.get("lbl_Material")); + } + }); + newItemMenuItem.setText(lang.get("lbl_Material")); + clipboardMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + copyToClipboard(lang.get("lbl_Location_ID")); + } + }); + newItemMenuItem.setText(lang.get("lbl_Location_ID")); + clipboardMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + copyToClipboard(lang.get("lbl_Description")); + } + }); + newItemMenuItem.setText(lang.get("lbl_Description")); + clipboardMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + copyToClipboard(lang.get("lbl_Process_Order_Recipe")); + } + }); + newItemMenuItem.setText(lang.get("lbl_Process_Order_Recipe")); + clipboardMenu.add(newItemMenuItem); + } + + { + final JMenuItem4j newItemMenuItem = new JMenuItem4j(); + newItemMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + copyToClipboard(lang.get("lbl_Pallet_Quantity")); + } + }); + newItemMenuItem.setText(lang.get("lbl_Pallet_Quantity")); + clipboardMenu.add(newItemMenuItem); + } + + } + } + } + } + { + jButtonSearch = new JButton4j(Common.icon_search_16x16); + jDesktopPane1.add(jButtonSearch); + jButtonSearch.setText(lang.get("btn_Search")); + jButtonSearch.setBounds(162, 112, 109, 32); + jButtonSearch.setMnemonic(lang.getMnemonicChar()); + jButtonSearch.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + search(); + + } + }); + } + { + jTextFieldBomID = new JTextField4j(); + jDesktopPane1.add(jTextFieldBomID); + jTextFieldBomID.setBounds(114, 11, 99, 22); + } + { + jTextFieldBomVersion = new JTextField4j(); + jDesktopPane1.add(jTextFieldBomVersion); + jTextFieldBomVersion.setBounds(311, 11, 68, 22); + } + { + jTextFieldMaterial = new JTextField4j(); + jDesktopPane1.add(jTextFieldMaterial); + jTextFieldMaterial.setBounds(475, 11, 125, 22); + } + + { + jTextFieldDescription = new JTextField4j(); + jDesktopPane1.add(jTextFieldDescription); + jTextFieldDescription.setBounds(704, 11, 258, 22); + } + { + jLabel1 = new JLabel4j_std(); + jLabel1.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel1); + jLabel1.setText(lang.get("lbl_Material")); + jLabel1.setBounds(379, 12, 84, 21); + } + { + jLabel_Description = new JLabel4j_std(); + jLabel_Description.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_Description); + jLabel_Description.setText(lang.get("lbl_Description")); + jLabel_Description.setBounds(609, 12, 84, 21); + } + { + jLabel_BOM_ID = new JLabel4j_std(); + jLabel_BOM_ID.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_BOM_ID); + jLabel_BOM_ID.setText(lang.get("lbl_Process_Order_Recipe")); + jLabel_BOM_ID.setBounds(0, 12, 105, 21); + } + { + jLabel_BOM_Version = new JLabel4j_std(); + jLabel_BOM_Version.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_BOM_Version); + jLabel_BOM_Version.setText(lang.get("lbl_Version")); + jLabel_BOM_Version.setBounds(199, 12, 105, 21); + } + { + ComboBoxModel jComboBox2Model = new DefaultComboBoxModel(uomList); + jComboBoxUOM = new JComboBox4j(); + jDesktopPane1.add(jComboBoxUOM); + jComboBoxUOM.setModel(jComboBox2Model); + jComboBoxUOM.setBounds(762, 45, 109, 21); + jComboBoxUOM.setMaximumRowCount(12); + } + + { + ComboBoxModel jComboBox2Model = new DefaultComboBoxModel(typeList); + jComboBoxType = new JComboBox4j(); + jDesktopPane1.add(jComboBoxType); + jComboBoxType.setModel(jComboBox2Model); + jComboBoxType.setBounds(578, 45, 84, 21); + jComboBoxType.setMaximumRowCount(12); + } + + { + ComboBoxModel jComboBox2Model = new DefaultComboBoxModel(locationList); + jComboBoxLocation = new JComboBox4j(); + jDesktopPane1.add(jComboBoxLocation); + jComboBoxLocation.setModel(jComboBox2Model); + jComboBoxLocation.setBounds(344, 45, 94, 21); + jComboBoxLocation.setMaximumRowCount(12); + } + + { + ComboBoxModel jComboBox2Model = new DefaultComboBoxModel(stageList); + jComboBoxStage = new JComboBox4j(); + jDesktopPane1.add(jComboBoxStage); + jComboBoxStage.setModel(jComboBox2Model); + jComboBoxStage.setBounds(114, 45, 94, 21); + jComboBoxStage.setMaximumRowCount(12); + } + + { + jLabel_UOM = new JLabel4j_std(); + jLabel_UOM.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_UOM); + jLabel_UOM.setText(lang.get("lbl_Material_UOM")); + jLabel_UOM.setBounds(649, 45, 105, 21); + } + + { + jLabel_Type = new JLabel4j_std(); + jLabel_Type.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_Type); + jLabel_Type.setText(lang.get("lbl_Material_Type")); + jLabel_Type.setBounds(455, 45, 105, 21); + } + + { + jLabel_Location = new JLabel4j_std(); + jLabel_Location.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_Location); + jLabel_Location.setText(lang.get("lbl_Location_ID")); + jLabel_Location.setBounds(230, 45, 105, 21); + } + { + jLabel_Stage = new JLabel4j_std(); + jLabel_Stage.setHorizontalAlignment(SwingConstants.RIGHT); + jDesktopPane1.add(jLabel_Stage); + jLabel_Stage.setText(lang.get("lbl_Stage_Phase")); + jLabel_Stage.setBounds(0, 45, 105, 21); + } + { + jButtonHelp = new JButton4j(Common.icon_help_16x16); + jDesktopPane1.add(jButtonHelp); + jButtonHelp.setText(lang.get("btn_Help")); + jButtonHelp.setBounds(596, 112, 109, 32); + jButtonHelp.setMnemonic(lang.getMnemonicChar()); + } + + { + jButtonClose = new JButton4j(Common.icon_close_16x16); + jDesktopPane1.add(jButtonClose); + jButtonClose.setText(lang.get("btn_Close")); + jButtonClose.setBounds(704, 112, 109, 32); + jButtonClose.setMnemonic(lang.getMnemonicChar()); + jButtonClose.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + JDBQuery.closeStatement(listStatement); + dispose(); + } + }); + } + { + jButtonPrint = new JButton4j(Common.icon_report_16x16); + jDesktopPane1.add(jButtonPrint); + jButtonPrint.setText(lang.get("btn_Print")); + jButtonPrint.setBounds(379, 112, 109, 32); + jButtonPrint.setMnemonic(lang.getMnemonicChar()); + jButtonPrint.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + print(); + } + }); + } + + { + jLabel10 = new JLabel4j_std(); + jDesktopPane1.add(jLabel10); + jLabel10.setText(lang.get("lbl_Sort_By")); + jLabel10.setHorizontalAlignment(SwingConstants.TRAILING); + jLabel10.setBounds(78, 78, 146, 21); + } + { + ComboBoxModel jComboBoxSortByModel = new DefaultComboBoxModel(Common.viewBOMSortBy); + jComboBoxSortBy = new JComboBox4j(); + jDesktopPane1.add(jComboBoxSortBy); + jComboBoxSortBy.setModel(jComboBoxSortByModel); + jComboBoxSortBy.setBounds(230, 78, 350, 21); + jComboBoxSortBy.setMaximumRowCount(Common.materialSortBy.length); + } + + { + jToggleButtonSequence = new JToggleButton(); + jDesktopPane1.add(jToggleButtonSequence); + jToggleButtonSequence.setBounds(581, 78, 21, 21); + jToggleButtonSequence.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent evt) + { + setSequence(jToggleButtonSequence.isSelected()); + } + }); + } + + { + jStatusText = new JLabel4j_std(); + jStatusText.setForeground(new Color(255, 0, 0)); + jStatusText.setBackground(Color.GRAY); + jStatusText.setBounds(0, 563, 970, 20); + jStatusText.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED)); + jDesktopPane1.add(jStatusText); + } + + { + jButtonExcel = new JButton4j(Common.icon_XLS_16x16); + jButtonExcel.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + export(); + } + }); + + jButtonExcel.setText(lang.get("btn_Excel")); + jButtonExcel.setMnemonic(lang.getMnemonicChar()); + jButtonExcel.setBounds(488, 112, 109, 32); + jDesktopPane1.add(jButtonExcel); + } + + { + jButtonClear = new JButton4j(Common.icon_clear_16x16); + jButtonClear.addActionListener(new ActionListener() + { + public void actionPerformed(final ActionEvent e) + { + clearFilter(); + } + }); + jButtonClear.setText(lang.get("btn_Clear_Filter")); + jButtonClear.setMnemonic(lang.getMnemonicChar()); + jButtonClear.setBounds(270, 112, 109, 32); + jDesktopPane1.add(jButtonClear); + } + + JLabel4j_std label4j_std = new JLabel4j_std(); + label4j_std.setText(lang.get("lbl_Limit")); + label4j_std.setHorizontalAlignment(SwingConstants.TRAILING); + label4j_std.setBounds(574, 78, 84, 21); + jDesktopPane1.add(label4j_std); + + jCheckBoxLimit.setSelected(true); + jCheckBoxLimit.setBackground(Color.WHITE); + jCheckBoxLimit.setBounds(662, 78, 21, 21); + jDesktopPane1.add(jCheckBoxLimit); + + JSpinner.NumberEditor ne = new JSpinner.NumberEditor(jSpinnerLimit); + ne.getTextField().setFont(Common.font_std); + jSpinnerLimit.setEditor(ne); + jSpinnerLimit.setValue(1000); + jSpinnerLimit.setBounds(691, 78, 68, 21); + jDesktopPane1.add(jSpinnerLimit); + + } + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + /** + * WindowBuilder generated method.
+ * Please don't remove this method or its invocations.
+ * It used by WindowBuilder to associate the {@link javax.swing.JPopupMenu} + * with parent. + */ + private static void addPopup(Component component, final JPopupMenu popup) + { + component.addMouseListener(new MouseAdapter() + { + public void mousePressed(MouseEvent e) + { + if (e.isPopupTrigger()) + showMenu(e); + } + + public void mouseReleased(MouseEvent e) + { + if (e.isPopupTrigger()) + showMenu(e); + } + + private void showMenu(MouseEvent e) + { + popup.show(e.getComponent(), e.getX(), e.getY()); + } + }); + } +} diff --git a/b6/src/com/commander4j/bom/JTreePrintPreview.java b/b6/src/com/commander4j/bom/JTreePrintPreview.java new file mode 100644 index 000000000..b28002f3e --- /dev/null +++ b/b6/src/com/commander4j/bom/JTreePrintPreview.java @@ -0,0 +1,99 @@ +package com.commander4j.bom; + +import java.awt.BorderLayout; +import java.awt.Dimension; +import java.awt.Frame; +import java.awt.Graphics; +import java.awt.Graphics2D; +import java.awt.print.PageFormat; +import java.awt.print.Printable; +import java.awt.print.PrinterException; +import java.awt.print.PrinterJob; + +import javax.swing.JButton; +import javax.swing.JDialog; +import javax.swing.JOptionPane; +import javax.swing.JPanel; +import javax.swing.JScrollPane; +import javax.swing.JTree; + +public class JTreePrintPreview +{ + + public static void showPrintPreview(JTree tree) + { + JDialog previewDialog = new JDialog((Frame) null, "Print Preview", true); + + JPanel previewPanel = new JPanel() + { + private static final long serialVersionUID = 1L; + + @Override + protected void paintComponent(Graphics g) + { + super.paintComponent(g); + Graphics2D g2d = (Graphics2D) g; + + PageFormat pf = PrinterJob.getPrinterJob().defaultPage(); + double scale = Math.min(getWidth() / pf.getImageableWidth(), getHeight() / pf.getImageableHeight()); + g2d.translate(50, 50); // Offset for the preview panel's margin + g2d.scale(scale, scale); + + tree.printAll(g2d); + } + }; + + previewPanel.setPreferredSize(new Dimension(600, 800)); + JScrollPane scrollPane = new JScrollPane(previewPanel); + + JPanel buttonPanel = new JPanel(); + JButton printButton = new JButton("Print"); + printButton.addActionListener(e -> { + previewDialog.dispose(); + printTree(tree); + }); + + JButton closeButton = new JButton("Close"); + closeButton.addActionListener(e -> previewDialog.dispose()); + + buttonPanel.add(printButton); + buttonPanel.add(closeButton); + + previewDialog.setLayout(new BorderLayout()); + previewDialog.add(scrollPane, BorderLayout.CENTER); + previewDialog.add(buttonPanel, BorderLayout.SOUTH); + previewDialog.pack(); + previewDialog.setLocationRelativeTo(null); + previewDialog.setVisible(true); + } + + public static void printTree(JTree tree) + { + PrinterJob job = PrinterJob.getPrinterJob(); + job.setPrintable((g, pf, pageIndex) -> { + if (pageIndex > 0) + return Printable.NO_SUCH_PAGE; + + Graphics2D g2d = (Graphics2D) g; + g2d.translate(pf.getImageableX(), pf.getImageableY()); + double scale = Math.min(pf.getImageableWidth() / tree.getWidth(), pf.getImageableHeight() / tree.getHeight()); + g2d.scale(scale, scale); + tree.printAll(g2d); + + return Printable.PAGE_EXISTS; + }); + + if (job.printDialog()) + { + try + { + job.print(); + } + catch (PrinterException e) + { + e.printStackTrace(); + JOptionPane.showMessageDialog(tree, "Printing failed: " + e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); + } + } + } +} diff --git a/b6/src/com/commander4j/calendar/JCalendarDialog2.java b/b6/src/com/commander4j/calendar/JCalendarDialog2.java new file mode 100755 index 000000000..d53b413a2 --- /dev/null +++ b/b6/src/com/commander4j/calendar/JCalendarDialog2.java @@ -0,0 +1,141 @@ +package com.commander4j.calendar; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JCalendarDialog.java + * + * Package Name : com.commander4j.calendar + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.awt.Color; +import java.awt.Component; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.WindowEvent; +import java.awt.event.WindowFocusListener; +import java.util.Calendar; + +import javax.swing.ImageIcon; +import javax.swing.JButton; +import javax.swing.JDesktopPane; +import javax.swing.JDialog; +import javax.swing.UIManager; +import javax.swing.border.EtchedBorder; + +import com.commander4j.sys.Common; +/** + * The JCalendarDialog is used to provide a popup window showing a calendar control. + *

+ * + * + * @see com.commander4j.calendar.JCalendarPanel2 JCalendarPanel + * @see com.commander4j.calendar.JCalendarButton JCalendarButton + */ +public class JCalendarDialog2 extends JDialog +{ + + private static final long serialVersionUID = 1L; + private Calendar selectedDate = Calendar.getInstance(); + private Calendar backupDate; + protected Color background; + protected Color foreground; + protected Color selectedBackground; + protected Color selectedForeground; + private Component calling; + private JCalendarPanel2 calendarPanel; + + public Calendar getCalendarDate() + { + return calendarPanel.getCalendarDate(); + } + + public Calendar getDate() + { + return calendarPanel.getDate(); + } + + public JCalendarDialog2(Component parent,Calendar cal) + { + addWindowFocusListener(new WindowFocusListener() { + public void windowGainedFocus(WindowEvent e) { + } + public void windowLostFocus(WindowEvent e) { + dispose(); + } + }); + + + selectedDate = cal; + + this.calling = parent; + + init(selectedDate); + } + + public void init(Calendar caldate) { + + setSize(268, 258); + setUndecorated(true); + setResizable(false); + setLocationRelativeTo(calling); + setModal(true); + + getContentPane().setLayout(null); + + JDesktopPane desktopPane = new JDesktopPane(); + desktopPane.setBackground(UIManager.getColor("PopupMenu.background")); + desktopPane.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null)); + desktopPane.setBounds(0, 0, 286, 268); + getContentPane().add(desktopPane); + desktopPane.setLayout(null); + + calendarPanel = new JCalendarPanel2(caldate); + calendarPanel.setBackground(UIManager.getColor("PopupMenu.background")); + calendarPanel.setBounds(5, 5, 264, 218); + desktopPane.add(calendarPanel); + + JButton buttonOK = new JButton(new ImageIcon("images\\OK.gif")); + buttonOK.setBounds(36, 224, 90, 26); + desktopPane.add(buttonOK); + buttonOK.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + + dispose(); + } + }); + buttonOK.setText("OK"); + buttonOK.setFont(Common.font_std); + + JButton buttonCancel = new JButton(new ImageIcon("images\\Cancel.gif")); + buttonCancel.setBounds(132, 224, 90, 26); + desktopPane.add(buttonCancel); + buttonCancel.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + selectedDate = backupDate; + dispose(); + } + }); + buttonCancel.setText("Cancel"); + buttonCancel.setFont(Common.font_std); + } +} diff --git a/b6/src/com/commander4j/calendar/JCalendarPanel2.java b/b6/src/com/commander4j/calendar/JCalendarPanel2.java new file mode 100755 index 000000000..73e992561 --- /dev/null +++ b/b6/src/com/commander4j/calendar/JCalendarPanel2.java @@ -0,0 +1,498 @@ +package com.commander4j.calendar; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : JCalendarPanel.java + * + * Package Name : com.commander4j.calendar + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.awt.Color; +import java.awt.Dimension; +import java.awt.Font; +import java.awt.SystemColor; +import java.awt.Toolkit; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.text.DateFormatSymbols; +import java.util.Calendar; +import java.util.LinkedList; + +import javax.swing.BorderFactory; +import javax.swing.DefaultComboBoxModel; +import javax.swing.JButton; +import javax.swing.JComboBox; +import javax.swing.JLabel; +import javax.swing.JPanel; +import javax.swing.JSpinner; +import javax.swing.JTextField; +import javax.swing.SwingConstants; +import javax.swing.UIManager; +import javax.swing.border.Border; +import javax.swing.border.EmptyBorder; +import javax.swing.border.EtchedBorder; +import javax.swing.border.LineBorder; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; + +import com.commander4j.sys.Common; +import com.commander4j.util.JDateControl; + +/** + * The JCalendarPanel is used to provide a popup window showing a calendar + * control. + *

+ * + * + * @see com.commander4j.calendar.JCalendarButton JCalendarButton + * @see com.commander4j.calendar.JCalendarDialog2 JCalendarDialog + */ +public class JCalendarPanel2 extends JPanel +{ + + private static final long serialVersionUID = 1L; + private JLabel year; + private Calendar selectedDate; + + private JComboBox comboBoxMonth = new JComboBox(); + private LinkedList buttonsList = new LinkedList(); + private Font standard_font = new Font("Arial", Font.PLAIN, 10); + private Font font_bold = new Font("Arial", Font.BOLD, 10); + private Border empty = BorderFactory.createEmptyBorder(); + private Border line = BorderFactory.createLineBorder(Color.BLACK); + + private JSpinner spinnerHH; + private JSpinner spinnerMM; + private JSpinner spinnerSS; + + protected Color background; + protected Color foreground; + protected Color selectedBackground; + protected Color selectedForeground; + private JLabel lblHr; + private JLabel lblMm; + private JLabel lblSs; + private JComboBox comboBox = new JComboBox(); + + public Calendar getCalendarDate() + { + return selectedDate; + } + + public Calendar getDate() + { + return selectedDate; + } + + public JCalendarPanel2(Calendar cal) + { + + init(cal); + } + + public JCalendarPanel2(JDateControl datetimecontrol) + { + + Calendar temp = Calendar.getInstance(); + temp.setTime(datetimecontrol.getDate()); + init(temp); + } + + public void init(Calendar caldate) + { + + setSize(270, 233); + setLocation(0, 0); + + background = UIManager.getColor("ComboBox.background"); + foreground = UIManager.getColor("ComboBox.foreground"); + selectedBackground = UIManager.getColor("ComboBox.selectionBackground"); + selectedForeground = UIManager.getColor("ComboBox.selectionForeground"); + + Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); + setLocation((screenSize.width - getSize().width) / 2 - 100, (screenSize.height - getSize().height) / 2 - 1); + initGUI(); + selectedDate = caldate; + updateCalendar(selectedDate); + } + + private String getMonthFromInt(int iMonth) + { + String month = "invalid"; + DateFormatSymbols dfs = new DateFormatSymbols(); + String[] months = dfs.getMonths(); + if (iMonth >= 0 && iMonth <= 11) + month = months[iMonth]; + return month; + } + + private void updateCalendar(Calendar caldate) + { + year.setText(String.valueOf(caldate.get(Calendar.YEAR))); + + int days_in_month = caldate.getActualMaximum(Calendar.DATE); + int month_in_year = caldate.get(Calendar.MONTH); + int current_day_of_month = caldate.get(Calendar.DAY_OF_MONTH); + int hour_of_day = caldate.get(Calendar.HOUR_OF_DAY); + int minute_of_day = caldate.get(Calendar.MINUTE); + int second_of_day = caldate.get(Calendar.SECOND); + + spinnerHH.setValue(hour_of_day); + + spinnerMM.setValue(minute_of_day); + + spinnerSS.setValue(second_of_day); + + comboBoxMonth.setForeground(Color.BLUE); + comboBoxMonth.setFont(standard_font); + comboBoxMonth.setSelectedIndex(month_in_year); + + int day = 0; + + Calendar temp = (Calendar) caldate.clone(); + temp.set(Calendar.DAY_OF_MONTH, 1); + int first_day_of_week = temp.get(Calendar.DAY_OF_WEEK); + int first_week_of_month = 0; + temp.set(Calendar.DAY_OF_MONTH, days_in_month); + + int firstIndex = ((first_week_of_month * 7) + first_day_of_week) - 1; + int lastIndex = firstIndex + days_in_month; + + day = 1; + for (int d = 0; d < 42; d++) + { + if ((d >= firstIndex) & (d < lastIndex)) + { + ((JLabel) buttonsList.get(d)).setVisible(true); + ((JLabel) buttonsList.get(d)).setText(String.valueOf(day)); + if (day == current_day_of_month) + { + ((JLabel) buttonsList.get(d)).setForeground(Color.BLACK); + ((JLabel) buttonsList.get(d)).setBackground(Color.ORANGE); + ((JLabel) buttonsList.get(d)).setFont(font_bold); + + } + else + { + ((JLabel) buttonsList.get(d)).setForeground(Color.BLACK); + ((JLabel) buttonsList.get(d)).setBackground(Color.LIGHT_GRAY); + ((JLabel) buttonsList.get(d)).setFont(standard_font); + } + day++; + } + else + { + ((JLabel) buttonsList.get(d)).setBackground(Color.BLACK); + ((JLabel) buttonsList.get(d)).setVisible(false); + ((JLabel) buttonsList.get(d)).setText(""); + } + } + } + + private void displayDayNames() + { + int offsetX = 5; + int offsetY = 35; + int width = 36; + int height = 22; + int gap = 0; + int currentX = offsetX; + String name = ""; + + DateFormatSymbols symbols = new DateFormatSymbols(); + String[] dayNames = symbols.getShortWeekdays(); + + for (int dn = 1; dn <= 7; dn++) + { + JTextField dayLabel = new JTextField(); + dayLabel.setEditable(false); + dayLabel.setFont(standard_font); + dayLabel.setForeground(new Color(51, 51, 51)); + dayLabel.setHorizontalAlignment(SwingConstants.CENTER); + dayLabel.setBackground(SystemColor.activeCaption); + name = (String) dayNames[dn]; + if (name.length() > 3) + { + name = ((String) name.subSequence(0, 3)); + } + + dayLabel.setText(name); + dayLabel.setBounds(currentX, offsetY, width, height); + currentX = currentX + (width + gap); + add(dayLabel); + } + } + + private void displayButtons() + { + int offsetX = 5; + int offsetY = 58; + int width = 35; + int height = 20; + int gap = 1; + int currentX = 0; + int currentY = 0; + int week = 1; + int day = 1; + + for (int l = 0; l < 42; l++) + { + + if (day == 8) + { + day = 1; + week++; + } + + currentX = ((day - 1) * (width + gap) + offsetX); + currentY = ((week - 1) * (height + gap) + offsetY); + + final JLabel label = new JLabel(); + final Border selectedBorder = new EtchedBorder(); + final Border unselectedBorder = new EmptyBorder(selectedBorder.getBorderInsets(new JLabel())); + label.setBorder(unselectedBorder); + label.setFont(standard_font); + label.setForeground(foreground); + label.setOpaque(true); + label.setHorizontalAlignment(SwingConstants.CENTER); + label.setBounds(currentX, currentY, width, height); + label.addMouseListener(new MouseAdapter() + { + public void mouseReleased(MouseEvent e) + { + selectedDate.set(Calendar.DAY_OF_MONTH, Integer.valueOf(((JLabel) e.getSource()).getText())); + updateCalendar(selectedDate); + } + + public void mouseEntered(MouseEvent e) + { + label.setBorder(line); + } + + public void mouseExited(MouseEvent e) + { + label.setBorder(empty); + } + }); + add(label); + buttonsList.addLast(label); + day++; + } + } + + private void displayMonths() + { + comboBoxMonth.setBackground(UIManager.getColor("CheckBox.background")); + comboBoxMonth.setFont(font_bold); + comboBoxMonth.setFocusable(false); + comboBoxMonth.setMaximumRowCount(12); + comboBoxMonth.setModel(new DefaultComboBoxModel(new String[] + { getMonthFromInt(0), getMonthFromInt(1), getMonthFromInt(2), getMonthFromInt(3), getMonthFromInt(4), getMonthFromInt(5), getMonthFromInt(6), getMonthFromInt(7), getMonthFromInt(8), getMonthFromInt(9), getMonthFromInt(10), getMonthFromInt(11) })); + comboBoxMonth.setBounds(5, 5, 109, 25); + comboBoxMonth.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + int month_in_year = comboBoxMonth.getSelectedIndex(); + selectedDate = setMonth(selectedDate, month_in_year); + updateCalendar(selectedDate); + } + }); + add(comboBoxMonth); + } + + private Calendar setMonth(Calendar temp, int month_in_year) + { + int current_day_of_month = temp.get(Calendar.DAY_OF_MONTH); + temp.set(Calendar.DATE, 1); + + temp.set(Calendar.MONTH, month_in_year); + int days_in_month = temp.getActualMaximum(Calendar.DATE); + if (current_day_of_month > days_in_month) + { + current_day_of_month = days_in_month; + } + temp.set(Calendar.DATE, current_day_of_month); + return temp; + + } + + private void displayYears() + { + year = new JLabel(); + year.setForeground(Color.BLACK); + year.setFont(standard_font); + year.setText("2010"); + year.setHorizontalAlignment(SwingConstants.CENTER); + year.setBorder(empty); + year.setBackground(UIManager.getColor("Panel.background")); + year.setBounds(199, 5, 34, 23); + add(year); + + JButton button = new JButton(Common.icon_arrow_right_16x16); + button.setBorder(empty); + button.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + selectedDate.add(Calendar.YEAR, 1); + updateCalendar(selectedDate); + } + }); + button.setBounds(232, 7, 18, 18); + add(button); + + JButton button_1 = new JButton(Common.icon_arrow_left_16x16); + button_1.setBorder(empty); + button_1.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + selectedDate.add(Calendar.YEAR, -1); + updateCalendar(selectedDate); + } + }); + button_1.setBounds(181, 7, 18, 18); + add(button_1); + + spinnerHH = new JSpinner(); + + JSpinner.NumberEditor neHH = new JSpinner.NumberEditor(spinnerHH); + neHH.getTextField().setFont(Common.font_std); + spinnerHH.setEditor(neHH); + + spinnerHH.setForeground(Color.BLUE); + spinnerHH.getEditor().setBackground(UIManager.getColor("Panel.background")); + spinnerHH.setBorder(new LineBorder(UIManager.getColor("Button.darkShadow"))); + //spinnerHH.setModel(new SpinnerNumberModel(23, 0, 23, 1)); + spinnerHH.setFont(standard_font); + spinnerHH.setBounds(5, 190, 50, 18); + JTextField tf1 = ((JSpinner.DefaultEditor) spinnerHH.getEditor()).getTextField(); + tf1.setBackground(Color.WHITE); + tf1.setForeground(Color.BLACK); + spinnerHH.addChangeListener(new ChangeListener() + { + public void stateChanged(ChangeEvent e) + { + selectedDate.set(Calendar.HOUR_OF_DAY, Integer.valueOf(spinnerHH.getValue().toString())); + updateCalendar(selectedDate); + } + }); + add(spinnerHH); + + spinnerMM = new JSpinner(); + + JSpinner.NumberEditor neMM = new JSpinner.NumberEditor(spinnerMM); + neMM.getTextField().setFont(Common.font_std); + spinnerMM.setEditor(neMM); + + spinnerMM.setForeground(Color.BLUE); + spinnerMM.getEditor().setBackground(UIManager.getColor("Panel.background")); + spinnerMM.setBorder(new LineBorder(UIManager.getColor("Button.darkShadow"))); + //spinnerMM.setModel(new SpinnerNumberModel(59, 0, 59, 1)); + spinnerMM.setFont(standard_font); + spinnerMM.setBounds(55, 190, 49, 18); + JTextField tf2 = ((JSpinner.DefaultEditor) spinnerMM.getEditor()).getTextField(); + tf2.setBackground(Color.WHITE); + tf2.setForeground(Color.BLACK); + spinnerMM.addChangeListener(new ChangeListener() + { + public void stateChanged(ChangeEvent e) + { + selectedDate.set(Calendar.MINUTE, Integer.valueOf(spinnerMM.getValue().toString())); + updateCalendar(selectedDate); + } + }); + add(spinnerMM); + + spinnerSS = new JSpinner(); + + JSpinner.NumberEditor neSS = new JSpinner.NumberEditor(spinnerSS); + neSS.getTextField().setFont(Common.font_std); + spinnerSS.setEditor(neSS); + + spinnerSS.getEditor().setBackground(UIManager.getColor("Panel.background")); + spinnerSS.setBorder(new LineBorder(UIManager.getColor("Button.darkShadow"))); + //spinnerSS.setModel(new SpinnerNumberModel(59, 0, 59, 1)); + spinnerSS.setFont(standard_font); + spinnerSS.setBounds(102, 190, 49, 18); + JTextField tf3 = ((JSpinner.DefaultEditor) spinnerSS.getEditor()).getTextField(); + tf3.setBackground(Color.WHITE); + tf3.setForeground(Color.BLACK); + spinnerSS.addChangeListener(new ChangeListener() + { + public void stateChanged(ChangeEvent e) + { + selectedDate.set(Calendar.SECOND, Integer.valueOf(spinnerSS.getValue().toString())); + updateCalendar(selectedDate); + } + }); + add(spinnerSS); + + lblHr = new JLabel("Hr"); + lblHr.setHorizontalAlignment(SwingConstants.TRAILING); + lblHr.setBounds(6, 172, 23, 16); + lblHr.setFont(standard_font); + add(lblHr); + + lblMm = new JLabel("Min"); + lblMm.setHorizontalAlignment(SwingConstants.TRAILING); + lblMm.setBounds(58, 172, 18, 16); + lblMm.setFont(standard_font); + add(lblMm); + + lblSs = new JLabel("Sec"); + lblSs.setHorizontalAlignment(SwingConstants.TRAILING); + lblSs.setBounds(109, 172, 23, 16); + lblSs.setFont(standard_font); + add(lblSs); + + comboBox.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + spinnerHH.setValue(Integer.valueOf(comboBox.getSelectedItem().toString().substring(0, 2))); + spinnerMM.setValue(Integer.valueOf(comboBox.getSelectedItem().toString().substring(3, 5))); + spinnerSS.setValue(Integer.valueOf(comboBox.getSelectedItem().toString().substring(6, 8))); + } + }); + comboBox.setModel(new DefaultComboBoxModel(new String[] + { "00:00:00", "05:59:59", "06:00:00", "11:59:59", "12:00:00", "17:59:59", "18:00:00", "23:59:59" })); + comboBox.setFont(standard_font); + comboBox.setBounds(158, 187, 103, 25); + add(comboBox); + } + + private void initGUI() + { + setLayout(null); + + displayDayNames(); + displayButtons(); + displayMonths(); + displayYears(); + + } +} diff --git a/b6/src/com/commander4j/db/JDBLocation.java b/b6/src/com/commander4j/db/JDBLocation.java index b2424f7f4..3791f1abc 100755 --- a/b6/src/com/commander4j/db/JDBLocation.java +++ b/b6/src/com/commander4j/db/JDBLocation.java @@ -61,6 +61,9 @@ public class JDBLocation private String db_msg_despatch_equip_track = ""; private String db_msg_prod_confirm = ""; private String db_msg_prod_unconfirm = ""; + private String db_msg_pallet_issue = ""; + private String db_msg_pallet_return = ""; + private String db_barcode_id = ""; private String dbStorageSection; private String dbStorageType; private String dbWarehouse; @@ -78,6 +81,7 @@ public class JDBLocation public static int field_storage_section = 10; public static int field_storage_bin = 10; public static int field_equipment_tracking_id = 15; + public static int field_barcode_id = 25; private String hostID; private String sessionID; private String dbEnabled; @@ -159,6 +163,9 @@ public void clear() setMsgPalletSplit("N"); setPermittedPalletStatus(""); setPermittedBatchStatus(""); + setMsgPalletIssue("N"); + setMsgPalletReturn("N"); + setBarcodeId(""); setEnabled(false); } @@ -609,6 +616,21 @@ public String getMsgProdUnConfirm() { return JUtility.replaceNullStringwithBlank(db_msg_prod_unconfirm); } + + public String getMsgPalletIssue() + { + return JUtility.replaceNullStringwithBlank(db_msg_pallet_issue); + } + + public String getMsgPalletReturn() + { + return JUtility.replaceNullStringwithBlank(db_msg_pallet_return); + } + + public String getBarcodeId() + { + return JUtility.replaceNullStringwithBlank(db_barcode_id); + } public String getPlant() { @@ -642,6 +664,9 @@ public void getPropertiesfromResultSet(ResultSet rs) setMsgProdUnConfirm(rs.getString("msg_prod_unconfirm")); setPermittedPalletStatus(rs.getString("permitted_pallet_status")); setPermittedBatchStatus(rs.getString("permitted_batch_status")); + setMsgPalletIssue(rs.getString("msg_pallet_issue")); + setMsgPalletReturn(rs.getString("msg_pallet_return")); + setBarcodeId(rs.getString("barcode_id")); setEnabled(rs.getString("enabled")); } catch (SQLException e) @@ -709,6 +734,26 @@ public Boolean isPalletDeleteMessageRequired() } return result; } + + public Boolean isPalletIssueMessageRequired() + { + Boolean result = false; + if (getMsgPalletIssue().equals("Y")) + { + result = true; + } + return result; + } + + public Boolean isPalletReturnMessageRequired() + { + Boolean result = false; + if (getMsgPalletReturn().equals("Y")) + { + result = true; + } + return result; + } public Boolean isJourneyRefRequired() { @@ -977,6 +1022,28 @@ public void setMsgPalletSplit(Boolean dbMsgPalletSplit) db_msg_pallet_split = "N"; } } + + public void setMsgPalletIssue(Boolean dbMsgPalletIssue) + { + if (dbMsgPalletIssue) + { + db_msg_pallet_issue = "Y"; + } else + { + db_msg_pallet_issue = "N"; + } + } + + public void setMsgPalletReturn(Boolean dbMsgPalletReturn) + { + if (dbMsgPalletReturn) + { + db_msg_pallet_return = "Y"; + } else + { + db_msg_pallet_return = "N"; + } + } public void setMsgDespatchEquipTrack(String dbMsgDespatchEquipTrack) { @@ -1021,6 +1088,21 @@ public void setMsgProdUnConfirm(String dbMsgProdUnConfirm) { db_msg_prod_unconfirm = dbMsgProdUnConfirm; } + + public void setMsgPalletIssue(String dbMsgPalletIssue) + { + db_msg_pallet_issue = dbMsgPalletIssue; + } + + public void setMsgPalletReturn(String dbMsgPalletReturn) + { + db_msg_pallet_return = dbMsgPalletReturn; + } + + public void setBarcodeId(String dbBarcodeId) + { + db_barcode_id = dbBarcodeId; + } public void setMsgProdConfirm(Boolean dbMsgProdConfirm) { @@ -1045,6 +1127,39 @@ public void setMsgProdUnConfirm(Boolean dbMsgProdUnConfirm) } } + + public String getLocationIDfromBarcodeID(String barcode) + { + String result = ""; + + PreparedStatement stmt; + ResultSet rs; + + try + { + stmt = Common.hostList.getHost(getHostID()).getConnection(getSessionID()).prepareStatement(Common.hostList.getHost(getHostID()).getSqlstatements().getSQL("JDBLocation.getLocationIDfromBarcodeID")); + stmt.setString(1, barcode); + stmt.setString(2, barcode); + stmt.setFetchSize(1); + rs = stmt.executeQuery(); + + if (rs.next()) + { + result = JUtility.replaceNullStringwithBlank(rs.getString("location_id")); + } else + { + setErrorMessage("Invalid Barcode [" + barcode + "]"); + result = ""; + } + rs.close(); + stmt.close(); + } catch (SQLException e) + { + setErrorMessage(e.getMessage()); + } + + return result; + } public void setPlant(String plant) { @@ -1126,7 +1241,10 @@ public boolean update() stmtupdate.setString(20, getMsgJourneyRef()); stmtupdate.setString(21, getEmailDespatch()); stmtupdate.setString(22, getMsgProdUnConfirm()); - stmtupdate.setString(23, getLocationID()); + stmtupdate.setString(23, getMsgPalletIssue()); + stmtupdate.setString(24, getMsgPalletReturn()); + stmtupdate.setString(25, getBarcodeId()); + stmtupdate.setString(26, getLocationID()); stmtupdate.execute(); diff --git a/b6/src/com/commander4j/db/JDBPallet.java b/b6/src/com/commander4j/db/JDBPallet.java index 927309497..34720ac32 100755 --- a/b6/src/com/commander4j/db/JDBPallet.java +++ b/b6/src/com/commander4j/db/JDBPallet.java @@ -1870,4 +1870,5 @@ public long writePalletHistory(long txnRef, String transactionType, String trans return txn; } + } diff --git a/b6/src/com/commander4j/messages/GenericMessageHeader.java b/b6/src/com/commander4j/messages/GenericMessageHeader.java index cfb9b639c..dcc9ef570 100755 --- a/b6/src/com/commander4j/messages/GenericMessageHeader.java +++ b/b6/src/com/commander4j/messages/GenericMessageHeader.java @@ -52,6 +52,7 @@ public class GenericMessageHeader private String interfaceDirection = ""; private Boolean validHostRef = false; private Boolean dbconnected = true; + private String xmlfilename = ""; private JXMLDocument xmlMessage; public static String msgStatusSuccess = "Success"; public static String msgStatusWarning = "Warning"; @@ -161,6 +162,16 @@ public Boolean isValidHostRef() { return validHostRef; } + public void setFilename(String filename) + { + xmlfilename = filename; + } + + public String getFilename() + { + return xmlfilename; + } + public Boolean readAddressInfo(String filename, String sessionID) { Boolean result; try @@ -170,6 +181,7 @@ public Boolean readAddressInfo(String filename, String sessionID) { if (result) { decodeHeader(xmlMessage); + setFilename(filename); } } catch (Exception ex) diff --git a/b6/src/com/commander4j/messages/IncommingBillOfMaterials.java b/b6/src/com/commander4j/messages/IncommingBillOfMaterials.java new file mode 100644 index 000000000..0a9328016 --- /dev/null +++ b/b6/src/com/commander4j/messages/IncommingBillOfMaterials.java @@ -0,0 +1,81 @@ +package com.commander4j.messages; + +import com.commander4j.bom.BomImport; +import com.commander4j.bom.JDBBomRecord; + +/** + * IncommingBillOfMaterials class allows an external system to create a Bill of Materials (Recipe). + * + */ + +public class IncommingBillOfMaterials +{ + + private String hostID; + private String sessionID; + private String errorMessage; + + public String getErrorMessage() + { + return errorMessage; + } + + private void setErrorMessage(String errorMessage) + { + this.errorMessage = errorMessage; + } + + public String getHostID() + { + return hostID; + } + + public void setHostID(String hostID) + { + this.hostID = hostID; + } + + public String getSessionID() + { + return sessionID; + } + + public void setSessionID(String sessionID) + { + this.sessionID = sessionID; + } + + public IncommingBillOfMaterials(String host, String session) + { + setSessionID(session); + setHostID(host); + } + + public Boolean processMessage(GenericMessageHeader gmh) + { + Boolean result = false; + + int errors = 0; + + setErrorMessage(""); + + BomImport bomImport = new BomImport(getHostID(),getSessionID()); + + JDBBomRecord importresult = bomImport.importBom(gmh.getFilename()); + + String bom_id = importresult.getBOMId(); + String bom_version = importresult.getBOMVersion(); + + if (errors == 0) + { + result = true; + } + + setErrorMessage("Bill of Materials - Recipe : ["+bom_id+"] Version : ["+bom_version+"] imported."); + + bomImport = null; + + return result; + + } +} diff --git a/b6/src/com/commander4j/messages/OutgoingPalletIssue.java b/b6/src/com/commander4j/messages/OutgoingPalletIssue.java new file mode 100644 index 000000000..7670e055c --- /dev/null +++ b/b6/src/com/commander4j/messages/OutgoingPalletIssue.java @@ -0,0 +1,377 @@ +package com.commander4j.messages; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : OutgoingProductionDeclarationConfirmation.java + * + * Package Name : com.commander4j.messages + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.sql.ResultSet; +import java.sql.SQLException; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; + +import org.apache.logging.log4j.Logger; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Text; + +import com.commander4j.db.JDBControl; +import com.commander4j.db.JDBCustomer; +import com.commander4j.db.JDBInterface; +import com.commander4j.db.JDBInterfaceLog; +import com.commander4j.db.JDBInterfaceRequest; +import com.commander4j.db.JDBMaterial; +import com.commander4j.db.JDBPalletHistory; +import com.commander4j.db.JDBProcessOrder; +import com.commander4j.db.JDBUom; +import com.commander4j.email.OutGoingMessage; +import com.commander4j.sys.Common; +import com.commander4j.util.JFileIO; +import com.commander4j.util.JUtility; +import com.commander4j.xml.JXMLDocument; + +/** + * The OutgoingPalletIssue message is designed to output a + * message to an external system (typically an ERP system) to inform it that a + * pallet (SSCC) has been issued. All the core data from + * the APP_PALLET table is exported along with linked information from + * APP_LOCATION, APP_MATERIAL and APP_PROCESS_ORDER + * + * @see com.commander4j.db.JDBPallet JDBPallet + * @see com.commander4j.db.JDBProcessOrder JDBProcessOrder + * @see com.commander4j.db.JDBMaterial JDBMaterial + * @see com.commander4j.db.JDBLocation JDBLocation + */ +public class OutgoingPalletIssue +{ + private String hostID; + private String sessionID; + final Logger logger = org.apache.logging.log4j.LogManager.getLogger(OutgoingPalletIssue.class); + private OutGoingMessage ogm; + + private String errorMessage; + private JFileIO fio = new JFileIO(); + + public OutgoingPalletIssue(String host, String session) + { + setHostID(host); + setSessionID(session); + } + + public Element addElement(Document doc, String name, String value) + { + Element temp = (Element) doc.createElement(name); + Text temp_value = doc.createTextNode(value); + temp.appendChild(temp_value); + return temp; + } + + public String getErrorMessage() + { + return errorMessage; + } + + public String getHostID() + { + return hostID; + } + + public String getSessionID() + { + return sessionID; + } + + public Boolean processMessage(Long transactionRef) + + { + Boolean result = false; + String path = ""; + JDBInterfaceLog il = new JDBInterfaceLog(getHostID(), getSessionID()); + GenericMessageHeader gmh = new GenericMessageHeader(); + JDBInterface inter = new JDBInterface(getHostID(), getSessionID()); + JDBUom uom = new JDBUom(getHostID(), getSessionID()); + JDBMaterial mat = new JDBMaterial(getHostID(), getSessionID()); + JDBProcessOrder order = new JDBProcessOrder(getHostID(), getSessionID()); + JDBControl ctrl = new JDBControl(getHostID(), getSessionID()); + JDBCustomer cust = new JDBCustomer(getHostID(), getSessionID()); + + String expiryMode; + expiryMode = ctrl.getKeyValue("EXPIRY DATE MODE"); + + String defaultBatchFormat; + defaultBatchFormat = ctrl.getKeyValue("BATCH FORMAT"); + + inter.getInterfaceProperties("Pallet Issue", "Output"); + String device = inter.getDevice(); + + JDBPalletHistory palhist = new JDBPalletHistory(getHostID(), getSessionID()); + ResultSet rs = palhist.getInterfacingData(transactionRef, "ISSUE", "TO", Long.valueOf(1), "SSCC", "asc"); + try + { + if (rs.next()) + { + palhist.getPropertiesfromResultSet(rs); + + try + { + DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); + DocumentBuilder builder = factory.newDocumentBuilder(); + + Document document = builder.newDocument(); + + Element message = (Element) document.createElement("message"); + + Element hostUniqueID = addElement(document, "hostRef", Common.hostList.getHost(getHostID()).getUniqueID()); + message.appendChild(hostUniqueID); + + Element messageRef = addElement(document, "messageRef", String.valueOf(transactionRef)); + message.appendChild(messageRef); + + Element messageType = addElement(document, "interfaceType", "Pallet Issue"); + message.appendChild(messageType); + + Element messageInformation = addElement(document, "messageInformation", "SSCC=" + palhist.getPallet().getSSCC()); + message.appendChild(messageInformation); + + Element messageDirection = addElement(document, "interfaceDirection", "Output"); + message.appendChild(messageDirection); + + Element messageDate = addElement(document, "messageDate", JUtility.getISOTimeStampStringFormat(JUtility.getSQLDateTime())); + message.appendChild(messageDate); + + Element productionDeclaration = (Element) document.createElement("palletIssue"); + + Element sscc = addElement(document, "SSCC", palhist.getPallet().getSSCC()); + productionDeclaration.appendChild(sscc); + + Element processOrder = addElement(document, "processOrder", palhist.getPallet().getProcessOrder()); + productionDeclaration.appendChild(processOrder); + + Element recipe = addElement(document, "recipe", palhist.getPallet().getProcessOrderObj(false).getRecipe()); + productionDeclaration.appendChild(recipe); + + Element recipeVersion = addElement(document, "recipeVersion", palhist.getPallet().getProcessOrderObj(false).getRecipeVersion()); + productionDeclaration.appendChild(recipeVersion); + + Element required_resource = addElement(document, "requiredResource", palhist.getPallet().getProcessOrderObj(false).getRequiredResource()); + productionDeclaration.appendChild(required_resource); + + Element material = addElement(document, "material", palhist.getPallet().getMaterial()); + productionDeclaration.appendChild(material); + + if (mat.getMaterialProperties(palhist.getPallet().getMaterial()) == true) + { + Element description = addElement(document, "description", mat.getDescription()); + productionDeclaration.appendChild(description); + Element old_code = addElement(document, "old_code", mat.getOldMaterial()); + productionDeclaration.appendChild(old_code); + } else + { + Element description = addElement(document, "description", ""); + productionDeclaration.appendChild(description); + Element old_code = addElement(document, "old_code", ""); + productionDeclaration.appendChild(old_code); + } + + if (order.getProcessOrderProperties(palhist.getPallet().getProcessOrder()) == true) + { + Element customer = addElement(document, "customerID", order.getCustomerID()); + productionDeclaration.appendChild(customer); + + if (cust.getCustomerProperties(order.getCustomerID())==true) + { + Element customerName = addElement(document, "customerName",cust.getName()); + productionDeclaration.appendChild(customerName); + } + } + else + { + Element customer = addElement(document, "customerID", ""); + productionDeclaration.appendChild(customer); + } + + Element ean = addElement(document, "ean", palhist.getPallet().getEAN()); + productionDeclaration.appendChild(ean); + + Element variant = addElement(document, "variant", palhist.getPallet().getVariant()); + productionDeclaration.appendChild(variant); + + Element status = addElement(document, "status", palhist.getPallet().getStatus()); + productionDeclaration.appendChild(status); + + Element batchDefault = addElement(document, "batchDefaultFormat", defaultBatchFormat); + productionDeclaration.appendChild(batchDefault); + + Element batch = addElement(document, "batch", palhist.getPallet().getBatchNumber()); + productionDeclaration.appendChild(batch); + + Element batchStatus = addElement(document, "batchStatus", palhist.getPallet().getMaterialBatchStatus()); + productionDeclaration.appendChild(batchStatus); + + Element expiryDateMode = addElement(document, "expiry_Mode", expiryMode); + productionDeclaration.appendChild(expiryDateMode); + + if (expiryMode.equals("BATCH") == true) + { + Element expiryDate = addElement(document, "expiryDate", JUtility.getISOTimeStampStringFormat(palhist.getPallet().getMaterialBatchExpiryDate())); + productionDeclaration.appendChild(expiryDate); + } else + { + Element expiryDate = addElement(document, "expiryDate", JUtility.getISOTimeStampStringFormat(palhist.getPallet().getBatchExpiry())); + productionDeclaration.appendChild(expiryDate); + } + + Element location = addElement(document, "location", palhist.getPallet().getLocationID()); + productionDeclaration.appendChild(location); + + Element name = addElement(document, "name", palhist.getPallet().getLocationObj().getDescription()); + productionDeclaration.appendChild(name); + + Element gln = addElement(document, "gln", palhist.getPallet().getLocationObj().getGLN()); + productionDeclaration.appendChild(gln); + + Element plant = addElement(document, "plant", palhist.getPallet().getLocationObj().getPlant()); + productionDeclaration.appendChild(plant); + + Element warehouse = addElement(document, "warehouse", palhist.getPallet().getLocationObj().getWarehouse()); + productionDeclaration.appendChild(warehouse); + + Element storageLocation = addElement(document, "storageLocation", palhist.getPallet().getLocationObj().getStorageLocation()); + productionDeclaration.appendChild(storageLocation); + + Element storageSection = addElement(document, "storageSection", palhist.getPallet().getLocationObj().getStorageSection()); + productionDeclaration.appendChild(storageSection); + + Element storageBin = addElement(document, "storageBin", palhist.getPallet().getLocationObj().getStorageBin()); + productionDeclaration.appendChild(storageBin); + + Element storageType = addElement(document, "storageType", palhist.getPallet().getLocationObj().getStorageType()); + productionDeclaration.appendChild(storageType); + + Element locationBarcodeId = addElement(document, "barcodeId", palhist.getPallet().getLocationObj().getBarcodeId()); + productionDeclaration.appendChild(locationBarcodeId); + + Element productionQuantity = addElement(document, "quantity", String.valueOf(palhist.getPallet().getQuantity())); + productionDeclaration.appendChild(productionQuantity); + + String paluom = palhist.getPallet().getUom(); + paluom = uom.convertUom(inter.getUOMConversion(), paluom); + + Element productionUOM = addElement(document, "uom", paluom); + productionDeclaration.appendChild(productionUOM); + + Element productionConfirmed = addElement(document, "confirmed", palhist.getPallet().getConfirmed()); + productionDeclaration.appendChild(productionConfirmed); + + Element productionDate = addElement(document, "productionDate", JUtility.getISOTimeStampStringFormat(palhist.getPallet().getDateOfManufacture())); + productionDeclaration.appendChild(productionDate); + + Element messageData = (Element) document.createElement("messageData"); + messageData.appendChild(productionDeclaration); + + message.appendChild(messageData); + + document.appendChild(message); + + JXMLDocument xmld = new JXMLDocument(); + xmld.setDocument(document); + gmh.decodeHeader(xmld); + + if (device.equals("Disk") | device.equals("Email")) + { + + path = inter.getRealPath(); + if (fio.writeToDisk(path, document, transactionRef, "_" + palhist.getPallet().getLocationID().replace(" ", "_") + "_PalletIssue.xml") == true) + { + result = true; + il.write(gmh, GenericMessageHeader.msgStatusSuccess, "Processed OK", "File Write", fio.getFilename()); + setErrorMessage(""); + + if (device.equals("Email")) + { + ogm = new OutGoingMessage(inter, transactionRef, fio); + ogm.sendEmail(); + } + } else + { + result = false; + il.write(gmh, GenericMessageHeader.msgStatusError, fio.getErrorMessage(), "File Write", fio.getFilename()); + setErrorMessage(fio.getErrorMessage()); + } + } + + } + + catch (Exception ex) + { + logger.error("Error sending message. " + ex.getMessage()); + ex.printStackTrace(); + + } + } else + { + logger.debug("Could not find Pallet History Interfacing Data for Transaction Ref " + String.valueOf(transactionRef)); + } + rs.close(); + } catch (SQLException e) + { + logger.debug("Error finding Pallet History Interfacing Data for Transaction Ref " + String.valueOf(transactionRef) + " " + e.getMessage()); + } + + return result; + } + + private void setErrorMessage(String errorMessage) + { + this.errorMessage = errorMessage; + } + + public void setHostID(String host) + { + hostID = host; + } + + public void setSessionID(String session) + { + sessionID = session; + } + + public void submit(long dbTransactionRef) + { + JDBInterface inter = new JDBInterface(getHostID(), getSessionID()); + inter.getInterfaceProperties("Pallet Issue", "Output"); + if (inter.isEnabled() == true) + { + JDBInterfaceRequest ir = new JDBInterfaceRequest(getHostID(), getSessionID()); + ir.write(dbTransactionRef, "Pallet Issue"); + } else + { + logger.debug("Interface Pallet Issue - Output is DISABLED"); + } + + } + +} diff --git a/b6/src/com/commander4j/messages/OutgoingPalletReturn.java b/b6/src/com/commander4j/messages/OutgoingPalletReturn.java new file mode 100644 index 000000000..6790178e1 --- /dev/null +++ b/b6/src/com/commander4j/messages/OutgoingPalletReturn.java @@ -0,0 +1,377 @@ +package com.commander4j.messages; + +/** + * @author David Garratt + * + * Project Name : Commander4j + * + * Filename : OutgoingProductionDeclarationConfirmation.java + * + * Package Name : com.commander4j.messages + * + * License : GNU General Public License + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * http://www.commander4j.com/website/license.html. + * + */ + +import java.sql.ResultSet; +import java.sql.SQLException; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; + +import org.apache.logging.log4j.Logger; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Text; + +import com.commander4j.db.JDBControl; +import com.commander4j.db.JDBCustomer; +import com.commander4j.db.JDBInterface; +import com.commander4j.db.JDBInterfaceLog; +import com.commander4j.db.JDBInterfaceRequest; +import com.commander4j.db.JDBMaterial; +import com.commander4j.db.JDBPalletHistory; +import com.commander4j.db.JDBProcessOrder; +import com.commander4j.db.JDBUom; +import com.commander4j.email.OutGoingMessage; +import com.commander4j.sys.Common; +import com.commander4j.util.JFileIO; +import com.commander4j.util.JUtility; +import com.commander4j.xml.JXMLDocument; + +/** + * The OutgoingPalletIssue message is designed to output a + * message to an external system (typically an ERP system) to inform it that a + * pallet (SSCC) has been issued. All the core data from + * the APP_PALLET table is exported along with linked information from + * APP_LOCATION, APP_MATERIAL and APP_PROCESS_ORDER + * + * @see com.commander4j.db.JDBPallet JDBPallet + * @see com.commander4j.db.JDBProcessOrder JDBProcessOrder + * @see com.commander4j.db.JDBMaterial JDBMaterial + * @see com.commander4j.db.JDBLocation JDBLocation + */ +public class OutgoingPalletReturn +{ + private String hostID; + private String sessionID; + final Logger logger = org.apache.logging.log4j.LogManager.getLogger(OutgoingPalletReturn.class); + private OutGoingMessage ogm; + + private String errorMessage; + private JFileIO fio = new JFileIO(); + + public OutgoingPalletReturn(String host, String session) + { + setHostID(host); + setSessionID(session); + } + + public Element addElement(Document doc, String name, String value) + { + Element temp = (Element) doc.createElement(name); + Text temp_value = doc.createTextNode(value); + temp.appendChild(temp_value); + return temp; + } + + public String getErrorMessage() + { + return errorMessage; + } + + public String getHostID() + { + return hostID; + } + + public String getSessionID() + { + return sessionID; + } + + public Boolean processMessage(Long transactionRef) + + { + Boolean result = false; + String path = ""; + JDBInterfaceLog il = new JDBInterfaceLog(getHostID(), getSessionID()); + GenericMessageHeader gmh = new GenericMessageHeader(); + JDBInterface inter = new JDBInterface(getHostID(), getSessionID()); + JDBUom uom = new JDBUom(getHostID(), getSessionID()); + JDBMaterial mat = new JDBMaterial(getHostID(), getSessionID()); + JDBProcessOrder order = new JDBProcessOrder(getHostID(), getSessionID()); + JDBControl ctrl = new JDBControl(getHostID(), getSessionID()); + JDBCustomer cust = new JDBCustomer(getHostID(), getSessionID()); + + String expiryMode; + expiryMode = ctrl.getKeyValue("EXPIRY DATE MODE"); + + String defaultBatchFormat; + defaultBatchFormat = ctrl.getKeyValue("BATCH FORMAT"); + + inter.getInterfaceProperties("Pallet Return", "Output"); + String device = inter.getDevice(); + + JDBPalletHistory palhist = new JDBPalletHistory(getHostID(), getSessionID()); + ResultSet rs = palhist.getInterfacingData(transactionRef, "RETURN", "FROM", Long.valueOf(1), "SSCC", "asc"); + try + { + if (rs.next()) + { + palhist.getPropertiesfromResultSet(rs); + + try + { + DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); + DocumentBuilder builder = factory.newDocumentBuilder(); + + Document document = builder.newDocument(); + + Element message = (Element) document.createElement("message"); + + Element hostUniqueID = addElement(document, "hostRef", Common.hostList.getHost(getHostID()).getUniqueID()); + message.appendChild(hostUniqueID); + + Element messageRef = addElement(document, "messageRef", String.valueOf(transactionRef)); + message.appendChild(messageRef); + + Element messageType = addElement(document, "interfaceType", "Pallet Return"); + message.appendChild(messageType); + + Element messageInformation = addElement(document, "messageInformation", "SSCC=" + palhist.getPallet().getSSCC()); + message.appendChild(messageInformation); + + Element messageDirection = addElement(document, "interfaceDirection", "Output"); + message.appendChild(messageDirection); + + Element messageDate = addElement(document, "messageDate", JUtility.getISOTimeStampStringFormat(JUtility.getSQLDateTime())); + message.appendChild(messageDate); + + Element productionDeclaration = (Element) document.createElement("palletReturn"); + + Element sscc = addElement(document, "SSCC", palhist.getPallet().getSSCC()); + productionDeclaration.appendChild(sscc); + + Element processOrder = addElement(document, "processOrder", palhist.getPallet().getProcessOrder()); + productionDeclaration.appendChild(processOrder); + + Element recipe = addElement(document, "recipe", palhist.getPallet().getProcessOrderObj(false).getRecipe()); + productionDeclaration.appendChild(recipe); + + Element recipeVersion = addElement(document, "recipeVersion", palhist.getPallet().getProcessOrderObj(false).getRecipeVersion()); + productionDeclaration.appendChild(recipeVersion); + + Element required_resource = addElement(document, "requiredResource", palhist.getPallet().getProcessOrderObj(false).getRequiredResource()); + productionDeclaration.appendChild(required_resource); + + Element material = addElement(document, "material", palhist.getPallet().getMaterial()); + productionDeclaration.appendChild(material); + + if (mat.getMaterialProperties(palhist.getPallet().getMaterial()) == true) + { + Element description = addElement(document, "description", mat.getDescription()); + productionDeclaration.appendChild(description); + Element old_code = addElement(document, "old_code", mat.getOldMaterial()); + productionDeclaration.appendChild(old_code); + } else + { + Element description = addElement(document, "description", ""); + productionDeclaration.appendChild(description); + Element old_code = addElement(document, "old_code", ""); + productionDeclaration.appendChild(old_code); + } + + if (order.getProcessOrderProperties(palhist.getPallet().getProcessOrder()) == true) + { + Element customer = addElement(document, "customerID", order.getCustomerID()); + productionDeclaration.appendChild(customer); + + if (cust.getCustomerProperties(order.getCustomerID())==true) + { + Element customerName = addElement(document, "customerName",cust.getName()); + productionDeclaration.appendChild(customerName); + } + } + else + { + Element customer = addElement(document, "customerID", ""); + productionDeclaration.appendChild(customer); + } + + Element ean = addElement(document, "ean", palhist.getPallet().getEAN()); + productionDeclaration.appendChild(ean); + + Element variant = addElement(document, "variant", palhist.getPallet().getVariant()); + productionDeclaration.appendChild(variant); + + Element status = addElement(document, "status", palhist.getPallet().getStatus()); + productionDeclaration.appendChild(status); + + Element batchDefault = addElement(document, "batchDefaultFormat", defaultBatchFormat); + productionDeclaration.appendChild(batchDefault); + + Element batch = addElement(document, "batch", palhist.getPallet().getBatchNumber()); + productionDeclaration.appendChild(batch); + + Element batchStatus = addElement(document, "batchStatus", palhist.getPallet().getMaterialBatchStatus()); + productionDeclaration.appendChild(batchStatus); + + Element expiryDateMode = addElement(document, "expiry_Mode", expiryMode); + productionDeclaration.appendChild(expiryDateMode); + + if (expiryMode.equals("BATCH") == true) + { + Element expiryDate = addElement(document, "expiryDate", JUtility.getISOTimeStampStringFormat(palhist.getPallet().getMaterialBatchExpiryDate())); + productionDeclaration.appendChild(expiryDate); + } else + { + Element expiryDate = addElement(document, "expiryDate", JUtility.getISOTimeStampStringFormat(palhist.getPallet().getBatchExpiry())); + productionDeclaration.appendChild(expiryDate); + } + + Element location = addElement(document, "location", palhist.getPallet().getLocationID()); + productionDeclaration.appendChild(location); + + Element name = addElement(document, "name", palhist.getPallet().getLocationObj().getDescription()); + productionDeclaration.appendChild(name); + + Element gln = addElement(document, "gln", palhist.getPallet().getLocationObj().getGLN()); + productionDeclaration.appendChild(gln); + + Element plant = addElement(document, "plant", palhist.getPallet().getLocationObj().getPlant()); + productionDeclaration.appendChild(plant); + + Element warehouse = addElement(document, "warehouse", palhist.getPallet().getLocationObj().getWarehouse()); + productionDeclaration.appendChild(warehouse); + + Element storageLocation = addElement(document, "storageLocation", palhist.getPallet().getLocationObj().getStorageLocation()); + productionDeclaration.appendChild(storageLocation); + + Element storageSection = addElement(document, "storageSection", palhist.getPallet().getLocationObj().getStorageSection()); + productionDeclaration.appendChild(storageSection); + + Element storageBin = addElement(document, "storageBin", palhist.getPallet().getLocationObj().getStorageBin()); + productionDeclaration.appendChild(storageBin); + + Element storageType = addElement(document, "storageType", palhist.getPallet().getLocationObj().getStorageType()); + productionDeclaration.appendChild(storageType); + + Element locationBarcodeId = addElement(document, "barcodeId", palhist.getPallet().getLocationObj().getBarcodeId()); + productionDeclaration.appendChild(locationBarcodeId); + + Element productionQuantity = addElement(document, "quantity", String.valueOf(palhist.getPallet().getQuantity())); + productionDeclaration.appendChild(productionQuantity); + + String paluom = palhist.getPallet().getUom(); + paluom = uom.convertUom(inter.getUOMConversion(), paluom); + + Element productionUOM = addElement(document, "uom", paluom); + productionDeclaration.appendChild(productionUOM); + + Element productionConfirmed = addElement(document, "confirmed", palhist.getPallet().getConfirmed()); + productionDeclaration.appendChild(productionConfirmed); + + Element productionDate = addElement(document, "productionDate", JUtility.getISOTimeStampStringFormat(palhist.getPallet().getDateOfManufacture())); + productionDeclaration.appendChild(productionDate); + + Element messageData = (Element) document.createElement("messageData"); + messageData.appendChild(productionDeclaration); + + message.appendChild(messageData); + + document.appendChild(message); + + JXMLDocument xmld = new JXMLDocument(); + xmld.setDocument(document); + gmh.decodeHeader(xmld); + + if (device.equals("Disk") | device.equals("Email")) + { + + path = inter.getRealPath(); + if (fio.writeToDisk(path, document, transactionRef, "_" + palhist.getPallet().getLocationID().replace(" ", "_") + "_PalletReturn.xml") == true) + { + result = true; + il.write(gmh, GenericMessageHeader.msgStatusSuccess, "Processed OK", "File Write", fio.getFilename()); + setErrorMessage(""); + + if (device.equals("Email")) + { + ogm = new OutGoingMessage(inter, transactionRef, fio); + ogm.sendEmail(); + } + } else + { + result = false; + il.write(gmh, GenericMessageHeader.msgStatusError, fio.getErrorMessage(), "File Write", fio.getFilename()); + setErrorMessage(fio.getErrorMessage()); + } + } + + } + + catch (Exception ex) + { + logger.error("Error sending message. " + ex.getMessage()); + ex.printStackTrace(); + + } + } else + { + logger.debug("Could not find Pallet History Interfacing Data for Transaction Ref " + String.valueOf(transactionRef)); + } + rs.close(); + } catch (SQLException e) + { + logger.debug("Error finding Pallet History Interfacing Data for Transaction Ref " + String.valueOf(transactionRef) + " " + e.getMessage()); + } + + return result; + } + + private void setErrorMessage(String errorMessage) + { + this.errorMessage = errorMessage; + } + + public void setHostID(String host) + { + hostID = host; + } + + public void setSessionID(String session) + { + sessionID = session; + } + + public void submit(long dbTransactionRef) + { + JDBInterface inter = new JDBInterface(getHostID(), getSessionID()); + inter.getInterfaceProperties("Pallet Return", "Output"); + if (inter.isEnabled() == true) + { + JDBInterfaceRequest ir = new JDBInterfaceRequest(getHostID(), getSessionID()); + ir.write(dbTransactionRef, "Pallet Return"); + } else + { + logger.debug("Interface Pallet Return - Output is DISABLED"); + } + + } + +} diff --git a/b6/src/com/commander4j/sys/Common.java b/b6/src/com/commander4j/sys/Common.java index dc3e75f4c..5b742ea83 100644 --- a/b6/src/com/commander4j/sys/Common.java +++ b/b6/src/com/commander4j/sys/Common.java @@ -62,6 +62,7 @@ */ public class Common { + public static int sessionCount = 0; public static SendEmail sendmail = new SendEmail(); //LOGON STATUS @@ -80,8 +81,6 @@ public class Common public static String appAuthor="David Garratt"; public static String appSupportEmail="support@commander4j.com"; - - public static int LFAdjustWidth=0; public static int LFAdjustHeight=0; public static int LFTreeMenuAdjustWidth=0; @@ -147,16 +146,17 @@ public class Common public static String[] locationStatusIncBlank = new String[] { "", "Valid", "Invalid" }; public static String[] processOrderStatus = new String[] { "Discarded", "Finished", "Held", "Ready", "Running" }; public static String[] processOrderStatusincBlank = new String[] { "", "Discarded", "Finished", "Held", "Ready", "Running" }; - public static String[] messageTypesexclBlank = new String[] {"Batch Status Change", "Despatch Confirmation", "Despatch Email", "Despatch Pre Advice", "Equipment Tracking", "Journey Definition", "Location", "Material Auto Move", "Material Definition", "Pallet Delete", "Pallet Move", "Pallet Split", "Pallet Status Change", "Process Order", "Process Order Status Change", "Production Declaration", "Production Unconfirm", "Sort Notification", "QM Inspection Request", "QM Inspection Result" }; - public static String[] messageTypesincBlank = new String[] { "", "Batch Status Change", "Despatch Confirmation", "Despatch Email", "Despatch Pre Advice", "Equipment Tracking", "Journey Definition", "Location", "Material Auto Move", "Material Definition", "Pallet Delete", "Pallet Move", "Pallet Split", "Pallet Status Change", "Process Order", "Process Order Status Change", "Production Declaration", "Production Unconfirm", "Sort Notification", "QM Inspection Request", "QM Inspection Result" }; + public static String[] messageTypesexclBlank = new String[] {"Bill of Materials", "Batch Status Change", "Despatch Confirmation", "Despatch Email", "Despatch Pre Advice", "Equipment Tracking", "Journey Definition", "Location", "Material Auto Move", "Material Definition", "Pallet Delete", "Pallet Move", "Pallet Split", "Pallet Issue","Pallet Return", "Pallet Status Change", "Process Order", "Process Order Status Change", "Production Declaration", "Production Unconfirm", "Sort Notification", "QM Inspection Request", "QM Inspection Result" }; + public static String[] messageTypesincBlank = new String[] { "", "Bill of Materials", "Batch Status Change", "Despatch Confirmation", "Despatch Email", "Despatch Pre Advice", "Equipment Tracking", "Journey Definition", "Location", "Material Auto Move", "Material Definition", "Pallet Delete", "Pallet Move", "Pallet Split", "Pallet Issue","Pallet Return", "Pallet Status Change", "Process Order", "Process Order Status Change", "Production Declaration", "Production Unconfirm", "Sort Notification", "QM Inspection Request", "QM Inspection Result" }; - public static String[] transactionTypes = new String[] { "","CLONE", "DESPATCH", "EDIT", "PRINT","PROD DEC", "STATUS CHANGE","MHN","SPLIT","MOVE","MANUAL","SORT"}; + public static String[] transactionTypes = new String[] { "","CLONE", "DESPATCH", "EDIT", "ISSUE","RETURN","PRINT","PROD DEC", "STATUS CHANGE","MHN","SPLIT","MOVE","MANUAL","SORT"}; public static String[] transactionSubTypes = new String[] { "", "ADD","REMOVE","CREATE","PRINT", "CONFIRM", "FROM", "TO", "MANUAL", "LABEL","DECISION","BEFORE","AFTER","DELETE","UNCONFIRM","NOTIFY" }; public static String[] auditEventActions = new String[] { "", "ADD", "REMOVE", "CREATE", "DELETE", "RENAME", "ENABLE", "DISABLE" }; public static String[] auditEventTypes = new String[] { "", "USER", "GROUP", "USER_GROUP", "GROUP_MODULE" }; public static String[] locationSortBy = new String[] { "LOCATION_ID", "PLANT", "WAREHOUSE", "DESCRIPTION", "GLN", "STORAGE_LOCATION", "STORAGE_TYPE", "STORAGE_SECTION", "STORAGE_BIN"}; public static String[] materialSortBy =new String[] {"MATERIAL", "MATERIAL_TYPE", "DESCRIPTION", "BASE_UOM", "PRODUCTION_UOM", "ISSUE_UOM", "SHELF_LIFE", "SHELF_LIFE_RULE", "DEFAULT_PALLET_STATUS", "DEFAULT_BATCH_STATUS","EQUIPMENT_TYPE"}; public static String[] processSortBy = new String[] { "PROCESS_ORDER", "MATERIAL", "DESCRIPTION", "STATUS", "LOCATION_ID", "DUE_DATE", "RECIPE_ID" }; + public static String[] viewBOMSortBy =new String[] {"BOM_ID,BOM_VERSION,STAGE,INPUT_OUTPUT,SEQUENCE", "MATERIAL", "TYPE", "LOCATION_ID", "UOM"}; public static final JImageIconLoader imageIconloader = new JImageIconLoader(); public static final WeightSampleDetailCellRenderer weight_sample_list = new WeightSampleDetailCellRenderer(); @@ -179,6 +179,7 @@ public class Common public final static Font font_small = new Font("Arial", Font.PLAIN, 9); public final static Font font_std = new Font("Arial", Font.PLAIN, 11); public final static Font font_input = new Font("Arial", Font.PLAIN, 11); + public final static Font font_input_large = new Font("Arial", Font.PLAIN, 13); public final static Font font_popup = new Font("Arial", Font.PLAIN, 11); public final static Font font_bold = new Font("Arial", Font.BOLD, 11); public final static Font font_italic = new Font("Arial", Font.ITALIC, 11); @@ -192,6 +193,8 @@ public class Common public final static Font font_table_header = new java.awt.Font("Arial", Font.PLAIN, 11); public final static Font font_table = new java.awt.Font("Monospaced", 0, 11); public final static Font font_textArea = new java.awt.Font("Monospaced", 0, 14); + public final static Font font_tree_tooltip = new Font( "Monospaced", Font.PLAIN, 14); + public final static Font font_bom = new Font("Arial", Font.PLAIN, 14); public static final TableCellRenderer_Default renderer_table = new TableCellRenderer_Default(); public static final TableCellRenderer_PanelResults renderer_table_panel_results = new TableCellRenderer_PanelResults(); @@ -217,7 +220,6 @@ public class Common public final static Color color_edit_properties = new Color(241, 241, 241); public final static Color color_app_window = new Color(241, 241, 241); - public final static int menuTreeWidth = 250; public static JWindowSplash splash; public static JWindowProgress progress; @@ -318,7 +320,13 @@ public class Common public final static Icon icon_production_line_16x16 = Common.imageIconloader.getImageIcon16x16(Common.image_production_line); public final static Icon icon_weight_capture_16x16 = Common.imageIconloader.getImageIcon16x16(Common.image_weight_capture); public final static Icon icon_pallet_sampling_16x16 = Common.imageIconloader.getImageIcon16x16(Common.image_pallet_sample); - + public final static Icon icon_process_16x16 = Common.imageIconloader.getImageIcon16x16(Common.image_process); + public final static Icon icon_import_16x16 = Common.imageIconloader.getImageIcon16x16(Common.image_import); + public final static Icon icon_bom_16x16 = Common.imageIconloader.getImageIcon16x16(Common.image_bom); + + public final static String image_import = "file_open.gif"; + public final static String image_bom = "recipe.gif"; + public final static String image_process = "release.gif"; public final static String image_pallet_sample = "pallet_sampling.gif"; public final static String image_weight_capture = "weight-capture.gif"; public final static String image_production_line = "prod_lines.gif"; diff --git a/b6/src/com/commander4j/sys/JLaunchMenu.java b/b6/src/com/commander4j/sys/JLaunchMenu.java index 67ed5867f..e1e4b63eb 100644 --- a/b6/src/com/commander4j/sys/JLaunchMenu.java +++ b/b6/src/com/commander4j/sys/JLaunchMenu.java @@ -34,6 +34,16 @@ import javax.swing.JInternalFrame; import com.commander4j.app.*; +import com.commander4j.bom.JDialogBomDefaultsProperties; +import com.commander4j.bom.JInternalFrameBom; +import com.commander4j.bom.JInternalFrameBomDefaults; +import com.commander4j.bom.JInternalFrameBomElementProperties; +import com.commander4j.bom.JInternalFrameBomElements; +import com.commander4j.bom.JInternalFrameBomListAdmin; +import com.commander4j.bom.JInternalFrameBomListProperties; +import com.commander4j.bom.JInternalFrameBomStructureAdmin; +import com.commander4j.bom.JInternalFrameBomStructureProperties; +import com.commander4j.bom.JInternalFrameViewBomEnquiry; import com.commander4j.db.JDBModule; import com.commander4j.interfaces.JInternalFrameInterfaceAdmin; import com.commander4j.interfaces.JInternalFrameInterfaceControl; @@ -167,8 +177,8 @@ private static void displayDialog(JDialog u, String optionName) int leftmargin = ((screensize.width - formsize.width) / 2); int topmargin = ((screensize.height - formsize.height) / 2); - u.setLocation(parentPos.x + leftmargin , parentPos.y+ topmargin); - + u.setLocation(parentPos.x + leftmargin, parentPos.y + topmargin); + u.setModal(true); u.setVisible(true); } @@ -411,7 +421,7 @@ public static void runDialog(String optionName, String strParam) u.setTitle(mod.getDescription()); displayDialog(u, optionName); } - + } public static void runDialog(String optionName, String strParam1, String strParam2, String strParam3) @@ -419,6 +429,7 @@ public static void runDialog(String optionName, String strParam1, String strPara mod.setModuleId(optionName); mod.getModuleProperties(); + if (optionName.equals("FRM_QM_TEST")) { final JDialogQMTestProperties u; @@ -432,9 +443,18 @@ public static void runDialog(String optionName, String strParam1, String strPara u = new JDialogMaterialCustomerDataProperties(Common.mainForm, strParam1, strParam2, strParam3); displayDialog(u, optionName); } + + if (optionName.equals("FRM_BOM_DEFAULTS_EDIT")) + { + final JDialogBomDefaultsProperties u; + u = new JDialogBomDefaultsProperties(Common.mainForm, strParam1, strParam2, strParam3); + displayDialog(u, optionName); + } + } + public static void runDialog(String optionName, String strParam1, String strParam2) { @@ -494,6 +514,32 @@ public static void runForm(String optionName) mod.setModuleId(optionName); mod.getModuleProperties(); + + if (optionName.equals("FRM_BOM_ENQUIRY")) + { + final JInternalFrameViewBomEnquiry u; + if (isLoaded(JInternalFrameViewBomEnquiry.class)) + setVisible(JInternalFrameViewBomEnquiry.class); + else + { + u = new JInternalFrameViewBomEnquiry(); + u.setTitle(mod.getDescription()); + displayForm(u, optionName); + } + } + + if (optionName.equals("FRM_BOM_ADMIN")) + { + final JInternalFrameBom u; + if (isLoaded(JInternalFrameBom.class)) + setVisible(JInternalFrameBom.class); + else + { + u = new JInternalFrameBom("", ""); + u.setTitle(mod.getDescription()); + displayForm(u, optionName); + } + } if (optionName.equals("FRM_ADMIN_AUDIT_PERM")) { @@ -1339,7 +1385,7 @@ public static void runForm(String optionName) displayForm(u, optionName); } } - + if (optionName.equals("FRM_ADMIN_OPERATIVES")) { final JInternalFrameOperativeAdmin u; @@ -1352,7 +1398,7 @@ public static void runForm(String optionName) displayForm(u, optionName); } } - + if (optionName.equals("FRM_ADMIN_PACKING_LINES")) { final JInternalFramePackingLineAdmin u; @@ -1379,6 +1425,19 @@ public static void runForm(String optionName) } } + if (optionName.equals("FRM_BOM_STRUCTURE")) + { + final JInternalFrameBomStructureAdmin u; + if (isLoaded(JInternalFrameBomStructureAdmin.class)) + setVisible(JInternalFrameBomStructureAdmin.class); + else + { + u = new JInternalFrameBomStructureAdmin(); + u.setTitle(mod.getDescription()); + displayForm(u, optionName); + } + } + if (optionName.equals("FRM_ADMIN_CUSTOMER")) { final JInternalFrameCustomerAdmin u; @@ -1391,7 +1450,20 @@ public static void runForm(String optionName) displayForm(u, optionName); } } - + + if (optionName.equals("FRM_BOM_LIST")) + { + final JInternalFrameBomListAdmin u; + if (isLoaded(JInternalFrameBomListAdmin.class)) + setVisible(JInternalFrameBomListAdmin.class); + else + { + u = new JInternalFrameBomListAdmin(); + u.setTitle(mod.getDescription()); + displayForm(u, optionName); + } + } + if (optionName.equals("FRM_ADMIN_AUTO_LABELLER")) { final JInternalFrameAutoLabellerLines u; @@ -1431,6 +1503,24 @@ public static void runForm(String optionName) } } + if (optionName.equals("FRM_BOM_DEFAULTS")) + { + final JInternalFrameBomDefaults u; + if (isLoaded(JInternalFrameBomDefaults.class)) + setVisible(JInternalFrameBomDefaults.class); + else + { + u = new JInternalFrameBomDefaults(); + u.setTitle(mod.getDescription()); + displayForm(u, optionName); + } + } + + if (optionName.equals("FRM_BOM_ELEMENTS")) + { + runForm("FRM_BOM_ELEMENTS",""); + } + if (optionName.equals("FRM_ADMIN_ARCHIVE")) { final JInternalFrameArchiveAdmin u; @@ -1528,6 +1618,8 @@ public static void runForm(String optionName, String StrParam1, String StrParam2 { mod.setModuleId(optionName); mod.getModuleProperties(); + + if (optionName.equals("FRM_ADMIN_MATERIAL_CUST_DATA_EDIT")) { @@ -1556,6 +1648,8 @@ public static void runForm(String optionName, String StrParam1, String StrParam2 displayForm(u, optionName); } } + + if (optionName.equals("FRM_ADMIN_PALLETS")) { @@ -1592,12 +1686,96 @@ public static void runForm(String optionName, String StrParam1, Long StrParam2) displayForm(u, optionName); } } + + } + + public static void runForm(String optionName, String StrParam1,String StrParam2, boolean boolParam1) + { + mod.setModuleId(optionName); + mod.getModuleProperties(); + + if (optionName.equals("FRM_BOM_LIST")) + { + final JInternalFrameBomListAdmin u; + if (isLoaded(JInternalFrameBomListAdmin.class)) + { + setVisible(JInternalFrameBomListAdmin.class); + ((JInternalFrameBomListAdmin) isLoadedInstance(JInternalFrameBomListAdmin.class)).setDataID(StrParam1,StrParam2,boolParam1); + } + else + { + u = new JInternalFrameBomListAdmin(); + u.setTitle(mod.getDescription()); + displayForm(u, optionName); + } + } } public static void runForm(String optionName, String StrParam1, String StrParam2) { mod.setModuleId(optionName); mod.getModuleProperties(); + + if (optionName.equals("FRM_BOM_STRUCTURE")) + { + final JInternalFrameBomStructureAdmin u; + if (isLoaded(JInternalFrameBomStructureAdmin.class)) + { + setVisible(JInternalFrameBomStructureAdmin.class); + ((JInternalFrameBomStructureAdmin) isLoadedInstance(JInternalFrameBomStructureAdmin.class)).setDataID(StrParam1,StrParam2); + } + else + { + u = new JInternalFrameBomStructureAdmin(); + u.setTitle(mod.getDescription()); + displayForm(u, optionName); + } + } + + if (optionName.equals("FRM_BOM_LIST_EDIT")) + { + final JInternalFrameBomListProperties u; + if (isLoaded(JInternalFrameBomListProperties.class)) + { + ((JInternalFrameBomListProperties) isLoadedInstance(JInternalFrameBomListProperties.class)).setID(StrParam1, StrParam2); + setVisible(JInternalFrameBomListProperties.class); + } + else + { + u = new JInternalFrameBomListProperties(StrParam1, StrParam2); + displayForm(u, optionName); + } + } + + if (optionName.equals("FRM_BOM_STRUCTURE_EDIT")) + { + final JInternalFrameBomStructureProperties u; + + if (isLoaded(JInternalFrameBomStructureProperties.class)) + { + ((JInternalFrameBomStructureProperties) isLoadedInstance(JInternalFrameBomStructureProperties.class)).updateSearch(StrParam1, StrParam2); + setVisible(JInternalFrameBomStructureProperties.class); + } + else + { + u = new JInternalFrameBomStructureProperties(StrParam1, StrParam2); + u.setTitle(mod.getDescription()); + displayForm(u, optionName); + } + } + + if (optionName.equals("FRM_BOM_ADMIN")) + { + final JInternalFrameBom u; + if (isLoaded(JInternalFrameBom.class)) + ((JInternalFrameBom) isLoadedInstance(JInternalFrameBom.class)).refresh(StrParam1, StrParam2); + else + { + u = new JInternalFrameBom(StrParam1, StrParam2); + u.setTitle(mod.getDescription()); + displayForm(u, optionName); + } + } if (optionName.equals("FRM_WEIGHT_TNE_EDIT")) { @@ -1805,6 +1983,37 @@ public static void runForm(String optionName, String StrParam) mod.setModuleId(optionName); mod.getModuleProperties(); + if (optionName.equals("FRM_BOM_ELEMENTS_EDIT")) + { + final JInternalFrameBomElementProperties u; + if (isLoaded(JInternalFrameBomElementProperties.class)) + { + ((JInternalFrameBomElementProperties) isLoadedInstance(JInternalFrameBomElementProperties.class)).setDataID(StrParam); + setVisible(JInternalFrameBomElementProperties.class); + } + else + { + u = new JInternalFrameBomElementProperties(StrParam); + displayForm(u, optionName); + } + } + + if (optionName.equals("FRM_BOM_ELEMENTS")) + { + final JInternalFrameBomElements u; + if (isLoaded(JInternalFrameBomElements.class)) + { + setVisible(JInternalFrameBomElements.class); + ((JInternalFrameBomElements) isLoadedInstance(JInternalFrameBomElements.class)).setDataID(StrParam); + } + else + { + u = new JInternalFrameBomElements(); + u.setTitle(mod.getDescription()); + displayForm(u, optionName); + } + } + if (optionName.equals("FRM_WASTE_LOCATION_EDIT")) { final JInternalFrameWasteLocationProperties u; @@ -2367,7 +2576,7 @@ public static void runForm(String optionName, String StrParam) displayForm(u, optionName); } } - + if (optionName.equals("FRM_ADMIN_OPERATIVES_EDIT")) { final JInternalFrameOperativeProperties u; @@ -2380,7 +2589,7 @@ public static void runForm(String optionName, String StrParam) displayForm(u, optionName); } } - + if (optionName.equals("FRM_ADMIN_PACKING_LINES_EDIT")) { final JInternalFramePackingLineProperties u; diff --git a/b6/src/com/commander4j/thread/InboundMessageThread.java b/b6/src/com/commander4j/thread/InboundMessageThread.java index c93c33120..4b855f5b1 100755 --- a/b6/src/com/commander4j/thread/InboundMessageThread.java +++ b/b6/src/com/commander4j/thread/InboundMessageThread.java @@ -40,6 +40,7 @@ import com.commander4j.db.JDBUser; import com.commander4j.messages.GenericMessageHeader; import com.commander4j.messages.IncommingBatchStatusChange; +import com.commander4j.messages.IncommingBillOfMaterials; import com.commander4j.messages.IncommingDespatchConfirmation; import com.commander4j.messages.IncommingInspectionResult; import com.commander4j.messages.IncommingJourney; @@ -130,6 +131,7 @@ public void run() IncommingDespatchConfirmation idc = new IncommingDespatchConfirmation(getHostID(), getSessionID()); IncommingQMInspectionRequest iireq = new IncommingQMInspectionRequest(getHostID(), getSessionID()); IncommingMaterialAutoMove imam = new IncommingMaterialAutoMove(getHostID(), getSessionID()); + IncommingBillOfMaterials ibm = new IncommingBillOfMaterials(getHostID(), getSessionID()); GenericMessageHeader gmh = new GenericMessageHeader(); File dir ; String[] extensions = { "xml", "XML" }; @@ -284,6 +286,12 @@ public void run() messageProcessedOK = imam.processMessage(gmh); errorMessage = imam.getErrorMessage(); } + + if (interfaceType.equals("Bill of Material") == true) + { + messageProcessedOK = ibm.processMessage(gmh); + errorMessage = ibm.getErrorMessage(); + } GenericMessageHeader.updateStats("Input", interfaceType, messageProcessedOK.toString()); diff --git a/b6/src/com/commander4j/thread/OutboundMessageThread.java b/b6/src/com/commander4j/thread/OutboundMessageThread.java index 41afd8737..3d45e7c98 100755 --- a/b6/src/com/commander4j/thread/OutboundMessageThread.java +++ b/b6/src/com/commander4j/thread/OutboundMessageThread.java @@ -42,6 +42,8 @@ import com.commander4j.messages.OutgoingDespatchPreAdvice; import com.commander4j.messages.OutgoingEquipmentTracking; import com.commander4j.messages.OutgoingPalletDelete; +import com.commander4j.messages.OutgoingPalletIssue; +import com.commander4j.messages.OutgoingPalletReturn; import com.commander4j.messages.OutgoingPalletSplit; import com.commander4j.messages.OutgoingPalletStatusChange; import com.commander4j.messages.OutgoingProductionDeclarationConfirmation; @@ -126,6 +128,8 @@ public void run() { OutgoingPalletStatusChange psc = new OutgoingPalletStatusChange(getHostID(), getSessionID()); OutgoingPalletSplit ops = new OutgoingPalletSplit(getHostID(), getSessionID()); OutgoingPalletDelete opd = new OutgoingPalletDelete(getHostID(), getSessionID()); + OutgoingPalletIssue opi = new OutgoingPalletIssue(getHostID(), getSessionID()); + OutgoingPalletReturn opr = new OutgoingPalletReturn(getHostID(), getSessionID()); LinkedList irqList = new LinkedList(); int noOfMessages = 0; @@ -248,6 +252,20 @@ public void run() { GenericMessageHeader.updateStats("Output","Equipment Tracking", messageProcessedOK.toString()); } + if (ir.getInterfaceType().equals("Pallet Issue")) + { + messageProcessedOK = opi.processMessage(ir.getTransactionRef()); + errorMessage = opi.getErrorMessage(); + GenericMessageHeader.updateStats("Output","Pallet Issue", messageProcessedOK.toString()); + } + + if (ir.getInterfaceType().equals("Pallet Return")) + { + messageProcessedOK = opr.processMessage(ir.getTransactionRef()); + errorMessage = opr.getErrorMessage(); + GenericMessageHeader.updateStats("Output","Pallet Return", messageProcessedOK.toString()); + } + if (messageProcessedOK == true) { ir.delete(); diff --git a/b6/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml b/b6/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml new file mode 100644 index 000000000..a786896a5 --- /dev/null +++ b/b6/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml @@ -0,0 +1,566 @@ + + + + + CREATE TABLE [dbo].[APP_BOM] ( + [BOM_ID] varchar(20) DEFAULT '' NOT NULL, + [BOM_VERSION] varchar(10) DEFAULT '' NOT NULL, + [BOM_SEQUENCE] int DEFAULT 0 NULL, + [DATA_ID] varchar(20) DEFAULT '' NOT NULL, + [DATA_TYPE] varchar(20) DEFAULT '' NULL, + [DATA_STRING] varchar(255) DEFAULT '' NULL, + [DATA_DECIMAL] decimal(22,3) DEFAULT NULL NULL, + [DATA_DATE] datetime DEFAULT NULL NULL, + [DATA_TIMESTAMP] datetime DEFAULT NULL, + [UUID] varchar(50) DEFAULT '' NOT NULL, + [PARENT_UUID] varchar(50) DEFAULT '' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM] ADD CONSTRAINT [PK_APP_BOM] PRIMARY KEY CLUSTERED ([BOM_ID], [BOM_VERSION], [DATA_ID], [UUID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_DEFAULTS] ( + [SOURCE_FIELD] varchar(32) NOT NULL, + [SOURCE_VALUE] varchar(50) NOT NULL, + [DESTINATION_FIELD] varchar(32) NOT NULL, + [DESTINATION_VALUE] varchar(50) NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_DEFAULTS] ADD CONSTRAINT [PK_APP_BOM_DEFAULTS] PRIMARY KEY CLUSTERED ([SOURCE_FIELD], [SOURCE_VALUE], [DESTINATION_FIELD]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_ELEMENTS] ( + [DATA_ID] varchar(20) NOT NULL, + [DATA_TYPE] varchar(20) NULL, + [ENABLE_EDIT] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_CREATE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_DELETE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_DUPLICATE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_CLIPBOARD] varchar(1) DEFAULT 'Y' NULL, + [MAX_OCCUR_LEVEL] int DEFAULT 1 NULL, + [ENABLE_LOOKUP] varchar(1) DEFAULT 'Y' NULL, + [LOOKUP_SQL] varchar(255) DEFAULT '' NULL, + [LOOKUP_FIELD] varchar(32) DEFAULT '' NULL, + [ICON_FILENAME] varchar(80) DEFAULT '' NULL, + [DESCRIPTION] varchar(80) DEFAULT '' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_ELEMENTS] ADD CONSTRAINT [PK_APP_BOM_ELEMENTS] PRIMARY KEY CLUSTERED ([DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_LISTS] ( + [LIST_ID] varchar(25) DEFAULT '' NOT NULL, + [ITEM] varchar(255) DEFAULT '' NOT NULL, + [SEQUENCE] int DEFAULT 0 NULL, + [ENABLED] varchar(1) DEFAULT 'Y' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_LISTS] ADD CONSTRAINT [PK_APP_BOM_LISTS] PRIMARY KEY CLUSTERED ([LIST_ID], [ITEM]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_STRUCTURE] ( + [DATA_ID] varchar(20) NOT NULL, + [PARENT_DATA_CATEGORY] varchar(20) NOT NULL, + [PARENT_DATA_ID] varchar(20) NOT NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_STRUCTURE] ADD CONSTRAINT [PK_APP_BOM_STRUCTURE] PRIMARY KEY CLUSTERED ([DATA_ID], [PARENT_DATA_CATEGORY], [PARENT_DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE VIEW view_bom as select BOM_MATERIAL.BOM_ID AS 'bom_id', + BOM_MATERIAL.BOM_VERSION AS 'bom_version', + BOM_MATERIAL.BOM_SEQUENCE AS 'display_order', + BOM_STAGE.DATA_STRING AS 'stage', + BOM_IN_OUT.DATA_ID AS 'input_output', + BOM_SEQUENCE.DATA_STRING AS 'sequence', + BOM_MATERIAL.DATA_STRING AS 'material', + BOM_MATERIAL.UUID AS 'material_uuid', + BOM_DESCRIPTION.DATA_STRING AS 'description', + BOM_QUANTITY.DATA_DECIMAL AS 'quantity', + BOM_TYPE.DATA_STRING AS 'type', + BOM_UOM.DATA_STRING AS 'uom', + BOM_GTIN.DATA_STRING AS 'gtin', + BOM_VARIANT.DATA_STRING AS 'variant', + BOM_LOCATION.DATA_STRING AS 'location_id', + BOM_LOCATION.UUID AS 'location_uuid' + from app_bom BOM_MATERIAL + left join app_bom BOM_DESCRIPTION on ((BOM_DESCRIPTION.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_DESCRIPTION.DATA_TYPE = 'string') and (BOM_DESCRIPTION.DATA_ID = 'description')) + left join app_bom BOM_QUANTITY on ((BOM_QUANTITY.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_QUANTITY.DATA_TYPE = 'decimal') and (BOM_QUANTITY.DATA_ID = 'quantity')) + left join app_bom BOM_SEQUENCE on ((BOM_SEQUENCE.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_SEQUENCE.DATA_TYPE = 'string') and (BOM_SEQUENCE.DATA_ID = 'sequence')) + left join app_bom BOM_TYPE on ((BOM_TYPE.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_TYPE.DATA_TYPE = 'string') and (BOM_TYPE.DATA_ID = 'type')) + left join app_bom BOM_UOM on ((BOM_UOM.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_UOM.DATA_TYPE = 'string') and (BOM_UOM.DATA_ID = 'uom')) + left join app_bom BOM_GTIN on ((BOM_GTIN.PARENT_UUID = BOM_UOM.UUID) and (BOM_GTIN.DATA_TYPE = 'string') and (BOM_GTIN.DATA_ID = 'gtin')) + left join app_bom BOM_VARIANT on ((BOM_VARIANT.PARENT_UUID = BOM_UOM.UUID) and (BOM_VARIANT.DATA_TYPE = 'string') and (BOM_VARIANT.DATA_ID = 'variant')) + left join app_bom BOM_IN_OUT on ((BOM_IN_OUT.UUID = BOM_MATERIAL.PARENT_UUID) and (BOM_IN_OUT.DATA_TYPE = 'string') and (BOM_IN_OUT.DATA_ID in ('input','output'))) + left join app_bom BOM_STAGE on ((BOM_STAGE.UUID = BOM_IN_OUT.PARENT_UUID) and (BOM_STAGE.DATA_TYPE = 'string') and (BOM_STAGE.DATA_ID = 'stage')) + left join app_bom BOM_LOCATION on ((BOM_LOCATION.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_LOCATION.DATA_TYPE = 'string') and (BOM_LOCATION.DATA_ID = 'location')) + where (BOM_MATERIAL.DATA_ID = 'material') + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_CATEGORY AS PARENT_DATA_CATEGORY, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770321', 'location_id', 'LANEA') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770322', 'location_id', 'LANEB') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770323', 'location_id', 'LANEC') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = ''location_id'' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = ''material_type'' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = ''uom'' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant') + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('gtin', 'value', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('input', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('location_id', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('output', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('quantity', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('root', '', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('runtime', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('sequence', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('stage', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('type', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('uom', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('updated', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('variant', 'value', 'uom') + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [MSG_PALLET_ISSUE] varchar(1) DEFAULT 'Y' + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [MSG_PALLET_RETURN] varchar(1) DEFAULT 'Y' + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [BARCODE_ID] varchar(25) DEFAULT '' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml b/b6/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml new file mode 100644 index 000000000..914f0859a --- /dev/null +++ b/b6/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml @@ -0,0 +1,337 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + drop view view_bom_structure + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_CATEGORY AS PARENT_DATA_CATEGORY, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP TABLE [dbo].[APP_BOM_STRUCTURE] + + + + CREATE TABLE [dbo].[APP_BOM_STRUCTURE] ( + [DATA_ID] varchar(20) NOT NULL, + [PARENT_DATA_ID] varchar(20) NOT NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_STRUCTURE] ADD CONSTRAINT [PK_APP_BOM_STRUCTURE] PRIMARY KEY CLUSTERED ([DATA_ID], [PARENT_DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + DROP view view_bom_structure + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('gtin', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('input', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('location_id', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('output', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('quantity', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('root', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('runtime', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('sequence', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('stage', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('type', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('uom', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('updated', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('variant', 'uom') + + diff --git a/b6/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml b/b6/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml new file mode 100644 index 000000000..738f63bd8 --- /dev/null +++ b/b6/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml index fbc365f9f..cd02dcb15 100644 --- a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml +++ b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml @@ -94,7 +94,7 @@ - CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS + CREATE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, @@ -156,7 +156,7 @@ - CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_sample_point_locations` AS select distinct `APP_WEIGHT_SAMPLE_POINT`.`LOCATION` AS `Location` from `APP_WEIGHT_SAMPLE_POINT` + CREATE VIEW `view_sample_point_locations` AS select distinct `APP_WEIGHT_SAMPLE_POINT`.`LOCATION` AS `Location` from `APP_WEIGHT_SAMPLE_POINT` diff --git a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml index b60f4b2b3..7436bcc60 100644 --- a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml +++ b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml @@ -7,7 +7,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, @@ -68,7 +68,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_sorting_qty_diffs` AS SELECT + CREATE OR REPLACE VIEW `view_sorting_qty_diffs` AS SELECT `APP_PALLET_EXTENSION`.`SSCC` AS `SSCC`, `APP_PALLET_EXTENSION`.`PALLET_QUANTITY` AS `PALLET_QUANTITY`, `APP_PALLET`.`QUANTITY` AS `QUANTITY`, diff --git a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml index cb4b7365f..ecde3d370 100644 --- a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml +++ b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_results` AS SELECT + CREATE OR REPLACE VIEW `view_qm_results` AS SELECT `APP_QM_SAMPLE`.`PROCESS_ORDER` AS `PROCESS_ORDER`, `APP_QM_SAMPLE`.`MATERIAL` AS `MATERIAL`, `APP_QM_SAMPLE`.`SAMPLE_ID` AS `SAMPLE_ID`, diff --git a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml index 82761953b..479d49bdd 100644 --- a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml +++ b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_panel_results` AS + CREATE OR REPLACE VIEW `view_qm_panel_results` AS SELECT APP_QM_PANEL.PANEL_ID, APP_QM_PANEL_TRAY.TRAY_ID, diff --git a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml index 1679337fb..7cd97f14f 100644 --- a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml +++ b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml @@ -345,7 +345,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, diff --git a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml index 7d316e2c9..00887539f 100644 --- a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml +++ b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_results` AS + CREATE OR REPLACE VIEW `view_qm_results` AS SELECT samp.PROCESS_ORDER as 'PROCESS_ORDER', samp.MATERIAL as 'MATERIAL', samp.SAMPLE_ID as 'SAMPLE_ID', diff --git a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml index 46026ca58..0ae5fd149 100644 --- a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml +++ b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml @@ -44,7 +44,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, diff --git a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml new file mode 100644 index 000000000..1acd4c6d1 --- /dev/null +++ b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml @@ -0,0 +1,672 @@ + + + + + + CREATE TABLE `APP_BOM` ( + `BOM_ID` varchar(20) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT '', + `BOM_VERSION` varchar(10) NOT NULL DEFAULT '', + `BOM_SEQUENCE` int NOT NULL DEFAULT '0', + `DATA_ID` varchar(20) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT '', + `DATA_TYPE` varchar(20) DEFAULT '', + `DATA_STRING` varchar(255) DEFAULT '', + `DATA_DECIMAL` decimal(22,3) unsigned DEFAULT NULL, + `DATA_DATE` datetime DEFAULT NULL, + `DATA_TIMESTAMP` timestamp NULL DEFAULT NULL, + `UUID` varchar(50) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT (uuid()), + `PARENT_UUID` varchar(50) DEFAULT NULL, + PRIMARY KEY (`BOM_ID`,`BOM_VERSION`,`DATA_ID`,`UUID`) USING BTREE, + UNIQUE KEY `UUID_NDX` (`UUID`) USING BTREE, + KEY `UUID_PARENT_NDX` (`PARENT_UUID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_DEFAULTS` ( + `SOURCE_FIELD` varchar(32) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `SOURCE_VALUE` varchar(50) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `DESTINATION_FIELD` varchar(32) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `DESTINATION_VALUE` varchar(50) CHARACTER SET {charset} COLLATE {collation} DEFAULT NULL, + PRIMARY KEY (`SOURCE_FIELD`,`SOURCE_VALUE`,`DESTINATION_FIELD`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_ELEMENTS` ( + `DATA_ID` varchar(20) NOT NULL, + `DATA_TYPE` varchar(20) DEFAULT NULL, + `ENABLE_EDIT` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_CREATE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_DELETE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_DUPLICATE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_CLIPBOARD` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `MAX_OCCUR_LEVEL` int DEFAULT '1', + `ENABLE_LOOKUP` varchar(1) DEFAULT 'Y', + `LOOKUP_SQL` varchar(255) DEFAULT '', + `LOOKUP_FIELD` varchar(32) DEFAULT '', + `ICON_FILENAME` varchar(80) DEFAULT '', + `DESCRIPTION` varchar(80) DEFAULT '', + PRIMARY KEY (`DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_LISTS` ( + `LIST_ID` varchar(25) NOT NULL DEFAULT '', + `ITEM` varchar(50) NOT NULL DEFAULT '', + `SEQUENCE` int DEFAULT '0', + `ENABLED` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + PRIMARY KEY (`LIST_ID`,`ITEM`) + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + + CREATE TABLE `APP_BOM_STRUCTURE` ( + `DATA_ID` varchar(20) NOT NULL, + `PARENT_DATA_CATEGORY` varchar(20) NOT NULL, + `PARENT_DATA_ID` varchar(20) NOT NULL, + PRIMARY KEY (`DATA_ID`,`PARENT_DATA_CATEGORY`,`PARENT_DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + + CREATE VIEW `view_bom` AS + select `BOM_MATERIAL`.`BOM_ID` AS `bom_id`, + `BOM_MATERIAL`.`BOM_VERSION` AS `bom_version`, + `BOM_MATERIAL`.`BOM_SEQUENCE` AS `display_order`, + `BOM_STAGE`.`DATA_STRING` AS `stage`, + `BOM_IN_OUT`.`DATA_ID` AS `input_output`, + `BOM_SEQUENCE`.`DATA_STRING` AS `sequence`, + `BOM_MATERIAL`.`DATA_STRING` AS `material`, + `BOM_MATERIAL`.`UUID` AS `material_uuid`, + `BOM_DESCRIPTION`.`DATA_STRING` AS `description`, + `BOM_QUANTITY`.`DATA_DECIMAL` AS `quantity`, + `BOM_TYPE`.`DATA_STRING` AS `type`, + `BOM_UOM`.`DATA_STRING` AS `uom`, + `BOM_GTIN`.`DATA_STRING` AS `gtin`, + `BOM_VARIANT`.`DATA_STRING` AS `variant`, + `BOM_LOCATION`.`DATA_STRING` AS `location_id`, + `BOM_LOCATION`.`UUID` AS `location_uuid` + from `app_bom` `BOM_MATERIAL` + left join `app_bom` `BOM_DESCRIPTION` on (`BOM_DESCRIPTION`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_DESCRIPTION`.`DATA_TYPE` = 'string') + and (`BOM_DESCRIPTION`.`DATA_ID` = 'description') + left join `app_bom` `BOM_QUANTITY` on (`BOM_QUANTITY`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_QUANTITY`.`DATA_TYPE` = 'decimal') + and (`BOM_QUANTITY`.`DATA_ID` = 'quantity') + left join `app_bom` `BOM_SEQUENCE` on (`BOM_SEQUENCE`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_SEQUENCE`.`DATA_TYPE` = 'string') + and (`BOM_SEQUENCE`.`DATA_ID` = 'sequence') + left join `app_bom` `BOM_TYPE` on (`BOM_TYPE`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_TYPE`.`DATA_TYPE` = 'string') + and (`BOM_TYPE`.`DATA_ID` = 'type') + left join `app_bom` `BOM_UOM` on (`BOM_UOM`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_UOM`.`DATA_TYPE` = 'string') + and (`BOM_UOM`.`DATA_ID` = 'uom') + left join `app_bom` `BOM_GTIN` on (`BOM_GTIN`.`PARENT_UUID` = `BOM_UOM`.`UUID`) + and (`BOM_GTIN`.`DATA_TYPE` = 'string') + and (`BOM_GTIN`.`DATA_ID` = 'gtin') + left join `app_bom` `BOM_VARIANT` on (`BOM_VARIANT`.`PARENT_UUID` = `BOM_UOM`.`UUID`) + and (`BOM_VARIANT`.`DATA_TYPE` = 'string') + and (`BOM_VARIANT`.`DATA_ID` = 'variant') + left join `app_bom` `BOM_IN_OUT` on (`BOM_IN_OUT`.`UUID` = `BOM_MATERIAL`.`PARENT_UUID`) + and (`BOM_IN_OUT`.`DATA_TYPE` = 'string') + and (`BOM_IN_OUT`.`DATA_ID` in ('input','output')) + left join `app_bom` `BOM_STAGE` on (`BOM_STAGE`.`UUID` = `BOM_IN_OUT`.`PARENT_UUID`) + and (`BOM_STAGE`.`DATA_TYPE` = 'string') + and (`BOM_STAGE`.`DATA_ID` = 'stage') + left join `app_bom` `BOM_LOCATION` on (`BOM_LOCATION`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_LOCATION`.`DATA_TYPE` = 'string') + and (`BOM_LOCATION`.`DATA_ID` = 'location_id') + where (`BOM_MATERIAL`.`DATA_ID` = 'material') + order by `BOM_MATERIAL`.`BOM_ID`,`BOM_MATERIAL`.`BOM_VERSION`,`BOM_IN_OUT`.`DATA_ID`,`BOM_SEQUENCE`.`DATA_ID`,`BOM_MATERIAL`.`BOM_SEQUENCE`,`BOM_MATERIAL`.`UUID`; + + + + + CREATE VIEW `view_bom_structure` AS + select `app_bom_structure`.`DATA_ID` AS `DATA_ID`, + `app_bom_elements`.`DATA_TYPE` AS `DATA_TYPE`, + `app_bom_structure`.`PARENT_DATA_ID` AS `PARENT_DATA_ID`, + `app_bom_elements`.`ENABLE_EDIT` AS `ENABLE_EDIT`, + `app_bom_elements`.`ENABLE_CREATE` AS `ENABLE_CREATE`, + `app_bom_elements`.`ENABLE_DELETE` AS `ENABLE_DELETE`, + `app_bom_elements`.`ENABLE_DUPLICATE` AS `ENABLE_DUPLICATE`, + `app_bom_elements`.`ENABLE_CLIPBOARD` AS `ENABLE_CLIPBOARD`, + `app_bom_elements`.`ENABLE_LOOKUP` AS `ENABLE_LOOKUP`, + `app_bom_elements`.`LOOKUP_SQL` AS `LOOKUP_SQL`, + `app_bom_elements`.`LOOKUP_FIELD` AS `LOOKUP_FIELD`, + `app_bom_elements`.`ICON_FILENAME` AS `ICON_FILENAME`, + `app_bom_elements`.`MAX_OCCUR_LEVEL` AS `MAX_OCCUR_LEVEL`, + `app_bom_elements`.`DESCRIPTION` AS `DESCRIPTION` + from (`app_bom_structure` + join `app_bom_elements` + on((`app_bom_structure`.`DATA_ID` = `app_bom_elements`.`DATA_ID`))); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770321', 'location_id', 'LANEA'); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770322', 'location_id', 'LANEB'); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770323', 'location_id', 'LANEC'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = \'location_id\' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = \'material_type\' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = \'uom\' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant'); + + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('description', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('description', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('gtin', 'value', 'uom'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('hrs', 'section', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('hrs', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('input', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('location_id', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('line', 'section', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('line', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('material', 'section', 'input'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('material', 'section', 'output'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('output', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('quantity', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('resource', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('resource', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('root', '', ''); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('runtime', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('sequence', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('stage', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('type', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('uom', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('updated', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('variant', 'value', 'uom'); + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE `APP_LOCATION` + ADD COLUMN `MSG_PALLET_ISSUE` varchar(1) NULL DEFAULT 'Y' AFTER `MSG_PROD_UNCONFIRM`, + ADD COLUMN `MSG_PALLET_RETURN` varchar(1) NULL DEFAULT 'Y' AFTER `MSG_PALLET_ISSUE`, + ADD COLUMN `BARCODE_ID` varchar(25) NULL DEFAULT '' AFTER `MSG_PALLET_RETURN`; + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml new file mode 100644 index 000000000..38f7b3dec --- /dev/null +++ b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml @@ -0,0 +1,358 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP TABLE `APP_BOM_STRUCTURE`; + + + + CREATE TABLE `APP_BOM_STRUCTURE` ( + `DATA_ID` varchar(20) NOT NULL, + `PARENT_DATA_ID` varchar(20) NOT NULL, + PRIMARY KEY (`DATA_ID`,`PARENT_DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + DROP VIEW `view_bom_structure` + + + + CREATE VIEW `view_bom_structure` AS + select `app_bom_structure`.`DATA_ID` AS `DATA_ID`, + `app_bom_elements`.`DATA_TYPE` AS `DATA_TYPE`, + `app_bom_structure`.`PARENT_DATA_ID` AS `PARENT_DATA_ID`, + `app_bom_elements`.`ENABLE_EDIT` AS `ENABLE_EDIT`, + `app_bom_elements`.`ENABLE_CREATE` AS `ENABLE_CREATE`, + `app_bom_elements`.`ENABLE_DELETE` AS `ENABLE_DELETE`, + `app_bom_elements`.`ENABLE_DUPLICATE` AS `ENABLE_DUPLICATE`, + `app_bom_elements`.`ENABLE_CLIPBOARD` AS `ENABLE_CLIPBOARD`, + `app_bom_elements`.`ENABLE_LOOKUP` AS `ENABLE_LOOKUP`, + `app_bom_elements`.`LOOKUP_SQL` AS `LOOKUP_SQL`, + `app_bom_elements`.`LOOKUP_FIELD` AS `LOOKUP_FIELD`, + `app_bom_elements`.`ICON_FILENAME` AS `ICON_FILENAME`, + `app_bom_elements`.`MAX_OCCUR_LEVEL` AS `MAX_OCCUR_LEVEL`, + `app_bom_elements`.`DESCRIPTION` AS `DESCRIPTION` + from (`app_bom_structure` + join `app_bom_elements` + on((`app_bom_structure`.`DATA_ID` = `app_bom_elements`.`DATA_ID`))); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('description', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('description', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('gtin', 'uom'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('hrs', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('hrs', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('input', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('location_id', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('line', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('line', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('material', 'input'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('material', 'output'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('output', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('quantity', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('resource', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('resource', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('root', ''); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('runtime', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('sequence', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('stage', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('type', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('uom', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('updated', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('variant', 'uom'); + + + diff --git a/b6/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml new file mode 100644 index 000000000..32738e209 --- /dev/null +++ b/b6/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml b/b6/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml new file mode 100644 index 000000000..d78048a6a --- /dev/null +++ b/b6/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml @@ -0,0 +1,556 @@ + + + + + CREATE TABLE "APP_BOM" ( + "BOM_ID" VARCHAR2(20) DEFAULT '' NOT NULL, + "BOM_VERSION" VARCHAR2(10) DEFAULT '' NOT NULL, + "BOM_SEQUENCE" INT DEFAULT 0 NOT NULL, + "DATA_ID" VARCHAR2(20) DEFAULT '' NOT NULL, + "DATA_TYPE" VARCHAR2(20) DEFAULT '', + "DATA_STRING" VARCHAR2(255) DEFAULT '', + "DATA_DECIMAL" NUMERIC(22,3) DEFAULT NULL, + "DATA_DATE" TIMESTAMP DEFAULT NULL, + "DATA_TIMESTAMP" TIMESTAMP DEFAULT NULL, + "UUID" VARCHAR2(50) DEFAULT '' NOT NULL, + "PARENT_UUID" VARCHAR2(50) DEFAULT '', + PRIMARY KEY ("BOM_ID", "BOM_VERSION", "DATA_ID", "UUID") ) + + + + CREATE TABLE "APP_BOM_DEFAULTS" ( + "SOURCE_FIELD" VARCHAR2(32) NOT NULL, + "SOURCE_VALUE" VARCHAR2(50) NOT NULL, + "DESTINATION_FIELD" VARCHAR2(32) NOT NULL, + "DESTINATION_VALUE" VARCHAR2(50), + PRIMARY KEY ("SOURCE_FIELD", "SOURCE_VALUE", "DESTINATION_FIELD") ) + + + + CREATE TABLE "APP_BOM_ELEMENTS" ( + "DATA_ID" VARCHAR2(20) NOT NULL, + "DATA_TYPE" VARCHAR2(20), + "ENABLE_EDIT" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_CREATE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_DELETE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_DUPLICATE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_CLIPBOARD" VARCHAR2(1) DEFAULT 'Y', + "MAX_OCCUR_LEVEL" INT, + "ENABLE_LOOKUP" VARCHAR2(1) DEFAULT 'Y', + "LOOKUP_SQL" VARCHAR2(255) DEFAULT '', + "LOOKUP_FIELD" VARCHAR2(32) DEFAULT '', + "ICON_FILENAME" VARCHAR2(80) DEFAULT '', + "DESCRIPTION" VARCHAR2(80) DEFAULT '', + PRIMARY KEY ("DATA_ID") ) + + + + CREATE TABLE "APP_BOM_LISTS" ( + "LIST_ID" VARCHAR2(25 BYTE) VISIBLE DEFAULT '', + "ITEM" VARCHAR2(50 BYTE) VISIBLE DEFAULT '', + "SEQUENCE" NUMBER VISIBLE DEFAULT 0, + "ENABLED" VARCHAR2(1 BYTE) VISIBLE DEFAULT 'Y') + + + + CREATE INDEX "IDX_APP_BOM_LISTS1" + ON "APP_BOM_LISTS" ("LIST_ID" ASC, "ITEM" ASC) + + + + CREATE TABLE "APP_BOM_STRUCTURE" ( + "DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '', + "PARENT_DATA_CATEGORY" VARCHAR2(20) VISIBLE DEFAULT '' , + "PARENT_DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '' ) + + + + CREATE INDEX "IDX_APP_BOM_STRUCTURE1" + ON "APP_BOM_STRUCTURE" ("DATA_ID" ASC, "PARENT_DATA_CATEGORY" ASC, "PARENT_DATA_ID" ASC) + + + + CREATE OR REPLACE VIEW view_bom as + SELECT BOM_MATERIAL.BOM_ID bom_id, + BOM_MATERIAL.BOM_VERSION bom_version, + BOM_MATERIAL.BOM_SEQUENCE display_order, + BOM_STAGE.DATA_STRING stage, + BOM_IN_OUT.DATA_ID input_output, + BOM_SEQUENCE.DATA_STRING sequence, + BOM_MATERIAL.DATA_STRING material, + BOM_MATERIAL.UUID material_uuid, + BOM_DESCRIPTION.DATA_STRING description, + BOM_QUANTITY.DATA_DECIMAL quantity, + BOM_TYPE.DATA_STRING TYPE, + BOM_UOM.DATA_STRING uom, + BOM_GTIN.DATA_STRING gtin, + BOM_VARIANT.DATA_STRING variant, + BOM_LOCATION.DATA_STRING location_id, + BOM_LOCATION.UUID location_uuid + FROM app_bom BOM_MATERIAL + LEFT JOIN app_bom BOM_DESCRIPTION ON ( ( BOM_DESCRIPTION.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_DESCRIPTION.DATA_TYPE = 'string' ) AND ( BOM_DESCRIPTION.DATA_ID = 'description' ) ) + LEFT JOIN app_bom BOM_QUANTITY ON ( ( BOM_QUANTITY.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_QUANTITY.DATA_TYPE = 'decimal' ) AND ( BOM_QUANTITY.DATA_ID = 'quantity' ) ) + LEFT JOIN app_bom BOM_SEQUENCE ON ( ( BOM_SEQUENCE.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_SEQUENCE.DATA_TYPE = 'string' ) AND ( BOM_SEQUENCE.DATA_ID = 'sequence' ) ) + LEFT JOIN app_bom BOM_TYPE ON ( ( BOM_TYPE.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_TYPE.DATA_TYPE = 'string' ) AND ( BOM_TYPE.DATA_ID = 'type' ) ) + LEFT JOIN app_bom BOM_UOM ON ( ( BOM_UOM.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_UOM.DATA_TYPE = 'string' ) AND ( BOM_UOM.DATA_ID = 'uom' ) ) + LEFT JOIN app_bom BOM_GTIN ON ( ( BOM_GTIN.PARENT_UUID = BOM_UOM.UUID ) AND ( BOM_GTIN.DATA_TYPE = 'string' ) AND ( BOM_GTIN.DATA_ID = 'gtin' ) ) + LEFT JOIN app_bom BOM_VARIANT ON ( ( BOM_VARIANT.PARENT_UUID = BOM_UOM.UUID ) AND ( BOM_VARIANT.DATA_TYPE = 'string' ) AND ( BOM_VARIANT.DATA_ID = 'variant' ) ) + LEFT JOIN app_bom BOM_IN_OUT ON ( ( BOM_IN_OUT.UUID = BOM_MATERIAL.PARENT_UUID ) AND ( BOM_IN_OUT.DATA_TYPE = 'string' ) AND ( BOM_IN_OUT.DATA_ID IN ( 'input', 'output' ) ) ) + LEFT JOIN app_bom BOM_STAGE ON ( ( BOM_STAGE.UUID = BOM_IN_OUT.PARENT_UUID ) AND ( BOM_STAGE.DATA_TYPE = 'string' ) AND ( BOM_STAGE.DATA_ID = 'stage' ) ) + LEFT JOIN app_bom BOM_LOCATION ON ( ( BOM_LOCATION.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_LOCATION.DATA_TYPE = 'string' ) AND ( BOM_LOCATION.DATA_ID = 'location_id' ) ) + WHERE ( BOM_MATERIAL.DATA_ID = 'material' ) + + + + CREATE OR REPLACE VIEW view_bom_structure AS + SELECT app_bom_structure.DATA_ID DATA_ID, + app_bom_elements.DATA_TYPE DATA_TYPE, + app_bom_structure.PARENT_DATA_ID PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION DESCRIPTION + FROM (app_bom_structure JOIN app_bom_elements ON ((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770321', 'location_id', 'LANEA') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770322', 'location_id', 'LANEB') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770323', 'location_id', 'LANEC') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = ''location_id'' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = ''material_type'' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = ''uom'' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant') + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('gtin', 'value', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('input', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('location_id', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('output', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('quantity', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('root', '', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('runtime', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('sequence', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('stage', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('type', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('uom', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('updated', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('variant', 'value', 'uom') + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') +mod_FRM_BOM_ADMIN + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE "APP_LOCATION" + ADD ("MSG_PALLET_ISSUE" VARCHAR2(1) DEFAULT 'Y') + ADD ("MSG_PALLET_RETURN" VARCHAR2(1) DEFAULT 'Y') + ADD ("BARCODE_ID" VARCHAR2(25) DEFAULT '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml b/b6/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml new file mode 100644 index 000000000..61c549a6e --- /dev/null +++ b/b6/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml @@ -0,0 +1,314 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP INDEX "IDX_APP_BOM_STRUCTURE1" + + + + DROP TABLE "APP_BOM_STRUCTURE" + + + + CREATE TABLE "APP_BOM_STRUCTURE" ( + "DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '', + "PARENT_DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '' ) + + + + CREATE INDEX "IDX_APP_BOM_STRUCTURE1" + ON "APP_BOM_STRUCTURE" ("DATA_ID" ASC, "PARENT_DATA_ID" ASC) + + + + CREATE OR REPLACE VIEW view_bom_structure AS + SELECT app_bom_structure.DATA_ID DATA_ID, + app_bom_elements.DATA_TYPE DATA_TYPE, + app_bom_structure.PARENT_DATA_ID PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION DESCRIPTION + FROM (app_bom_structure JOIN app_bom_elements ON ((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('gtin', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('input', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('location_id', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('output', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('quantity', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('root', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('runtime', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('sequence', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('stage', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('type', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('uom', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('updated', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('variant', 'uom') + + + diff --git a/b6/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml b/b6/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml new file mode 100644 index 000000000..3166d412d --- /dev/null +++ b/b6/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml b/b6/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml index 337bb1136..6445ca54c 100644 --- a/b6/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml +++ b/b6/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [view_pallet_history_expiry] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [view_pallet_history] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(IIF(transaction_type = 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value = ?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,7 +286,7 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(a.module_id) from [view_security] a where a.user_id = ? order by a.module_id @@ -291,24 +297,24 @@ JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - - + + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}view_permissions order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,u.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,u.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT a.* FROM [view_menu_structure]a WHERE a.MENU_ID = ? AND a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT a.* FROM [view_rf_menu]a WHERE a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT a.* FROM [view_toolbar]a WHERE a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,[updated]=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -584,8 +587,8 @@ JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,7 +617,7 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource @@ -643,7 +646,15 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER - + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + + JDBProcessOrder.ViewResource select * from view_process_order_resource @@ -651,7 +662,7 @@ JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from view_process_order_resource where process_order=? - + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,18 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -745,7 +772,7 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -800,39 +827,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - P.SSCC, - P.STATUS AS 'PALLET_STATUS', - P.LOCATION_ID, - P.DESPATCH_NO, - MB.MATERIAL, - MB.BATCH_NUMBER, - MB.STATUS AS 'BATCH_STATUS' - FROM - APP_PALLET P, - APP_MATERIAL_BATCH MB - WHERE - MB.MATERIAL = P.MATERIAL - AND MB.BATCH_NUMBER = P.BATCH_NUMBER - AND P.DESPATCH_NO = %1 - AND ( - P.STATUS NOT IN ( %2 ) - OR MB.STATUS NOT IN ( %3 ) - ) - + SELECT P.SSCC, P.STATUS AS 'PALLET_STATUS', P.LOCATION_ID, P.DESPATCH_NO, MB.MATERIAL, MB.BATCH_NUMBER, MB.STATUS AS 'BATCH_STATUS' FROM APP_PALLET P, APP_MATERIAL_BATCH MB WHERE MB.MATERIAL = P.MATERIAL AND MB.BATCH_NUMBER = P.BATCH_NUMBER AND P.DESPATCH_NO = %1 AND ( P.STATUS NOT IN ( %2 ) OR MB.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +858,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +875,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +896,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (report_request_id,module_id,invocation_mode,parameter_count,parameter_delimiter,parameter_names,parameter_types,parameter_values,sql,print_queue_name,print_copies) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +913,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +938,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +967,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +996,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1025,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1050,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1071,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1092,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1117,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1142,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1167,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1192,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1221,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1250,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1287,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1323,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1348,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1381,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1406,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1427,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}view_label_data WHERE UNIQUE_ID = ? @@ -1432,96 +1436,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}view_auto_labeller_printer where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}view_auto_labeller_printer - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1537,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1573,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1599,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1657,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1670,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1703,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1711,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}view_barcode_validate where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1738,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1763,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1792,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1804,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1821,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1850,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1879,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1912,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1923,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1960,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +2003,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2032,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2059,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2072,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2097,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2122,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2130,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2163,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? + select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? + select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2210,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2219,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2243,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2264,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2284,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2292,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2321,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2339,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2376,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2401,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2430,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2442,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2455,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?, sample_point = ?, id=?,lane_1=?,lane_2=?,lane_3=?,lane_4=?,lane_5=? where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2496,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2529,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2570,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2594,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2603,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2619,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2642,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2673,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select top (?) * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc + select top (?) * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2700,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2725,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2749,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2761,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,11 +2778,11 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? @@ -2909,6 +2795,184 @@ JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group - + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM >'' AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml b/b6/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml index c6e3009e7..f80059eaa 100644 --- a/b6/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml +++ b/b6/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [view_pallet_history_expiry] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [view_pallet_history] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(IF(transaction_type = 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value = ?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,7 +286,7 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(S.module_id) from [view_security] as S where S.user_id = ? order by module_id @@ -291,24 +297,24 @@ JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - - + + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}view_permissions order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,u.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,u.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT * FROM [view_menu_structure] AS M WHERE M.MENU_ID = ? AND M.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT * FROM [view_rf_menu] AS T WHERE T.MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT * FROM [view_toolbar] AS T WHERE T.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,updated=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -584,8 +587,8 @@ JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,7 +617,7 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource @@ -643,7 +646,15 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER - + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + + JDBProcessOrder.ViewResource select * from view_process_order_resource @@ -651,7 +662,7 @@ JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from view_process_order_resource where process_order=? - + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,14 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -745,7 +768,7 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -800,39 +823,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - P.SSCC, - P.STATUS AS 'PALLET_STATUS', - P.LOCATION_ID, - P.DESPATCH_NO, - MB.MATERIAL, - MB.BATCH_NUMBER, - MB.STATUS AS 'BATCH_STATUS' - FROM - APP_PALLET P, - APP_MATERIAL_BATCH MB - WHERE - MB.MATERIAL = P.MATERIAL - AND MB.BATCH_NUMBER = P.BATCH_NUMBER - AND P.DESPATCH_NO = %1 - AND ( - P.STATUS NOT IN ( %2 ) - OR MB.STATUS NOT IN ( %3 ) - ) - + SELECT P.SSCC, P.STATUS AS 'PALLET_STATUS', P.LOCATION_ID, P.DESPATCH_NO, MB.MATERIAL, MB.BATCH_NUMBER, MB.STATUS AS 'BATCH_STATUS' FROM APP_PALLET P, APP_MATERIAL_BATCH MB WHERE MB.MATERIAL = P.MATERIAL AND MB.BATCH_NUMBER = P.BATCH_NUMBER AND P.DESPATCH_NO = %1 AND ( P.STATUS NOT IN ( %2 ) OR MB.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +854,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +871,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +892,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (`REPORT_REQUEST_ID`,`MODULE_ID`,`INVOCATION_MODE`,`PARAMETER_COUNT`,`PARAMETER_DELIMITER`,`PARAMETER_NAMES`,`PARAMETER_TYPES`,`PARAMETER_VALUES`,`SQL`,`PRINT_QUEUE_NAME`,`PRINT_COPIES`) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +909,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +934,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +963,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +992,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1021,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1046,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1067,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1088,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1113,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1138,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1163,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1188,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1217,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1246,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1283,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1319,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1344,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1377,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1402,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1423,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}view_label_data WHERE UNIQUE_ID = ? @@ -1432,96 +1432,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}view_auto_labeller_printer where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}view_auto_labeller_printer - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1533,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1569,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1595,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1653,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1666,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1699,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1707,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}view_barcode_validate where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1734,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1759,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1788,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1800,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1817,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1846,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1875,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1908,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1919,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1956,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +1999,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2028,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2055,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2068,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2093,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2118,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2126,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2159,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? + select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? + select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2206,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2215,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2239,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2260,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2280,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2288,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2317,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2335,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2372,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2397,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2426,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2438,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2451,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?, sample_point = ?, id=?,lane_1=?,lane_2=?,lane_3=?,lane_4=?,lane_5=? where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2492,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2525,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2566,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2590,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2599,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2615,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2638,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2669,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc limit ? + select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc limit ? - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2696,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2721,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2745,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2757,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,23 +2774,201 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? JDBOperatives.getOperatives select * from {schema}APP_OPERATIVES order by id - - + JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group - + + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM >'' AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml b/b6/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml index 2a895fb6b..289b81c79 100644 --- a/b6/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml +++ b/b6/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [VIEW_PALLET_HISTORY_EXPIRY] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [VIEW_PALLET_HISTORY] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(DECODE(transaction_type, 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value =?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,35 +286,35 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(module_id) from [view_security] where user_id = ? order by module_id JDBUser.changePassword - update {schema}SYS_USERS set Password = ?,last_password_change = ?,password_version=password_version+1,password_change_required='N',password_encrypted=? where user_id = ? + update {schema}SYS_USERS set Password = ?,last_password_change = ?,password_version=password_version+1,password_change_required='N',password_encrypted=? where user_id = ? JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? - + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -332,7 +338,7 @@ JDBUser.enable update {schema}SYS_USERS set account_enabled = 'Y' where user_id = ? - + JDBUser.getUserGroupsUnAssigned select group_id from {schema}SYS_GROUPS where group_id not in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?) order by group_id @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}VIEW_PERMISSIONS order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,U.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,U.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT * FROM [view_menu_structure]WHERE MENU_ID = ? AND MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT * FROM [view_rf_menu]WHERE MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT * FROM [view_toolbar]WHERE MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,updated=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material= ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -580,12 +583,12 @@ JDBJourney.delete delete from {schema}APP_JOURNEY where journey_ref = ? - + JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,11 +617,11 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource - + JDBProcessOrder.create insert into {schema}APP_PROCESS_ORDER (process_order) values (?) @@ -629,7 +632,7 @@ JDBProcessOrder.getProcessOrderProperties - select * from {schema}APP_PROCESS_ORDER where process_order = ? + select * from {schema}APP_PROCESS_ORDER where process_order = ? JDBProcessOrder.isValidProcessOrder @@ -643,15 +646,23 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + JDBProcessOrder.ViewResource select * from VIEW_PROCESS_ORDER_RESOURCE - + JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from VIEW_PROCESS_ORDER_RESOURCE where process_order=? - - + + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,18 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -744,8 +771,8 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - - + + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -769,7 +796,7 @@ JDBDespatch.setConfirmed update {schema}APP_DESPATCH set transaction_ref=?,status=?,despatch_date=?,total_pallets=(select count(sscc) from {schema}APP_PALLET where despatch_no = ?) where despatch_no=? - + JDBDespatch.getDespatchProperties select * from {schema}APP_DESPATCH where despatch_no = ? @@ -800,39 +827,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - APP_PALLET.SSCC, - APP_PALLET.STATUS "PALLET_STATUS", - APP_PALLET.LOCATION_ID, - APP_PALLET.DESPATCH_NO, - APP_MATERIAL_BATCH.MATERIAL, - APP_MATERIAL_BATCH.BATCH_NUMBER, - APP_MATERIAL_BATCH.STATUS AS "BATCH_STATUS" - FROM - APP_PALLET, - APP_MATERIAL_BATCH - WHERE - APP_MATERIAL_BATCH.MATERIAL = APP_PALLET.MATERIAL - AND APP_MATERIAL_BATCH.BATCH_NUMBER = APP_PALLET.BATCH_NUMBER - AND APP_PALLET.DESPATCH_NO = %1 - AND ( - APP_PALLET.STATUS NOT IN ( %2 ) - OR APP_MATERIAL_BATCH.STATUS NOT IN ( %3 ) - ) - + SELECT APP_PALLET.SSCC, APP_PALLET.STATUS "PALLET_STATUS", APP_PALLET.LOCATION_ID, APP_PALLET.DESPATCH_NO, APP_MATERIAL_BATCH.MATERIAL, APP_MATERIAL_BATCH.BATCH_NUMBER, APP_MATERIAL_BATCH.STATUS AS "BATCH_STATUS" FROM APP_PALLET, APP_MATERIAL_BATCH WHERE APP_MATERIAL_BATCH.MATERIAL = APP_PALLET.MATERIAL AND APP_MATERIAL_BATCH.BATCH_NUMBER = APP_PALLET.BATCH_NUMBER AND APP_PALLET.DESPATCH_NO = %1 AND ( APP_PALLET.STATUS NOT IN ( %2 ) OR APP_MATERIAL_BATCH.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +858,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +875,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +896,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (report_request_id,module_id,invocation_mode,parameter_count,parameter_delimiter,parameter_names,parameter_types,parameter_values,sql,print_queue_name,print_copies) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +913,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +938,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +967,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +996,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1025,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1050,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1071,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1092,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1117,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1142,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1167,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1192,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1221,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1250,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1287,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1323,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1348,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1381,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1406,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1427,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}VIEW_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1432,96 +1436,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}VIEW_AUTO_LABELLER_PRINTER where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}VIEW_AUTO_LABELLER_PRINTER - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1537,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1573,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1599,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1657,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1670,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1703,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1711,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}VIEW_BARCODE_VALIDATE where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1738,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1763,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1792,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1804,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1821,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1850,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1879,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1912,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1923,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? + JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1960,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +2003,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2032,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2059,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2072,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2097,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2122,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2130,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2163,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? and waste_material_id = ? + select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_material_id = ? and waste_location_id = ? + select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2210,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2219,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2243,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2264,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2284,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2292,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2321,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2339,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2376,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2401,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2430,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2442,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2455,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?,sample_point = ?, id=?, lane_1=?, lane_1=2, lane_1=3, lane_1=4, lane_1=5 where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2496,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2529,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2570,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2594,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2603,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2619,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2642,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2673,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select * from (select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc) where rownum <= ? + select * from (select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc) where rownum <= ? - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2700,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2725,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2749,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2761,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,23 +2778,201 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? JDBOperatives.getOperatives select * from {schema}APP_OPERATIVES order by id - - + JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM IS NOT NULL AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6web_t10_android_eb3/WebContent/WEB-INF/lib/commander4j.jar b/b6web_t10_android_eb3/WebContent/WEB-INF/lib/commander4j.jar index 5a3cab509..3a173d0e9 100644 Binary files a/b6web_t10_android_eb3/WebContent/WEB-INF/lib/commander4j.jar and b/b6web_t10_android_eb3/WebContent/WEB-INF/lib/commander4j.jar differ diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml new file mode 100644 index 000000000..a786896a5 --- /dev/null +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml @@ -0,0 +1,566 @@ + + + + + CREATE TABLE [dbo].[APP_BOM] ( + [BOM_ID] varchar(20) DEFAULT '' NOT NULL, + [BOM_VERSION] varchar(10) DEFAULT '' NOT NULL, + [BOM_SEQUENCE] int DEFAULT 0 NULL, + [DATA_ID] varchar(20) DEFAULT '' NOT NULL, + [DATA_TYPE] varchar(20) DEFAULT '' NULL, + [DATA_STRING] varchar(255) DEFAULT '' NULL, + [DATA_DECIMAL] decimal(22,3) DEFAULT NULL NULL, + [DATA_DATE] datetime DEFAULT NULL NULL, + [DATA_TIMESTAMP] datetime DEFAULT NULL, + [UUID] varchar(50) DEFAULT '' NOT NULL, + [PARENT_UUID] varchar(50) DEFAULT '' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM] ADD CONSTRAINT [PK_APP_BOM] PRIMARY KEY CLUSTERED ([BOM_ID], [BOM_VERSION], [DATA_ID], [UUID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_DEFAULTS] ( + [SOURCE_FIELD] varchar(32) NOT NULL, + [SOURCE_VALUE] varchar(50) NOT NULL, + [DESTINATION_FIELD] varchar(32) NOT NULL, + [DESTINATION_VALUE] varchar(50) NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_DEFAULTS] ADD CONSTRAINT [PK_APP_BOM_DEFAULTS] PRIMARY KEY CLUSTERED ([SOURCE_FIELD], [SOURCE_VALUE], [DESTINATION_FIELD]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_ELEMENTS] ( + [DATA_ID] varchar(20) NOT NULL, + [DATA_TYPE] varchar(20) NULL, + [ENABLE_EDIT] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_CREATE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_DELETE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_DUPLICATE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_CLIPBOARD] varchar(1) DEFAULT 'Y' NULL, + [MAX_OCCUR_LEVEL] int DEFAULT 1 NULL, + [ENABLE_LOOKUP] varchar(1) DEFAULT 'Y' NULL, + [LOOKUP_SQL] varchar(255) DEFAULT '' NULL, + [LOOKUP_FIELD] varchar(32) DEFAULT '' NULL, + [ICON_FILENAME] varchar(80) DEFAULT '' NULL, + [DESCRIPTION] varchar(80) DEFAULT '' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_ELEMENTS] ADD CONSTRAINT [PK_APP_BOM_ELEMENTS] PRIMARY KEY CLUSTERED ([DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_LISTS] ( + [LIST_ID] varchar(25) DEFAULT '' NOT NULL, + [ITEM] varchar(255) DEFAULT '' NOT NULL, + [SEQUENCE] int DEFAULT 0 NULL, + [ENABLED] varchar(1) DEFAULT 'Y' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_LISTS] ADD CONSTRAINT [PK_APP_BOM_LISTS] PRIMARY KEY CLUSTERED ([LIST_ID], [ITEM]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_STRUCTURE] ( + [DATA_ID] varchar(20) NOT NULL, + [PARENT_DATA_CATEGORY] varchar(20) NOT NULL, + [PARENT_DATA_ID] varchar(20) NOT NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_STRUCTURE] ADD CONSTRAINT [PK_APP_BOM_STRUCTURE] PRIMARY KEY CLUSTERED ([DATA_ID], [PARENT_DATA_CATEGORY], [PARENT_DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE VIEW view_bom as select BOM_MATERIAL.BOM_ID AS 'bom_id', + BOM_MATERIAL.BOM_VERSION AS 'bom_version', + BOM_MATERIAL.BOM_SEQUENCE AS 'display_order', + BOM_STAGE.DATA_STRING AS 'stage', + BOM_IN_OUT.DATA_ID AS 'input_output', + BOM_SEQUENCE.DATA_STRING AS 'sequence', + BOM_MATERIAL.DATA_STRING AS 'material', + BOM_MATERIAL.UUID AS 'material_uuid', + BOM_DESCRIPTION.DATA_STRING AS 'description', + BOM_QUANTITY.DATA_DECIMAL AS 'quantity', + BOM_TYPE.DATA_STRING AS 'type', + BOM_UOM.DATA_STRING AS 'uom', + BOM_GTIN.DATA_STRING AS 'gtin', + BOM_VARIANT.DATA_STRING AS 'variant', + BOM_LOCATION.DATA_STRING AS 'location_id', + BOM_LOCATION.UUID AS 'location_uuid' + from app_bom BOM_MATERIAL + left join app_bom BOM_DESCRIPTION on ((BOM_DESCRIPTION.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_DESCRIPTION.DATA_TYPE = 'string') and (BOM_DESCRIPTION.DATA_ID = 'description')) + left join app_bom BOM_QUANTITY on ((BOM_QUANTITY.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_QUANTITY.DATA_TYPE = 'decimal') and (BOM_QUANTITY.DATA_ID = 'quantity')) + left join app_bom BOM_SEQUENCE on ((BOM_SEQUENCE.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_SEQUENCE.DATA_TYPE = 'string') and (BOM_SEQUENCE.DATA_ID = 'sequence')) + left join app_bom BOM_TYPE on ((BOM_TYPE.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_TYPE.DATA_TYPE = 'string') and (BOM_TYPE.DATA_ID = 'type')) + left join app_bom BOM_UOM on ((BOM_UOM.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_UOM.DATA_TYPE = 'string') and (BOM_UOM.DATA_ID = 'uom')) + left join app_bom BOM_GTIN on ((BOM_GTIN.PARENT_UUID = BOM_UOM.UUID) and (BOM_GTIN.DATA_TYPE = 'string') and (BOM_GTIN.DATA_ID = 'gtin')) + left join app_bom BOM_VARIANT on ((BOM_VARIANT.PARENT_UUID = BOM_UOM.UUID) and (BOM_VARIANT.DATA_TYPE = 'string') and (BOM_VARIANT.DATA_ID = 'variant')) + left join app_bom BOM_IN_OUT on ((BOM_IN_OUT.UUID = BOM_MATERIAL.PARENT_UUID) and (BOM_IN_OUT.DATA_TYPE = 'string') and (BOM_IN_OUT.DATA_ID in ('input','output'))) + left join app_bom BOM_STAGE on ((BOM_STAGE.UUID = BOM_IN_OUT.PARENT_UUID) and (BOM_STAGE.DATA_TYPE = 'string') and (BOM_STAGE.DATA_ID = 'stage')) + left join app_bom BOM_LOCATION on ((BOM_LOCATION.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_LOCATION.DATA_TYPE = 'string') and (BOM_LOCATION.DATA_ID = 'location')) + where (BOM_MATERIAL.DATA_ID = 'material') + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_CATEGORY AS PARENT_DATA_CATEGORY, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770321', 'location_id', 'LANEA') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770322', 'location_id', 'LANEB') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770323', 'location_id', 'LANEC') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = ''location_id'' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = ''material_type'' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = ''uom'' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant') + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('gtin', 'value', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('input', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('location_id', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('output', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('quantity', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('root', '', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('runtime', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('sequence', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('stage', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('type', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('uom', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('updated', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('variant', 'value', 'uom') + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [MSG_PALLET_ISSUE] varchar(1) DEFAULT 'Y' + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [MSG_PALLET_RETURN] varchar(1) DEFAULT 'Y' + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [BARCODE_ID] varchar(25) DEFAULT '' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml new file mode 100644 index 000000000..914f0859a --- /dev/null +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml @@ -0,0 +1,337 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + drop view view_bom_structure + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_CATEGORY AS PARENT_DATA_CATEGORY, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP TABLE [dbo].[APP_BOM_STRUCTURE] + + + + CREATE TABLE [dbo].[APP_BOM_STRUCTURE] ( + [DATA_ID] varchar(20) NOT NULL, + [PARENT_DATA_ID] varchar(20) NOT NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_STRUCTURE] ADD CONSTRAINT [PK_APP_BOM_STRUCTURE] PRIMARY KEY CLUSTERED ([DATA_ID], [PARENT_DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + DROP view view_bom_structure + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('gtin', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('input', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('location_id', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('output', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('quantity', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('root', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('runtime', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('sequence', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('stage', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('type', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('uom', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('updated', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('variant', 'uom') + + diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml new file mode 100644 index 000000000..738f63bd8 --- /dev/null +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml index fbc365f9f..cd02dcb15 100644 --- a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml @@ -94,7 +94,7 @@ - CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS + CREATE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, @@ -156,7 +156,7 @@ - CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_sample_point_locations` AS select distinct `APP_WEIGHT_SAMPLE_POINT`.`LOCATION` AS `Location` from `APP_WEIGHT_SAMPLE_POINT` + CREATE VIEW `view_sample_point_locations` AS select distinct `APP_WEIGHT_SAMPLE_POINT`.`LOCATION` AS `Location` from `APP_WEIGHT_SAMPLE_POINT` diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml index b60f4b2b3..7436bcc60 100644 --- a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml @@ -7,7 +7,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, @@ -68,7 +68,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_sorting_qty_diffs` AS SELECT + CREATE OR REPLACE VIEW `view_sorting_qty_diffs` AS SELECT `APP_PALLET_EXTENSION`.`SSCC` AS `SSCC`, `APP_PALLET_EXTENSION`.`PALLET_QUANTITY` AS `PALLET_QUANTITY`, `APP_PALLET`.`QUANTITY` AS `QUANTITY`, diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml index cb4b7365f..ecde3d370 100644 --- a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_results` AS SELECT + CREATE OR REPLACE VIEW `view_qm_results` AS SELECT `APP_QM_SAMPLE`.`PROCESS_ORDER` AS `PROCESS_ORDER`, `APP_QM_SAMPLE`.`MATERIAL` AS `MATERIAL`, `APP_QM_SAMPLE`.`SAMPLE_ID` AS `SAMPLE_ID`, diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml index 82761953b..479d49bdd 100644 --- a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_panel_results` AS + CREATE OR REPLACE VIEW `view_qm_panel_results` AS SELECT APP_QM_PANEL.PANEL_ID, APP_QM_PANEL_TRAY.TRAY_ID, diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml index 1679337fb..7cd97f14f 100644 --- a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml @@ -345,7 +345,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml index 7d316e2c9..00887539f 100644 --- a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_results` AS + CREATE OR REPLACE VIEW `view_qm_results` AS SELECT samp.PROCESS_ORDER as 'PROCESS_ORDER', samp.MATERIAL as 'MATERIAL', samp.SAMPLE_ID as 'SAMPLE_ID', diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml index 46026ca58..0ae5fd149 100644 --- a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml @@ -44,7 +44,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml new file mode 100644 index 000000000..1acd4c6d1 --- /dev/null +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml @@ -0,0 +1,672 @@ + + + + + + CREATE TABLE `APP_BOM` ( + `BOM_ID` varchar(20) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT '', + `BOM_VERSION` varchar(10) NOT NULL DEFAULT '', + `BOM_SEQUENCE` int NOT NULL DEFAULT '0', + `DATA_ID` varchar(20) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT '', + `DATA_TYPE` varchar(20) DEFAULT '', + `DATA_STRING` varchar(255) DEFAULT '', + `DATA_DECIMAL` decimal(22,3) unsigned DEFAULT NULL, + `DATA_DATE` datetime DEFAULT NULL, + `DATA_TIMESTAMP` timestamp NULL DEFAULT NULL, + `UUID` varchar(50) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT (uuid()), + `PARENT_UUID` varchar(50) DEFAULT NULL, + PRIMARY KEY (`BOM_ID`,`BOM_VERSION`,`DATA_ID`,`UUID`) USING BTREE, + UNIQUE KEY `UUID_NDX` (`UUID`) USING BTREE, + KEY `UUID_PARENT_NDX` (`PARENT_UUID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_DEFAULTS` ( + `SOURCE_FIELD` varchar(32) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `SOURCE_VALUE` varchar(50) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `DESTINATION_FIELD` varchar(32) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `DESTINATION_VALUE` varchar(50) CHARACTER SET {charset} COLLATE {collation} DEFAULT NULL, + PRIMARY KEY (`SOURCE_FIELD`,`SOURCE_VALUE`,`DESTINATION_FIELD`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_ELEMENTS` ( + `DATA_ID` varchar(20) NOT NULL, + `DATA_TYPE` varchar(20) DEFAULT NULL, + `ENABLE_EDIT` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_CREATE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_DELETE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_DUPLICATE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_CLIPBOARD` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `MAX_OCCUR_LEVEL` int DEFAULT '1', + `ENABLE_LOOKUP` varchar(1) DEFAULT 'Y', + `LOOKUP_SQL` varchar(255) DEFAULT '', + `LOOKUP_FIELD` varchar(32) DEFAULT '', + `ICON_FILENAME` varchar(80) DEFAULT '', + `DESCRIPTION` varchar(80) DEFAULT '', + PRIMARY KEY (`DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_LISTS` ( + `LIST_ID` varchar(25) NOT NULL DEFAULT '', + `ITEM` varchar(50) NOT NULL DEFAULT '', + `SEQUENCE` int DEFAULT '0', + `ENABLED` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + PRIMARY KEY (`LIST_ID`,`ITEM`) + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + + CREATE TABLE `APP_BOM_STRUCTURE` ( + `DATA_ID` varchar(20) NOT NULL, + `PARENT_DATA_CATEGORY` varchar(20) NOT NULL, + `PARENT_DATA_ID` varchar(20) NOT NULL, + PRIMARY KEY (`DATA_ID`,`PARENT_DATA_CATEGORY`,`PARENT_DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + + CREATE VIEW `view_bom` AS + select `BOM_MATERIAL`.`BOM_ID` AS `bom_id`, + `BOM_MATERIAL`.`BOM_VERSION` AS `bom_version`, + `BOM_MATERIAL`.`BOM_SEQUENCE` AS `display_order`, + `BOM_STAGE`.`DATA_STRING` AS `stage`, + `BOM_IN_OUT`.`DATA_ID` AS `input_output`, + `BOM_SEQUENCE`.`DATA_STRING` AS `sequence`, + `BOM_MATERIAL`.`DATA_STRING` AS `material`, + `BOM_MATERIAL`.`UUID` AS `material_uuid`, + `BOM_DESCRIPTION`.`DATA_STRING` AS `description`, + `BOM_QUANTITY`.`DATA_DECIMAL` AS `quantity`, + `BOM_TYPE`.`DATA_STRING` AS `type`, + `BOM_UOM`.`DATA_STRING` AS `uom`, + `BOM_GTIN`.`DATA_STRING` AS `gtin`, + `BOM_VARIANT`.`DATA_STRING` AS `variant`, + `BOM_LOCATION`.`DATA_STRING` AS `location_id`, + `BOM_LOCATION`.`UUID` AS `location_uuid` + from `app_bom` `BOM_MATERIAL` + left join `app_bom` `BOM_DESCRIPTION` on (`BOM_DESCRIPTION`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_DESCRIPTION`.`DATA_TYPE` = 'string') + and (`BOM_DESCRIPTION`.`DATA_ID` = 'description') + left join `app_bom` `BOM_QUANTITY` on (`BOM_QUANTITY`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_QUANTITY`.`DATA_TYPE` = 'decimal') + and (`BOM_QUANTITY`.`DATA_ID` = 'quantity') + left join `app_bom` `BOM_SEQUENCE` on (`BOM_SEQUENCE`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_SEQUENCE`.`DATA_TYPE` = 'string') + and (`BOM_SEQUENCE`.`DATA_ID` = 'sequence') + left join `app_bom` `BOM_TYPE` on (`BOM_TYPE`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_TYPE`.`DATA_TYPE` = 'string') + and (`BOM_TYPE`.`DATA_ID` = 'type') + left join `app_bom` `BOM_UOM` on (`BOM_UOM`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_UOM`.`DATA_TYPE` = 'string') + and (`BOM_UOM`.`DATA_ID` = 'uom') + left join `app_bom` `BOM_GTIN` on (`BOM_GTIN`.`PARENT_UUID` = `BOM_UOM`.`UUID`) + and (`BOM_GTIN`.`DATA_TYPE` = 'string') + and (`BOM_GTIN`.`DATA_ID` = 'gtin') + left join `app_bom` `BOM_VARIANT` on (`BOM_VARIANT`.`PARENT_UUID` = `BOM_UOM`.`UUID`) + and (`BOM_VARIANT`.`DATA_TYPE` = 'string') + and (`BOM_VARIANT`.`DATA_ID` = 'variant') + left join `app_bom` `BOM_IN_OUT` on (`BOM_IN_OUT`.`UUID` = `BOM_MATERIAL`.`PARENT_UUID`) + and (`BOM_IN_OUT`.`DATA_TYPE` = 'string') + and (`BOM_IN_OUT`.`DATA_ID` in ('input','output')) + left join `app_bom` `BOM_STAGE` on (`BOM_STAGE`.`UUID` = `BOM_IN_OUT`.`PARENT_UUID`) + and (`BOM_STAGE`.`DATA_TYPE` = 'string') + and (`BOM_STAGE`.`DATA_ID` = 'stage') + left join `app_bom` `BOM_LOCATION` on (`BOM_LOCATION`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_LOCATION`.`DATA_TYPE` = 'string') + and (`BOM_LOCATION`.`DATA_ID` = 'location_id') + where (`BOM_MATERIAL`.`DATA_ID` = 'material') + order by `BOM_MATERIAL`.`BOM_ID`,`BOM_MATERIAL`.`BOM_VERSION`,`BOM_IN_OUT`.`DATA_ID`,`BOM_SEQUENCE`.`DATA_ID`,`BOM_MATERIAL`.`BOM_SEQUENCE`,`BOM_MATERIAL`.`UUID`; + + + + + CREATE VIEW `view_bom_structure` AS + select `app_bom_structure`.`DATA_ID` AS `DATA_ID`, + `app_bom_elements`.`DATA_TYPE` AS `DATA_TYPE`, + `app_bom_structure`.`PARENT_DATA_ID` AS `PARENT_DATA_ID`, + `app_bom_elements`.`ENABLE_EDIT` AS `ENABLE_EDIT`, + `app_bom_elements`.`ENABLE_CREATE` AS `ENABLE_CREATE`, + `app_bom_elements`.`ENABLE_DELETE` AS `ENABLE_DELETE`, + `app_bom_elements`.`ENABLE_DUPLICATE` AS `ENABLE_DUPLICATE`, + `app_bom_elements`.`ENABLE_CLIPBOARD` AS `ENABLE_CLIPBOARD`, + `app_bom_elements`.`ENABLE_LOOKUP` AS `ENABLE_LOOKUP`, + `app_bom_elements`.`LOOKUP_SQL` AS `LOOKUP_SQL`, + `app_bom_elements`.`LOOKUP_FIELD` AS `LOOKUP_FIELD`, + `app_bom_elements`.`ICON_FILENAME` AS `ICON_FILENAME`, + `app_bom_elements`.`MAX_OCCUR_LEVEL` AS `MAX_OCCUR_LEVEL`, + `app_bom_elements`.`DESCRIPTION` AS `DESCRIPTION` + from (`app_bom_structure` + join `app_bom_elements` + on((`app_bom_structure`.`DATA_ID` = `app_bom_elements`.`DATA_ID`))); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770321', 'location_id', 'LANEA'); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770322', 'location_id', 'LANEB'); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770323', 'location_id', 'LANEC'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = \'location_id\' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = \'material_type\' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = \'uom\' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant'); + + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('description', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('description', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('gtin', 'value', 'uom'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('hrs', 'section', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('hrs', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('input', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('location_id', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('line', 'section', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('line', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('material', 'section', 'input'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('material', 'section', 'output'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('output', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('quantity', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('resource', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('resource', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('root', '', ''); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('runtime', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('sequence', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('stage', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('type', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('uom', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('updated', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('variant', 'value', 'uom'); + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE `APP_LOCATION` + ADD COLUMN `MSG_PALLET_ISSUE` varchar(1) NULL DEFAULT 'Y' AFTER `MSG_PROD_UNCONFIRM`, + ADD COLUMN `MSG_PALLET_RETURN` varchar(1) NULL DEFAULT 'Y' AFTER `MSG_PALLET_ISSUE`, + ADD COLUMN `BARCODE_ID` varchar(25) NULL DEFAULT '' AFTER `MSG_PALLET_RETURN`; + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml new file mode 100644 index 000000000..38f7b3dec --- /dev/null +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml @@ -0,0 +1,358 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP TABLE `APP_BOM_STRUCTURE`; + + + + CREATE TABLE `APP_BOM_STRUCTURE` ( + `DATA_ID` varchar(20) NOT NULL, + `PARENT_DATA_ID` varchar(20) NOT NULL, + PRIMARY KEY (`DATA_ID`,`PARENT_DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + DROP VIEW `view_bom_structure` + + + + CREATE VIEW `view_bom_structure` AS + select `app_bom_structure`.`DATA_ID` AS `DATA_ID`, + `app_bom_elements`.`DATA_TYPE` AS `DATA_TYPE`, + `app_bom_structure`.`PARENT_DATA_ID` AS `PARENT_DATA_ID`, + `app_bom_elements`.`ENABLE_EDIT` AS `ENABLE_EDIT`, + `app_bom_elements`.`ENABLE_CREATE` AS `ENABLE_CREATE`, + `app_bom_elements`.`ENABLE_DELETE` AS `ENABLE_DELETE`, + `app_bom_elements`.`ENABLE_DUPLICATE` AS `ENABLE_DUPLICATE`, + `app_bom_elements`.`ENABLE_CLIPBOARD` AS `ENABLE_CLIPBOARD`, + `app_bom_elements`.`ENABLE_LOOKUP` AS `ENABLE_LOOKUP`, + `app_bom_elements`.`LOOKUP_SQL` AS `LOOKUP_SQL`, + `app_bom_elements`.`LOOKUP_FIELD` AS `LOOKUP_FIELD`, + `app_bom_elements`.`ICON_FILENAME` AS `ICON_FILENAME`, + `app_bom_elements`.`MAX_OCCUR_LEVEL` AS `MAX_OCCUR_LEVEL`, + `app_bom_elements`.`DESCRIPTION` AS `DESCRIPTION` + from (`app_bom_structure` + join `app_bom_elements` + on((`app_bom_structure`.`DATA_ID` = `app_bom_elements`.`DATA_ID`))); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('description', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('description', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('gtin', 'uom'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('hrs', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('hrs', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('input', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('location_id', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('line', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('line', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('material', 'input'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('material', 'output'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('output', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('quantity', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('resource', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('resource', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('root', ''); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('runtime', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('sequence', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('stage', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('type', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('uom', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('updated', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('variant', 'uom'); + + + diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml new file mode 100644 index 000000000..32738e209 --- /dev/null +++ b/b6web_t10_android_eb3/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml b/b6web_t10_android_eb3/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml new file mode 100644 index 000000000..d78048a6a --- /dev/null +++ b/b6web_t10_android_eb3/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml @@ -0,0 +1,556 @@ + + + + + CREATE TABLE "APP_BOM" ( + "BOM_ID" VARCHAR2(20) DEFAULT '' NOT NULL, + "BOM_VERSION" VARCHAR2(10) DEFAULT '' NOT NULL, + "BOM_SEQUENCE" INT DEFAULT 0 NOT NULL, + "DATA_ID" VARCHAR2(20) DEFAULT '' NOT NULL, + "DATA_TYPE" VARCHAR2(20) DEFAULT '', + "DATA_STRING" VARCHAR2(255) DEFAULT '', + "DATA_DECIMAL" NUMERIC(22,3) DEFAULT NULL, + "DATA_DATE" TIMESTAMP DEFAULT NULL, + "DATA_TIMESTAMP" TIMESTAMP DEFAULT NULL, + "UUID" VARCHAR2(50) DEFAULT '' NOT NULL, + "PARENT_UUID" VARCHAR2(50) DEFAULT '', + PRIMARY KEY ("BOM_ID", "BOM_VERSION", "DATA_ID", "UUID") ) + + + + CREATE TABLE "APP_BOM_DEFAULTS" ( + "SOURCE_FIELD" VARCHAR2(32) NOT NULL, + "SOURCE_VALUE" VARCHAR2(50) NOT NULL, + "DESTINATION_FIELD" VARCHAR2(32) NOT NULL, + "DESTINATION_VALUE" VARCHAR2(50), + PRIMARY KEY ("SOURCE_FIELD", "SOURCE_VALUE", "DESTINATION_FIELD") ) + + + + CREATE TABLE "APP_BOM_ELEMENTS" ( + "DATA_ID" VARCHAR2(20) NOT NULL, + "DATA_TYPE" VARCHAR2(20), + "ENABLE_EDIT" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_CREATE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_DELETE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_DUPLICATE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_CLIPBOARD" VARCHAR2(1) DEFAULT 'Y', + "MAX_OCCUR_LEVEL" INT, + "ENABLE_LOOKUP" VARCHAR2(1) DEFAULT 'Y', + "LOOKUP_SQL" VARCHAR2(255) DEFAULT '', + "LOOKUP_FIELD" VARCHAR2(32) DEFAULT '', + "ICON_FILENAME" VARCHAR2(80) DEFAULT '', + "DESCRIPTION" VARCHAR2(80) DEFAULT '', + PRIMARY KEY ("DATA_ID") ) + + + + CREATE TABLE "APP_BOM_LISTS" ( + "LIST_ID" VARCHAR2(25 BYTE) VISIBLE DEFAULT '', + "ITEM" VARCHAR2(50 BYTE) VISIBLE DEFAULT '', + "SEQUENCE" NUMBER VISIBLE DEFAULT 0, + "ENABLED" VARCHAR2(1 BYTE) VISIBLE DEFAULT 'Y') + + + + CREATE INDEX "IDX_APP_BOM_LISTS1" + ON "APP_BOM_LISTS" ("LIST_ID" ASC, "ITEM" ASC) + + + + CREATE TABLE "APP_BOM_STRUCTURE" ( + "DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '', + "PARENT_DATA_CATEGORY" VARCHAR2(20) VISIBLE DEFAULT '' , + "PARENT_DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '' ) + + + + CREATE INDEX "IDX_APP_BOM_STRUCTURE1" + ON "APP_BOM_STRUCTURE" ("DATA_ID" ASC, "PARENT_DATA_CATEGORY" ASC, "PARENT_DATA_ID" ASC) + + + + CREATE OR REPLACE VIEW view_bom as + SELECT BOM_MATERIAL.BOM_ID bom_id, + BOM_MATERIAL.BOM_VERSION bom_version, + BOM_MATERIAL.BOM_SEQUENCE display_order, + BOM_STAGE.DATA_STRING stage, + BOM_IN_OUT.DATA_ID input_output, + BOM_SEQUENCE.DATA_STRING sequence, + BOM_MATERIAL.DATA_STRING material, + BOM_MATERIAL.UUID material_uuid, + BOM_DESCRIPTION.DATA_STRING description, + BOM_QUANTITY.DATA_DECIMAL quantity, + BOM_TYPE.DATA_STRING TYPE, + BOM_UOM.DATA_STRING uom, + BOM_GTIN.DATA_STRING gtin, + BOM_VARIANT.DATA_STRING variant, + BOM_LOCATION.DATA_STRING location_id, + BOM_LOCATION.UUID location_uuid + FROM app_bom BOM_MATERIAL + LEFT JOIN app_bom BOM_DESCRIPTION ON ( ( BOM_DESCRIPTION.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_DESCRIPTION.DATA_TYPE = 'string' ) AND ( BOM_DESCRIPTION.DATA_ID = 'description' ) ) + LEFT JOIN app_bom BOM_QUANTITY ON ( ( BOM_QUANTITY.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_QUANTITY.DATA_TYPE = 'decimal' ) AND ( BOM_QUANTITY.DATA_ID = 'quantity' ) ) + LEFT JOIN app_bom BOM_SEQUENCE ON ( ( BOM_SEQUENCE.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_SEQUENCE.DATA_TYPE = 'string' ) AND ( BOM_SEQUENCE.DATA_ID = 'sequence' ) ) + LEFT JOIN app_bom BOM_TYPE ON ( ( BOM_TYPE.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_TYPE.DATA_TYPE = 'string' ) AND ( BOM_TYPE.DATA_ID = 'type' ) ) + LEFT JOIN app_bom BOM_UOM ON ( ( BOM_UOM.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_UOM.DATA_TYPE = 'string' ) AND ( BOM_UOM.DATA_ID = 'uom' ) ) + LEFT JOIN app_bom BOM_GTIN ON ( ( BOM_GTIN.PARENT_UUID = BOM_UOM.UUID ) AND ( BOM_GTIN.DATA_TYPE = 'string' ) AND ( BOM_GTIN.DATA_ID = 'gtin' ) ) + LEFT JOIN app_bom BOM_VARIANT ON ( ( BOM_VARIANT.PARENT_UUID = BOM_UOM.UUID ) AND ( BOM_VARIANT.DATA_TYPE = 'string' ) AND ( BOM_VARIANT.DATA_ID = 'variant' ) ) + LEFT JOIN app_bom BOM_IN_OUT ON ( ( BOM_IN_OUT.UUID = BOM_MATERIAL.PARENT_UUID ) AND ( BOM_IN_OUT.DATA_TYPE = 'string' ) AND ( BOM_IN_OUT.DATA_ID IN ( 'input', 'output' ) ) ) + LEFT JOIN app_bom BOM_STAGE ON ( ( BOM_STAGE.UUID = BOM_IN_OUT.PARENT_UUID ) AND ( BOM_STAGE.DATA_TYPE = 'string' ) AND ( BOM_STAGE.DATA_ID = 'stage' ) ) + LEFT JOIN app_bom BOM_LOCATION ON ( ( BOM_LOCATION.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_LOCATION.DATA_TYPE = 'string' ) AND ( BOM_LOCATION.DATA_ID = 'location_id' ) ) + WHERE ( BOM_MATERIAL.DATA_ID = 'material' ) + + + + CREATE OR REPLACE VIEW view_bom_structure AS + SELECT app_bom_structure.DATA_ID DATA_ID, + app_bom_elements.DATA_TYPE DATA_TYPE, + app_bom_structure.PARENT_DATA_ID PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION DESCRIPTION + FROM (app_bom_structure JOIN app_bom_elements ON ((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770321', 'location_id', 'LANEA') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770322', 'location_id', 'LANEB') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770323', 'location_id', 'LANEC') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = ''location_id'' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = ''material_type'' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = ''uom'' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant') + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('gtin', 'value', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('input', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('location_id', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('output', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('quantity', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('root', '', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('runtime', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('sequence', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('stage', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('type', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('uom', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('updated', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('variant', 'value', 'uom') + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') +mod_FRM_BOM_ADMIN + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE "APP_LOCATION" + ADD ("MSG_PALLET_ISSUE" VARCHAR2(1) DEFAULT 'Y') + ADD ("MSG_PALLET_RETURN" VARCHAR2(1) DEFAULT 'Y') + ADD ("BARCODE_ID" VARCHAR2(25) DEFAULT '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml b/b6web_t10_android_eb3/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml new file mode 100644 index 000000000..61c549a6e --- /dev/null +++ b/b6web_t10_android_eb3/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml @@ -0,0 +1,314 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP INDEX "IDX_APP_BOM_STRUCTURE1" + + + + DROP TABLE "APP_BOM_STRUCTURE" + + + + CREATE TABLE "APP_BOM_STRUCTURE" ( + "DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '', + "PARENT_DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '' ) + + + + CREATE INDEX "IDX_APP_BOM_STRUCTURE1" + ON "APP_BOM_STRUCTURE" ("DATA_ID" ASC, "PARENT_DATA_ID" ASC) + + + + CREATE OR REPLACE VIEW view_bom_structure AS + SELECT app_bom_structure.DATA_ID DATA_ID, + app_bom_elements.DATA_TYPE DATA_TYPE, + app_bom_structure.PARENT_DATA_ID PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION DESCRIPTION + FROM (app_bom_structure JOIN app_bom_elements ON ((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('gtin', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('input', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('location_id', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('output', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('quantity', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('root', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('runtime', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('sequence', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('stage', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('type', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('uom', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('updated', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('variant', 'uom') + + + diff --git a/b6web_t10_android_eb3/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml b/b6web_t10_android_eb3/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml new file mode 100644 index 000000000..3166d412d --- /dev/null +++ b/b6web_t10_android_eb3/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6web_t10_android_eb3/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml b/b6web_t10_android_eb3/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml index 337bb1136..6445ca54c 100644 --- a/b6web_t10_android_eb3/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml +++ b/b6web_t10_android_eb3/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [view_pallet_history_expiry] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [view_pallet_history] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(IIF(transaction_type = 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value = ?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,7 +286,7 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(a.module_id) from [view_security] a where a.user_id = ? order by a.module_id @@ -291,24 +297,24 @@ JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - - + + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}view_permissions order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,u.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,u.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT a.* FROM [view_menu_structure]a WHERE a.MENU_ID = ? AND a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT a.* FROM [view_rf_menu]a WHERE a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT a.* FROM [view_toolbar]a WHERE a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,[updated]=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -584,8 +587,8 @@ JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,7 +617,7 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource @@ -643,7 +646,15 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER - + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + + JDBProcessOrder.ViewResource select * from view_process_order_resource @@ -651,7 +662,7 @@ JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from view_process_order_resource where process_order=? - + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,18 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -745,7 +772,7 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -800,39 +827,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - P.SSCC, - P.STATUS AS 'PALLET_STATUS', - P.LOCATION_ID, - P.DESPATCH_NO, - MB.MATERIAL, - MB.BATCH_NUMBER, - MB.STATUS AS 'BATCH_STATUS' - FROM - APP_PALLET P, - APP_MATERIAL_BATCH MB - WHERE - MB.MATERIAL = P.MATERIAL - AND MB.BATCH_NUMBER = P.BATCH_NUMBER - AND P.DESPATCH_NO = %1 - AND ( - P.STATUS NOT IN ( %2 ) - OR MB.STATUS NOT IN ( %3 ) - ) - + SELECT P.SSCC, P.STATUS AS 'PALLET_STATUS', P.LOCATION_ID, P.DESPATCH_NO, MB.MATERIAL, MB.BATCH_NUMBER, MB.STATUS AS 'BATCH_STATUS' FROM APP_PALLET P, APP_MATERIAL_BATCH MB WHERE MB.MATERIAL = P.MATERIAL AND MB.BATCH_NUMBER = P.BATCH_NUMBER AND P.DESPATCH_NO = %1 AND ( P.STATUS NOT IN ( %2 ) OR MB.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +858,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +875,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +896,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (report_request_id,module_id,invocation_mode,parameter_count,parameter_delimiter,parameter_names,parameter_types,parameter_values,sql,print_queue_name,print_copies) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +913,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +938,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +967,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +996,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1025,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1050,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1071,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1092,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1117,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1142,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1167,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1192,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1221,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1250,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1287,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1323,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1348,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1381,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1406,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1427,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}view_label_data WHERE UNIQUE_ID = ? @@ -1432,96 +1436,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}view_auto_labeller_printer where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}view_auto_labeller_printer - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1537,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1573,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1599,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1657,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1670,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1703,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1711,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}view_barcode_validate where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1738,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1763,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1792,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1804,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1821,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1850,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1879,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1912,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1923,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1960,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +2003,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2032,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2059,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2072,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2097,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2122,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2130,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2163,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? + select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? + select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2210,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2219,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2243,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2264,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2284,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2292,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2321,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2339,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2376,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2401,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2430,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2442,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2455,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?, sample_point = ?, id=?,lane_1=?,lane_2=?,lane_3=?,lane_4=?,lane_5=? where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2496,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2529,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2570,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2594,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2603,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2619,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2642,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2673,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select top (?) * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc + select top (?) * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2700,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2725,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2749,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2761,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,11 +2778,11 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? @@ -2909,6 +2795,184 @@ JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group - + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM >'' AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6web_t10_android_eb3/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml b/b6web_t10_android_eb3/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml index c6e3009e7..f80059eaa 100644 --- a/b6web_t10_android_eb3/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml +++ b/b6web_t10_android_eb3/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [view_pallet_history_expiry] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [view_pallet_history] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(IF(transaction_type = 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value = ?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,7 +286,7 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(S.module_id) from [view_security] as S where S.user_id = ? order by module_id @@ -291,24 +297,24 @@ JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - - + + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}view_permissions order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,u.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,u.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT * FROM [view_menu_structure] AS M WHERE M.MENU_ID = ? AND M.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT * FROM [view_rf_menu] AS T WHERE T.MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT * FROM [view_toolbar] AS T WHERE T.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,updated=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -584,8 +587,8 @@ JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,7 +617,7 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource @@ -643,7 +646,15 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER - + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + + JDBProcessOrder.ViewResource select * from view_process_order_resource @@ -651,7 +662,7 @@ JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from view_process_order_resource where process_order=? - + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,14 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -745,7 +768,7 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -800,39 +823,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - P.SSCC, - P.STATUS AS 'PALLET_STATUS', - P.LOCATION_ID, - P.DESPATCH_NO, - MB.MATERIAL, - MB.BATCH_NUMBER, - MB.STATUS AS 'BATCH_STATUS' - FROM - APP_PALLET P, - APP_MATERIAL_BATCH MB - WHERE - MB.MATERIAL = P.MATERIAL - AND MB.BATCH_NUMBER = P.BATCH_NUMBER - AND P.DESPATCH_NO = %1 - AND ( - P.STATUS NOT IN ( %2 ) - OR MB.STATUS NOT IN ( %3 ) - ) - + SELECT P.SSCC, P.STATUS AS 'PALLET_STATUS', P.LOCATION_ID, P.DESPATCH_NO, MB.MATERIAL, MB.BATCH_NUMBER, MB.STATUS AS 'BATCH_STATUS' FROM APP_PALLET P, APP_MATERIAL_BATCH MB WHERE MB.MATERIAL = P.MATERIAL AND MB.BATCH_NUMBER = P.BATCH_NUMBER AND P.DESPATCH_NO = %1 AND ( P.STATUS NOT IN ( %2 ) OR MB.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +854,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +871,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +892,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (`REPORT_REQUEST_ID`,`MODULE_ID`,`INVOCATION_MODE`,`PARAMETER_COUNT`,`PARAMETER_DELIMITER`,`PARAMETER_NAMES`,`PARAMETER_TYPES`,`PARAMETER_VALUES`,`SQL`,`PRINT_QUEUE_NAME`,`PRINT_COPIES`) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +909,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +934,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +963,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +992,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1021,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1046,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1067,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1088,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1113,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1138,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1163,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1188,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1217,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1246,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1283,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1319,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1344,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1377,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1402,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1423,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}view_label_data WHERE UNIQUE_ID = ? @@ -1432,96 +1432,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}view_auto_labeller_printer where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}view_auto_labeller_printer - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1533,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1569,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1595,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1653,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1666,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1699,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1707,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}view_barcode_validate where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1734,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1759,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1788,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1800,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1817,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1846,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1875,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1908,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1919,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1956,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +1999,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2028,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2055,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2068,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2093,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2118,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2126,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2159,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? + select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? + select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2206,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2215,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2239,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2260,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2280,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2288,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2317,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2335,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2372,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2397,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2426,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2438,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2451,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?, sample_point = ?, id=?,lane_1=?,lane_2=?,lane_3=?,lane_4=?,lane_5=? where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2492,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2525,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2566,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2590,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2599,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2615,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2638,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2669,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc limit ? + select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc limit ? - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2696,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2721,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2745,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2757,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,23 +2774,201 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? JDBOperatives.getOperatives select * from {schema}APP_OPERATIVES order by id - - + JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group - + + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM >'' AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6web_t10_android_eb3/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml b/b6web_t10_android_eb3/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml index 2a895fb6b..289b81c79 100644 --- a/b6web_t10_android_eb3/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml +++ b/b6web_t10_android_eb3/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [VIEW_PALLET_HISTORY_EXPIRY] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [VIEW_PALLET_HISTORY] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(DECODE(transaction_type, 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value =?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,35 +286,35 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(module_id) from [view_security] where user_id = ? order by module_id JDBUser.changePassword - update {schema}SYS_USERS set Password = ?,last_password_change = ?,password_version=password_version+1,password_change_required='N',password_encrypted=? where user_id = ? + update {schema}SYS_USERS set Password = ?,last_password_change = ?,password_version=password_version+1,password_change_required='N',password_encrypted=? where user_id = ? JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? - + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -332,7 +338,7 @@ JDBUser.enable update {schema}SYS_USERS set account_enabled = 'Y' where user_id = ? - + JDBUser.getUserGroupsUnAssigned select group_id from {schema}SYS_GROUPS where group_id not in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?) order by group_id @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}VIEW_PERMISSIONS order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,U.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,U.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT * FROM [view_menu_structure]WHERE MENU_ID = ? AND MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT * FROM [view_rf_menu]WHERE MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT * FROM [view_toolbar]WHERE MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,updated=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material= ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -580,12 +583,12 @@ JDBJourney.delete delete from {schema}APP_JOURNEY where journey_ref = ? - + JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,11 +617,11 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource - + JDBProcessOrder.create insert into {schema}APP_PROCESS_ORDER (process_order) values (?) @@ -629,7 +632,7 @@ JDBProcessOrder.getProcessOrderProperties - select * from {schema}APP_PROCESS_ORDER where process_order = ? + select * from {schema}APP_PROCESS_ORDER where process_order = ? JDBProcessOrder.isValidProcessOrder @@ -643,15 +646,23 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + JDBProcessOrder.ViewResource select * from VIEW_PROCESS_ORDER_RESOURCE - + JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from VIEW_PROCESS_ORDER_RESOURCE where process_order=? - - + + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,18 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -744,8 +771,8 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - - + + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -769,7 +796,7 @@ JDBDespatch.setConfirmed update {schema}APP_DESPATCH set transaction_ref=?,status=?,despatch_date=?,total_pallets=(select count(sscc) from {schema}APP_PALLET where despatch_no = ?) where despatch_no=? - + JDBDespatch.getDespatchProperties select * from {schema}APP_DESPATCH where despatch_no = ? @@ -800,39 +827,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - APP_PALLET.SSCC, - APP_PALLET.STATUS "PALLET_STATUS", - APP_PALLET.LOCATION_ID, - APP_PALLET.DESPATCH_NO, - APP_MATERIAL_BATCH.MATERIAL, - APP_MATERIAL_BATCH.BATCH_NUMBER, - APP_MATERIAL_BATCH.STATUS AS "BATCH_STATUS" - FROM - APP_PALLET, - APP_MATERIAL_BATCH - WHERE - APP_MATERIAL_BATCH.MATERIAL = APP_PALLET.MATERIAL - AND APP_MATERIAL_BATCH.BATCH_NUMBER = APP_PALLET.BATCH_NUMBER - AND APP_PALLET.DESPATCH_NO = %1 - AND ( - APP_PALLET.STATUS NOT IN ( %2 ) - OR APP_MATERIAL_BATCH.STATUS NOT IN ( %3 ) - ) - + SELECT APP_PALLET.SSCC, APP_PALLET.STATUS "PALLET_STATUS", APP_PALLET.LOCATION_ID, APP_PALLET.DESPATCH_NO, APP_MATERIAL_BATCH.MATERIAL, APP_MATERIAL_BATCH.BATCH_NUMBER, APP_MATERIAL_BATCH.STATUS AS "BATCH_STATUS" FROM APP_PALLET, APP_MATERIAL_BATCH WHERE APP_MATERIAL_BATCH.MATERIAL = APP_PALLET.MATERIAL AND APP_MATERIAL_BATCH.BATCH_NUMBER = APP_PALLET.BATCH_NUMBER AND APP_PALLET.DESPATCH_NO = %1 AND ( APP_PALLET.STATUS NOT IN ( %2 ) OR APP_MATERIAL_BATCH.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +858,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +875,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +896,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (report_request_id,module_id,invocation_mode,parameter_count,parameter_delimiter,parameter_names,parameter_types,parameter_values,sql,print_queue_name,print_copies) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +913,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +938,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +967,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +996,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1025,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1050,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1071,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1092,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1117,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1142,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1167,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1192,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1221,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1250,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1287,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1323,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1348,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1381,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1406,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1427,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}VIEW_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1432,96 +1436,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}VIEW_AUTO_LABELLER_PRINTER where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}VIEW_AUTO_LABELLER_PRINTER - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1537,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1573,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1599,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1657,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1670,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1703,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1711,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}VIEW_BARCODE_VALIDATE where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1738,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1763,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1792,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1804,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1821,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1850,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1879,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1912,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1923,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? + JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1960,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +2003,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2032,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2059,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2072,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2097,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2122,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2130,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2163,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? and waste_material_id = ? + select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_material_id = ? and waste_location_id = ? + select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2210,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2219,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2243,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2264,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2284,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2292,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2321,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2339,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2376,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2401,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2430,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2442,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2455,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?,sample_point = ?, id=?, lane_1=?, lane_1=2, lane_1=3, lane_1=4, lane_1=5 where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2496,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2529,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2570,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2594,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2603,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2619,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2642,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2673,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select * from (select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc) where rownum <= ? + select * from (select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc) where rownum <= ? - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2700,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2725,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2749,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2761,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,23 +2778,201 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? JDBOperatives.getOperatives select * from {schema}APP_OPERATIVES order by id - - + JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM IS NOT NULL AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6web_t10_android_eb3/dist/b6web_t10_android_eb3.war b/b6web_t10_android_eb3/dist/b6web_t10_android_eb3.war index 333caaddc..18c2a623a 100644 Binary files a/b6web_t10_android_eb3/dist/b6web_t10_android_eb3.war and b/b6web_t10_android_eb3/dist/b6web_t10_android_eb3.war differ diff --git a/b6web_t10_react/WebContent/WEB-INF/lib/commander4j.jar b/b6web_t10_react/WebContent/WEB-INF/lib/commander4j.jar index 5a3cab509..3a173d0e9 100644 Binary files a/b6web_t10_react/WebContent/WEB-INF/lib/commander4j.jar and b/b6web_t10_react/WebContent/WEB-INF/lib/commander4j.jar differ diff --git a/b6web_t10_react/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml b/b6web_t10_react/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml new file mode 100644 index 000000000..a786896a5 --- /dev/null +++ b/b6web_t10_react/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml @@ -0,0 +1,566 @@ + + + + + CREATE TABLE [dbo].[APP_BOM] ( + [BOM_ID] varchar(20) DEFAULT '' NOT NULL, + [BOM_VERSION] varchar(10) DEFAULT '' NOT NULL, + [BOM_SEQUENCE] int DEFAULT 0 NULL, + [DATA_ID] varchar(20) DEFAULT '' NOT NULL, + [DATA_TYPE] varchar(20) DEFAULT '' NULL, + [DATA_STRING] varchar(255) DEFAULT '' NULL, + [DATA_DECIMAL] decimal(22,3) DEFAULT NULL NULL, + [DATA_DATE] datetime DEFAULT NULL NULL, + [DATA_TIMESTAMP] datetime DEFAULT NULL, + [UUID] varchar(50) DEFAULT '' NOT NULL, + [PARENT_UUID] varchar(50) DEFAULT '' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM] ADD CONSTRAINT [PK_APP_BOM] PRIMARY KEY CLUSTERED ([BOM_ID], [BOM_VERSION], [DATA_ID], [UUID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_DEFAULTS] ( + [SOURCE_FIELD] varchar(32) NOT NULL, + [SOURCE_VALUE] varchar(50) NOT NULL, + [DESTINATION_FIELD] varchar(32) NOT NULL, + [DESTINATION_VALUE] varchar(50) NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_DEFAULTS] ADD CONSTRAINT [PK_APP_BOM_DEFAULTS] PRIMARY KEY CLUSTERED ([SOURCE_FIELD], [SOURCE_VALUE], [DESTINATION_FIELD]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_ELEMENTS] ( + [DATA_ID] varchar(20) NOT NULL, + [DATA_TYPE] varchar(20) NULL, + [ENABLE_EDIT] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_CREATE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_DELETE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_DUPLICATE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_CLIPBOARD] varchar(1) DEFAULT 'Y' NULL, + [MAX_OCCUR_LEVEL] int DEFAULT 1 NULL, + [ENABLE_LOOKUP] varchar(1) DEFAULT 'Y' NULL, + [LOOKUP_SQL] varchar(255) DEFAULT '' NULL, + [LOOKUP_FIELD] varchar(32) DEFAULT '' NULL, + [ICON_FILENAME] varchar(80) DEFAULT '' NULL, + [DESCRIPTION] varchar(80) DEFAULT '' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_ELEMENTS] ADD CONSTRAINT [PK_APP_BOM_ELEMENTS] PRIMARY KEY CLUSTERED ([DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_LISTS] ( + [LIST_ID] varchar(25) DEFAULT '' NOT NULL, + [ITEM] varchar(255) DEFAULT '' NOT NULL, + [SEQUENCE] int DEFAULT 0 NULL, + [ENABLED] varchar(1) DEFAULT 'Y' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_LISTS] ADD CONSTRAINT [PK_APP_BOM_LISTS] PRIMARY KEY CLUSTERED ([LIST_ID], [ITEM]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_STRUCTURE] ( + [DATA_ID] varchar(20) NOT NULL, + [PARENT_DATA_CATEGORY] varchar(20) NOT NULL, + [PARENT_DATA_ID] varchar(20) NOT NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_STRUCTURE] ADD CONSTRAINT [PK_APP_BOM_STRUCTURE] PRIMARY KEY CLUSTERED ([DATA_ID], [PARENT_DATA_CATEGORY], [PARENT_DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE VIEW view_bom as select BOM_MATERIAL.BOM_ID AS 'bom_id', + BOM_MATERIAL.BOM_VERSION AS 'bom_version', + BOM_MATERIAL.BOM_SEQUENCE AS 'display_order', + BOM_STAGE.DATA_STRING AS 'stage', + BOM_IN_OUT.DATA_ID AS 'input_output', + BOM_SEQUENCE.DATA_STRING AS 'sequence', + BOM_MATERIAL.DATA_STRING AS 'material', + BOM_MATERIAL.UUID AS 'material_uuid', + BOM_DESCRIPTION.DATA_STRING AS 'description', + BOM_QUANTITY.DATA_DECIMAL AS 'quantity', + BOM_TYPE.DATA_STRING AS 'type', + BOM_UOM.DATA_STRING AS 'uom', + BOM_GTIN.DATA_STRING AS 'gtin', + BOM_VARIANT.DATA_STRING AS 'variant', + BOM_LOCATION.DATA_STRING AS 'location_id', + BOM_LOCATION.UUID AS 'location_uuid' + from app_bom BOM_MATERIAL + left join app_bom BOM_DESCRIPTION on ((BOM_DESCRIPTION.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_DESCRIPTION.DATA_TYPE = 'string') and (BOM_DESCRIPTION.DATA_ID = 'description')) + left join app_bom BOM_QUANTITY on ((BOM_QUANTITY.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_QUANTITY.DATA_TYPE = 'decimal') and (BOM_QUANTITY.DATA_ID = 'quantity')) + left join app_bom BOM_SEQUENCE on ((BOM_SEQUENCE.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_SEQUENCE.DATA_TYPE = 'string') and (BOM_SEQUENCE.DATA_ID = 'sequence')) + left join app_bom BOM_TYPE on ((BOM_TYPE.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_TYPE.DATA_TYPE = 'string') and (BOM_TYPE.DATA_ID = 'type')) + left join app_bom BOM_UOM on ((BOM_UOM.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_UOM.DATA_TYPE = 'string') and (BOM_UOM.DATA_ID = 'uom')) + left join app_bom BOM_GTIN on ((BOM_GTIN.PARENT_UUID = BOM_UOM.UUID) and (BOM_GTIN.DATA_TYPE = 'string') and (BOM_GTIN.DATA_ID = 'gtin')) + left join app_bom BOM_VARIANT on ((BOM_VARIANT.PARENT_UUID = BOM_UOM.UUID) and (BOM_VARIANT.DATA_TYPE = 'string') and (BOM_VARIANT.DATA_ID = 'variant')) + left join app_bom BOM_IN_OUT on ((BOM_IN_OUT.UUID = BOM_MATERIAL.PARENT_UUID) and (BOM_IN_OUT.DATA_TYPE = 'string') and (BOM_IN_OUT.DATA_ID in ('input','output'))) + left join app_bom BOM_STAGE on ((BOM_STAGE.UUID = BOM_IN_OUT.PARENT_UUID) and (BOM_STAGE.DATA_TYPE = 'string') and (BOM_STAGE.DATA_ID = 'stage')) + left join app_bom BOM_LOCATION on ((BOM_LOCATION.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_LOCATION.DATA_TYPE = 'string') and (BOM_LOCATION.DATA_ID = 'location')) + where (BOM_MATERIAL.DATA_ID = 'material') + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_CATEGORY AS PARENT_DATA_CATEGORY, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770321', 'location_id', 'LANEA') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770322', 'location_id', 'LANEB') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770323', 'location_id', 'LANEC') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = ''location_id'' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = ''material_type'' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = ''uom'' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant') + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('gtin', 'value', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('input', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('location_id', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('output', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('quantity', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('root', '', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('runtime', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('sequence', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('stage', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('type', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('uom', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('updated', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('variant', 'value', 'uom') + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [MSG_PALLET_ISSUE] varchar(1) DEFAULT 'Y' + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [MSG_PALLET_RETURN] varchar(1) DEFAULT 'Y' + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [BARCODE_ID] varchar(25) DEFAULT '' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6web_t10_react/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml b/b6web_t10_react/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml new file mode 100644 index 000000000..914f0859a --- /dev/null +++ b/b6web_t10_react/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml @@ -0,0 +1,337 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + drop view view_bom_structure + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_CATEGORY AS PARENT_DATA_CATEGORY, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP TABLE [dbo].[APP_BOM_STRUCTURE] + + + + CREATE TABLE [dbo].[APP_BOM_STRUCTURE] ( + [DATA_ID] varchar(20) NOT NULL, + [PARENT_DATA_ID] varchar(20) NOT NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_STRUCTURE] ADD CONSTRAINT [PK_APP_BOM_STRUCTURE] PRIMARY KEY CLUSTERED ([DATA_ID], [PARENT_DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + DROP view view_bom_structure + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('gtin', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('input', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('location_id', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('output', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('quantity', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('root', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('runtime', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('sequence', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('stage', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('type', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('uom', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('updated', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('variant', 'uom') + + diff --git a/b6web_t10_react/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml b/b6web_t10_react/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml new file mode 100644 index 000000000..738f63bd8 --- /dev/null +++ b/b6web_t10_react/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml index fbc365f9f..cd02dcb15 100644 --- a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml +++ b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml @@ -94,7 +94,7 @@ - CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS + CREATE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, @@ -156,7 +156,7 @@ - CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_sample_point_locations` AS select distinct `APP_WEIGHT_SAMPLE_POINT`.`LOCATION` AS `Location` from `APP_WEIGHT_SAMPLE_POINT` + CREATE VIEW `view_sample_point_locations` AS select distinct `APP_WEIGHT_SAMPLE_POINT`.`LOCATION` AS `Location` from `APP_WEIGHT_SAMPLE_POINT` diff --git a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml index b60f4b2b3..7436bcc60 100644 --- a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml +++ b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml @@ -7,7 +7,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, @@ -68,7 +68,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_sorting_qty_diffs` AS SELECT + CREATE OR REPLACE VIEW `view_sorting_qty_diffs` AS SELECT `APP_PALLET_EXTENSION`.`SSCC` AS `SSCC`, `APP_PALLET_EXTENSION`.`PALLET_QUANTITY` AS `PALLET_QUANTITY`, `APP_PALLET`.`QUANTITY` AS `QUANTITY`, diff --git a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml index cb4b7365f..ecde3d370 100644 --- a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml +++ b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_results` AS SELECT + CREATE OR REPLACE VIEW `view_qm_results` AS SELECT `APP_QM_SAMPLE`.`PROCESS_ORDER` AS `PROCESS_ORDER`, `APP_QM_SAMPLE`.`MATERIAL` AS `MATERIAL`, `APP_QM_SAMPLE`.`SAMPLE_ID` AS `SAMPLE_ID`, diff --git a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml index 82761953b..479d49bdd 100644 --- a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml +++ b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_panel_results` AS + CREATE OR REPLACE VIEW `view_qm_panel_results` AS SELECT APP_QM_PANEL.PANEL_ID, APP_QM_PANEL_TRAY.TRAY_ID, diff --git a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml index 1679337fb..7cd97f14f 100644 --- a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml +++ b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml @@ -345,7 +345,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, diff --git a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml index 7d316e2c9..00887539f 100644 --- a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml +++ b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_results` AS + CREATE OR REPLACE VIEW `view_qm_results` AS SELECT samp.PROCESS_ORDER as 'PROCESS_ORDER', samp.MATERIAL as 'MATERIAL', samp.SAMPLE_ID as 'SAMPLE_ID', diff --git a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml index 46026ca58..0ae5fd149 100644 --- a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml +++ b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml @@ -44,7 +44,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, diff --git a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml new file mode 100644 index 000000000..1acd4c6d1 --- /dev/null +++ b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml @@ -0,0 +1,672 @@ + + + + + + CREATE TABLE `APP_BOM` ( + `BOM_ID` varchar(20) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT '', + `BOM_VERSION` varchar(10) NOT NULL DEFAULT '', + `BOM_SEQUENCE` int NOT NULL DEFAULT '0', + `DATA_ID` varchar(20) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT '', + `DATA_TYPE` varchar(20) DEFAULT '', + `DATA_STRING` varchar(255) DEFAULT '', + `DATA_DECIMAL` decimal(22,3) unsigned DEFAULT NULL, + `DATA_DATE` datetime DEFAULT NULL, + `DATA_TIMESTAMP` timestamp NULL DEFAULT NULL, + `UUID` varchar(50) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT (uuid()), + `PARENT_UUID` varchar(50) DEFAULT NULL, + PRIMARY KEY (`BOM_ID`,`BOM_VERSION`,`DATA_ID`,`UUID`) USING BTREE, + UNIQUE KEY `UUID_NDX` (`UUID`) USING BTREE, + KEY `UUID_PARENT_NDX` (`PARENT_UUID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_DEFAULTS` ( + `SOURCE_FIELD` varchar(32) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `SOURCE_VALUE` varchar(50) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `DESTINATION_FIELD` varchar(32) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `DESTINATION_VALUE` varchar(50) CHARACTER SET {charset} COLLATE {collation} DEFAULT NULL, + PRIMARY KEY (`SOURCE_FIELD`,`SOURCE_VALUE`,`DESTINATION_FIELD`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_ELEMENTS` ( + `DATA_ID` varchar(20) NOT NULL, + `DATA_TYPE` varchar(20) DEFAULT NULL, + `ENABLE_EDIT` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_CREATE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_DELETE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_DUPLICATE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_CLIPBOARD` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `MAX_OCCUR_LEVEL` int DEFAULT '1', + `ENABLE_LOOKUP` varchar(1) DEFAULT 'Y', + `LOOKUP_SQL` varchar(255) DEFAULT '', + `LOOKUP_FIELD` varchar(32) DEFAULT '', + `ICON_FILENAME` varchar(80) DEFAULT '', + `DESCRIPTION` varchar(80) DEFAULT '', + PRIMARY KEY (`DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_LISTS` ( + `LIST_ID` varchar(25) NOT NULL DEFAULT '', + `ITEM` varchar(50) NOT NULL DEFAULT '', + `SEQUENCE` int DEFAULT '0', + `ENABLED` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + PRIMARY KEY (`LIST_ID`,`ITEM`) + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + + CREATE TABLE `APP_BOM_STRUCTURE` ( + `DATA_ID` varchar(20) NOT NULL, + `PARENT_DATA_CATEGORY` varchar(20) NOT NULL, + `PARENT_DATA_ID` varchar(20) NOT NULL, + PRIMARY KEY (`DATA_ID`,`PARENT_DATA_CATEGORY`,`PARENT_DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + + CREATE VIEW `view_bom` AS + select `BOM_MATERIAL`.`BOM_ID` AS `bom_id`, + `BOM_MATERIAL`.`BOM_VERSION` AS `bom_version`, + `BOM_MATERIAL`.`BOM_SEQUENCE` AS `display_order`, + `BOM_STAGE`.`DATA_STRING` AS `stage`, + `BOM_IN_OUT`.`DATA_ID` AS `input_output`, + `BOM_SEQUENCE`.`DATA_STRING` AS `sequence`, + `BOM_MATERIAL`.`DATA_STRING` AS `material`, + `BOM_MATERIAL`.`UUID` AS `material_uuid`, + `BOM_DESCRIPTION`.`DATA_STRING` AS `description`, + `BOM_QUANTITY`.`DATA_DECIMAL` AS `quantity`, + `BOM_TYPE`.`DATA_STRING` AS `type`, + `BOM_UOM`.`DATA_STRING` AS `uom`, + `BOM_GTIN`.`DATA_STRING` AS `gtin`, + `BOM_VARIANT`.`DATA_STRING` AS `variant`, + `BOM_LOCATION`.`DATA_STRING` AS `location_id`, + `BOM_LOCATION`.`UUID` AS `location_uuid` + from `app_bom` `BOM_MATERIAL` + left join `app_bom` `BOM_DESCRIPTION` on (`BOM_DESCRIPTION`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_DESCRIPTION`.`DATA_TYPE` = 'string') + and (`BOM_DESCRIPTION`.`DATA_ID` = 'description') + left join `app_bom` `BOM_QUANTITY` on (`BOM_QUANTITY`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_QUANTITY`.`DATA_TYPE` = 'decimal') + and (`BOM_QUANTITY`.`DATA_ID` = 'quantity') + left join `app_bom` `BOM_SEQUENCE` on (`BOM_SEQUENCE`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_SEQUENCE`.`DATA_TYPE` = 'string') + and (`BOM_SEQUENCE`.`DATA_ID` = 'sequence') + left join `app_bom` `BOM_TYPE` on (`BOM_TYPE`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_TYPE`.`DATA_TYPE` = 'string') + and (`BOM_TYPE`.`DATA_ID` = 'type') + left join `app_bom` `BOM_UOM` on (`BOM_UOM`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_UOM`.`DATA_TYPE` = 'string') + and (`BOM_UOM`.`DATA_ID` = 'uom') + left join `app_bom` `BOM_GTIN` on (`BOM_GTIN`.`PARENT_UUID` = `BOM_UOM`.`UUID`) + and (`BOM_GTIN`.`DATA_TYPE` = 'string') + and (`BOM_GTIN`.`DATA_ID` = 'gtin') + left join `app_bom` `BOM_VARIANT` on (`BOM_VARIANT`.`PARENT_UUID` = `BOM_UOM`.`UUID`) + and (`BOM_VARIANT`.`DATA_TYPE` = 'string') + and (`BOM_VARIANT`.`DATA_ID` = 'variant') + left join `app_bom` `BOM_IN_OUT` on (`BOM_IN_OUT`.`UUID` = `BOM_MATERIAL`.`PARENT_UUID`) + and (`BOM_IN_OUT`.`DATA_TYPE` = 'string') + and (`BOM_IN_OUT`.`DATA_ID` in ('input','output')) + left join `app_bom` `BOM_STAGE` on (`BOM_STAGE`.`UUID` = `BOM_IN_OUT`.`PARENT_UUID`) + and (`BOM_STAGE`.`DATA_TYPE` = 'string') + and (`BOM_STAGE`.`DATA_ID` = 'stage') + left join `app_bom` `BOM_LOCATION` on (`BOM_LOCATION`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_LOCATION`.`DATA_TYPE` = 'string') + and (`BOM_LOCATION`.`DATA_ID` = 'location_id') + where (`BOM_MATERIAL`.`DATA_ID` = 'material') + order by `BOM_MATERIAL`.`BOM_ID`,`BOM_MATERIAL`.`BOM_VERSION`,`BOM_IN_OUT`.`DATA_ID`,`BOM_SEQUENCE`.`DATA_ID`,`BOM_MATERIAL`.`BOM_SEQUENCE`,`BOM_MATERIAL`.`UUID`; + + + + + CREATE VIEW `view_bom_structure` AS + select `app_bom_structure`.`DATA_ID` AS `DATA_ID`, + `app_bom_elements`.`DATA_TYPE` AS `DATA_TYPE`, + `app_bom_structure`.`PARENT_DATA_ID` AS `PARENT_DATA_ID`, + `app_bom_elements`.`ENABLE_EDIT` AS `ENABLE_EDIT`, + `app_bom_elements`.`ENABLE_CREATE` AS `ENABLE_CREATE`, + `app_bom_elements`.`ENABLE_DELETE` AS `ENABLE_DELETE`, + `app_bom_elements`.`ENABLE_DUPLICATE` AS `ENABLE_DUPLICATE`, + `app_bom_elements`.`ENABLE_CLIPBOARD` AS `ENABLE_CLIPBOARD`, + `app_bom_elements`.`ENABLE_LOOKUP` AS `ENABLE_LOOKUP`, + `app_bom_elements`.`LOOKUP_SQL` AS `LOOKUP_SQL`, + `app_bom_elements`.`LOOKUP_FIELD` AS `LOOKUP_FIELD`, + `app_bom_elements`.`ICON_FILENAME` AS `ICON_FILENAME`, + `app_bom_elements`.`MAX_OCCUR_LEVEL` AS `MAX_OCCUR_LEVEL`, + `app_bom_elements`.`DESCRIPTION` AS `DESCRIPTION` + from (`app_bom_structure` + join `app_bom_elements` + on((`app_bom_structure`.`DATA_ID` = `app_bom_elements`.`DATA_ID`))); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770321', 'location_id', 'LANEA'); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770322', 'location_id', 'LANEB'); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770323', 'location_id', 'LANEC'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = \'location_id\' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = \'material_type\' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = \'uom\' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant'); + + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('description', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('description', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('gtin', 'value', 'uom'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('hrs', 'section', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('hrs', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('input', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('location_id', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('line', 'section', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('line', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('material', 'section', 'input'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('material', 'section', 'output'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('output', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('quantity', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('resource', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('resource', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('root', '', ''); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('runtime', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('sequence', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('stage', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('type', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('uom', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('updated', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('variant', 'value', 'uom'); + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE `APP_LOCATION` + ADD COLUMN `MSG_PALLET_ISSUE` varchar(1) NULL DEFAULT 'Y' AFTER `MSG_PROD_UNCONFIRM`, + ADD COLUMN `MSG_PALLET_RETURN` varchar(1) NULL DEFAULT 'Y' AFTER `MSG_PALLET_ISSUE`, + ADD COLUMN `BARCODE_ID` varchar(25) NULL DEFAULT '' AFTER `MSG_PALLET_RETURN`; + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml new file mode 100644 index 000000000..38f7b3dec --- /dev/null +++ b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml @@ -0,0 +1,358 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP TABLE `APP_BOM_STRUCTURE`; + + + + CREATE TABLE `APP_BOM_STRUCTURE` ( + `DATA_ID` varchar(20) NOT NULL, + `PARENT_DATA_ID` varchar(20) NOT NULL, + PRIMARY KEY (`DATA_ID`,`PARENT_DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + DROP VIEW `view_bom_structure` + + + + CREATE VIEW `view_bom_structure` AS + select `app_bom_structure`.`DATA_ID` AS `DATA_ID`, + `app_bom_elements`.`DATA_TYPE` AS `DATA_TYPE`, + `app_bom_structure`.`PARENT_DATA_ID` AS `PARENT_DATA_ID`, + `app_bom_elements`.`ENABLE_EDIT` AS `ENABLE_EDIT`, + `app_bom_elements`.`ENABLE_CREATE` AS `ENABLE_CREATE`, + `app_bom_elements`.`ENABLE_DELETE` AS `ENABLE_DELETE`, + `app_bom_elements`.`ENABLE_DUPLICATE` AS `ENABLE_DUPLICATE`, + `app_bom_elements`.`ENABLE_CLIPBOARD` AS `ENABLE_CLIPBOARD`, + `app_bom_elements`.`ENABLE_LOOKUP` AS `ENABLE_LOOKUP`, + `app_bom_elements`.`LOOKUP_SQL` AS `LOOKUP_SQL`, + `app_bom_elements`.`LOOKUP_FIELD` AS `LOOKUP_FIELD`, + `app_bom_elements`.`ICON_FILENAME` AS `ICON_FILENAME`, + `app_bom_elements`.`MAX_OCCUR_LEVEL` AS `MAX_OCCUR_LEVEL`, + `app_bom_elements`.`DESCRIPTION` AS `DESCRIPTION` + from (`app_bom_structure` + join `app_bom_elements` + on((`app_bom_structure`.`DATA_ID` = `app_bom_elements`.`DATA_ID`))); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('description', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('description', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('gtin', 'uom'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('hrs', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('hrs', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('input', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('location_id', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('line', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('line', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('material', 'input'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('material', 'output'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('output', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('quantity', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('resource', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('resource', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('root', ''); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('runtime', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('sequence', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('stage', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('type', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('uom', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('updated', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('variant', 'uom'); + + + diff --git a/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml new file mode 100644 index 000000000..32738e209 --- /dev/null +++ b/b6web_t10_react/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6web_t10_react/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml b/b6web_t10_react/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml new file mode 100644 index 000000000..d78048a6a --- /dev/null +++ b/b6web_t10_react/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml @@ -0,0 +1,556 @@ + + + + + CREATE TABLE "APP_BOM" ( + "BOM_ID" VARCHAR2(20) DEFAULT '' NOT NULL, + "BOM_VERSION" VARCHAR2(10) DEFAULT '' NOT NULL, + "BOM_SEQUENCE" INT DEFAULT 0 NOT NULL, + "DATA_ID" VARCHAR2(20) DEFAULT '' NOT NULL, + "DATA_TYPE" VARCHAR2(20) DEFAULT '', + "DATA_STRING" VARCHAR2(255) DEFAULT '', + "DATA_DECIMAL" NUMERIC(22,3) DEFAULT NULL, + "DATA_DATE" TIMESTAMP DEFAULT NULL, + "DATA_TIMESTAMP" TIMESTAMP DEFAULT NULL, + "UUID" VARCHAR2(50) DEFAULT '' NOT NULL, + "PARENT_UUID" VARCHAR2(50) DEFAULT '', + PRIMARY KEY ("BOM_ID", "BOM_VERSION", "DATA_ID", "UUID") ) + + + + CREATE TABLE "APP_BOM_DEFAULTS" ( + "SOURCE_FIELD" VARCHAR2(32) NOT NULL, + "SOURCE_VALUE" VARCHAR2(50) NOT NULL, + "DESTINATION_FIELD" VARCHAR2(32) NOT NULL, + "DESTINATION_VALUE" VARCHAR2(50), + PRIMARY KEY ("SOURCE_FIELD", "SOURCE_VALUE", "DESTINATION_FIELD") ) + + + + CREATE TABLE "APP_BOM_ELEMENTS" ( + "DATA_ID" VARCHAR2(20) NOT NULL, + "DATA_TYPE" VARCHAR2(20), + "ENABLE_EDIT" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_CREATE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_DELETE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_DUPLICATE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_CLIPBOARD" VARCHAR2(1) DEFAULT 'Y', + "MAX_OCCUR_LEVEL" INT, + "ENABLE_LOOKUP" VARCHAR2(1) DEFAULT 'Y', + "LOOKUP_SQL" VARCHAR2(255) DEFAULT '', + "LOOKUP_FIELD" VARCHAR2(32) DEFAULT '', + "ICON_FILENAME" VARCHAR2(80) DEFAULT '', + "DESCRIPTION" VARCHAR2(80) DEFAULT '', + PRIMARY KEY ("DATA_ID") ) + + + + CREATE TABLE "APP_BOM_LISTS" ( + "LIST_ID" VARCHAR2(25 BYTE) VISIBLE DEFAULT '', + "ITEM" VARCHAR2(50 BYTE) VISIBLE DEFAULT '', + "SEQUENCE" NUMBER VISIBLE DEFAULT 0, + "ENABLED" VARCHAR2(1 BYTE) VISIBLE DEFAULT 'Y') + + + + CREATE INDEX "IDX_APP_BOM_LISTS1" + ON "APP_BOM_LISTS" ("LIST_ID" ASC, "ITEM" ASC) + + + + CREATE TABLE "APP_BOM_STRUCTURE" ( + "DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '', + "PARENT_DATA_CATEGORY" VARCHAR2(20) VISIBLE DEFAULT '' , + "PARENT_DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '' ) + + + + CREATE INDEX "IDX_APP_BOM_STRUCTURE1" + ON "APP_BOM_STRUCTURE" ("DATA_ID" ASC, "PARENT_DATA_CATEGORY" ASC, "PARENT_DATA_ID" ASC) + + + + CREATE OR REPLACE VIEW view_bom as + SELECT BOM_MATERIAL.BOM_ID bom_id, + BOM_MATERIAL.BOM_VERSION bom_version, + BOM_MATERIAL.BOM_SEQUENCE display_order, + BOM_STAGE.DATA_STRING stage, + BOM_IN_OUT.DATA_ID input_output, + BOM_SEQUENCE.DATA_STRING sequence, + BOM_MATERIAL.DATA_STRING material, + BOM_MATERIAL.UUID material_uuid, + BOM_DESCRIPTION.DATA_STRING description, + BOM_QUANTITY.DATA_DECIMAL quantity, + BOM_TYPE.DATA_STRING TYPE, + BOM_UOM.DATA_STRING uom, + BOM_GTIN.DATA_STRING gtin, + BOM_VARIANT.DATA_STRING variant, + BOM_LOCATION.DATA_STRING location_id, + BOM_LOCATION.UUID location_uuid + FROM app_bom BOM_MATERIAL + LEFT JOIN app_bom BOM_DESCRIPTION ON ( ( BOM_DESCRIPTION.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_DESCRIPTION.DATA_TYPE = 'string' ) AND ( BOM_DESCRIPTION.DATA_ID = 'description' ) ) + LEFT JOIN app_bom BOM_QUANTITY ON ( ( BOM_QUANTITY.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_QUANTITY.DATA_TYPE = 'decimal' ) AND ( BOM_QUANTITY.DATA_ID = 'quantity' ) ) + LEFT JOIN app_bom BOM_SEQUENCE ON ( ( BOM_SEQUENCE.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_SEQUENCE.DATA_TYPE = 'string' ) AND ( BOM_SEQUENCE.DATA_ID = 'sequence' ) ) + LEFT JOIN app_bom BOM_TYPE ON ( ( BOM_TYPE.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_TYPE.DATA_TYPE = 'string' ) AND ( BOM_TYPE.DATA_ID = 'type' ) ) + LEFT JOIN app_bom BOM_UOM ON ( ( BOM_UOM.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_UOM.DATA_TYPE = 'string' ) AND ( BOM_UOM.DATA_ID = 'uom' ) ) + LEFT JOIN app_bom BOM_GTIN ON ( ( BOM_GTIN.PARENT_UUID = BOM_UOM.UUID ) AND ( BOM_GTIN.DATA_TYPE = 'string' ) AND ( BOM_GTIN.DATA_ID = 'gtin' ) ) + LEFT JOIN app_bom BOM_VARIANT ON ( ( BOM_VARIANT.PARENT_UUID = BOM_UOM.UUID ) AND ( BOM_VARIANT.DATA_TYPE = 'string' ) AND ( BOM_VARIANT.DATA_ID = 'variant' ) ) + LEFT JOIN app_bom BOM_IN_OUT ON ( ( BOM_IN_OUT.UUID = BOM_MATERIAL.PARENT_UUID ) AND ( BOM_IN_OUT.DATA_TYPE = 'string' ) AND ( BOM_IN_OUT.DATA_ID IN ( 'input', 'output' ) ) ) + LEFT JOIN app_bom BOM_STAGE ON ( ( BOM_STAGE.UUID = BOM_IN_OUT.PARENT_UUID ) AND ( BOM_STAGE.DATA_TYPE = 'string' ) AND ( BOM_STAGE.DATA_ID = 'stage' ) ) + LEFT JOIN app_bom BOM_LOCATION ON ( ( BOM_LOCATION.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_LOCATION.DATA_TYPE = 'string' ) AND ( BOM_LOCATION.DATA_ID = 'location_id' ) ) + WHERE ( BOM_MATERIAL.DATA_ID = 'material' ) + + + + CREATE OR REPLACE VIEW view_bom_structure AS + SELECT app_bom_structure.DATA_ID DATA_ID, + app_bom_elements.DATA_TYPE DATA_TYPE, + app_bom_structure.PARENT_DATA_ID PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION DESCRIPTION + FROM (app_bom_structure JOIN app_bom_elements ON ((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770321', 'location_id', 'LANEA') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770322', 'location_id', 'LANEB') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770323', 'location_id', 'LANEC') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = ''location_id'' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = ''material_type'' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = ''uom'' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant') + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('gtin', 'value', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('input', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('location_id', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('output', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('quantity', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('root', '', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('runtime', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('sequence', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('stage', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('type', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('uom', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('updated', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('variant', 'value', 'uom') + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') +mod_FRM_BOM_ADMIN + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE "APP_LOCATION" + ADD ("MSG_PALLET_ISSUE" VARCHAR2(1) DEFAULT 'Y') + ADD ("MSG_PALLET_RETURN" VARCHAR2(1) DEFAULT 'Y') + ADD ("BARCODE_ID" VARCHAR2(25) DEFAULT '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6web_t10_react/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml b/b6web_t10_react/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml new file mode 100644 index 000000000..61c549a6e --- /dev/null +++ b/b6web_t10_react/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml @@ -0,0 +1,314 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP INDEX "IDX_APP_BOM_STRUCTURE1" + + + + DROP TABLE "APP_BOM_STRUCTURE" + + + + CREATE TABLE "APP_BOM_STRUCTURE" ( + "DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '', + "PARENT_DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '' ) + + + + CREATE INDEX "IDX_APP_BOM_STRUCTURE1" + ON "APP_BOM_STRUCTURE" ("DATA_ID" ASC, "PARENT_DATA_ID" ASC) + + + + CREATE OR REPLACE VIEW view_bom_structure AS + SELECT app_bom_structure.DATA_ID DATA_ID, + app_bom_elements.DATA_TYPE DATA_TYPE, + app_bom_structure.PARENT_DATA_ID PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION DESCRIPTION + FROM (app_bom_structure JOIN app_bom_elements ON ((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('gtin', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('input', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('location_id', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('output', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('quantity', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('root', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('runtime', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('sequence', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('stage', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('type', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('uom', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('updated', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('variant', 'uom') + + + diff --git a/b6web_t10_react/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml b/b6web_t10_react/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml new file mode 100644 index 000000000..3166d412d --- /dev/null +++ b/b6web_t10_react/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6web_t10_react/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml b/b6web_t10_react/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml index 337bb1136..6445ca54c 100644 --- a/b6web_t10_react/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml +++ b/b6web_t10_react/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [view_pallet_history_expiry] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [view_pallet_history] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(IIF(transaction_type = 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value = ?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,7 +286,7 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(a.module_id) from [view_security] a where a.user_id = ? order by a.module_id @@ -291,24 +297,24 @@ JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - - + + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}view_permissions order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,u.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,u.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT a.* FROM [view_menu_structure]a WHERE a.MENU_ID = ? AND a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT a.* FROM [view_rf_menu]a WHERE a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT a.* FROM [view_toolbar]a WHERE a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,[updated]=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -584,8 +587,8 @@ JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,7 +617,7 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource @@ -643,7 +646,15 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER - + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + + JDBProcessOrder.ViewResource select * from view_process_order_resource @@ -651,7 +662,7 @@ JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from view_process_order_resource where process_order=? - + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,18 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -745,7 +772,7 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -800,39 +827,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - P.SSCC, - P.STATUS AS 'PALLET_STATUS', - P.LOCATION_ID, - P.DESPATCH_NO, - MB.MATERIAL, - MB.BATCH_NUMBER, - MB.STATUS AS 'BATCH_STATUS' - FROM - APP_PALLET P, - APP_MATERIAL_BATCH MB - WHERE - MB.MATERIAL = P.MATERIAL - AND MB.BATCH_NUMBER = P.BATCH_NUMBER - AND P.DESPATCH_NO = %1 - AND ( - P.STATUS NOT IN ( %2 ) - OR MB.STATUS NOT IN ( %3 ) - ) - + SELECT P.SSCC, P.STATUS AS 'PALLET_STATUS', P.LOCATION_ID, P.DESPATCH_NO, MB.MATERIAL, MB.BATCH_NUMBER, MB.STATUS AS 'BATCH_STATUS' FROM APP_PALLET P, APP_MATERIAL_BATCH MB WHERE MB.MATERIAL = P.MATERIAL AND MB.BATCH_NUMBER = P.BATCH_NUMBER AND P.DESPATCH_NO = %1 AND ( P.STATUS NOT IN ( %2 ) OR MB.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +858,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +875,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +896,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (report_request_id,module_id,invocation_mode,parameter_count,parameter_delimiter,parameter_names,parameter_types,parameter_values,sql,print_queue_name,print_copies) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +913,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +938,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +967,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +996,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1025,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1050,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1071,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1092,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1117,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1142,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1167,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1192,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1221,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1250,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1287,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1323,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1348,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1381,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1406,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1427,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}view_label_data WHERE UNIQUE_ID = ? @@ -1432,96 +1436,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}view_auto_labeller_printer where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}view_auto_labeller_printer - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1537,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1573,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1599,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1657,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1670,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1703,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1711,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}view_barcode_validate where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1738,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1763,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1792,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1804,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1821,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1850,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1879,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1912,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1923,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1960,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +2003,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2032,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2059,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2072,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2097,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2122,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2130,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2163,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? + select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? + select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2210,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2219,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2243,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2264,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2284,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2292,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2321,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2339,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2376,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2401,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2430,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2442,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2455,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?, sample_point = ?, id=?,lane_1=?,lane_2=?,lane_3=?,lane_4=?,lane_5=? where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2496,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2529,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2570,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2594,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2603,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2619,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2642,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2673,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select top (?) * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc + select top (?) * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2700,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2725,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2749,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2761,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,11 +2778,11 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? @@ -2909,6 +2795,184 @@ JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group - + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM >'' AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6web_t10_react/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml b/b6web_t10_react/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml index c6e3009e7..f80059eaa 100644 --- a/b6web_t10_react/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml +++ b/b6web_t10_react/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [view_pallet_history_expiry] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [view_pallet_history] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(IF(transaction_type = 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value = ?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,7 +286,7 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(S.module_id) from [view_security] as S where S.user_id = ? order by module_id @@ -291,24 +297,24 @@ JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - - + + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}view_permissions order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,u.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,u.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT * FROM [view_menu_structure] AS M WHERE M.MENU_ID = ? AND M.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT * FROM [view_rf_menu] AS T WHERE T.MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT * FROM [view_toolbar] AS T WHERE T.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,updated=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -584,8 +587,8 @@ JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,7 +617,7 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource @@ -643,7 +646,15 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER - + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + + JDBProcessOrder.ViewResource select * from view_process_order_resource @@ -651,7 +662,7 @@ JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from view_process_order_resource where process_order=? - + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,14 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -745,7 +768,7 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -800,39 +823,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - P.SSCC, - P.STATUS AS 'PALLET_STATUS', - P.LOCATION_ID, - P.DESPATCH_NO, - MB.MATERIAL, - MB.BATCH_NUMBER, - MB.STATUS AS 'BATCH_STATUS' - FROM - APP_PALLET P, - APP_MATERIAL_BATCH MB - WHERE - MB.MATERIAL = P.MATERIAL - AND MB.BATCH_NUMBER = P.BATCH_NUMBER - AND P.DESPATCH_NO = %1 - AND ( - P.STATUS NOT IN ( %2 ) - OR MB.STATUS NOT IN ( %3 ) - ) - + SELECT P.SSCC, P.STATUS AS 'PALLET_STATUS', P.LOCATION_ID, P.DESPATCH_NO, MB.MATERIAL, MB.BATCH_NUMBER, MB.STATUS AS 'BATCH_STATUS' FROM APP_PALLET P, APP_MATERIAL_BATCH MB WHERE MB.MATERIAL = P.MATERIAL AND MB.BATCH_NUMBER = P.BATCH_NUMBER AND P.DESPATCH_NO = %1 AND ( P.STATUS NOT IN ( %2 ) OR MB.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +854,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +871,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +892,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (`REPORT_REQUEST_ID`,`MODULE_ID`,`INVOCATION_MODE`,`PARAMETER_COUNT`,`PARAMETER_DELIMITER`,`PARAMETER_NAMES`,`PARAMETER_TYPES`,`PARAMETER_VALUES`,`SQL`,`PRINT_QUEUE_NAME`,`PRINT_COPIES`) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +909,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +934,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +963,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +992,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1021,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1046,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1067,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1088,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1113,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1138,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1163,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1188,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1217,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1246,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1283,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1319,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1344,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1377,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1402,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1423,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}view_label_data WHERE UNIQUE_ID = ? @@ -1432,96 +1432,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}view_auto_labeller_printer where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}view_auto_labeller_printer - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1533,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1569,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1595,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1653,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1666,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1699,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1707,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}view_barcode_validate where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1734,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1759,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1788,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1800,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1817,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1846,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1875,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1908,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1919,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1956,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +1999,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2028,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2055,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2068,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2093,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2118,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2126,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2159,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? + select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? + select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2206,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2215,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2239,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2260,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2280,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2288,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2317,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2335,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2372,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2397,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2426,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2438,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2451,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?, sample_point = ?, id=?,lane_1=?,lane_2=?,lane_3=?,lane_4=?,lane_5=? where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2492,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2525,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2566,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2590,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2599,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2615,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2638,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2669,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc limit ? + select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc limit ? - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2696,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2721,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2745,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2757,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,23 +2774,201 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? JDBOperatives.getOperatives select * from {schema}APP_OPERATIVES order by id - - + JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group - + + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM >'' AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6web_t10_react/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml b/b6web_t10_react/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml index 2a895fb6b..289b81c79 100644 --- a/b6web_t10_react/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml +++ b/b6web_t10_react/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [VIEW_PALLET_HISTORY_EXPIRY] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [VIEW_PALLET_HISTORY] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(DECODE(transaction_type, 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value =?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,35 +286,35 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(module_id) from [view_security] where user_id = ? order by module_id JDBUser.changePassword - update {schema}SYS_USERS set Password = ?,last_password_change = ?,password_version=password_version+1,password_change_required='N',password_encrypted=? where user_id = ? + update {schema}SYS_USERS set Password = ?,last_password_change = ?,password_version=password_version+1,password_change_required='N',password_encrypted=? where user_id = ? JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? - + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -332,7 +338,7 @@ JDBUser.enable update {schema}SYS_USERS set account_enabled = 'Y' where user_id = ? - + JDBUser.getUserGroupsUnAssigned select group_id from {schema}SYS_GROUPS where group_id not in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?) order by group_id @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}VIEW_PERMISSIONS order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,U.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,U.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT * FROM [view_menu_structure]WHERE MENU_ID = ? AND MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT * FROM [view_rf_menu]WHERE MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT * FROM [view_toolbar]WHERE MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,updated=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material= ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -580,12 +583,12 @@ JDBJourney.delete delete from {schema}APP_JOURNEY where journey_ref = ? - + JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,11 +617,11 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource - + JDBProcessOrder.create insert into {schema}APP_PROCESS_ORDER (process_order) values (?) @@ -629,7 +632,7 @@ JDBProcessOrder.getProcessOrderProperties - select * from {schema}APP_PROCESS_ORDER where process_order = ? + select * from {schema}APP_PROCESS_ORDER where process_order = ? JDBProcessOrder.isValidProcessOrder @@ -643,15 +646,23 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + JDBProcessOrder.ViewResource select * from VIEW_PROCESS_ORDER_RESOURCE - + JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from VIEW_PROCESS_ORDER_RESOURCE where process_order=? - - + + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,18 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -744,8 +771,8 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - - + + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -769,7 +796,7 @@ JDBDespatch.setConfirmed update {schema}APP_DESPATCH set transaction_ref=?,status=?,despatch_date=?,total_pallets=(select count(sscc) from {schema}APP_PALLET where despatch_no = ?) where despatch_no=? - + JDBDespatch.getDespatchProperties select * from {schema}APP_DESPATCH where despatch_no = ? @@ -800,39 +827,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - APP_PALLET.SSCC, - APP_PALLET.STATUS "PALLET_STATUS", - APP_PALLET.LOCATION_ID, - APP_PALLET.DESPATCH_NO, - APP_MATERIAL_BATCH.MATERIAL, - APP_MATERIAL_BATCH.BATCH_NUMBER, - APP_MATERIAL_BATCH.STATUS AS "BATCH_STATUS" - FROM - APP_PALLET, - APP_MATERIAL_BATCH - WHERE - APP_MATERIAL_BATCH.MATERIAL = APP_PALLET.MATERIAL - AND APP_MATERIAL_BATCH.BATCH_NUMBER = APP_PALLET.BATCH_NUMBER - AND APP_PALLET.DESPATCH_NO = %1 - AND ( - APP_PALLET.STATUS NOT IN ( %2 ) - OR APP_MATERIAL_BATCH.STATUS NOT IN ( %3 ) - ) - + SELECT APP_PALLET.SSCC, APP_PALLET.STATUS "PALLET_STATUS", APP_PALLET.LOCATION_ID, APP_PALLET.DESPATCH_NO, APP_MATERIAL_BATCH.MATERIAL, APP_MATERIAL_BATCH.BATCH_NUMBER, APP_MATERIAL_BATCH.STATUS AS "BATCH_STATUS" FROM APP_PALLET, APP_MATERIAL_BATCH WHERE APP_MATERIAL_BATCH.MATERIAL = APP_PALLET.MATERIAL AND APP_MATERIAL_BATCH.BATCH_NUMBER = APP_PALLET.BATCH_NUMBER AND APP_PALLET.DESPATCH_NO = %1 AND ( APP_PALLET.STATUS NOT IN ( %2 ) OR APP_MATERIAL_BATCH.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +858,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +875,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +896,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (report_request_id,module_id,invocation_mode,parameter_count,parameter_delimiter,parameter_names,parameter_types,parameter_values,sql,print_queue_name,print_copies) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +913,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +938,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +967,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +996,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1025,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1050,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1071,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1092,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1117,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1142,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1167,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1192,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1221,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1250,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1287,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1323,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1348,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1381,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1406,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1427,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}VIEW_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1432,96 +1436,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}VIEW_AUTO_LABELLER_PRINTER where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}VIEW_AUTO_LABELLER_PRINTER - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1537,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1573,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1599,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1657,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1670,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1703,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1711,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}VIEW_BARCODE_VALIDATE where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1738,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1763,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1792,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1804,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1821,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1850,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1879,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1912,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1923,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? + JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1960,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +2003,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2032,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2059,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2072,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2097,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2122,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2130,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2163,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? and waste_material_id = ? + select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_material_id = ? and waste_location_id = ? + select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2210,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2219,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2243,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2264,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2284,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2292,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2321,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2339,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2376,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2401,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2430,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2442,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2455,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?,sample_point = ?, id=?, lane_1=?, lane_1=2, lane_1=3, lane_1=4, lane_1=5 where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2496,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2529,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2570,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2594,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2603,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2619,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2642,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2673,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select * from (select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc) where rownum <= ? + select * from (select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc) where rownum <= ? - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2700,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2725,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2749,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2761,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,23 +2778,201 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? JDBOperatives.getOperatives select * from {schema}APP_OPERATIVES order by id - - + JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM IS NOT NULL AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6web_t10_react/dist/b6web_t10_react.war b/b6web_t10_react/dist/b6web_t10_react.war index a2fe11d9d..ebc6af833 100644 Binary files a/b6web_t10_react/dist/b6web_t10_react.war and b/b6web_t10_react/dist/b6web_t10_react.war differ diff --git a/b6web_t10_wm_eb18/WebContent/WEB-INF/lib/commander4j.jar b/b6web_t10_wm_eb18/WebContent/WEB-INF/lib/commander4j.jar index 5a3cab509..3a173d0e9 100644 Binary files a/b6web_t10_wm_eb18/WebContent/WEB-INF/lib/commander4j.jar and b/b6web_t10_wm_eb18/WebContent/WEB-INF/lib/commander4j.jar differ diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml new file mode 100644 index 000000000..a786896a5 --- /dev/null +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml @@ -0,0 +1,566 @@ + + + + + CREATE TABLE [dbo].[APP_BOM] ( + [BOM_ID] varchar(20) DEFAULT '' NOT NULL, + [BOM_VERSION] varchar(10) DEFAULT '' NOT NULL, + [BOM_SEQUENCE] int DEFAULT 0 NULL, + [DATA_ID] varchar(20) DEFAULT '' NOT NULL, + [DATA_TYPE] varchar(20) DEFAULT '' NULL, + [DATA_STRING] varchar(255) DEFAULT '' NULL, + [DATA_DECIMAL] decimal(22,3) DEFAULT NULL NULL, + [DATA_DATE] datetime DEFAULT NULL NULL, + [DATA_TIMESTAMP] datetime DEFAULT NULL, + [UUID] varchar(50) DEFAULT '' NOT NULL, + [PARENT_UUID] varchar(50) DEFAULT '' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM] ADD CONSTRAINT [PK_APP_BOM] PRIMARY KEY CLUSTERED ([BOM_ID], [BOM_VERSION], [DATA_ID], [UUID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_DEFAULTS] ( + [SOURCE_FIELD] varchar(32) NOT NULL, + [SOURCE_VALUE] varchar(50) NOT NULL, + [DESTINATION_FIELD] varchar(32) NOT NULL, + [DESTINATION_VALUE] varchar(50) NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_DEFAULTS] ADD CONSTRAINT [PK_APP_BOM_DEFAULTS] PRIMARY KEY CLUSTERED ([SOURCE_FIELD], [SOURCE_VALUE], [DESTINATION_FIELD]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_ELEMENTS] ( + [DATA_ID] varchar(20) NOT NULL, + [DATA_TYPE] varchar(20) NULL, + [ENABLE_EDIT] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_CREATE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_DELETE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_DUPLICATE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_CLIPBOARD] varchar(1) DEFAULT 'Y' NULL, + [MAX_OCCUR_LEVEL] int DEFAULT 1 NULL, + [ENABLE_LOOKUP] varchar(1) DEFAULT 'Y' NULL, + [LOOKUP_SQL] varchar(255) DEFAULT '' NULL, + [LOOKUP_FIELD] varchar(32) DEFAULT '' NULL, + [ICON_FILENAME] varchar(80) DEFAULT '' NULL, + [DESCRIPTION] varchar(80) DEFAULT '' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_ELEMENTS] ADD CONSTRAINT [PK_APP_BOM_ELEMENTS] PRIMARY KEY CLUSTERED ([DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_LISTS] ( + [LIST_ID] varchar(25) DEFAULT '' NOT NULL, + [ITEM] varchar(255) DEFAULT '' NOT NULL, + [SEQUENCE] int DEFAULT 0 NULL, + [ENABLED] varchar(1) DEFAULT 'Y' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_LISTS] ADD CONSTRAINT [PK_APP_BOM_LISTS] PRIMARY KEY CLUSTERED ([LIST_ID], [ITEM]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_STRUCTURE] ( + [DATA_ID] varchar(20) NOT NULL, + [PARENT_DATA_CATEGORY] varchar(20) NOT NULL, + [PARENT_DATA_ID] varchar(20) NOT NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_STRUCTURE] ADD CONSTRAINT [PK_APP_BOM_STRUCTURE] PRIMARY KEY CLUSTERED ([DATA_ID], [PARENT_DATA_CATEGORY], [PARENT_DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE VIEW view_bom as select BOM_MATERIAL.BOM_ID AS 'bom_id', + BOM_MATERIAL.BOM_VERSION AS 'bom_version', + BOM_MATERIAL.BOM_SEQUENCE AS 'display_order', + BOM_STAGE.DATA_STRING AS 'stage', + BOM_IN_OUT.DATA_ID AS 'input_output', + BOM_SEQUENCE.DATA_STRING AS 'sequence', + BOM_MATERIAL.DATA_STRING AS 'material', + BOM_MATERIAL.UUID AS 'material_uuid', + BOM_DESCRIPTION.DATA_STRING AS 'description', + BOM_QUANTITY.DATA_DECIMAL AS 'quantity', + BOM_TYPE.DATA_STRING AS 'type', + BOM_UOM.DATA_STRING AS 'uom', + BOM_GTIN.DATA_STRING AS 'gtin', + BOM_VARIANT.DATA_STRING AS 'variant', + BOM_LOCATION.DATA_STRING AS 'location_id', + BOM_LOCATION.UUID AS 'location_uuid' + from app_bom BOM_MATERIAL + left join app_bom BOM_DESCRIPTION on ((BOM_DESCRIPTION.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_DESCRIPTION.DATA_TYPE = 'string') and (BOM_DESCRIPTION.DATA_ID = 'description')) + left join app_bom BOM_QUANTITY on ((BOM_QUANTITY.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_QUANTITY.DATA_TYPE = 'decimal') and (BOM_QUANTITY.DATA_ID = 'quantity')) + left join app_bom BOM_SEQUENCE on ((BOM_SEQUENCE.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_SEQUENCE.DATA_TYPE = 'string') and (BOM_SEQUENCE.DATA_ID = 'sequence')) + left join app_bom BOM_TYPE on ((BOM_TYPE.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_TYPE.DATA_TYPE = 'string') and (BOM_TYPE.DATA_ID = 'type')) + left join app_bom BOM_UOM on ((BOM_UOM.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_UOM.DATA_TYPE = 'string') and (BOM_UOM.DATA_ID = 'uom')) + left join app_bom BOM_GTIN on ((BOM_GTIN.PARENT_UUID = BOM_UOM.UUID) and (BOM_GTIN.DATA_TYPE = 'string') and (BOM_GTIN.DATA_ID = 'gtin')) + left join app_bom BOM_VARIANT on ((BOM_VARIANT.PARENT_UUID = BOM_UOM.UUID) and (BOM_VARIANT.DATA_TYPE = 'string') and (BOM_VARIANT.DATA_ID = 'variant')) + left join app_bom BOM_IN_OUT on ((BOM_IN_OUT.UUID = BOM_MATERIAL.PARENT_UUID) and (BOM_IN_OUT.DATA_TYPE = 'string') and (BOM_IN_OUT.DATA_ID in ('input','output'))) + left join app_bom BOM_STAGE on ((BOM_STAGE.UUID = BOM_IN_OUT.PARENT_UUID) and (BOM_STAGE.DATA_TYPE = 'string') and (BOM_STAGE.DATA_ID = 'stage')) + left join app_bom BOM_LOCATION on ((BOM_LOCATION.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_LOCATION.DATA_TYPE = 'string') and (BOM_LOCATION.DATA_ID = 'location')) + where (BOM_MATERIAL.DATA_ID = 'material') + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_CATEGORY AS PARENT_DATA_CATEGORY, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770321', 'location_id', 'LANEA') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770322', 'location_id', 'LANEB') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770323', 'location_id', 'LANEC') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = ''location_id'' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = ''material_type'' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = ''uom'' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant') + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('gtin', 'value', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('input', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('location_id', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('output', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('quantity', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('root', '', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('runtime', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('sequence', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('stage', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('type', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('uom', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('updated', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('variant', 'value', 'uom') + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [MSG_PALLET_ISSUE] varchar(1) DEFAULT 'Y' + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [MSG_PALLET_RETURN] varchar(1) DEFAULT 'Y' + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [BARCODE_ID] varchar(25) DEFAULT '' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml new file mode 100644 index 000000000..914f0859a --- /dev/null +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml @@ -0,0 +1,337 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + drop view view_bom_structure + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_CATEGORY AS PARENT_DATA_CATEGORY, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP TABLE [dbo].[APP_BOM_STRUCTURE] + + + + CREATE TABLE [dbo].[APP_BOM_STRUCTURE] ( + [DATA_ID] varchar(20) NOT NULL, + [PARENT_DATA_ID] varchar(20) NOT NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_STRUCTURE] ADD CONSTRAINT [PK_APP_BOM_STRUCTURE] PRIMARY KEY CLUSTERED ([DATA_ID], [PARENT_DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + DROP view view_bom_structure + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('gtin', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('input', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('location_id', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('output', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('quantity', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('root', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('runtime', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('sequence', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('stage', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('type', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('uom', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('updated', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('variant', 'uom') + + diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml new file mode 100644 index 000000000..738f63bd8 --- /dev/null +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml index fbc365f9f..cd02dcb15 100644 --- a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml @@ -94,7 +94,7 @@ - CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS + CREATE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, @@ -156,7 +156,7 @@ - CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_sample_point_locations` AS select distinct `APP_WEIGHT_SAMPLE_POINT`.`LOCATION` AS `Location` from `APP_WEIGHT_SAMPLE_POINT` + CREATE VIEW `view_sample_point_locations` AS select distinct `APP_WEIGHT_SAMPLE_POINT`.`LOCATION` AS `Location` from `APP_WEIGHT_SAMPLE_POINT` diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml index b60f4b2b3..7436bcc60 100644 --- a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml @@ -7,7 +7,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, @@ -68,7 +68,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_sorting_qty_diffs` AS SELECT + CREATE OR REPLACE VIEW `view_sorting_qty_diffs` AS SELECT `APP_PALLET_EXTENSION`.`SSCC` AS `SSCC`, `APP_PALLET_EXTENSION`.`PALLET_QUANTITY` AS `PALLET_QUANTITY`, `APP_PALLET`.`QUANTITY` AS `QUANTITY`, diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml index cb4b7365f..ecde3d370 100644 --- a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_results` AS SELECT + CREATE OR REPLACE VIEW `view_qm_results` AS SELECT `APP_QM_SAMPLE`.`PROCESS_ORDER` AS `PROCESS_ORDER`, `APP_QM_SAMPLE`.`MATERIAL` AS `MATERIAL`, `APP_QM_SAMPLE`.`SAMPLE_ID` AS `SAMPLE_ID`, diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml index 82761953b..479d49bdd 100644 --- a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_panel_results` AS + CREATE OR REPLACE VIEW `view_qm_panel_results` AS SELECT APP_QM_PANEL.PANEL_ID, APP_QM_PANEL_TRAY.TRAY_ID, diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml index 1679337fb..7cd97f14f 100644 --- a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml @@ -345,7 +345,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml index 7d316e2c9..00887539f 100644 --- a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_results` AS + CREATE OR REPLACE VIEW `view_qm_results` AS SELECT samp.PROCESS_ORDER as 'PROCESS_ORDER', samp.MATERIAL as 'MATERIAL', samp.SAMPLE_ID as 'SAMPLE_ID', diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml index 46026ca58..0ae5fd149 100644 --- a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml @@ -44,7 +44,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml new file mode 100644 index 000000000..1acd4c6d1 --- /dev/null +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml @@ -0,0 +1,672 @@ + + + + + + CREATE TABLE `APP_BOM` ( + `BOM_ID` varchar(20) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT '', + `BOM_VERSION` varchar(10) NOT NULL DEFAULT '', + `BOM_SEQUENCE` int NOT NULL DEFAULT '0', + `DATA_ID` varchar(20) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT '', + `DATA_TYPE` varchar(20) DEFAULT '', + `DATA_STRING` varchar(255) DEFAULT '', + `DATA_DECIMAL` decimal(22,3) unsigned DEFAULT NULL, + `DATA_DATE` datetime DEFAULT NULL, + `DATA_TIMESTAMP` timestamp NULL DEFAULT NULL, + `UUID` varchar(50) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT (uuid()), + `PARENT_UUID` varchar(50) DEFAULT NULL, + PRIMARY KEY (`BOM_ID`,`BOM_VERSION`,`DATA_ID`,`UUID`) USING BTREE, + UNIQUE KEY `UUID_NDX` (`UUID`) USING BTREE, + KEY `UUID_PARENT_NDX` (`PARENT_UUID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_DEFAULTS` ( + `SOURCE_FIELD` varchar(32) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `SOURCE_VALUE` varchar(50) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `DESTINATION_FIELD` varchar(32) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `DESTINATION_VALUE` varchar(50) CHARACTER SET {charset} COLLATE {collation} DEFAULT NULL, + PRIMARY KEY (`SOURCE_FIELD`,`SOURCE_VALUE`,`DESTINATION_FIELD`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_ELEMENTS` ( + `DATA_ID` varchar(20) NOT NULL, + `DATA_TYPE` varchar(20) DEFAULT NULL, + `ENABLE_EDIT` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_CREATE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_DELETE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_DUPLICATE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_CLIPBOARD` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `MAX_OCCUR_LEVEL` int DEFAULT '1', + `ENABLE_LOOKUP` varchar(1) DEFAULT 'Y', + `LOOKUP_SQL` varchar(255) DEFAULT '', + `LOOKUP_FIELD` varchar(32) DEFAULT '', + `ICON_FILENAME` varchar(80) DEFAULT '', + `DESCRIPTION` varchar(80) DEFAULT '', + PRIMARY KEY (`DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_LISTS` ( + `LIST_ID` varchar(25) NOT NULL DEFAULT '', + `ITEM` varchar(50) NOT NULL DEFAULT '', + `SEQUENCE` int DEFAULT '0', + `ENABLED` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + PRIMARY KEY (`LIST_ID`,`ITEM`) + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + + CREATE TABLE `APP_BOM_STRUCTURE` ( + `DATA_ID` varchar(20) NOT NULL, + `PARENT_DATA_CATEGORY` varchar(20) NOT NULL, + `PARENT_DATA_ID` varchar(20) NOT NULL, + PRIMARY KEY (`DATA_ID`,`PARENT_DATA_CATEGORY`,`PARENT_DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + + CREATE VIEW `view_bom` AS + select `BOM_MATERIAL`.`BOM_ID` AS `bom_id`, + `BOM_MATERIAL`.`BOM_VERSION` AS `bom_version`, + `BOM_MATERIAL`.`BOM_SEQUENCE` AS `display_order`, + `BOM_STAGE`.`DATA_STRING` AS `stage`, + `BOM_IN_OUT`.`DATA_ID` AS `input_output`, + `BOM_SEQUENCE`.`DATA_STRING` AS `sequence`, + `BOM_MATERIAL`.`DATA_STRING` AS `material`, + `BOM_MATERIAL`.`UUID` AS `material_uuid`, + `BOM_DESCRIPTION`.`DATA_STRING` AS `description`, + `BOM_QUANTITY`.`DATA_DECIMAL` AS `quantity`, + `BOM_TYPE`.`DATA_STRING` AS `type`, + `BOM_UOM`.`DATA_STRING` AS `uom`, + `BOM_GTIN`.`DATA_STRING` AS `gtin`, + `BOM_VARIANT`.`DATA_STRING` AS `variant`, + `BOM_LOCATION`.`DATA_STRING` AS `location_id`, + `BOM_LOCATION`.`UUID` AS `location_uuid` + from `app_bom` `BOM_MATERIAL` + left join `app_bom` `BOM_DESCRIPTION` on (`BOM_DESCRIPTION`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_DESCRIPTION`.`DATA_TYPE` = 'string') + and (`BOM_DESCRIPTION`.`DATA_ID` = 'description') + left join `app_bom` `BOM_QUANTITY` on (`BOM_QUANTITY`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_QUANTITY`.`DATA_TYPE` = 'decimal') + and (`BOM_QUANTITY`.`DATA_ID` = 'quantity') + left join `app_bom` `BOM_SEQUENCE` on (`BOM_SEQUENCE`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_SEQUENCE`.`DATA_TYPE` = 'string') + and (`BOM_SEQUENCE`.`DATA_ID` = 'sequence') + left join `app_bom` `BOM_TYPE` on (`BOM_TYPE`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_TYPE`.`DATA_TYPE` = 'string') + and (`BOM_TYPE`.`DATA_ID` = 'type') + left join `app_bom` `BOM_UOM` on (`BOM_UOM`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_UOM`.`DATA_TYPE` = 'string') + and (`BOM_UOM`.`DATA_ID` = 'uom') + left join `app_bom` `BOM_GTIN` on (`BOM_GTIN`.`PARENT_UUID` = `BOM_UOM`.`UUID`) + and (`BOM_GTIN`.`DATA_TYPE` = 'string') + and (`BOM_GTIN`.`DATA_ID` = 'gtin') + left join `app_bom` `BOM_VARIANT` on (`BOM_VARIANT`.`PARENT_UUID` = `BOM_UOM`.`UUID`) + and (`BOM_VARIANT`.`DATA_TYPE` = 'string') + and (`BOM_VARIANT`.`DATA_ID` = 'variant') + left join `app_bom` `BOM_IN_OUT` on (`BOM_IN_OUT`.`UUID` = `BOM_MATERIAL`.`PARENT_UUID`) + and (`BOM_IN_OUT`.`DATA_TYPE` = 'string') + and (`BOM_IN_OUT`.`DATA_ID` in ('input','output')) + left join `app_bom` `BOM_STAGE` on (`BOM_STAGE`.`UUID` = `BOM_IN_OUT`.`PARENT_UUID`) + and (`BOM_STAGE`.`DATA_TYPE` = 'string') + and (`BOM_STAGE`.`DATA_ID` = 'stage') + left join `app_bom` `BOM_LOCATION` on (`BOM_LOCATION`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_LOCATION`.`DATA_TYPE` = 'string') + and (`BOM_LOCATION`.`DATA_ID` = 'location_id') + where (`BOM_MATERIAL`.`DATA_ID` = 'material') + order by `BOM_MATERIAL`.`BOM_ID`,`BOM_MATERIAL`.`BOM_VERSION`,`BOM_IN_OUT`.`DATA_ID`,`BOM_SEQUENCE`.`DATA_ID`,`BOM_MATERIAL`.`BOM_SEQUENCE`,`BOM_MATERIAL`.`UUID`; + + + + + CREATE VIEW `view_bom_structure` AS + select `app_bom_structure`.`DATA_ID` AS `DATA_ID`, + `app_bom_elements`.`DATA_TYPE` AS `DATA_TYPE`, + `app_bom_structure`.`PARENT_DATA_ID` AS `PARENT_DATA_ID`, + `app_bom_elements`.`ENABLE_EDIT` AS `ENABLE_EDIT`, + `app_bom_elements`.`ENABLE_CREATE` AS `ENABLE_CREATE`, + `app_bom_elements`.`ENABLE_DELETE` AS `ENABLE_DELETE`, + `app_bom_elements`.`ENABLE_DUPLICATE` AS `ENABLE_DUPLICATE`, + `app_bom_elements`.`ENABLE_CLIPBOARD` AS `ENABLE_CLIPBOARD`, + `app_bom_elements`.`ENABLE_LOOKUP` AS `ENABLE_LOOKUP`, + `app_bom_elements`.`LOOKUP_SQL` AS `LOOKUP_SQL`, + `app_bom_elements`.`LOOKUP_FIELD` AS `LOOKUP_FIELD`, + `app_bom_elements`.`ICON_FILENAME` AS `ICON_FILENAME`, + `app_bom_elements`.`MAX_OCCUR_LEVEL` AS `MAX_OCCUR_LEVEL`, + `app_bom_elements`.`DESCRIPTION` AS `DESCRIPTION` + from (`app_bom_structure` + join `app_bom_elements` + on((`app_bom_structure`.`DATA_ID` = `app_bom_elements`.`DATA_ID`))); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770321', 'location_id', 'LANEA'); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770322', 'location_id', 'LANEB'); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770323', 'location_id', 'LANEC'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = \'location_id\' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = \'material_type\' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = \'uom\' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant'); + + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('description', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('description', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('gtin', 'value', 'uom'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('hrs', 'section', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('hrs', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('input', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('location_id', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('line', 'section', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('line', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('material', 'section', 'input'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('material', 'section', 'output'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('output', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('quantity', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('resource', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('resource', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('root', '', ''); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('runtime', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('sequence', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('stage', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('type', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('uom', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('updated', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('variant', 'value', 'uom'); + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE `APP_LOCATION` + ADD COLUMN `MSG_PALLET_ISSUE` varchar(1) NULL DEFAULT 'Y' AFTER `MSG_PROD_UNCONFIRM`, + ADD COLUMN `MSG_PALLET_RETURN` varchar(1) NULL DEFAULT 'Y' AFTER `MSG_PALLET_ISSUE`, + ADD COLUMN `BARCODE_ID` varchar(25) NULL DEFAULT '' AFTER `MSG_PALLET_RETURN`; + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml new file mode 100644 index 000000000..38f7b3dec --- /dev/null +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml @@ -0,0 +1,358 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP TABLE `APP_BOM_STRUCTURE`; + + + + CREATE TABLE `APP_BOM_STRUCTURE` ( + `DATA_ID` varchar(20) NOT NULL, + `PARENT_DATA_ID` varchar(20) NOT NULL, + PRIMARY KEY (`DATA_ID`,`PARENT_DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + DROP VIEW `view_bom_structure` + + + + CREATE VIEW `view_bom_structure` AS + select `app_bom_structure`.`DATA_ID` AS `DATA_ID`, + `app_bom_elements`.`DATA_TYPE` AS `DATA_TYPE`, + `app_bom_structure`.`PARENT_DATA_ID` AS `PARENT_DATA_ID`, + `app_bom_elements`.`ENABLE_EDIT` AS `ENABLE_EDIT`, + `app_bom_elements`.`ENABLE_CREATE` AS `ENABLE_CREATE`, + `app_bom_elements`.`ENABLE_DELETE` AS `ENABLE_DELETE`, + `app_bom_elements`.`ENABLE_DUPLICATE` AS `ENABLE_DUPLICATE`, + `app_bom_elements`.`ENABLE_CLIPBOARD` AS `ENABLE_CLIPBOARD`, + `app_bom_elements`.`ENABLE_LOOKUP` AS `ENABLE_LOOKUP`, + `app_bom_elements`.`LOOKUP_SQL` AS `LOOKUP_SQL`, + `app_bom_elements`.`LOOKUP_FIELD` AS `LOOKUP_FIELD`, + `app_bom_elements`.`ICON_FILENAME` AS `ICON_FILENAME`, + `app_bom_elements`.`MAX_OCCUR_LEVEL` AS `MAX_OCCUR_LEVEL`, + `app_bom_elements`.`DESCRIPTION` AS `DESCRIPTION` + from (`app_bom_structure` + join `app_bom_elements` + on((`app_bom_structure`.`DATA_ID` = `app_bom_elements`.`DATA_ID`))); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('description', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('description', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('gtin', 'uom'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('hrs', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('hrs', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('input', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('location_id', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('line', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('line', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('material', 'input'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('material', 'output'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('output', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('quantity', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('resource', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('resource', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('root', ''); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('runtime', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('sequence', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('stage', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('type', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('uom', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('updated', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('variant', 'uom'); + + + diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml new file mode 100644 index 000000000..32738e209 --- /dev/null +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml new file mode 100644 index 000000000..d78048a6a --- /dev/null +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml @@ -0,0 +1,556 @@ + + + + + CREATE TABLE "APP_BOM" ( + "BOM_ID" VARCHAR2(20) DEFAULT '' NOT NULL, + "BOM_VERSION" VARCHAR2(10) DEFAULT '' NOT NULL, + "BOM_SEQUENCE" INT DEFAULT 0 NOT NULL, + "DATA_ID" VARCHAR2(20) DEFAULT '' NOT NULL, + "DATA_TYPE" VARCHAR2(20) DEFAULT '', + "DATA_STRING" VARCHAR2(255) DEFAULT '', + "DATA_DECIMAL" NUMERIC(22,3) DEFAULT NULL, + "DATA_DATE" TIMESTAMP DEFAULT NULL, + "DATA_TIMESTAMP" TIMESTAMP DEFAULT NULL, + "UUID" VARCHAR2(50) DEFAULT '' NOT NULL, + "PARENT_UUID" VARCHAR2(50) DEFAULT '', + PRIMARY KEY ("BOM_ID", "BOM_VERSION", "DATA_ID", "UUID") ) + + + + CREATE TABLE "APP_BOM_DEFAULTS" ( + "SOURCE_FIELD" VARCHAR2(32) NOT NULL, + "SOURCE_VALUE" VARCHAR2(50) NOT NULL, + "DESTINATION_FIELD" VARCHAR2(32) NOT NULL, + "DESTINATION_VALUE" VARCHAR2(50), + PRIMARY KEY ("SOURCE_FIELD", "SOURCE_VALUE", "DESTINATION_FIELD") ) + + + + CREATE TABLE "APP_BOM_ELEMENTS" ( + "DATA_ID" VARCHAR2(20) NOT NULL, + "DATA_TYPE" VARCHAR2(20), + "ENABLE_EDIT" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_CREATE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_DELETE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_DUPLICATE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_CLIPBOARD" VARCHAR2(1) DEFAULT 'Y', + "MAX_OCCUR_LEVEL" INT, + "ENABLE_LOOKUP" VARCHAR2(1) DEFAULT 'Y', + "LOOKUP_SQL" VARCHAR2(255) DEFAULT '', + "LOOKUP_FIELD" VARCHAR2(32) DEFAULT '', + "ICON_FILENAME" VARCHAR2(80) DEFAULT '', + "DESCRIPTION" VARCHAR2(80) DEFAULT '', + PRIMARY KEY ("DATA_ID") ) + + + + CREATE TABLE "APP_BOM_LISTS" ( + "LIST_ID" VARCHAR2(25 BYTE) VISIBLE DEFAULT '', + "ITEM" VARCHAR2(50 BYTE) VISIBLE DEFAULT '', + "SEQUENCE" NUMBER VISIBLE DEFAULT 0, + "ENABLED" VARCHAR2(1 BYTE) VISIBLE DEFAULT 'Y') + + + + CREATE INDEX "IDX_APP_BOM_LISTS1" + ON "APP_BOM_LISTS" ("LIST_ID" ASC, "ITEM" ASC) + + + + CREATE TABLE "APP_BOM_STRUCTURE" ( + "DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '', + "PARENT_DATA_CATEGORY" VARCHAR2(20) VISIBLE DEFAULT '' , + "PARENT_DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '' ) + + + + CREATE INDEX "IDX_APP_BOM_STRUCTURE1" + ON "APP_BOM_STRUCTURE" ("DATA_ID" ASC, "PARENT_DATA_CATEGORY" ASC, "PARENT_DATA_ID" ASC) + + + + CREATE OR REPLACE VIEW view_bom as + SELECT BOM_MATERIAL.BOM_ID bom_id, + BOM_MATERIAL.BOM_VERSION bom_version, + BOM_MATERIAL.BOM_SEQUENCE display_order, + BOM_STAGE.DATA_STRING stage, + BOM_IN_OUT.DATA_ID input_output, + BOM_SEQUENCE.DATA_STRING sequence, + BOM_MATERIAL.DATA_STRING material, + BOM_MATERIAL.UUID material_uuid, + BOM_DESCRIPTION.DATA_STRING description, + BOM_QUANTITY.DATA_DECIMAL quantity, + BOM_TYPE.DATA_STRING TYPE, + BOM_UOM.DATA_STRING uom, + BOM_GTIN.DATA_STRING gtin, + BOM_VARIANT.DATA_STRING variant, + BOM_LOCATION.DATA_STRING location_id, + BOM_LOCATION.UUID location_uuid + FROM app_bom BOM_MATERIAL + LEFT JOIN app_bom BOM_DESCRIPTION ON ( ( BOM_DESCRIPTION.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_DESCRIPTION.DATA_TYPE = 'string' ) AND ( BOM_DESCRIPTION.DATA_ID = 'description' ) ) + LEFT JOIN app_bom BOM_QUANTITY ON ( ( BOM_QUANTITY.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_QUANTITY.DATA_TYPE = 'decimal' ) AND ( BOM_QUANTITY.DATA_ID = 'quantity' ) ) + LEFT JOIN app_bom BOM_SEQUENCE ON ( ( BOM_SEQUENCE.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_SEQUENCE.DATA_TYPE = 'string' ) AND ( BOM_SEQUENCE.DATA_ID = 'sequence' ) ) + LEFT JOIN app_bom BOM_TYPE ON ( ( BOM_TYPE.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_TYPE.DATA_TYPE = 'string' ) AND ( BOM_TYPE.DATA_ID = 'type' ) ) + LEFT JOIN app_bom BOM_UOM ON ( ( BOM_UOM.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_UOM.DATA_TYPE = 'string' ) AND ( BOM_UOM.DATA_ID = 'uom' ) ) + LEFT JOIN app_bom BOM_GTIN ON ( ( BOM_GTIN.PARENT_UUID = BOM_UOM.UUID ) AND ( BOM_GTIN.DATA_TYPE = 'string' ) AND ( BOM_GTIN.DATA_ID = 'gtin' ) ) + LEFT JOIN app_bom BOM_VARIANT ON ( ( BOM_VARIANT.PARENT_UUID = BOM_UOM.UUID ) AND ( BOM_VARIANT.DATA_TYPE = 'string' ) AND ( BOM_VARIANT.DATA_ID = 'variant' ) ) + LEFT JOIN app_bom BOM_IN_OUT ON ( ( BOM_IN_OUT.UUID = BOM_MATERIAL.PARENT_UUID ) AND ( BOM_IN_OUT.DATA_TYPE = 'string' ) AND ( BOM_IN_OUT.DATA_ID IN ( 'input', 'output' ) ) ) + LEFT JOIN app_bom BOM_STAGE ON ( ( BOM_STAGE.UUID = BOM_IN_OUT.PARENT_UUID ) AND ( BOM_STAGE.DATA_TYPE = 'string' ) AND ( BOM_STAGE.DATA_ID = 'stage' ) ) + LEFT JOIN app_bom BOM_LOCATION ON ( ( BOM_LOCATION.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_LOCATION.DATA_TYPE = 'string' ) AND ( BOM_LOCATION.DATA_ID = 'location_id' ) ) + WHERE ( BOM_MATERIAL.DATA_ID = 'material' ) + + + + CREATE OR REPLACE VIEW view_bom_structure AS + SELECT app_bom_structure.DATA_ID DATA_ID, + app_bom_elements.DATA_TYPE DATA_TYPE, + app_bom_structure.PARENT_DATA_ID PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION DESCRIPTION + FROM (app_bom_structure JOIN app_bom_elements ON ((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770321', 'location_id', 'LANEA') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770322', 'location_id', 'LANEB') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770323', 'location_id', 'LANEC') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = ''location_id'' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = ''material_type'' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = ''uom'' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant') + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('gtin', 'value', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('input', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('location_id', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('output', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('quantity', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('root', '', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('runtime', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('sequence', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('stage', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('type', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('uom', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('updated', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('variant', 'value', 'uom') + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') +mod_FRM_BOM_ADMIN + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE "APP_LOCATION" + ADD ("MSG_PALLET_ISSUE" VARCHAR2(1) DEFAULT 'Y') + ADD ("MSG_PALLET_RETURN" VARCHAR2(1) DEFAULT 'Y') + ADD ("BARCODE_ID" VARCHAR2(25) DEFAULT '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml new file mode 100644 index 000000000..61c549a6e --- /dev/null +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml @@ -0,0 +1,314 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP INDEX "IDX_APP_BOM_STRUCTURE1" + + + + DROP TABLE "APP_BOM_STRUCTURE" + + + + CREATE TABLE "APP_BOM_STRUCTURE" ( + "DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '', + "PARENT_DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '' ) + + + + CREATE INDEX "IDX_APP_BOM_STRUCTURE1" + ON "APP_BOM_STRUCTURE" ("DATA_ID" ASC, "PARENT_DATA_ID" ASC) + + + + CREATE OR REPLACE VIEW view_bom_structure AS + SELECT app_bom_structure.DATA_ID DATA_ID, + app_bom_elements.DATA_TYPE DATA_TYPE, + app_bom_structure.PARENT_DATA_ID PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION DESCRIPTION + FROM (app_bom_structure JOIN app_bom_elements ON ((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('gtin', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('input', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('location_id', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('output', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('quantity', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('root', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('runtime', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('sequence', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('stage', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('type', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('uom', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('updated', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('variant', 'uom') + + + diff --git a/b6web_t10_wm_eb18/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml b/b6web_t10_wm_eb18/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml new file mode 100644 index 000000000..3166d412d --- /dev/null +++ b/b6web_t10_wm_eb18/WebContent/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/b6web_t10_wm_eb18/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml b/b6web_t10_wm_eb18/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml index 337bb1136..6445ca54c 100644 --- a/b6web_t10_wm_eb18/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml +++ b/b6web_t10_wm_eb18/WebContent/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [view_pallet_history_expiry] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [view_pallet_history] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(IIF(transaction_type = 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value = ?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,7 +286,7 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(a.module_id) from [view_security] a where a.user_id = ? order by a.module_id @@ -291,24 +297,24 @@ JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - - + + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}view_permissions order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,u.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,u.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT a.* FROM [view_menu_structure]a WHERE a.MENU_ID = ? AND a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT a.* FROM [view_rf_menu]a WHERE a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT a.* FROM [view_toolbar]a WHERE a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,[updated]=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -584,8 +587,8 @@ JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,7 +617,7 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource @@ -643,7 +646,15 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER - + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + + JDBProcessOrder.ViewResource select * from view_process_order_resource @@ -651,7 +662,7 @@ JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from view_process_order_resource where process_order=? - + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,18 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -745,7 +772,7 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -800,39 +827,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - P.SSCC, - P.STATUS AS 'PALLET_STATUS', - P.LOCATION_ID, - P.DESPATCH_NO, - MB.MATERIAL, - MB.BATCH_NUMBER, - MB.STATUS AS 'BATCH_STATUS' - FROM - APP_PALLET P, - APP_MATERIAL_BATCH MB - WHERE - MB.MATERIAL = P.MATERIAL - AND MB.BATCH_NUMBER = P.BATCH_NUMBER - AND P.DESPATCH_NO = %1 - AND ( - P.STATUS NOT IN ( %2 ) - OR MB.STATUS NOT IN ( %3 ) - ) - + SELECT P.SSCC, P.STATUS AS 'PALLET_STATUS', P.LOCATION_ID, P.DESPATCH_NO, MB.MATERIAL, MB.BATCH_NUMBER, MB.STATUS AS 'BATCH_STATUS' FROM APP_PALLET P, APP_MATERIAL_BATCH MB WHERE MB.MATERIAL = P.MATERIAL AND MB.BATCH_NUMBER = P.BATCH_NUMBER AND P.DESPATCH_NO = %1 AND ( P.STATUS NOT IN ( %2 ) OR MB.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +858,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +875,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +896,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (report_request_id,module_id,invocation_mode,parameter_count,parameter_delimiter,parameter_names,parameter_types,parameter_values,sql,print_queue_name,print_copies) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +913,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +938,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +967,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +996,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1025,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1050,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1071,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1092,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1117,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1142,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1167,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1192,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1221,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1250,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1287,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1323,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1348,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1381,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1406,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1427,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}view_label_data WHERE UNIQUE_ID = ? @@ -1432,96 +1436,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}view_auto_labeller_printer where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}view_auto_labeller_printer - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1537,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1573,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1599,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1657,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1670,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1703,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1711,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}view_barcode_validate where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1738,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1763,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1792,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1804,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1821,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1850,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1879,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1912,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1923,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1960,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +2003,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2032,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2059,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2072,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2097,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2122,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2130,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2163,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? + select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? + select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2210,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2219,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2243,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2264,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2284,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2292,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2321,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2339,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2376,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2401,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2430,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2442,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2455,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?, sample_point = ?, id=?,lane_1=?,lane_2=?,lane_3=?,lane_4=?,lane_5=? where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2496,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2529,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2570,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2594,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2603,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2619,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2642,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2673,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select top (?) * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc + select top (?) * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2700,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2725,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2749,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2761,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,11 +2778,11 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? @@ -2909,6 +2795,184 @@ JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group - + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM >'' AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6web_t10_wm_eb18/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml b/b6web_t10_wm_eb18/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml index c6e3009e7..f80059eaa 100644 --- a/b6web_t10_wm_eb18/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml +++ b/b6web_t10_wm_eb18/WebContent/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [view_pallet_history_expiry] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [view_pallet_history] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(IF(transaction_type = 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value = ?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,7 +286,7 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(S.module_id) from [view_security] as S where S.user_id = ? order by module_id @@ -291,24 +297,24 @@ JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - - + + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}view_permissions order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,u.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,u.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT * FROM [view_menu_structure] AS M WHERE M.MENU_ID = ? AND M.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT * FROM [view_rf_menu] AS T WHERE T.MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT * FROM [view_toolbar] AS T WHERE T.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,updated=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -584,8 +587,8 @@ JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,7 +617,7 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource @@ -643,7 +646,15 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER - + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + + JDBProcessOrder.ViewResource select * from view_process_order_resource @@ -651,7 +662,7 @@ JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from view_process_order_resource where process_order=? - + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,14 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -745,7 +768,7 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -800,39 +823,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - P.SSCC, - P.STATUS AS 'PALLET_STATUS', - P.LOCATION_ID, - P.DESPATCH_NO, - MB.MATERIAL, - MB.BATCH_NUMBER, - MB.STATUS AS 'BATCH_STATUS' - FROM - APP_PALLET P, - APP_MATERIAL_BATCH MB - WHERE - MB.MATERIAL = P.MATERIAL - AND MB.BATCH_NUMBER = P.BATCH_NUMBER - AND P.DESPATCH_NO = %1 - AND ( - P.STATUS NOT IN ( %2 ) - OR MB.STATUS NOT IN ( %3 ) - ) - + SELECT P.SSCC, P.STATUS AS 'PALLET_STATUS', P.LOCATION_ID, P.DESPATCH_NO, MB.MATERIAL, MB.BATCH_NUMBER, MB.STATUS AS 'BATCH_STATUS' FROM APP_PALLET P, APP_MATERIAL_BATCH MB WHERE MB.MATERIAL = P.MATERIAL AND MB.BATCH_NUMBER = P.BATCH_NUMBER AND P.DESPATCH_NO = %1 AND ( P.STATUS NOT IN ( %2 ) OR MB.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +854,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +871,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +892,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (`REPORT_REQUEST_ID`,`MODULE_ID`,`INVOCATION_MODE`,`PARAMETER_COUNT`,`PARAMETER_DELIMITER`,`PARAMETER_NAMES`,`PARAMETER_TYPES`,`PARAMETER_VALUES`,`SQL`,`PRINT_QUEUE_NAME`,`PRINT_COPIES`) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +909,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +934,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +963,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +992,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1021,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1046,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1067,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1088,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1113,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1138,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1163,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1188,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1217,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1246,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1283,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1319,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1344,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1377,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1402,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1423,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}view_label_data WHERE UNIQUE_ID = ? @@ -1432,96 +1432,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}view_auto_labeller_printer where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}view_auto_labeller_printer - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1533,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1569,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1595,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1653,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1666,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1699,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1707,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}view_barcode_validate where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1734,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1759,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1788,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1800,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1817,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1846,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1875,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1908,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1919,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1956,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +1999,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2028,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2055,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2068,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2093,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2118,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2126,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2159,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? + select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? + select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2206,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2215,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2239,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2260,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2280,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2288,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2317,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2335,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2372,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2397,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2426,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2438,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2451,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?, sample_point = ?, id=?,lane_1=?,lane_2=?,lane_3=?,lane_4=?,lane_5=? where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2492,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2525,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2566,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2590,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2599,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2615,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2638,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2669,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc limit ? + select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc limit ? - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2696,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2721,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2745,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2757,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,23 +2774,201 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? JDBOperatives.getOperatives select * from {schema}APP_OPERATIVES order by id - - + JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group - + + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM >'' AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6web_t10_wm_eb18/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml b/b6web_t10_wm_eb18/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml index 2a895fb6b..289b81c79 100644 --- a/b6web_t10_wm_eb18/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml +++ b/b6web_t10_wm_eb18/WebContent/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [VIEW_PALLET_HISTORY_EXPIRY] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [VIEW_PALLET_HISTORY] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(DECODE(transaction_type, 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value =?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,35 +286,35 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(module_id) from [view_security] where user_id = ? order by module_id JDBUser.changePassword - update {schema}SYS_USERS set Password = ?,last_password_change = ?,password_version=password_version+1,password_change_required='N',password_encrypted=? where user_id = ? + update {schema}SYS_USERS set Password = ?,last_password_change = ?,password_version=password_version+1,password_change_required='N',password_encrypted=? where user_id = ? JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? - + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -332,7 +338,7 @@ JDBUser.enable update {schema}SYS_USERS set account_enabled = 'Y' where user_id = ? - + JDBUser.getUserGroupsUnAssigned select group_id from {schema}SYS_GROUPS where group_id not in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?) order by group_id @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}VIEW_PERMISSIONS order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,U.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,U.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT * FROM [view_menu_structure]WHERE MENU_ID = ? AND MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT * FROM [view_rf_menu]WHERE MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT * FROM [view_toolbar]WHERE MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,updated=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material= ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -580,12 +583,12 @@ JDBJourney.delete delete from {schema}APP_JOURNEY where journey_ref = ? - + JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,11 +617,11 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource - + JDBProcessOrder.create insert into {schema}APP_PROCESS_ORDER (process_order) values (?) @@ -629,7 +632,7 @@ JDBProcessOrder.getProcessOrderProperties - select * from {schema}APP_PROCESS_ORDER where process_order = ? + select * from {schema}APP_PROCESS_ORDER where process_order = ? JDBProcessOrder.isValidProcessOrder @@ -643,15 +646,23 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + JDBProcessOrder.ViewResource select * from VIEW_PROCESS_ORDER_RESOURCE - + JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from VIEW_PROCESS_ORDER_RESOURCE where process_order=? - - + + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,18 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -744,8 +771,8 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - - + + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -769,7 +796,7 @@ JDBDespatch.setConfirmed update {schema}APP_DESPATCH set transaction_ref=?,status=?,despatch_date=?,total_pallets=(select count(sscc) from {schema}APP_PALLET where despatch_no = ?) where despatch_no=? - + JDBDespatch.getDespatchProperties select * from {schema}APP_DESPATCH where despatch_no = ? @@ -800,39 +827,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - APP_PALLET.SSCC, - APP_PALLET.STATUS "PALLET_STATUS", - APP_PALLET.LOCATION_ID, - APP_PALLET.DESPATCH_NO, - APP_MATERIAL_BATCH.MATERIAL, - APP_MATERIAL_BATCH.BATCH_NUMBER, - APP_MATERIAL_BATCH.STATUS AS "BATCH_STATUS" - FROM - APP_PALLET, - APP_MATERIAL_BATCH - WHERE - APP_MATERIAL_BATCH.MATERIAL = APP_PALLET.MATERIAL - AND APP_MATERIAL_BATCH.BATCH_NUMBER = APP_PALLET.BATCH_NUMBER - AND APP_PALLET.DESPATCH_NO = %1 - AND ( - APP_PALLET.STATUS NOT IN ( %2 ) - OR APP_MATERIAL_BATCH.STATUS NOT IN ( %3 ) - ) - + SELECT APP_PALLET.SSCC, APP_PALLET.STATUS "PALLET_STATUS", APP_PALLET.LOCATION_ID, APP_PALLET.DESPATCH_NO, APP_MATERIAL_BATCH.MATERIAL, APP_MATERIAL_BATCH.BATCH_NUMBER, APP_MATERIAL_BATCH.STATUS AS "BATCH_STATUS" FROM APP_PALLET, APP_MATERIAL_BATCH WHERE APP_MATERIAL_BATCH.MATERIAL = APP_PALLET.MATERIAL AND APP_MATERIAL_BATCH.BATCH_NUMBER = APP_PALLET.BATCH_NUMBER AND APP_PALLET.DESPATCH_NO = %1 AND ( APP_PALLET.STATUS NOT IN ( %2 ) OR APP_MATERIAL_BATCH.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +858,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +875,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +896,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (report_request_id,module_id,invocation_mode,parameter_count,parameter_delimiter,parameter_names,parameter_types,parameter_values,sql,print_queue_name,print_copies) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +913,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +938,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +967,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +996,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1025,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1050,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1071,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1092,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1117,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1142,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1167,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1192,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1221,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1250,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1287,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1323,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1348,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1381,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1406,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1427,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}VIEW_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1432,96 +1436,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}VIEW_AUTO_LABELLER_PRINTER where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}VIEW_AUTO_LABELLER_PRINTER - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1537,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1573,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1599,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1657,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1670,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1703,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1711,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}VIEW_BARCODE_VALIDATE where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1738,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1763,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1792,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1804,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1821,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1850,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1879,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1912,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1923,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? + JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1960,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +2003,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2032,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2059,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2072,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2097,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2122,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2130,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2163,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? and waste_material_id = ? + select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_material_id = ? and waste_location_id = ? + select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2210,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2219,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2243,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2264,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2284,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2292,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2321,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2339,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2376,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2401,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2430,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2442,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2455,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?,sample_point = ?, id=?, lane_1=?, lane_1=2, lane_1=3, lane_1=4, lane_1=5 where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2496,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2529,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2570,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2594,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2603,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2619,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2642,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2673,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select * from (select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc) where rownum <= ? + select * from (select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc) where rownum <= ? - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2700,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2725,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2749,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2761,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,23 +2778,201 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? JDBOperatives.getOperatives select * from {schema}APP_OPERATIVES order by id - - + JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM IS NOT NULL AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/b6web_t10_wm_eb18/dist/b6web_t10_wm_eb18.war b/b6web_t10_wm_eb18/dist/b6web_t10_wm_eb18.war index 8f4cde974..8b9b91294 100644 Binary files a/b6web_t10_wm_eb18/dist/b6web_t10_wm_eb18.war and b/b6web_t10_wm_eb18/dist/b6web_t10_wm_eb18.war differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/commons-codec-1.15.jar b/c4jWS/src/main/webapp/WEB-INF/lib/commons-codec-1.15.jar deleted file mode 100644 index f14985ac9..000000000 Binary files a/c4jWS/src/main/webapp/WEB-INF/lib/commons-codec-1.15.jar and /dev/null differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/commons-codec-1.17.0.jar b/c4jWS/src/main/webapp/WEB-INF/lib/commons-codec-1.17.0.jar new file mode 100644 index 000000000..b0dcd7d71 Binary files /dev/null and b/c4jWS/src/main/webapp/WEB-INF/lib/commons-codec-1.17.0.jar differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/commons-io-2.13.0.jar b/c4jWS/src/main/webapp/WEB-INF/lib/commons-io-2.13.0.jar deleted file mode 100644 index eb316f402..000000000 Binary files a/c4jWS/src/main/webapp/WEB-INF/lib/commons-io-2.13.0.jar and /dev/null differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/commons-io-2.16.1.jar b/c4jWS/src/main/webapp/WEB-INF/lib/commons-io-2.16.1.jar new file mode 100644 index 000000000..eb3c2b0b8 Binary files /dev/null and b/c4jWS/src/main/webapp/WEB-INF/lib/commons-io-2.16.1.jar differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/commons-lang3-3.12.0.jar b/c4jWS/src/main/webapp/WEB-INF/lib/commons-lang3-3.12.0.jar deleted file mode 100644 index 4d434a2a4..000000000 Binary files a/c4jWS/src/main/webapp/WEB-INF/lib/commons-lang3-3.12.0.jar and /dev/null differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/commons-lang3-3.13.0.jar b/c4jWS/src/main/webapp/WEB-INF/lib/commons-lang3-3.13.0.jar new file mode 100644 index 000000000..891540f40 Binary files /dev/null and b/c4jWS/src/main/webapp/WEB-INF/lib/commons-lang3-3.13.0.jar differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/commons-text-1.11.0.jar b/c4jWS/src/main/webapp/WEB-INF/lib/commons-text-1.11.0.jar new file mode 100644 index 000000000..78154978a Binary files /dev/null and b/c4jWS/src/main/webapp/WEB-INF/lib/commons-text-1.11.0.jar differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/commons-text-1.9.jar b/c4jWS/src/main/webapp/WEB-INF/lib/commons-text-1.9.jar deleted file mode 100644 index cc0c69065..000000000 Binary files a/c4jWS/src/main/webapp/WEB-INF/lib/commons-text-1.9.jar and /dev/null differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/gson-2.10.1.jar b/c4jWS/src/main/webapp/WEB-INF/lib/gson-2.10.1.jar deleted file mode 100644 index a88c5bd9b..000000000 Binary files a/c4jWS/src/main/webapp/WEB-INF/lib/gson-2.10.1.jar and /dev/null differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/gson-2.11.0.jar b/c4jWS/src/main/webapp/WEB-INF/lib/gson-2.11.0.jar new file mode 100644 index 000000000..18e59c8c4 Binary files /dev/null and b/c4jWS/src/main/webapp/WEB-INF/lib/gson-2.11.0.jar differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/jakarta.activation-2.0.1.jar b/c4jWS/src/main/webapp/WEB-INF/lib/jakarta.activation-2.0.1.jar deleted file mode 100644 index 521c7c49f..000000000 Binary files a/c4jWS/src/main/webapp/WEB-INF/lib/jakarta.activation-2.0.1.jar and /dev/null differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/jakarta.activation-api-2.1.3.jar b/c4jWS/src/main/webapp/WEB-INF/lib/jakarta.activation-api-2.1.3.jar new file mode 100644 index 000000000..0d015d542 Binary files /dev/null and b/c4jWS/src/main/webapp/WEB-INF/lib/jakarta.activation-api-2.1.3.jar differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/log4j-api-2.20.0.jar b/c4jWS/src/main/webapp/WEB-INF/lib/log4j-api-2.20.0.jar deleted file mode 100644 index 29d1b52a2..000000000 Binary files a/c4jWS/src/main/webapp/WEB-INF/lib/log4j-api-2.20.0.jar and /dev/null differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/log4j-api-2.23.1.jar b/c4jWS/src/main/webapp/WEB-INF/lib/log4j-api-2.23.1.jar new file mode 100644 index 000000000..0e8e3f5e5 Binary files /dev/null and b/c4jWS/src/main/webapp/WEB-INF/lib/log4j-api-2.23.1.jar differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/log4j-core-2.20.0.jar b/c4jWS/src/main/webapp/WEB-INF/lib/log4j-core-2.20.0.jar deleted file mode 100644 index 54dafcd0c..000000000 Binary files a/c4jWS/src/main/webapp/WEB-INF/lib/log4j-core-2.20.0.jar and /dev/null differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/log4j-core-2.23.1.jar b/c4jWS/src/main/webapp/WEB-INF/lib/log4j-core-2.23.1.jar new file mode 100644 index 000000000..4a5d553d8 Binary files /dev/null and b/c4jWS/src/main/webapp/WEB-INF/lib/log4j-core-2.23.1.jar differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/log4j-jcl-2.20.0.jar b/c4jWS/src/main/webapp/WEB-INF/lib/log4j-jcl-2.20.0.jar deleted file mode 100644 index 07da6ab40..000000000 Binary files a/c4jWS/src/main/webapp/WEB-INF/lib/log4j-jcl-2.20.0.jar and /dev/null differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/log4j-jcl-2.23.1.jar b/c4jWS/src/main/webapp/WEB-INF/lib/log4j-jcl-2.23.1.jar new file mode 100644 index 000000000..013926711 Binary files /dev/null and b/c4jWS/src/main/webapp/WEB-INF/lib/log4j-jcl-2.23.1.jar differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/xalan-2.7.2.jar b/c4jWS/src/main/webapp/WEB-INF/lib/xalan-2.7.2.jar deleted file mode 100644 index abdabe33e..000000000 Binary files a/c4jWS/src/main/webapp/WEB-INF/lib/xalan-2.7.2.jar and /dev/null differ diff --git a/c4jWS/src/main/webapp/WEB-INF/lib/xalan-2.7.3.jar b/c4jWS/src/main/webapp/WEB-INF/lib/xalan-2.7.3.jar new file mode 100644 index 000000000..708548086 Binary files /dev/null and b/c4jWS/src/main/webapp/WEB-INF/lib/xalan-2.7.3.jar differ diff --git a/c4jWS/src/main/webapp/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml b/c4jWS/src/main/webapp/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml new file mode 100644 index 000000000..a786896a5 --- /dev/null +++ b/c4jWS/src/main/webapp/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000197.xml @@ -0,0 +1,566 @@ + + + + + CREATE TABLE [dbo].[APP_BOM] ( + [BOM_ID] varchar(20) DEFAULT '' NOT NULL, + [BOM_VERSION] varchar(10) DEFAULT '' NOT NULL, + [BOM_SEQUENCE] int DEFAULT 0 NULL, + [DATA_ID] varchar(20) DEFAULT '' NOT NULL, + [DATA_TYPE] varchar(20) DEFAULT '' NULL, + [DATA_STRING] varchar(255) DEFAULT '' NULL, + [DATA_DECIMAL] decimal(22,3) DEFAULT NULL NULL, + [DATA_DATE] datetime DEFAULT NULL NULL, + [DATA_TIMESTAMP] datetime DEFAULT NULL, + [UUID] varchar(50) DEFAULT '' NOT NULL, + [PARENT_UUID] varchar(50) DEFAULT '' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM] ADD CONSTRAINT [PK_APP_BOM] PRIMARY KEY CLUSTERED ([BOM_ID], [BOM_VERSION], [DATA_ID], [UUID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_DEFAULTS] ( + [SOURCE_FIELD] varchar(32) NOT NULL, + [SOURCE_VALUE] varchar(50) NOT NULL, + [DESTINATION_FIELD] varchar(32) NOT NULL, + [DESTINATION_VALUE] varchar(50) NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_DEFAULTS] ADD CONSTRAINT [PK_APP_BOM_DEFAULTS] PRIMARY KEY CLUSTERED ([SOURCE_FIELD], [SOURCE_VALUE], [DESTINATION_FIELD]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_ELEMENTS] ( + [DATA_ID] varchar(20) NOT NULL, + [DATA_TYPE] varchar(20) NULL, + [ENABLE_EDIT] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_CREATE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_DELETE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_DUPLICATE] varchar(1) DEFAULT 'Y' NULL, + [ENABLE_CLIPBOARD] varchar(1) DEFAULT 'Y' NULL, + [MAX_OCCUR_LEVEL] int DEFAULT 1 NULL, + [ENABLE_LOOKUP] varchar(1) DEFAULT 'Y' NULL, + [LOOKUP_SQL] varchar(255) DEFAULT '' NULL, + [LOOKUP_FIELD] varchar(32) DEFAULT '' NULL, + [ICON_FILENAME] varchar(80) DEFAULT '' NULL, + [DESCRIPTION] varchar(80) DEFAULT '' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_ELEMENTS] ADD CONSTRAINT [PK_APP_BOM_ELEMENTS] PRIMARY KEY CLUSTERED ([DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_LISTS] ( + [LIST_ID] varchar(25) DEFAULT '' NOT NULL, + [ITEM] varchar(255) DEFAULT '' NOT NULL, + [SEQUENCE] int DEFAULT 0 NULL, + [ENABLED] varchar(1) DEFAULT 'Y' NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_LISTS] ADD CONSTRAINT [PK_APP_BOM_LISTS] PRIMARY KEY CLUSTERED ([LIST_ID], [ITEM]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE TABLE [dbo].[APP_BOM_STRUCTURE] ( + [DATA_ID] varchar(20) NOT NULL, + [PARENT_DATA_CATEGORY] varchar(20) NOT NULL, + [PARENT_DATA_ID] varchar(20) NOT NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_STRUCTURE] ADD CONSTRAINT [PK_APP_BOM_STRUCTURE] PRIMARY KEY CLUSTERED ([DATA_ID], [PARENT_DATA_CATEGORY], [PARENT_DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + CREATE VIEW view_bom as select BOM_MATERIAL.BOM_ID AS 'bom_id', + BOM_MATERIAL.BOM_VERSION AS 'bom_version', + BOM_MATERIAL.BOM_SEQUENCE AS 'display_order', + BOM_STAGE.DATA_STRING AS 'stage', + BOM_IN_OUT.DATA_ID AS 'input_output', + BOM_SEQUENCE.DATA_STRING AS 'sequence', + BOM_MATERIAL.DATA_STRING AS 'material', + BOM_MATERIAL.UUID AS 'material_uuid', + BOM_DESCRIPTION.DATA_STRING AS 'description', + BOM_QUANTITY.DATA_DECIMAL AS 'quantity', + BOM_TYPE.DATA_STRING AS 'type', + BOM_UOM.DATA_STRING AS 'uom', + BOM_GTIN.DATA_STRING AS 'gtin', + BOM_VARIANT.DATA_STRING AS 'variant', + BOM_LOCATION.DATA_STRING AS 'location_id', + BOM_LOCATION.UUID AS 'location_uuid' + from app_bom BOM_MATERIAL + left join app_bom BOM_DESCRIPTION on ((BOM_DESCRIPTION.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_DESCRIPTION.DATA_TYPE = 'string') and (BOM_DESCRIPTION.DATA_ID = 'description')) + left join app_bom BOM_QUANTITY on ((BOM_QUANTITY.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_QUANTITY.DATA_TYPE = 'decimal') and (BOM_QUANTITY.DATA_ID = 'quantity')) + left join app_bom BOM_SEQUENCE on ((BOM_SEQUENCE.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_SEQUENCE.DATA_TYPE = 'string') and (BOM_SEQUENCE.DATA_ID = 'sequence')) + left join app_bom BOM_TYPE on ((BOM_TYPE.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_TYPE.DATA_TYPE = 'string') and (BOM_TYPE.DATA_ID = 'type')) + left join app_bom BOM_UOM on ((BOM_UOM.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_UOM.DATA_TYPE = 'string') and (BOM_UOM.DATA_ID = 'uom')) + left join app_bom BOM_GTIN on ((BOM_GTIN.PARENT_UUID = BOM_UOM.UUID) and (BOM_GTIN.DATA_TYPE = 'string') and (BOM_GTIN.DATA_ID = 'gtin')) + left join app_bom BOM_VARIANT on ((BOM_VARIANT.PARENT_UUID = BOM_UOM.UUID) and (BOM_VARIANT.DATA_TYPE = 'string') and (BOM_VARIANT.DATA_ID = 'variant')) + left join app_bom BOM_IN_OUT on ((BOM_IN_OUT.UUID = BOM_MATERIAL.PARENT_UUID) and (BOM_IN_OUT.DATA_TYPE = 'string') and (BOM_IN_OUT.DATA_ID in ('input','output'))) + left join app_bom BOM_STAGE on ((BOM_STAGE.UUID = BOM_IN_OUT.PARENT_UUID) and (BOM_STAGE.DATA_TYPE = 'string') and (BOM_STAGE.DATA_ID = 'stage')) + left join app_bom BOM_LOCATION on ((BOM_LOCATION.PARENT_UUID = BOM_MATERIAL.UUID) and (BOM_LOCATION.DATA_TYPE = 'string') and (BOM_LOCATION.DATA_ID = 'location')) + where (BOM_MATERIAL.DATA_ID = 'material') + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_CATEGORY AS PARENT_DATA_CATEGORY, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770321', 'location_id', 'LANEA') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770322', 'location_id', 'LANEB') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770323', 'location_id', 'LANEC') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = ''location_id'' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = ''material_type'' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = ''uom'' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant') + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('gtin', 'value', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('input', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('location_id', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('output', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('quantity', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('root', '', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('runtime', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('sequence', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('stage', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('type', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('uom', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('updated', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('variant', 'value', 'uom') + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [MSG_PALLET_ISSUE] varchar(1) DEFAULT 'Y' + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [MSG_PALLET_RETURN] varchar(1) DEFAULT 'Y' + + + + ALTER TABLE [dbo].[APP_LOCATION] ADD [BARCODE_ID] varchar(25) DEFAULT '' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/c4jWS/src/main/webapp/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml b/c4jWS/src/main/webapp/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml new file mode 100644 index 000000000..914f0859a --- /dev/null +++ b/c4jWS/src/main/webapp/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000198.xml @@ -0,0 +1,337 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + drop view view_bom_structure + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_CATEGORY AS PARENT_DATA_CATEGORY, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP TABLE [dbo].[APP_BOM_STRUCTURE] + + + + CREATE TABLE [dbo].[APP_BOM_STRUCTURE] ( + [DATA_ID] varchar(20) NOT NULL, + [PARENT_DATA_ID] varchar(20) NOT NULL ) + + + + ALTER TABLE [dbo].[APP_BOM_STRUCTURE] ADD CONSTRAINT [PK_APP_BOM_STRUCTURE] PRIMARY KEY CLUSTERED ([DATA_ID], [PARENT_DATA_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) + + + + DROP view view_bom_structure + + + + create view view_bom_structure as select + app_bom_structure.DATA_ID AS DATA_ID, + app_bom_elements.DATA_TYPE AS DATA_TYPE, + app_bom_structure.PARENT_DATA_ID AS PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT AS ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE AS ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE AS ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE AS ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD AS ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP AS ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL AS LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD AS LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME AS ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL AS MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION AS DESCRIPTION + from (app_bom_structure + join app_bom_elements on((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('gtin', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('input', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('location_id', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('output', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('quantity', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('root', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('runtime', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('sequence', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('stage', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('type', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('uom', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('updated', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('variant', 'uom') + + diff --git a/c4jWS/src/main/webapp/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml b/c4jWS/src/main/webapp/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml new file mode 100644 index 000000000..738f63bd8 --- /dev/null +++ b/c4jWS/src/main/webapp/xml/schema/com.microsoft.sqlserver.jdbc.SQLServerDriver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml index fbc365f9f..cd02dcb15 100644 --- a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml +++ b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000165.xml @@ -94,7 +94,7 @@ - CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS + CREATE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, @@ -156,7 +156,7 @@ - CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_sample_point_locations` AS select distinct `APP_WEIGHT_SAMPLE_POINT`.`LOCATION` AS `Location` from `APP_WEIGHT_SAMPLE_POINT` + CREATE VIEW `view_sample_point_locations` AS select distinct `APP_WEIGHT_SAMPLE_POINT`.`LOCATION` AS `Location` from `APP_WEIGHT_SAMPLE_POINT` diff --git a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml index b60f4b2b3..7436bcc60 100644 --- a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml +++ b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000169.xml @@ -7,7 +7,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, @@ -68,7 +68,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_sorting_qty_diffs` AS SELECT + CREATE OR REPLACE VIEW `view_sorting_qty_diffs` AS SELECT `APP_PALLET_EXTENSION`.`SSCC` AS `SSCC`, `APP_PALLET_EXTENSION`.`PALLET_QUANTITY` AS `PALLET_QUANTITY`, `APP_PALLET`.`QUANTITY` AS `QUANTITY`, diff --git a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml index cb4b7365f..ecde3d370 100644 --- a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml +++ b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000170.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_results` AS SELECT + CREATE OR REPLACE VIEW `view_qm_results` AS SELECT `APP_QM_SAMPLE`.`PROCESS_ORDER` AS `PROCESS_ORDER`, `APP_QM_SAMPLE`.`MATERIAL` AS `MATERIAL`, `APP_QM_SAMPLE`.`SAMPLE_ID` AS `SAMPLE_ID`, diff --git a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml index 82761953b..479d49bdd 100644 --- a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml +++ b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000172.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_panel_results` AS + CREATE OR REPLACE VIEW `view_qm_panel_results` AS SELECT APP_QM_PANEL.PANEL_ID, APP_QM_PANEL_TRAY.TRAY_ID, diff --git a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml index 1679337fb..7cd97f14f 100644 --- a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml +++ b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000180.xml @@ -345,7 +345,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, diff --git a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml index 7d316e2c9..00887539f 100644 --- a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml +++ b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000185.xml @@ -3,7 +3,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_qm_results` AS + CREATE OR REPLACE VIEW `view_qm_results` AS SELECT samp.PROCESS_ORDER as 'PROCESS_ORDER', samp.MATERIAL as 'MATERIAL', samp.SAMPLE_ID as 'SAMPLE_ID', diff --git a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml index 46026ca58..0ae5fd149 100644 --- a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml +++ b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000194.xml @@ -44,7 +44,7 @@ - CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_pallet_samples` AS SELECT + CREATE OR REPLACE VIEW `view_pallet_samples` AS SELECT `APP_PALLET_SAMPLES`.`SSCC` AS `SSCC`, `APP_PALLET_SAMPLES`.`SAMPLE_SEQUENCE` AS `SAMPLE_SEQUENCE`, `APP_PALLET_SAMPLES`.`SAMPLE_DATE` AS `SAMPLE_DATE`, diff --git a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml new file mode 100644 index 000000000..1acd4c6d1 --- /dev/null +++ b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000197.xml @@ -0,0 +1,672 @@ + + + + + + CREATE TABLE `APP_BOM` ( + `BOM_ID` varchar(20) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT '', + `BOM_VERSION` varchar(10) NOT NULL DEFAULT '', + `BOM_SEQUENCE` int NOT NULL DEFAULT '0', + `DATA_ID` varchar(20) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT '', + `DATA_TYPE` varchar(20) DEFAULT '', + `DATA_STRING` varchar(255) DEFAULT '', + `DATA_DECIMAL` decimal(22,3) unsigned DEFAULT NULL, + `DATA_DATE` datetime DEFAULT NULL, + `DATA_TIMESTAMP` timestamp NULL DEFAULT NULL, + `UUID` varchar(50) CHARACTER SET {charset} COLLATE {collation} NOT NULL DEFAULT (uuid()), + `PARENT_UUID` varchar(50) DEFAULT NULL, + PRIMARY KEY (`BOM_ID`,`BOM_VERSION`,`DATA_ID`,`UUID`) USING BTREE, + UNIQUE KEY `UUID_NDX` (`UUID`) USING BTREE, + KEY `UUID_PARENT_NDX` (`PARENT_UUID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_DEFAULTS` ( + `SOURCE_FIELD` varchar(32) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `SOURCE_VALUE` varchar(50) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `DESTINATION_FIELD` varchar(32) CHARACTER SET {charset} COLLATE {collation} NOT NULL, + `DESTINATION_VALUE` varchar(50) CHARACTER SET {charset} COLLATE {collation} DEFAULT NULL, + PRIMARY KEY (`SOURCE_FIELD`,`SOURCE_VALUE`,`DESTINATION_FIELD`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_ELEMENTS` ( + `DATA_ID` varchar(20) NOT NULL, + `DATA_TYPE` varchar(20) DEFAULT NULL, + `ENABLE_EDIT` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_CREATE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_DELETE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_DUPLICATE` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `ENABLE_CLIPBOARD` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + `MAX_OCCUR_LEVEL` int DEFAULT '1', + `ENABLE_LOOKUP` varchar(1) DEFAULT 'Y', + `LOOKUP_SQL` varchar(255) DEFAULT '', + `LOOKUP_FIELD` varchar(32) DEFAULT '', + `ICON_FILENAME` varchar(80) DEFAULT '', + `DESCRIPTION` varchar(80) DEFAULT '', + PRIMARY KEY (`DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + CREATE TABLE `APP_BOM_LISTS` ( + `LIST_ID` varchar(25) NOT NULL DEFAULT '', + `ITEM` varchar(50) NOT NULL DEFAULT '', + `SEQUENCE` int DEFAULT '0', + `ENABLED` varchar(1) CHARACTER SET {charset} COLLATE {collation} DEFAULT 'Y', + PRIMARY KEY (`LIST_ID`,`ITEM`) + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + + CREATE TABLE `APP_BOM_STRUCTURE` ( + `DATA_ID` varchar(20) NOT NULL, + `PARENT_DATA_CATEGORY` varchar(20) NOT NULL, + `PARENT_DATA_ID` varchar(20) NOT NULL, + PRIMARY KEY (`DATA_ID`,`PARENT_DATA_CATEGORY`,`PARENT_DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + + CREATE VIEW `view_bom` AS + select `BOM_MATERIAL`.`BOM_ID` AS `bom_id`, + `BOM_MATERIAL`.`BOM_VERSION` AS `bom_version`, + `BOM_MATERIAL`.`BOM_SEQUENCE` AS `display_order`, + `BOM_STAGE`.`DATA_STRING` AS `stage`, + `BOM_IN_OUT`.`DATA_ID` AS `input_output`, + `BOM_SEQUENCE`.`DATA_STRING` AS `sequence`, + `BOM_MATERIAL`.`DATA_STRING` AS `material`, + `BOM_MATERIAL`.`UUID` AS `material_uuid`, + `BOM_DESCRIPTION`.`DATA_STRING` AS `description`, + `BOM_QUANTITY`.`DATA_DECIMAL` AS `quantity`, + `BOM_TYPE`.`DATA_STRING` AS `type`, + `BOM_UOM`.`DATA_STRING` AS `uom`, + `BOM_GTIN`.`DATA_STRING` AS `gtin`, + `BOM_VARIANT`.`DATA_STRING` AS `variant`, + `BOM_LOCATION`.`DATA_STRING` AS `location_id`, + `BOM_LOCATION`.`UUID` AS `location_uuid` + from `app_bom` `BOM_MATERIAL` + left join `app_bom` `BOM_DESCRIPTION` on (`BOM_DESCRIPTION`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_DESCRIPTION`.`DATA_TYPE` = 'string') + and (`BOM_DESCRIPTION`.`DATA_ID` = 'description') + left join `app_bom` `BOM_QUANTITY` on (`BOM_QUANTITY`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_QUANTITY`.`DATA_TYPE` = 'decimal') + and (`BOM_QUANTITY`.`DATA_ID` = 'quantity') + left join `app_bom` `BOM_SEQUENCE` on (`BOM_SEQUENCE`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_SEQUENCE`.`DATA_TYPE` = 'string') + and (`BOM_SEQUENCE`.`DATA_ID` = 'sequence') + left join `app_bom` `BOM_TYPE` on (`BOM_TYPE`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_TYPE`.`DATA_TYPE` = 'string') + and (`BOM_TYPE`.`DATA_ID` = 'type') + left join `app_bom` `BOM_UOM` on (`BOM_UOM`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_UOM`.`DATA_TYPE` = 'string') + and (`BOM_UOM`.`DATA_ID` = 'uom') + left join `app_bom` `BOM_GTIN` on (`BOM_GTIN`.`PARENT_UUID` = `BOM_UOM`.`UUID`) + and (`BOM_GTIN`.`DATA_TYPE` = 'string') + and (`BOM_GTIN`.`DATA_ID` = 'gtin') + left join `app_bom` `BOM_VARIANT` on (`BOM_VARIANT`.`PARENT_UUID` = `BOM_UOM`.`UUID`) + and (`BOM_VARIANT`.`DATA_TYPE` = 'string') + and (`BOM_VARIANT`.`DATA_ID` = 'variant') + left join `app_bom` `BOM_IN_OUT` on (`BOM_IN_OUT`.`UUID` = `BOM_MATERIAL`.`PARENT_UUID`) + and (`BOM_IN_OUT`.`DATA_TYPE` = 'string') + and (`BOM_IN_OUT`.`DATA_ID` in ('input','output')) + left join `app_bom` `BOM_STAGE` on (`BOM_STAGE`.`UUID` = `BOM_IN_OUT`.`PARENT_UUID`) + and (`BOM_STAGE`.`DATA_TYPE` = 'string') + and (`BOM_STAGE`.`DATA_ID` = 'stage') + left join `app_bom` `BOM_LOCATION` on (`BOM_LOCATION`.`PARENT_UUID` = `BOM_MATERIAL`.`UUID`) + and (`BOM_LOCATION`.`DATA_TYPE` = 'string') + and (`BOM_LOCATION`.`DATA_ID` = 'location_id') + where (`BOM_MATERIAL`.`DATA_ID` = 'material') + order by `BOM_MATERIAL`.`BOM_ID`,`BOM_MATERIAL`.`BOM_VERSION`,`BOM_IN_OUT`.`DATA_ID`,`BOM_SEQUENCE`.`DATA_ID`,`BOM_MATERIAL`.`BOM_SEQUENCE`,`BOM_MATERIAL`.`UUID`; + + + + + CREATE VIEW `view_bom_structure` AS + select `app_bom_structure`.`DATA_ID` AS `DATA_ID`, + `app_bom_elements`.`DATA_TYPE` AS `DATA_TYPE`, + `app_bom_structure`.`PARENT_DATA_ID` AS `PARENT_DATA_ID`, + `app_bom_elements`.`ENABLE_EDIT` AS `ENABLE_EDIT`, + `app_bom_elements`.`ENABLE_CREATE` AS `ENABLE_CREATE`, + `app_bom_elements`.`ENABLE_DELETE` AS `ENABLE_DELETE`, + `app_bom_elements`.`ENABLE_DUPLICATE` AS `ENABLE_DUPLICATE`, + `app_bom_elements`.`ENABLE_CLIPBOARD` AS `ENABLE_CLIPBOARD`, + `app_bom_elements`.`ENABLE_LOOKUP` AS `ENABLE_LOOKUP`, + `app_bom_elements`.`LOOKUP_SQL` AS `LOOKUP_SQL`, + `app_bom_elements`.`LOOKUP_FIELD` AS `LOOKUP_FIELD`, + `app_bom_elements`.`ICON_FILENAME` AS `ICON_FILENAME`, + `app_bom_elements`.`MAX_OCCUR_LEVEL` AS `MAX_OCCUR_LEVEL`, + `app_bom_elements`.`DESCRIPTION` AS `DESCRIPTION` + from (`app_bom_structure` + join `app_bom_elements` + on((`app_bom_structure`.`DATA_ID` = `app_bom_elements`.`DATA_ID`))); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770321', 'location_id', 'LANEA'); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770322', 'location_id', 'LANEB'); + + + + INSERT INTO `APP_BOM_DEFAULTS` (`SOURCE_FIELD`, `SOURCE_VALUE`, `DESTINATION_FIELD`, `DESTINATION_VALUE`) VALUES ('material', '40770323', 'location_id', 'LANEC'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = \'location_id\' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = \'material_type\' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = \'uom\' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated'); + + + + INSERT INTO `APP_BOM_ELEMENTS` (`DATA_ID`, `DATA_TYPE`, `ENABLE_EDIT`, `ENABLE_CREATE`, `ENABLE_DELETE`, `ENABLE_DUPLICATE`, `ENABLE_CLIPBOARD`, `MAX_OCCUR_LEVEL`, `ENABLE_LOOKUP`, `LOOKUP_SQL`, `LOOKUP_FIELD`, `ICON_FILENAME`, `DESCRIPTION`) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant'); + + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('description', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('description', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('gtin', 'value', 'uom'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('hrs', 'section', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('hrs', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('input', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('location_id', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('line', 'section', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('line', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('material', 'section', 'input'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('material', 'section', 'output'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('output', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('quantity', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('resource', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('resource', 'section', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('root', '', ''); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('runtime', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('sequence', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('stage', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('type', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('uom', 'value', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('updated', 'section', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_CATEGORY`, `PARENT_DATA_ID`) VALUES ('variant', 'value', 'uom'); + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE `APP_LOCATION` + ADD COLUMN `MSG_PALLET_ISSUE` varchar(1) NULL DEFAULT 'Y' AFTER `MSG_PROD_UNCONFIRM`, + ADD COLUMN `MSG_PALLET_RETURN` varchar(1) NULL DEFAULT 'Y' AFTER `MSG_PALLET_ISSUE`, + ADD COLUMN `BARCODE_ID` varchar(25) NULL DEFAULT '' AFTER `MSG_PALLET_RETURN`; + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml new file mode 100644 index 000000000..38f7b3dec --- /dev/null +++ b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000198.xml @@ -0,0 +1,358 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP TABLE `APP_BOM_STRUCTURE`; + + + + CREATE TABLE `APP_BOM_STRUCTURE` ( + `DATA_ID` varchar(20) NOT NULL, + `PARENT_DATA_ID` varchar(20) NOT NULL, + PRIMARY KEY (`DATA_ID`,`PARENT_DATA_ID`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET={charset} COLLATE={collation}; + + + + DROP VIEW `view_bom_structure` + + + + CREATE VIEW `view_bom_structure` AS + select `app_bom_structure`.`DATA_ID` AS `DATA_ID`, + `app_bom_elements`.`DATA_TYPE` AS `DATA_TYPE`, + `app_bom_structure`.`PARENT_DATA_ID` AS `PARENT_DATA_ID`, + `app_bom_elements`.`ENABLE_EDIT` AS `ENABLE_EDIT`, + `app_bom_elements`.`ENABLE_CREATE` AS `ENABLE_CREATE`, + `app_bom_elements`.`ENABLE_DELETE` AS `ENABLE_DELETE`, + `app_bom_elements`.`ENABLE_DUPLICATE` AS `ENABLE_DUPLICATE`, + `app_bom_elements`.`ENABLE_CLIPBOARD` AS `ENABLE_CLIPBOARD`, + `app_bom_elements`.`ENABLE_LOOKUP` AS `ENABLE_LOOKUP`, + `app_bom_elements`.`LOOKUP_SQL` AS `LOOKUP_SQL`, + `app_bom_elements`.`LOOKUP_FIELD` AS `LOOKUP_FIELD`, + `app_bom_elements`.`ICON_FILENAME` AS `ICON_FILENAME`, + `app_bom_elements`.`MAX_OCCUR_LEVEL` AS `MAX_OCCUR_LEVEL`, + `app_bom_elements`.`DESCRIPTION` AS `DESCRIPTION` + from (`app_bom_structure` + join `app_bom_elements` + on((`app_bom_structure`.`DATA_ID` = `app_bom_elements`.`DATA_ID`))); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('description', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('description', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('gtin', 'uom'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('hrs', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('hrs', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('input', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('location_id', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('line', 'resource'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('line', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('material', 'input'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('material', 'output'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('output', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('quantity', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('resource', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('resource', 'stage'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('root', ''); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('runtime', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('sequence', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('stage', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('type', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('uom', 'material'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('updated', 'root'); + + + + INSERT INTO `APP_BOM_STRUCTURE` (`DATA_ID`, `PARENT_DATA_ID`) VALUES ('variant', 'uom'); + + + diff --git a/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml new file mode 100644 index 000000000..32738e209 --- /dev/null +++ b/c4jWS/src/main/webapp/xml/schema/com.mysql.cj.jdbc.Driver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/c4jWS/src/main/webapp/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml b/c4jWS/src/main/webapp/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml new file mode 100644 index 000000000..d78048a6a --- /dev/null +++ b/c4jWS/src/main/webapp/xml/schema/oracle.jdbc.driver.OracleDriver/000197.xml @@ -0,0 +1,556 @@ + + + + + CREATE TABLE "APP_BOM" ( + "BOM_ID" VARCHAR2(20) DEFAULT '' NOT NULL, + "BOM_VERSION" VARCHAR2(10) DEFAULT '' NOT NULL, + "BOM_SEQUENCE" INT DEFAULT 0 NOT NULL, + "DATA_ID" VARCHAR2(20) DEFAULT '' NOT NULL, + "DATA_TYPE" VARCHAR2(20) DEFAULT '', + "DATA_STRING" VARCHAR2(255) DEFAULT '', + "DATA_DECIMAL" NUMERIC(22,3) DEFAULT NULL, + "DATA_DATE" TIMESTAMP DEFAULT NULL, + "DATA_TIMESTAMP" TIMESTAMP DEFAULT NULL, + "UUID" VARCHAR2(50) DEFAULT '' NOT NULL, + "PARENT_UUID" VARCHAR2(50) DEFAULT '', + PRIMARY KEY ("BOM_ID", "BOM_VERSION", "DATA_ID", "UUID") ) + + + + CREATE TABLE "APP_BOM_DEFAULTS" ( + "SOURCE_FIELD" VARCHAR2(32) NOT NULL, + "SOURCE_VALUE" VARCHAR2(50) NOT NULL, + "DESTINATION_FIELD" VARCHAR2(32) NOT NULL, + "DESTINATION_VALUE" VARCHAR2(50), + PRIMARY KEY ("SOURCE_FIELD", "SOURCE_VALUE", "DESTINATION_FIELD") ) + + + + CREATE TABLE "APP_BOM_ELEMENTS" ( + "DATA_ID" VARCHAR2(20) NOT NULL, + "DATA_TYPE" VARCHAR2(20), + "ENABLE_EDIT" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_CREATE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_DELETE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_DUPLICATE" VARCHAR2(1) DEFAULT 'Y', + "ENABLE_CLIPBOARD" VARCHAR2(1) DEFAULT 'Y', + "MAX_OCCUR_LEVEL" INT, + "ENABLE_LOOKUP" VARCHAR2(1) DEFAULT 'Y', + "LOOKUP_SQL" VARCHAR2(255) DEFAULT '', + "LOOKUP_FIELD" VARCHAR2(32) DEFAULT '', + "ICON_FILENAME" VARCHAR2(80) DEFAULT '', + "DESCRIPTION" VARCHAR2(80) DEFAULT '', + PRIMARY KEY ("DATA_ID") ) + + + + CREATE TABLE "APP_BOM_LISTS" ( + "LIST_ID" VARCHAR2(25 BYTE) VISIBLE DEFAULT '', + "ITEM" VARCHAR2(50 BYTE) VISIBLE DEFAULT '', + "SEQUENCE" NUMBER VISIBLE DEFAULT 0, + "ENABLED" VARCHAR2(1 BYTE) VISIBLE DEFAULT 'Y') + + + + CREATE INDEX "IDX_APP_BOM_LISTS1" + ON "APP_BOM_LISTS" ("LIST_ID" ASC, "ITEM" ASC) + + + + CREATE TABLE "APP_BOM_STRUCTURE" ( + "DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '', + "PARENT_DATA_CATEGORY" VARCHAR2(20) VISIBLE DEFAULT '' , + "PARENT_DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '' ) + + + + CREATE INDEX "IDX_APP_BOM_STRUCTURE1" + ON "APP_BOM_STRUCTURE" ("DATA_ID" ASC, "PARENT_DATA_CATEGORY" ASC, "PARENT_DATA_ID" ASC) + + + + CREATE OR REPLACE VIEW view_bom as + SELECT BOM_MATERIAL.BOM_ID bom_id, + BOM_MATERIAL.BOM_VERSION bom_version, + BOM_MATERIAL.BOM_SEQUENCE display_order, + BOM_STAGE.DATA_STRING stage, + BOM_IN_OUT.DATA_ID input_output, + BOM_SEQUENCE.DATA_STRING sequence, + BOM_MATERIAL.DATA_STRING material, + BOM_MATERIAL.UUID material_uuid, + BOM_DESCRIPTION.DATA_STRING description, + BOM_QUANTITY.DATA_DECIMAL quantity, + BOM_TYPE.DATA_STRING TYPE, + BOM_UOM.DATA_STRING uom, + BOM_GTIN.DATA_STRING gtin, + BOM_VARIANT.DATA_STRING variant, + BOM_LOCATION.DATA_STRING location_id, + BOM_LOCATION.UUID location_uuid + FROM app_bom BOM_MATERIAL + LEFT JOIN app_bom BOM_DESCRIPTION ON ( ( BOM_DESCRIPTION.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_DESCRIPTION.DATA_TYPE = 'string' ) AND ( BOM_DESCRIPTION.DATA_ID = 'description' ) ) + LEFT JOIN app_bom BOM_QUANTITY ON ( ( BOM_QUANTITY.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_QUANTITY.DATA_TYPE = 'decimal' ) AND ( BOM_QUANTITY.DATA_ID = 'quantity' ) ) + LEFT JOIN app_bom BOM_SEQUENCE ON ( ( BOM_SEQUENCE.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_SEQUENCE.DATA_TYPE = 'string' ) AND ( BOM_SEQUENCE.DATA_ID = 'sequence' ) ) + LEFT JOIN app_bom BOM_TYPE ON ( ( BOM_TYPE.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_TYPE.DATA_TYPE = 'string' ) AND ( BOM_TYPE.DATA_ID = 'type' ) ) + LEFT JOIN app_bom BOM_UOM ON ( ( BOM_UOM.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_UOM.DATA_TYPE = 'string' ) AND ( BOM_UOM.DATA_ID = 'uom' ) ) + LEFT JOIN app_bom BOM_GTIN ON ( ( BOM_GTIN.PARENT_UUID = BOM_UOM.UUID ) AND ( BOM_GTIN.DATA_TYPE = 'string' ) AND ( BOM_GTIN.DATA_ID = 'gtin' ) ) + LEFT JOIN app_bom BOM_VARIANT ON ( ( BOM_VARIANT.PARENT_UUID = BOM_UOM.UUID ) AND ( BOM_VARIANT.DATA_TYPE = 'string' ) AND ( BOM_VARIANT.DATA_ID = 'variant' ) ) + LEFT JOIN app_bom BOM_IN_OUT ON ( ( BOM_IN_OUT.UUID = BOM_MATERIAL.PARENT_UUID ) AND ( BOM_IN_OUT.DATA_TYPE = 'string' ) AND ( BOM_IN_OUT.DATA_ID IN ( 'input', 'output' ) ) ) + LEFT JOIN app_bom BOM_STAGE ON ( ( BOM_STAGE.UUID = BOM_IN_OUT.PARENT_UUID ) AND ( BOM_STAGE.DATA_TYPE = 'string' ) AND ( BOM_STAGE.DATA_ID = 'stage' ) ) + LEFT JOIN app_bom BOM_LOCATION ON ( ( BOM_LOCATION.PARENT_UUID = BOM_MATERIAL.UUID ) AND ( BOM_LOCATION.DATA_TYPE = 'string' ) AND ( BOM_LOCATION.DATA_ID = 'location_id' ) ) + WHERE ( BOM_MATERIAL.DATA_ID = 'material' ) + + + + CREATE OR REPLACE VIEW view_bom_structure AS + SELECT app_bom_structure.DATA_ID DATA_ID, + app_bom_elements.DATA_TYPE DATA_TYPE, + app_bom_structure.PARENT_DATA_ID PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION DESCRIPTION + FROM (app_bom_structure JOIN app_bom_elements ON ((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770321', 'location_id', 'LANEA') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770322', 'location_id', 'LANEB') + + INSERT INTO APP_BOM_DEFAULTS (SOURCE_FIELD, SOURCE_VALUE, DESTINATION_FIELD, DESTINATION_VALUE) VALUES ('material', '40770323', 'location_id', 'LANEC') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('description', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'info.png', 'Description') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('gtin', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'GTIN') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('hrs', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'clock.png', 'Hours') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('input', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'input.png', 'Input') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_id', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 3, 'Y', 'SELECT ITEM AS LOCATION_ID FROM APP_BOM_LISTS WHERE LIST_ID = ''location_id'' ORDER BY ITEM', 'LOCATION_ID', 'lanes.png', 'Lane') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('location_group', 'string', 'N', 'N', 'N', 'N', 'Y', 1, 'N', '', '', 'lane_group.png', 'Group') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('line', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'line.png', 'Production Line') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('material', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 50, 'N', '', '', 'materials.gif', 'Material') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('output', 'string', 'N', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'output.png', 'Output') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('quantity', 'decimal', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'quantity.gif', 'Quantity') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('resource', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'resource') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('root', 'string', 'N', 'Y', 'N', 'N', 'Y', 1, 'N', '', '', 'recipe.gif', 'BOM/Version') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('runtime', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', '', 'Runtime') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('sequence', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'sequence.png', 'BOM Sequence') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('stage', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'stage.png', 'BOM Stage') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('type', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS MATERIAL_TYPE FROM APP_BOM_LISTS WHERE LIST_ID = ''material_type'' ORDER BY ITEM', 'MATERIAL_TYPE', '', 'Material Type') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('uom', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'Y', 'SELECT ITEM AS UOM FROM APP_BOM_LISTS WHERE LIST_ID = ''uom'' ORDER BY ITEM', 'UOM', 'unit.png', 'Unit of Measure') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('updated', 'timestamp', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'schedule.png', 'Updated') + + INSERT INTO APP_BOM_ELEMENTS (DATA_ID, DATA_TYPE, ENABLE_EDIT, ENABLE_CREATE, ENABLE_DELETE, ENABLE_DUPLICATE, ENABLE_CLIPBOARD, MAX_OCCUR_LEVEL, ENABLE_LOOKUP, LOOKUP_SQL, LOOKUP_FIELD, ICON_FILENAME, DESCRIPTION) VALUES ('variant', 'string', 'Y', 'Y', 'Y', 'Y', 'Y', 1, 'N', '', '', 'barcode.gif', 'Variant') + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', '', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEA', 2) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEB', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANEC', 3) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('location_id', 'LANED', 4) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'FG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'IM', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'ING', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'PACK', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('material_type', 'RAW', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'CS', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'EA', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'KG', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('uom', 'UNI', 0) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00010', 1) + + INSERT INTO APP_BOM_LISTS (LIST_ID, ITEM, SEQUENCE) VALUES ('stage', '00020', 2) + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('description', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('gtin', 'value', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('hrs', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('input', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('location_id', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('line', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('material', 'section', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('output', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('quantity', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('resource', 'section', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('root', '', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('runtime', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('sequence', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('stage', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('type', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('uom', 'value', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('updated', 'section', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_CATEGORY, PARENT_DATA_ID) VALUES ('variant', 'value', 'uom') + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ADMIN', 'N', 'Y', 'FORM', 'Admin Bill of Materials', 0, 'recipe.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ADMIN', '', '') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'EN', 'Bill of Materials Admin', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'DE', 'Stücklistenverwaltung', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'FR', 'Administration de la nomenclature', '0') +mod_FRM_BOM_ADMIN + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'NL', 'Administratie van stuklijsten', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'ES', 'Administración de listas de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'PL', 'Administracja wykazem materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'HU', 'Anyagigazgatási törvénykönyv', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN', 'IT', 'Amministrazione della distinta base', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'EN', 'Bill of Materials', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'DE', 'Stückliste', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'FR', 'Nomenclature', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'NL', 'Stuklijst van materialen', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'ES', 'Lista de materiales', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'PL', 'Wykaz materiałów', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'HU', 'Anyagjegyzék', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_MENU_BOM', 'IT', 'Distinta base', '0') + + INSERT INTO SYS_GROUPS (GROUP_ID, DESCRIPTION) VALUES ('BOM', 'Bill of Materials') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ADMIN') + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM', 'N', 'Y', 'MENU', 'mod_MENU_BOM', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_BOM', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM', 'root', 20) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ADMIN', 'MENU_BOM', 1) + + + + ALTER TABLE "APP_LOCATION" + ADD ("MSG_PALLET_ISSUE" VARCHAR2(1) DEFAULT 'Y') + ADD ("MSG_PALLET_RETURN" VARCHAR2(1) DEFAULT 'Y') + ADD ("BARCODE_ID" VARCHAR2(25) DEFAULT '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'EN', 'Barcode ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'DE', 'Barcode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'FR', 'ID de code à barres', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'NL', 'Streepjescode-ID', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'ES', 'Código de barras', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'PL', 'Identyfikator kodu kreskowego', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'HU', 'Vonalkód azonosító', '0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Barcode_ID', 'IT', 'Codice a barre', '0') + + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-A', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEA') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-B', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEB') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-C', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANEC') + + INSERT INTO APP_LOCATION (LOCATION_ID, PLANT, WAREHOUSE, GLN, DESCRIPTION, STORAGE_LOCATION, STORAGE_TYPE, STORAGE_SECTION, STORAGE_BIN, EQUIPMENT_TRACKING_ID, MSG_DESPATCH_CONFIRM, MSG_DESPATCH_PREADVICE, MSG_DESPATCH_EQUIP_TRACK, MSG_PROD_CONFIRM, PERMITTED_PALLET_STATUS, PERMITTED_BATCH_STATUS, MSG_PALLET_STATUS, MSG_PALLET_SPLIT, MSG_PALLET_DELETE, ENABLED, MSG_JOURNEY_REF, EMAIL_DESPATCH, MSG_PROD_UNCONFIRM, MSG_PALLET_ISSUE, MSG_PALLET_RETURN, BARCODE_ID) VALUES ('MPACK-LANE-D', '', '*', '', '', '', '', '', '', '', 'N', 'N', 'N', 'N', '^', '^', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'Y', 'Y', 'LANED') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','EN','Source Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','FR','Champ source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','DE','Quellfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','HU','Forrás mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','PL','Pole źródłowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','IT','Campo di origine','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','NL','Bronveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Field','ES','Campo de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','EN','Source Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','FR','Valeur source','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','DE','Quellwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','HU','Forrásérték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','PL','Wartość źródłowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','IT','Valore della fonte','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','NL','Bronwaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Source_Value','ES','Valor de origen','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','EN','Destination Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','FR','Champ de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','DE','Zielfeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','HU','Cél mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','PL','Pole docelowe','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','IT','Campo di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','NL','Bestemmingsveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Field','ES','Campo de destino','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','EN','Destination Value','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','FR','Valeur de destination','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','DE','Zielwert','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','HU','Cél érték','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','PL','Wartość docelowa','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','IT','Valore di destinazione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','NL','Bestemmingswaarde','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Destination_Value','ES','Valor de destino','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_DEFAULTS', 0, 'defaults.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_DEFAULTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM', 1) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS', 'EN', 'Bill of Material Defaults', '0') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS', 'N', 'Y', 'FORM', 'mod_FRM_BOM_ELEMENTS', 0, 'elements.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_EDIT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_ELEMENTS_PRINT', 'N', 'Y', 'FUNCTION', NULL, 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_ELEMENTS_PRINT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM', 2) + + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS', 'EN', 'Bill of Material Elements', '0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','EN','Data Type','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','FR','Type de données','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','DE','Datentyp','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','HU','Adattípus','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','PL','Typ danych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','IT','Tipo di dati','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','NL','Gegevenstype','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Data_Type','ES','Tipo de datos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','EN','Max Occurrences','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','FR','Occurrences maximales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','DE','Maximale Vorkommen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','HU','Maximális előfordulások','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','PL','Maksymalna liczba wystąpień','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','IT','Numero massimo di occorrenze','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','NL','Maximaal aantal voorkomens','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Max_Occurrences','ES','Ocurrencias máximas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','EN','Create','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','FR','Créer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','DE','Erstellen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','HU','Teremt','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','PL','Tworzyć','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','IT','Creare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','NL','Creëren','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Create','ES','Crear','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','EN','Edit','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','FR','Modifier','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','DE','Bearbeiten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','HU','Szerkesztés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','PL','Redagować','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','IT','Modificare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','NL','Bewerking','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Edit','ES','Editar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','EN','Delete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','FR','Supprimer','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','DE','Löschen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','HU','Töröl','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','PL','Usuwać','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','IT','Eliminare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','NL','Verwijderen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Delete','ES','Borrar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','EN','Duplicate','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','FR','Double','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','DE','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','HU','Másolat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','PL','Duplikat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','IT','Duplicato','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','NL','Duplicaat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Duplicate','ES','Duplicado','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','EN','Clipboard','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','FR','Presse-papiers','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','DE','Zwischenablage','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','HU','Vágólap','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','PL','Schowek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','IT','Appunti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','NL','Klembord','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Clipboard','ES','Portapapeles','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','EN','Lookup','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','FR','Chercher','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','DE','Nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','HU','Keresés','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','PL','Spojrzeć w górę','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','IT','Cercare','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','NL','Opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup','ES','Buscar','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','EN','Lookup SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','FR','Recherche SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','DE','SQL nachschlagen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','HU','SQL keresése','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','PL','Wyszukaj SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','IT','Cerca SQL','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','NL','SQL opzoeken','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_SQL','ES','SQL de búsqueda','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','EN','Lookup Field','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','FR','Champ de recherche','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','DE','Nachschlagefeld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','HU','Keresési mező','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','PL','Pole wyszukiwania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','IT','Campo di ricerca','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','NL','Opzoekveld','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Lookup_Field','ES','Campo de búsqueda','0') + + diff --git a/c4jWS/src/main/webapp/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml b/c4jWS/src/main/webapp/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml new file mode 100644 index 000000000..61c549a6e --- /dev/null +++ b/c4jWS/src/main/webapp/xml/schema/oracle.jdbc.driver.OracleDriver/000198.xml @@ -0,0 +1,314 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE', 'N', 'Y', 'FORM', 'mod_FRM_BOM_STRUCTURE', 0, 'structure.gif', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_STRUCTURE_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_STRUCTURE', 0, NULL, NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM', 2) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Stücklistenelemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Anyagelemek jegyzéke','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Distinta degli elementi materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Stuklijstelementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Lista de elementos materiales','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Bill of Materials Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure de la nomenclature','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Stücklistenstruktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Anyagjegyzék szerkezete','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura zestawienia materiałów','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura della distinta materiali','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur van de stuklijst','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura de la lista de materiales','0') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','EN','Category','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','FR','Catégorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','DE','Kategorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','HU','Kategória','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','PL','Kategoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','IT','Categoria','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','NL','Categorie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Category','ES','Categoría','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','EN','Parent Data ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','FR','ID des données parentales','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','DE','Elterndaten-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','HU','Szülőadatok azonosítója','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','PL','Identyfikator danych nadrzędnych','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','IT','ID dati genitore','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','NL','Bovenliggende gegevens-ID','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Parent_Data_ID','ES','ID de datos de los padres','0') + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('MENU_BOM_CONFIG', 'N', 'Y', 'MENU', 'mod_MENU_SETUP', 0, '', '', '', '', '', 'Y', 'N', 1, '', 'mod_MENU_SETUP', '', '') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('MENU_BOM_CONFIG', 'MENU_BOM', 20) + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'MENU_BOM_CONFIG') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'MENU_BOM_CONFIG') + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_DEFAULTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_ELEMENTS' AND MENU_ID = 'MENU_BOM' + + + + DELETE FROM SYS_MENUS WHERE MODULE_ID = 'FRM_BOM_STRUCTURE' AND MENU_ID = 'MENU_BOM' + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_DEFAULTS', 'MENU_BOM_CONFIG', 1) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_ELEMENTS', 'MENU_BOM_CONFIG', 2) + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_STRUCTURE', 'MENU_BOM_CONFIG', 3) + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ELEMENTS' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_STRUCTURE' + + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_DEFAULTS' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','EN','Elements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','FR','Éléments','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','DE','Elemente','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','HU','Elemek','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','PL','Elementy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','IT','Elementi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','NL','Elementen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ELEMENTS','ES','Elementos','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','EN','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','FR','Structure','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','DE','Struktur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','HU','Szerkezet','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','PL','Struktura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','IT','Struttura','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','NL','Structuur','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_STRUCTURE','ES','Estructura','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','EN','Defaults','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','FR','Valeurs par défaut','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','DE','Standardeinstellungen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','HU','Alapértelmezések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','PL','Domyślne','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','IT','Predefiniti','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','NL','Standaardwaarden','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_DEFAULTS','ES','Valores predeterminados','0') + + + DELETE FROM SYS_LANGUAGE WHERE RESOURCE_KEY = 'mod_FRM_BOM_ADMIN' + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','EN','Admin (View / Edit)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','FR','Administrateur (Afficher / Modifier)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','DE','Admin (Anzeigen/Bearbeiten)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','HU','Adminisztrátor (megtekintés/szerkesztés)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','PL','Administrator (Wyświetl / Edytuj)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','IT','Amministratore (Visualizza/Modifica)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','NL','Beheerder (bekijken/bewerken)','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ADMIN','ES','Administrador (Ver / Editar)','0') + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_STRUCTURE_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_DEFAULTS_PRINT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_ELEMENTS_PRINT') + + + + DROP INDEX "IDX_APP_BOM_STRUCTURE1" + + + + DROP TABLE "APP_BOM_STRUCTURE" + + + + CREATE TABLE "APP_BOM_STRUCTURE" ( + "DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '', + "PARENT_DATA_ID" VARCHAR2(20) VISIBLE DEFAULT '' ) + + + + CREATE INDEX "IDX_APP_BOM_STRUCTURE1" + ON "APP_BOM_STRUCTURE" ("DATA_ID" ASC, "PARENT_DATA_ID" ASC) + + + + CREATE OR REPLACE VIEW view_bom_structure AS + SELECT app_bom_structure.DATA_ID DATA_ID, + app_bom_elements.DATA_TYPE DATA_TYPE, + app_bom_structure.PARENT_DATA_ID PARENT_DATA_ID, + app_bom_elements.ENABLE_EDIT ENABLE_EDIT, + app_bom_elements.ENABLE_CREATE ENABLE_CREATE, + app_bom_elements.ENABLE_DELETE ENABLE_DELETE, + app_bom_elements.ENABLE_DUPLICATE ENABLE_DUPLICATE, + app_bom_elements.ENABLE_CLIPBOARD ENABLE_CLIPBOARD, + app_bom_elements.ENABLE_LOOKUP ENABLE_LOOKUP, + app_bom_elements.LOOKUP_SQL LOOKUP_SQL, + app_bom_elements.LOOKUP_FIELD LOOKUP_FIELD, + app_bom_elements.ICON_FILENAME ICON_FILENAME, + app_bom_elements.MAX_OCCUR_LEVEL MAX_OCCUR_LEVEL, + app_bom_elements.DESCRIPTION DESCRIPTION + FROM (app_bom_structure JOIN app_bom_elements ON ((app_bom_structure.DATA_ID = app_bom_elements.DATA_ID))) + + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('description', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('gtin', 'uom') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('hrs', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('input', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('location_id', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'resource') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('line', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'input') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('material', 'output') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('output', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('quantity', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('resource', 'stage') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('root', '') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('runtime', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('sequence', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('stage', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('type', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('uom', 'material') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('updated', 'root') + + INSERT INTO APP_BOM_STRUCTURE (DATA_ID, PARENT_DATA_ID) VALUES ('variant', 'uom') + + + diff --git a/c4jWS/src/main/webapp/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml b/c4jWS/src/main/webapp/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml new file mode 100644 index 000000000..3166d412d --- /dev/null +++ b/c4jWS/src/main/webapp/xml/schema/oracle.jdbc.driver.OracleDriver/000199.xml @@ -0,0 +1,118 @@ + + + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST', 'N', 'Y', 'FORM', 'mod_FRM_BOM_LIST', 0, 'list.png', '', '', '', '', 'Y', 'N', 1, '', 'mod_FRM_BOM_LIST', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_ADD', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_DELETE', 'N', 'Y', 'FUNCTION', '5 ', 0, '', '', '', '', '', 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_MODULES (MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('FRM_BOM_LIST_EDIT', 'N', 'Y', 'FUNCTION', 'mod_FRM_BOM_LIST', 0, 'recipe.gif', NULL, NULL, NULL, NULL, 'Y', 'N', 1, '', '', '', '') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('BOM', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_ADD') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_DELETE') + + + + INSERT INTO SYS_GROUP_PERMISSIONS (GROUP_ID, MODULE_ID) VALUES ('ADMIN', 'FRM_BOM_LIST_EDIT') + + + + INSERT INTO SYS_MENUS (MODULE_ID, MENU_ID, SEQUENCE_ID) VALUES ('FRM_BOM_LIST', 'MENU_BOM_CONFIG', 5) + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','EN','Lists','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','FR','Listes','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','DE','Listen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','HU','Listák','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','PL','Listy','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','IT','Elenchi','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','NL','Lijsten','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_LIST','ES','Liza','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','EN','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','FR','Article','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','DE','Artikel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','HU','Tétel','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','PL','Przedmiot','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','IT','Articolo','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','NL','Item','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Item','ES','Artículo','0') + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_ELEMENTS', 'N', 'Y', 'REPORT', 'BOM Elements', 0, '', '', 'bom_elements.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_ELEMENTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_DEFAULTS', 'N', 'Y', 'REPORT', 'BOM Defaults', 0, '', '', 'bom_defaults.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_DEFAULTS', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_STRUCTURE', 'N', 'Y', 'REPORT', 'BOM Structure', 0, '', '', 'bom_structure.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_STRUCTURE', '', '') + + + + INSERT INTO SYS_MODULES(MODULE_ID, RF_ACTIVE, DK_ACTIVE, MODULE_TYPE, HINT, MNEMONIC, ICON_FILENAME, HELPSET_ID, REPORT_FILENAME, EXEC_FILENAME, EXEC_DIR, PRINT_PREVIEW, PRINT_DIALOG, PRINT_COPIES, REPORT_TYPE, RESOURCE_KEY, AUTO_LABELLER_COMMAND_FILE, AUTO_LABELLER_LABEL_FILE) VALUES ('RPT_BOM_LIST', 'N', 'Y', 'REPORT', 'BOM Lists', 0, '', '', 'bom_lists.jrxml', '', '', 'Y', 'N', 1, 'Standard', 'mod_FRM_BOM_LIST', '', '') + + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','EN','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','FR','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','DE','Version','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','HU','Változat','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','PL','Wersja','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','IT','Versione','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','NL','Versie','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Version','ES','Versión','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','EN','Enquiries','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','FR','Demandes de renseignements','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','DE','Anfragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','HU','Érdeklődések','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','PL','Zapytania','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','IT','Richieste','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','NL','Vragen','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('mod_FRM_BOM_ENQUIRY','ES','Consultas','0') + + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','EN','Stage or Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','FR','Étape ou phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','DE','Stufe oder Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','HU','Stage vagy Phase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','PL','Etap lub faza','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','IT','Stadio o Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','NL','Fase of Fase','0') + INSERT INTO SYS_LANGUAGE (RESOURCE_KEY, LANGUAGE_ID, TEXT, MNEMONIC) VALUES ('lbl_Stage_Phase','ES','Etapa o Fase','0') + + diff --git a/c4jWS/src/main/webapp/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml b/c4jWS/src/main/webapp/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml index 337bb1136..6445ca54c 100644 --- a/c4jWS/src/main/webapp/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml +++ b/c4jWS/src/main/webapp/xml/sql/sql.com.microsoft.sqlserver.jdbc.SQLServerDriver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [view_pallet_history_expiry] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [view_pallet_history] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(IIF(transaction_type = 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value = ?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,7 +286,7 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(a.module_id) from [view_security] a where a.user_id = ? order by a.module_id @@ -291,24 +297,24 @@ JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - - + + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}view_permissions order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,u.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,u.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT a.* FROM [view_menu_structure]a WHERE a.MENU_ID = ? AND a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT a.* FROM [view_rf_menu]a WHERE a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT a.* FROM [view_toolbar]a WHERE a.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,[updated]=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -584,8 +587,8 @@ JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,7 +617,7 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource @@ -643,7 +646,15 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER - + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + + JDBProcessOrder.ViewResource select * from view_process_order_resource @@ -651,7 +662,7 @@ JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from view_process_order_resource where process_order=? - + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,18 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -745,7 +772,7 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -800,39 +827,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - P.SSCC, - P.STATUS AS 'PALLET_STATUS', - P.LOCATION_ID, - P.DESPATCH_NO, - MB.MATERIAL, - MB.BATCH_NUMBER, - MB.STATUS AS 'BATCH_STATUS' - FROM - APP_PALLET P, - APP_MATERIAL_BATCH MB - WHERE - MB.MATERIAL = P.MATERIAL - AND MB.BATCH_NUMBER = P.BATCH_NUMBER - AND P.DESPATCH_NO = %1 - AND ( - P.STATUS NOT IN ( %2 ) - OR MB.STATUS NOT IN ( %3 ) - ) - + SELECT P.SSCC, P.STATUS AS 'PALLET_STATUS', P.LOCATION_ID, P.DESPATCH_NO, MB.MATERIAL, MB.BATCH_NUMBER, MB.STATUS AS 'BATCH_STATUS' FROM APP_PALLET P, APP_MATERIAL_BATCH MB WHERE MB.MATERIAL = P.MATERIAL AND MB.BATCH_NUMBER = P.BATCH_NUMBER AND P.DESPATCH_NO = %1 AND ( P.STATUS NOT IN ( %2 ) OR MB.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +858,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +875,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +896,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (report_request_id,module_id,invocation_mode,parameter_count,parameter_delimiter,parameter_names,parameter_types,parameter_values,sql,print_queue_name,print_copies) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +913,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +938,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +967,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +996,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1025,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1050,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1071,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1092,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1117,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1142,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1167,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1192,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1221,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1250,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1287,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1323,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1348,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1381,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1406,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1427,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}view_label_data WHERE UNIQUE_ID = ? @@ -1432,96 +1436,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}view_auto_labeller_printer where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}view_auto_labeller_printer - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1537,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1573,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1599,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1657,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1670,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1703,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1711,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}view_barcode_validate where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1738,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1763,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1792,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1804,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1821,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1850,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1879,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1912,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1923,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1960,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +2003,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2032,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2059,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2072,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2097,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2122,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2130,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2163,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? + select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? + select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2210,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2219,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2243,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2264,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2284,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2292,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2321,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2339,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2376,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2401,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2430,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2442,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2455,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?, sample_point = ?, id=?,lane_1=?,lane_2=?,lane_3=?,lane_4=?,lane_5=? where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2496,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2529,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2570,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2594,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2603,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2619,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2642,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2673,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select top (?) * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc + select top (?) * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2700,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2725,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2749,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2761,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,11 +2778,11 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? @@ -2909,6 +2795,184 @@ JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group - + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM >'' AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/c4jWS/src/main/webapp/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml b/c4jWS/src/main/webapp/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml index c6e3009e7..f80059eaa 100644 --- a/c4jWS/src/main/webapp/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml +++ b/c4jWS/src/main/webapp/xml/sql/sql.com.mysql.cj.jdbc.Driver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [view_pallet_history_expiry] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [view_pallet_history] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(IF(transaction_type = 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value = ?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,7 +286,7 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(S.module_id) from [view_security] as S where S.user_id = ? order by module_id @@ -291,24 +297,24 @@ JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - - + + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}view_permissions order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,u.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,u.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT * FROM [view_menu_structure] AS M WHERE M.MENU_ID = ? AND M.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT * FROM [view_rf_menu] AS T WHERE T.MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT * FROM [view_toolbar] AS T WHERE T.MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,updated=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -584,8 +587,8 @@ JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,7 +617,7 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource @@ -643,7 +646,15 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER - + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + + JDBProcessOrder.ViewResource select * from view_process_order_resource @@ -651,7 +662,7 @@ JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from view_process_order_resource where process_order=? - + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,14 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -745,7 +768,7 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -800,39 +823,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - P.SSCC, - P.STATUS AS 'PALLET_STATUS', - P.LOCATION_ID, - P.DESPATCH_NO, - MB.MATERIAL, - MB.BATCH_NUMBER, - MB.STATUS AS 'BATCH_STATUS' - FROM - APP_PALLET P, - APP_MATERIAL_BATCH MB - WHERE - MB.MATERIAL = P.MATERIAL - AND MB.BATCH_NUMBER = P.BATCH_NUMBER - AND P.DESPATCH_NO = %1 - AND ( - P.STATUS NOT IN ( %2 ) - OR MB.STATUS NOT IN ( %3 ) - ) - + SELECT P.SSCC, P.STATUS AS 'PALLET_STATUS', P.LOCATION_ID, P.DESPATCH_NO, MB.MATERIAL, MB.BATCH_NUMBER, MB.STATUS AS 'BATCH_STATUS' FROM APP_PALLET P, APP_MATERIAL_BATCH MB WHERE MB.MATERIAL = P.MATERIAL AND MB.BATCH_NUMBER = P.BATCH_NUMBER AND P.DESPATCH_NO = %1 AND ( P.STATUS NOT IN ( %2 ) OR MB.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +854,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +871,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +892,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (`REPORT_REQUEST_ID`,`MODULE_ID`,`INVOCATION_MODE`,`PARAMETER_COUNT`,`PARAMETER_DELIMITER`,`PARAMETER_NAMES`,`PARAMETER_TYPES`,`PARAMETER_VALUES`,`SQL`,`PRINT_QUEUE_NAME`,`PRINT_COPIES`) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +909,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +934,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +963,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +992,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1021,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1046,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1067,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1088,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1113,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1138,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1163,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1188,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1217,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1246,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1283,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1319,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1344,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1377,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1402,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1423,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}view_label_data WHERE UNIQUE_ID = ? @@ -1432,96 +1432,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}view_auto_labeller_printer where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}view_auto_labeller_printer - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}view_auto_labeller_printer where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1533,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1569,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1595,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1653,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1666,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1699,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1707,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}view_barcode_validate where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1734,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1759,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1788,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1800,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1817,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1846,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1875,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1908,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1919,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1956,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +1999,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2028,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2055,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2068,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2093,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2118,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2126,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2159,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? + select * from {schema}view_waste_location_materials where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? + select * from {schema}view_waste_location_materials where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}view_waste_location_materials where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2206,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2215,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2239,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2260,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2280,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2288,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2317,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2335,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2372,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2397,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2426,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2438,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2451,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?, sample_point = ?, id=?,lane_1=?,lane_2=?,lane_3=?,lane_4=?,lane_5=? where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2492,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2525,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2566,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2590,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2599,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2615,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2638,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2669,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc limit ? + select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc limit ? - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2696,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2721,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2745,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2757,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,23 +2774,201 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? JDBOperatives.getOperatives select * from {schema}APP_OPERATIVES order by id - - + JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group - + + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM >'' AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/c4jWS/src/main/webapp/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml b/c4jWS/src/main/webapp/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml index 2a895fb6b..289b81c79 100644 --- a/c4jWS/src/main/webapp/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml +++ b/c4jWS/src/main/webapp/xml/sql/sql.oracle.jdbc.driver.OracleDriver.xml @@ -1,7 +1,8 @@ - + + - + JDBPalletHistory.write insert into {schema}APP_PALLET_HISTORY (transaction_ref,transaction_type,transaction_subtype,transaction_date,sscc,despatch_no,location_id,material,batch_number,process_order,quantity,uom,date_of_manufacture,status,ean,variant,user_id,confirmed,layers,sscc_expiry_date,customer_id,mhn_number,decision,equipment_type) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) @@ -10,18 +11,23 @@ JDBPalletHistory.selectWithExpiry select * from [VIEW_PALLET_HISTORY_EXPIRY] + + JDBPalletHistory.selectWithSSCC + select * from app_pallet_history where sscc = ? order by transaction_ref desc + JDBPalletHistory.select select * from [VIEW_PALLET_HISTORY] JDBPalletHistory.insertFromPallet - INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) - SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, - UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? - - + INSERT INTO APP_PALLET_HISTORY (TRANSACTION_REF,TRANSACTION_TYPE,TRANSACTION_SUBTYPE,TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER, PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE) SELECT ? as TRANSACTION_REF,? as TRANSACTION_TYPE,? AS TRANSACTION_SUBTYPE,? AS TRANSACTION_DATE,SSCC,LOCATION_ID,MATERIAL,BATCH_NUMBER,PROCESS_ORDER,QUANTITY, UOM,DATE_OF_MANUFACTURE,STATUS,EAN,VARIANT,DESPATCH_NO,? AS USER_ID,CONFIRMED,LAYERS,SSCC_EXPIRY_DATE,CUSTOMER_ID,MHN_NUMBER,DECISION,EQUIPMENT_TYPE FROM APP_PALLET WHERE DESPATCH_NO = ? + + + JDBPalletHistory.getReturnableBySSCC + select process_order,location_id,SUM(DECODE(transaction_type, 'ISSUE',quantity,-1 * quantity)) AS quantity,MAX(uom) AS uom from app_pallet_history where ((transaction_type = 'ISSUE' and transaction_subtype = 'TO' ) or (transaction_type = 'RETURN' and transaction_subtype = 'FROM' )) and sscc = ? group by process_order,location_id + + JDBControl.lockRecord update SYS_CONTROL set key_value = key_value where system_key = ? @@ -50,7 +56,7 @@ JDBControl.update update {schema}SYS_CONTROL set key_value =?,description=? where System_key = ? - + JDBGroup.create insert into {schema}SYS_GROUPS (group_id,description) values (?,?) @@ -66,7 +72,7 @@ JDBGroup.getGroups select * from {schema}SYS_GROUPS order by group_id - + JDBGroup.getGroupProperties select * from {schema}SYS_GROUPS where group_id = ? @@ -83,7 +89,7 @@ JDBGroup.update update {schema}SYS_GROUPS set description=? where group_id=? - + JDBGroupPermissions.create insert into {schema}SYS_GROUP_PERMISSIONS (group_id,module_id) values (?,?) @@ -120,7 +126,7 @@ JDBGroupPermissions.renameModuleTo update {schema}SYS_GROUP_PERMISSIONS set module_id =? where module_id = ? - + JDBMenus.create insert into {schema}SYS_MENUS (menu_id,module_id,sequence_id) values (?,?,?) @@ -153,7 +159,7 @@ JDBMenus.renameMenuTo update {schema}SYS_MENUS set menu_id = ? where menu_id = ? - + JDBModule.getModulesUnAssignedtoToolbar select * from {schema}SYS_MODULES where module_type = 'FORM' and module_id not in (select module_id from {schema}SYS_TOOLBAR) order by module_id @@ -216,7 +222,7 @@ JDBModule.getModulesUnAssignedtoMenu - select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id + select * from {schema}SYS_MODULES where module_id<>? and module_type<>'FUNCTION' and module_type<>'REPORT' and module_id not in (select module_id from {schema}SYS_MENUS where menu_id = ?) order by module_id JDBModule.removeGroup @@ -238,7 +244,7 @@ JDBModule.isValidModuleId select * from {schema}SYS_MODULES where module_id = ? - + JDBToolbar.create insert into {schema}SYS_TOOLBAR (module_id,sequence_id) values (?,?) @@ -259,7 +265,7 @@ JDBToolbar.update update {schema}SYS_TOOLBAR set sequence_id=? where module_id=? - + JDBRFMenu.create insert into {schema}SYS_RF_MENU (module_id,sequence_id) values (?,?) @@ -280,35 +286,35 @@ JDBRFMenu.update update {schema}SYS_RF_MENU set sequence_id=? where module_id=? - + JDBUser.loadModules select distinct(module_id) from [view_security] where user_id = ? order by module_id JDBUser.changePassword - update {schema}SYS_USERS set Password = ?,last_password_change = ?,password_version=password_version+1,password_change_required='N',password_encrypted=? where user_id = ? + update {schema}SYS_USERS set Password = ?,last_password_change = ?,password_version=password_version+1,password_change_required='N',password_encrypted=? where user_id = ? JDBUser.recordPasswordChange - insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) + insert into {schema}SYS_USERS_PASSWORD_HISTORY (user_id,password_version,password) (select user_id,password_version,password from {schema}SYS_USERS where user_id=?) JDBUser.archivePasswordHistory - delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? - + delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version <= ? + JDBUser.renamePasswordHistory update {schema}SYS_USERS_PASSWORD_HISTORY set user_id = ? where user_id = ? - + JDBUser.deletePasswordHistory delete from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? - + JDBUser.findInPasswordHistory - select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? - + select * from {schema}SYS_USERS_PASSWORD_HISTORY where user_id = ? and password_version >= ? and password = ? + JDBUser.create insert into {schema}SYS_USERS(user_id,password,password_version) values (?,'tempcreate',0) @@ -332,7 +338,7 @@ JDBUser.enable update {schema}SYS_USERS set account_enabled = 'Y' where user_id = ? - + JDBUser.getUserGroupsUnAssigned select group_id from {schema}SYS_GROUPS where group_id not in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?) order by group_id @@ -344,7 +350,7 @@ JDBUser.getUserPermisions select * from {schema}VIEW_PERMISSIONS order by user_id,group_id,module_id - + JDBUser.getUserProperties select * from {schema}SYS_USERS where user_id = ? @@ -373,7 +379,7 @@ JDBUser.update update {schema}SYS_USERS set password_expires=?,password_change_allowed=?,language_id=?,user_comment=?,account_expires=?,account_expiry_date=?,email_address=?,password_change_required=? where user_id=? - + JDBUserGroupMembership.addUsertoGroup insert into {schema}SYS_USER_GROUP_MEMBERSHIP (user_id,group_id) values (?,?) @@ -392,11 +398,8 @@ JDBUserGroupMembership.getUsersAssignedtoGroup - select ugm.GROUP_ID,U.* - from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u - where ugm.group_id=? - and u.USER_ID = ugm.USER_ID - + select ugm.GROUP_ID,U.* from SYS_USER_GROUP_MEMBERSHIP ugm, SYS_USERS u where ugm.group_id=? and u.USER_ID = ugm.USER_ID + JDBUserGroupMembership.isValidUserGroupMembership select * from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ? and group_id = ? @@ -425,7 +428,7 @@ JDBUserGroupMembership.renameUserTo update {schema}SYS_USER_GROUP_MEMBERSHIP set user_id =? where user_id = ? - + JDBUom.create insert into {schema}APP_UOM (uom,iso_uom,description,local_uom) values (?,?,?,?) @@ -462,22 +465,22 @@ JDBUom.update update {schema}APP_UOM set description=?,iso_uom=?,local_uom=? where uom=? - + JInternalFrameMenuTree.buildMenuTree SELECT * FROM [view_menu_structure]WHERE MENU_ID = ? AND MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuRFMenu.buildMenu SELECT * FROM [view_rf_menu]WHERE MODULE_ID IN (select module_id from {schema}SYS_MODULES where rf_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JMenuToolbarMenu.buildMenu SELECT * FROM [view_toolbar]WHERE MODULE_ID IN (select module_id from {schema}SYS_MODULES where dk_active = 'Y' and module_id in (select module_id from {schema}SYS_GROUP_PERMISSIONS where group_id in (select group_id from {schema}SYS_USER_GROUP_MEMBERSHIP where user_id = ?))) order by sequence_id - + JDBMaterial.create insert into {schema}APP_MATERIAL (material) values (?) @@ -514,7 +517,7 @@ JDBMaterial.update update {schema}APP_MATERIAL set base_uom=?,description=?,gross_weight=?,material_type=?,old_material=?,net_weight=?,weight_uom=?,shelf_life=?,shelf_life_rule=?,shelf_life_uom=?,default_batch_status=?,equipment_type=?,updated=?,inspection_id=?,override_pack_label=?,pack_label_module_id=?,override_pallet_label=?,pallet_label_module_id=?,validate_scan_pallet=?,validate_scan_case=?,validate_scan_each=?,enabled=?,move_after_make_enabled=?,move_after_make_location_id=? where material=? - + JDBMaterialUom.isValidMaterialUom select * from {schema}APP_MATERIAL_UOM where material = ? and uom=? @@ -539,7 +542,7 @@ JDBMaterialUom.getMaterialUoms select * from {schema}APP_MATERIAL_UOM where material=? order by uom - + JDBMaterialBatch.getMaterialBatchProperties select * from {schema}APP_MATERIAL_BATCH where material = ? and batch_number = ? @@ -560,7 +563,7 @@ JDBMaterialBatch.delete delete from {schema}APP_MATERIAL_BATCH where material= ? and batch_number = ? - + JDBJourney.getProperties select * from {schema}APP_JOURNEY where journey_ref = ? @@ -580,12 +583,12 @@ JDBJourney.delete delete from {schema}APP_JOURNEY where journey_ref = ? - + JDBJourney.getJourneyList select * from {schema}APP_JOURNEY where status = 'Unassigned' order by journey_ref - - + + JDBMaterialType.getMaterialTypeProperties select * from {schema}APP_MATERIAL_TYPE where material_type = ? @@ -614,11 +617,11 @@ JDBMaterialType.isValidMaterialType select * from {schema}APP_MATERIAL_TYPE where material_type = ? - + JDBProcessOrder.getResources select distinct required_resource from APP_PROCESS_ORDER where required_resource > '' and required_resource not in (select required_resource from {schema}APP_AUTO_LABELLER_RESOURCES where line = ? and group_id = ?) order by required_resource - + JDBProcessOrder.create insert into {schema}APP_PROCESS_ORDER (process_order) values (?) @@ -629,7 +632,7 @@ JDBProcessOrder.getProcessOrderProperties - select * from {schema}APP_PROCESS_ORDER where process_order = ? + select * from {schema}APP_PROCESS_ORDER where process_order = ? JDBProcessOrder.isValidProcessOrder @@ -643,15 +646,23 @@ JDBProcessOrder.selectWithLimit select * from {schema}APP_PROCESS_ORDER + + JDBProcessOrder.selectByStatus + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? ORDER BY due_date,process_order DESC + + + JDBProcessOrder.selectByStatusByResource + select * from {schema}APP_PROCESS_ORDER as APP_PROCESS_ORDER WHERE status = ? and required_resource = ? ORDER BY due_date,process_order DESC + JDBProcessOrder.ViewResource select * from VIEW_PROCESS_ORDER_RESOURCE - + JDBProcessOrder.ViewResourceAlternate select *,? AS BATCH_SUFFIX_OVERRIDE from VIEW_PROCESS_ORDER_RESOURCE where process_order=? - - + + JDBLocation.create insert into {schema}APP_LOCATION (location_id) values (?) @@ -662,7 +673,7 @@ JDBLocation.update - update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=? where location_id=? + update {schema}APP_LOCATION set plant=?,warehouse=?,gln=?,description=?,storage_location=?,storage_type=?,storage_section=?,storage_bin=?,equipment_tracking_id=?,msg_despatch_confirm=?,msg_despatch_preadvice=?,msg_despatch_equip_track=?,msg_prod_confirm=?,permitted_pallet_status=?,permitted_batch_status=?,msg_pallet_status=?,msg_pallet_split=?,msg_pallet_delete=?,enabled=?,msg_journey_ref=?,email_despatch=?,msg_prod_unconfirm=?,msg_pallet_issue=?,msg_pallet_return=?,barcode_id=? where location_id=? JDBLocation.getLocationProperties @@ -680,7 +691,11 @@ JDBLocation.isValidLocation select location_id from {schema}APP_LOCATION where location_id = ? - + + JDBLocation.getLocationIDfromBarcodeID + select * from {schema}APP_LOCATION where barcode_id = ? or location_id = ? + + JDBPallet.rapidConfirm update APP_PALLET set confirmed = 'Y', date_of_manufacture = ?, date_updated = ?, updated_by_user_id = ? where sscc = ? and confirmed = 'N' @@ -717,6 +732,18 @@ JDBPallet.updateStatus update {schema}APP_PALLET set status=?,updated_by_user_id=?,date_updated=? where sscc = ? + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Return + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=?,location_id=? where sscc = ? + + + JDBPallet.Issue + update app_pallet set quantity = ?,updated_by_user_id=?, date_updated=? where sscc = ? + JDBPallet.updateMHNNumber update {schema}APP_PALLET set mhn_number=?,updated_by_user_id=?,date_updated=? where sscc = ? @@ -744,8 +771,8 @@ JDBPallet.updateLocationIDByDespatchNo update {schema}APP_PALLET set location_id=?,updated_by_user_id=?,date_updated=? where despatch_no = ? - - + + JDBDespatch.create insert into {schema}APP_DESPATCH (despatch_no,status) values (?,?) @@ -769,7 +796,7 @@ JDBDespatch.setConfirmed update {schema}APP_DESPATCH set transaction_ref=?,status=?,despatch_date=?,total_pallets=(select count(sscc) from {schema}APP_PALLET where despatch_no = ?) where despatch_no=? - + JDBDespatch.getDespatchProperties select * from {schema}APP_DESPATCH where despatch_no = ? @@ -800,39 +827,17 @@ JDBDespatch.checkPalletBatchStatus - - SELECT - APP_PALLET.SSCC, - APP_PALLET.STATUS "PALLET_STATUS", - APP_PALLET.LOCATION_ID, - APP_PALLET.DESPATCH_NO, - APP_MATERIAL_BATCH.MATERIAL, - APP_MATERIAL_BATCH.BATCH_NUMBER, - APP_MATERIAL_BATCH.STATUS AS "BATCH_STATUS" - FROM - APP_PALLET, - APP_MATERIAL_BATCH - WHERE - APP_MATERIAL_BATCH.MATERIAL = APP_PALLET.MATERIAL - AND APP_MATERIAL_BATCH.BATCH_NUMBER = APP_PALLET.BATCH_NUMBER - AND APP_PALLET.DESPATCH_NO = %1 - AND ( - APP_PALLET.STATUS NOT IN ( %2 ) - OR APP_MATERIAL_BATCH.STATUS NOT IN ( %3 ) - ) - + SELECT APP_PALLET.SSCC, APP_PALLET.STATUS "PALLET_STATUS", APP_PALLET.LOCATION_ID, APP_PALLET.DESPATCH_NO, APP_MATERIAL_BATCH.MATERIAL, APP_MATERIAL_BATCH.BATCH_NUMBER, APP_MATERIAL_BATCH.STATUS AS "BATCH_STATUS" FROM APP_PALLET, APP_MATERIAL_BATCH WHERE APP_MATERIAL_BATCH.MATERIAL = APP_PALLET.MATERIAL AND APP_MATERIAL_BATCH.BATCH_NUMBER = APP_PALLET.BATCH_NUMBER AND APP_PALLET.DESPATCH_NO = %1 AND ( APP_PALLET.STATUS NOT IN ( %2 ) OR APP_MATERIAL_BATCH.STATUS NOT IN ( %3 ) ) JDBDespatch.getDespatchPalletWrongLocationCount - - select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? - + select count(sscc) as pallet_count from APP_PALLET where despatch_no = ? and location_id <> ? JDBDespatch.updateTotalEquipment update APP_DESPATCH set total_equipment = ? where despatch_no = ? - + JDBInterface.getInterfaceProperties select * from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? @@ -853,7 +858,7 @@ JDBInterface.delete delete from {schema}SYS_INTERFACE where interface_type = ? and interface_direction = ? - + JDBInterfaceLog.create insert into {schema}SYS_INTERFACE_LOG (event_Time,interface_log_id,message_ref,interface_type,message_information,interface_direction,action,message_date,message_status,message_error,workstation_id,filename) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -870,7 +875,7 @@ JDBInterfaceLog.archive2 delete from SYS_INTERFACE_LOG where INTERFACE_DIRECTION = 'Output' and MESSAGE_STATUS = 'Success' - + JDBInterfaceRequest.create insert into {schema}SYS_INTERFACE_REQUEST (event_Time,interface_request_id,interface_type,workstation_id,transaction_ref,status,filename,request_mode,unique_id) values (?,?,?,?,?,?,?,?,?) @@ -891,7 +896,7 @@ JDBInterfaceRequest.getInterfaceRequestIDs select * from {schema}SYS_INTERFACE_REQUEST where status = ? order by interface_request_id - + JDBReportRequest.create insert into {schema}SYS_REPORT_REQUEST (report_request_id,module_id,invocation_mode,parameter_count,parameter_delimiter,parameter_names,parameter_types,parameter_values,sql,print_queue_name,print_copies) values (?,?,?,?,?,?,?,?,?,?,?) @@ -908,7 +913,7 @@ JDBReportRequest.getReportRequestIDs select * from {schema}SYS_REPORT_REQUEST order by report_request_id - + JDBLanguage.getText select * from {schema}SYS_LANGUAGE where resource_key = ? and language_id = ? @@ -933,7 +938,7 @@ JDBLanguage.create insert into {schema}SYS_LANGUAGE (resource_key,language_id,text,mnemonic) values (?,?,?,?) - + JDBCustomer.getCustomerProperties select * from {schema}APP_CUSTOMER where customer_id = ? @@ -962,8 +967,7 @@ JDBCustomer.isValidCustomer select * from {schema}APP_CUSTOMER where customer_id = ? - - + JDBMHNReason.getReasonProperties select * from {schema}APP_MHN_REASONS where Reason = ? @@ -992,7 +996,7 @@ JDBMHNReason.isValidReason select * from {schema}APP_MHN_REASONS where Reason = ? - + JDBMHNDecision.getDecisionProperties select * from {schema}APP_MHN_DECISIONS where Decision = ? @@ -1021,7 +1025,7 @@ JDBMHNDecision.isValidDecision select * from {schema}APP_MHN_DECISIONS where Decision = ? - + JDBMHN.create insert into {schema}APP_MHN (mhn_number,date_created,status,recorder) values (?,?,?,?) @@ -1046,7 +1050,7 @@ JDBMHN.palletDecisionSummary select mhn_number,decision,sum(quantity) as sum_quantity,count(sscc) as count_sscc from {schema}APP_PALLET where mhn_number = ? group by mhn_number,decision having mhn_number = ? - + JDBMaterialLocation.create insert into {schema}APP_MATERIAL_LOCATION (material,location_id) values (?,?) @@ -1067,7 +1071,7 @@ JDBMaterialLocation.getProperties select * from {schema}APP_MATERIAL_LOCATION where material = ? and location_id = ? - + JDBQMInspection.create insert into {schema}APP_QM_INSPECTION (inspection_id,description,extension_id) values (?,?,?) @@ -1088,7 +1092,7 @@ JDBQMInspection.update update {schema}APP_QM_INSPECTION set description = ? where inspection_id = ? - + JDBQMActivity.getActivities select * from {schema}APP_QM_ACTIVITY where inspection_id = ? order by activity_id @@ -1113,7 +1117,7 @@ JDBQMActivity.update update {schema}APP_QM_ACTIVITY set description = ? where inspection_id = ? and activity_id = ? - + JDBQMTest.getTests select * from {schema}APP_QM_TEST where inspection_id = ? and activity_id =? order by sequence_id @@ -1138,7 +1142,7 @@ JDBQMTest.update update {schema}APP_QM_TEST set sequence_id = ? where inspection_id = ? and activity_id = ? and test_id=? - + JDBQMDictionary.getTests select * from {schema}APP_QM_DICTIONARY order by test_id @@ -1163,7 +1167,7 @@ JDBQMDictionary.update update {schema}APP_QM_DICTIONARY set field_alignment=?,description=?,datatype=?,uom=?,required=?,select_list_id=?,visible=?,field_width=?,default_value=? where test_id = ? - + JDBQMExtension.getProperties select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? @@ -1188,7 +1192,7 @@ JDBQMExtension.isValid select * from {schema}APP_QM_EXTENSION where extension_id = ? and linked_table = ? and fieldname = ? - + JDBQMSample.getSamples select * from {schema}APP_QM_SAMPLE where process_order=? and inspection_id = ? and activity_id = ? order by sample_date @@ -1217,12 +1221,12 @@ JDBQMSample.selectWithLimit select * from {schema}APP_QM_SAMPLE - + JDBQMResult.getResult select * from {schema}APP_QM_RESULT where sample_id = ? and test_id = ? - + JDBQMResult.getResults select * from {schema}APP_QM_RESULT where sample_id = ? @@ -1246,7 +1250,7 @@ JDBQMResult.update update {schema}APP_QM_RESULT set value=?,updated=?,user_id=?,status=?,processed=? where sample_id = ? and test_id = ? - + JDBQMSelectList.getList select * from {schema}APP_QM_SELECTLIST where select_list_id = ? order by sequence,value @@ -1283,11 +1287,11 @@ JDBAutoLabeller.create insert into {schema}APP_AUTO_LABELLER (line,group_id,description,prefix_code,unique_id,modified,validate_resource,validate_workstation) values (?,?,?,?,?,?,?,?) - + JDBAutoLabeller.resend update {schema}APP_AUTO_LABELLER set modified = ? where line = ? and group_id = ? - + JDBAutoLabeller.delete delete from {schema}APP_AUTO_LABELLER where line = ? and group_id = ? @@ -1319,12 +1323,12 @@ JDBAutoLabeller.getLabellerIDsforGroup select * from {schema}APP_AUTO_LABELLER WHERE GROUP_ID = ? order by LINE - + JDBUserReport.create insert into {schema}SYS_USER_REPORTS (USER_REPORT_ID) values (?) - + JDBUserReport.delete delete from {schema}SYS_USER_REPORTS where USER_REPORT_ID = ? @@ -1344,20 +1348,20 @@ JDBUserReport.update update {schema}SYS_USER_REPORTS set DISPLAY_SEQUENCE=?,DESCRIPTION=?,SQL_SELECT=?,MODULE_ID=?,DESTINATION=?,ENABLED=?,PRIVATE=?,USER_ID=?,GROUP_ID=?,PARAM_DATE_RANGE=?,SAVE_PATH=?,PREVIEW=?,PROMPT_SAVE_AS=?,EMAIL_ENABLED=?,EMAIL_PROMPT_ENABLED=?,EMAIL_ADDRESSES=? where USER_REPORT_ID = ? - + JDBUserReport.getUserReportIDs select * from {schema}SYS_USER_REPORTS order by DISPLAY_SEQUENCE,USER_REPORT_ID - + JDBUserReport.updateUserID update {schema}SYS_USER_REPORTS set USER_ID=? where USER_ID = ? - + JDBShifts.create insert into {schema}APP_SHIFTS (SHIFT_ID,START_TIME,END_TIME,DESCRIPTION) values (?,?,?,?) - + JDBShifts.delete delete from {schema}APP_SHIFTS where SHIFT_ID = ? @@ -1377,7 +1381,7 @@ JDBShifts.update update {schema}APP_SHIFTS set DESCRIPTION=?,START_TIME=?,END_TIME=? WHERE SHIFT_ID = ? - + JDBShifts.getShifts select * from {schema}APP_SHIFTS order by DESCRIPTION @@ -1402,12 +1406,12 @@ JDBPrinters.getPrinterIDs select * from {schema}SYS_PRINTERS where ENABLED = ? order by PRINTER_ID - + JDBLabelData.create INSERT INTO {schema}APP_LABEL_DATA (UNIQUE_ID,PRINT_DATE,USER_ID,WORKSTATION_ID,MATERIAL,MATERIAL_TYPE,BATCH_NUMBER,PROCESS_ORDER,REQUIRED_RESOURCE,LOCATION_ID,PROD_QUANTITY,PROD_UOM,BASE_QUANTITY,BASE_UOM,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT,BASE_EAN,BASE_VARIANT,CUSTOMER_ID,PRINT_COPIES,PRINT_QUEUE_NAME,EXPIRY_MODE,MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX,LABEL_TYPE,LINE,LAYERS) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) - + JDBLabelData.delete DELETE FROM {schema}APP_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1423,7 +1427,7 @@ JDBLabelData.renameLine UPDATE {schema}APP_LABEL_DATA SET LINE=? WHERE LINE=? - + JDBLabelData.select SELECT * FROM {schema}VIEW_LABEL_DATA WHERE UNIQUE_ID = ? @@ -1432,96 +1436,78 @@ JDBLinePrinterMembership.create INSERT INTO {schema}SYS_PRINTER_LINE_MEMBERSHIP (LINE,GROUP_ID,PRINTER_ID) VALUES (?,?,?) - - + + JDBLinePrinterMembership.delete DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + + JDBLinePrinterMembership.deleteForPrinterID DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE PRINTER_ID = ? - + JDBLinePrinterMembership.getPrintersAssignedtoLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ORDER BY PRINTER_ID + + JDBLinePrinterMembership.getPrintersNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE PRINTER_ID NOT IN (SELECT PRINTER_ID FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLinePrinterMembership.isPrinterAssignedToLine - SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? - - + SELECT * FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? AND PRINTER_ID = ? + + JDBLinePrinterMembership.removeAllPrintersfromLine - DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_PRINTER_LINE_MEMBERSHIP WHERE LINE = ? AND GROUP_ID = ? + + JDBLinePrinterMembership.renameLine - UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? - - - + UPDATE {schema}SYS_PRINTER_LINE_MEMBERSHIP SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + + + DBview_auto_labeller_printer.getModified SELECT * FROM {schema}VIEW_AUTO_LABELLER_PRINTER where modified = 'Y' - - + + DBview_auto_labeller_printer.getEnabled SELECT * FROM {schema}VIEW_AUTO_LABELLER_PRINTER - - + + DBview_auto_labeller_printer.getProperties - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pack - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + + DBview_auto_labeller_printer.getProperties_Pallet - SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, - PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, - BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, - BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, - MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, - REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS - FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? - + SELECT LINE,MODIFIED,UNIQUE_ID,LABEL_TYPE,PRINTER_ID,ENABLED,PRINTER_TYPE,IP_ADDRESS,PORT,GROUP_ID,LANGUAGE, PRINTER_DPI,PROCESS_ORDER,MATERIAL,MATERIAL_TYPE,MATERIAL_DESCRIPTION,SHELF_LIFE_UOM,SHELF_LIFE,SHELF_LIFE_RULE, BATCH_NUMBER,REQUIRED_RESOURCE,PLANT,LOCATION_ID,DATE_OF_MANUFACTURE,EXPIRY_DATE,PROD_EAN,PROD_VARIANT, BASE_QUANTITY,PROD_UOM,BASE_EAN,BASE_VARIANT,PROD_QUANTITY,BASE_UOM,CUSTOMER_ID,CUSTOMER_NAME,PRINT_COPIES, MODULE_ID,OVERRIDE_MANUFACTURE_DATE,OVERRIDE_EXPIRY_DATE,OVERRIDE_BATCH_PREFIX,BATCH_PREFIX,BATCH_SUFFIX, REPORT_TYPE,MODULE_TYPE,REPORT_FILENAME,PART_NO,LAYERS FROM {schema}VIEW_AUTO_LABELLER_PRINTER where line = ? and printer_id = ? + JDBAutoLabellerResources.create insert into {schema}APP_AUTO_LABELLER_RESOURCES (line,group_id,required_resource) values (?,?,?) - + JDBAutoLabellerResources.delete delete from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? - + JDBAutoLabellerResources.isValid - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? and required_resource=? JDBAutoLabellerResources.getResources - select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource - + select * from {schema}APP_AUTO_LABELLER_RESOURCES where line=? and group_id = ? order by required_resource + JDBAutoLabellerResources.renameLine - update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? - + update {schema}APP_AUTO_LABELLER_RESOURCES set line=? where line=? and group_id = ? + JDBMaterialCustomerData.isValid @@ -1551,35 +1537,35 @@ JDBArchive.delete delete from {schema}SYS_ARCHIVE where archive_id = ? - + JDBArchive.getArchives select * from {schema}SYS_ARCHIVE order sequence,archive_id - + JDBArchive.getProperties select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.isValidArchive select * from {schema}SYS_ARCHIVE where archive_id=? - + JDBArchive.renameTo update {schema}SYS_ARCHIVE set archive_id=? where archive_id=? - + JDBArchive.update update {schema}SYS_ARCHIVE set description=?,enabled=?,background_task=?,sql_table=?,sql_criteria=?,retention_days=?,sequence=?,max_delete=? where archive_id=? - + JDBArchive.updateRunStats update {schema}SYS_ARCHIVE set run_start_time=?,run_end_time=?,records_deleted=?,sql_result=? where archive_id=? - + JDBArchive.jobList select * from {schema}SYS_ARCHIVE where enabled='Y' and background_task= 'Y' order by sequence - + JDBDataID.create @@ -1587,24 +1573,24 @@ JDBDataID.delete - delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + delete from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getProperties - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.getIDs select * from {schema}APP_MATERIAL_DATA_IDS order by data_id JDBDataID.isValidID - select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? - + select * from {schema}APP_MATERIAL_DATA_IDS where data_id=? + JDBDataID.update update {schema}APP_MATERIAL_DATA_IDS set description=? where data_id=? - + JDBAuditPermissions.create @@ -1613,43 +1599,43 @@ JDBAuditPermissions.getProperties select * from {schema}SYS_AUDIT_PERMISSIONS where sys_audit_log_id=? - + JDBAuditPermissions.selectWithLimit select * from {schema}SYS_AUDIT_PERMISSIONS - + JDBLineWorkstationMembership.create INSERT INTO {schema}SYS_WORKSTATION_LINE_MEMBERS (LINE,GROUP_ID,WORKSTATION_ID) VALUES (?,?,?) - - + + JDBLineWorkstationMembership.delete DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + + JDBLineWorkstationMembership.deleteForWorkstationID DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE WORKSTATION_ID = ? - + JDBLineWorkstationMembership.getWorkstationsAssignedtoLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ORDER BY WORKSTATION_ID + + JDBLineWorkstationMembership.getWorkstationsNotAssignedtoLine SELECT * FROM {schema}SYS_PRINTERS WHERE WORKSTATION_ID NOT IN (SELECT WORKSTATION_ID FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? ) - - + + JDBLineWorkstationMembership.isWorkstationAssignedToLine - SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? - - + SELECT * FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? AND WORKSTATION_ID = ? + + JDBLineWorkstationMembership.removeAllWorkstationsfromLine - DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? - - + DELETE FROM {schema}SYS_WORKSTATION_LINE_MEMBERS WHERE LINE = ? AND GROUP_ID = ? + + JDBLineWorkstationMembership.renameLine - UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? + UPDATE {schema}SYS_WORKSTATION_LINE_MEMBERS SET LINE = ? WHERE LINE = ? AND GROUP_ID = ? @@ -1671,12 +1657,12 @@ JDBProcessOrderResource.getProperties select * from {schema}APP_PROCESS_ORDER_RESOURCE where required_resource = ? - + JDBProcessOrderResource.getResources select * from {schema}APP_PROCESS_ORDER_RESOURCE where enabled = 'Y' order by required_resource - - + + JDBQMAnalysis.getAnalysis select * from {schema}APP_QM_ANALYSIS where analysis_id = ? @@ -1684,15 +1670,15 @@ JDBQMAnalysis.create insert into {schema}APP_QM_ANALYSIS (analysis_id) values (?) - + JDBQMAnalysis.delete delete from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getProperties select * from {schema}APP_QM_ANALYSIS where analysis_id = ? - + JDBQMAnalysis.getAnalysisData select * from {schema}APP_QM_ANALYSIS order by display_sequence @@ -1717,7 +1703,7 @@ JDBModuleAlternative.getWorkstations select workstation_id from {schema}SYS_MODULES_ALTERNATIVE where module_id=? order by workstation_id - + JDBModuleAlternative.getProperties select * from {schema}SYS_MODULES_ALTERNATIVE where module_id = ? and workstation_id=? @@ -1725,17 +1711,17 @@ JDBModuleAlternative.update update {schema}SYS_MODULES_ALTERNATIVE set alt_module_id=? where module_id = ? and workstation_id=? - + JDBViewBarcodeValidate.getProperties select * from {schema}VIEW_BARCODE_VALIDATE where process_order = ? - + JDBWTWorkstation.create insert into {schema}APP_WEIGHT_WORKSTATION (workstation_id) values (?) - + JDBWTWorkstation.delete delete from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? @@ -1752,19 +1738,19 @@ JDBWTWorkstation.getWorkstations select * from {schema}APP_WEIGHT_WORKSTATION order by workstation_id - + JDBWTWorkstation.getProperties select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTWorkstation.isValidWorkstation select * from {schema}APP_WEIGHT_WORKSTATION where workstation_id = ? - + JDBWTScale.create insert into {schema}APP_WEIGHT_SCALE (scale_id) values (?) - + JDBWTScale.delete delete from {schema}APP_WEIGHT_SCALE where scale_id = ? @@ -1777,23 +1763,23 @@ JDBWTScale.update update {schema}APP_WEIGHT_SCALE set description = ?,make=?,model=?,baud_rate=?,data_bits=?,stop_bits=?,flow_control=?,connection=?,parity=?,end_of_line=?,serial_no=?,command_prefix=? where scale_id = ? - + JDBWTScale.isValidScale select * from {schema}APP_WEIGHT_SCALE where scale_id = ? - + JDBWTScale.getProperties select * from {schema}APP_WEIGHT_SCALE where scale_id = ? JDBWTScale.getScales select * from {schema}APP_WEIGHT_SCALE order by scale_id - - + + JDBWTTNE.create insert into {schema}APP_WEIGHT_TNE (nominal_weight,nominal_weight_uom) values (?,?) - + JDBWTTNE.delete delete from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom = ? @@ -1806,11 +1792,11 @@ JDBWTTNE.update update {schema}APP_WEIGHT_TNE set tne = ?,neg_t1=?,neg_t2=? where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.isValidTNE select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? - + JDBWTTNE.getProperties select * from {schema}APP_WEIGHT_TNE where nominal_weight = ? and nominal_weight_uom=? @@ -1818,11 +1804,11 @@ JDBWTTNE.getTNEs select * from {schema}APP_WEIGHT_TNE order by nominal_weight,nominal_weight_uom - + JDBWTSamplePoint.create insert into {schema}APP_WEIGHT_SAMPLE_POINT (sample_point) values (?) - + JDBWTSamplePoint.delete delete from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? @@ -1835,23 +1821,23 @@ JDBWTSamplePoint.update update {schema}APP_WEIGHT_SAMPLE_POINT set description = ?,location=?,required_resource=?,reporting_group=?,enabled=? where sample_point = ? - + JDBWTSamplePoint.isValidSamplePoint select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getProperties select * from {schema}APP_WEIGHT_SAMPLE_POINT where sample_point = ? - + JDBWTSamplePoint.getSamplePoints select * from {schema}APP_WEIGHT_SAMPLE_POINT order by sample_point - - + + JDBProductGroup.create insert into {schema}APP_WEIGHT_PRODUCT_GROUP (product_group) values (?) - + JDBProductGroup.delete delete from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? @@ -1864,23 +1850,23 @@ JDBProductGroup.update update {schema}APP_WEIGHT_PRODUCT_GROUP set description = ?,nominal_weight=?,nominal_weight_uom=?,tare_weight=?,tare_weight_uom=?,samples_required=?,lower_limit=?,upper_limit=? where product_group = ? - + JDBProductGroup.isValidProductGroup select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProperties select * from {schema}APP_WEIGHT_PRODUCT_GROUP where product_group = ? - + JDBProductGroup.getProductGroups select * from {schema}APP_WEIGHT_PRODUCT_GROUP order by product_group - - + + JDBWTContainerCode.create insert into {schema}APP_WEIGHT_CONTAINER_CODE (container_code) values (?) - + JDBWTContainerCode.delete delete from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? @@ -1893,56 +1879,30 @@ JDBWTContainerCode.update update {schema}APP_WEIGHT_CONTAINER_CODE set description = ? where container_code = ? - + JDBWTContainerCode.isValidContainerCode select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getProperties select * from {schema}APP_WEIGHT_CONTAINER_CODE where container_code = ? - + JDBWTContainerCode.getContainerCodes select * from {schema}APP_WEIGHT_CONTAINER_CODE order by container_code - + JDBWTSampleHeader.create insert into {schema}APP_WEIGHT_SAMPLE_HEADER (sample_point,sample_date) values (?,?) JDBWTSampleHeader.update - update APP_WEIGHT_SAMPLE_HEADER set - user_id = ?, - workstation_id = ?, - scale_id = ?, - process_order = ?, - required_resource = ?, - customer_id = ?, - material = ?, - product_group = ?, - container_code = ?, - tare_weight = ?, - tare_weight_uom = ?, - nominal_weight = ?, - nominal_weight_uom = ?, - tne = ?, - neg_t1 = ?, - neg_t2 = ?, - sample_size = ?, - sample_count = ?, - sample_mean = ?, - sample_std_dev = ?, - sample_t1_count = ?, - sample_t2_count = ?, - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set user_id = ?, workstation_id = ?, scale_id = ?, process_order = ?, required_resource = ?, customer_id = ?, material = ?, product_group = ?, container_code = ?, tare_weight = ?, tare_weight_uom = ?, nominal_weight = ?, nominal_weight_uom = ?, tne = ?, neg_t1 = ?, neg_t2 = ?, sample_size = ?, sample_count = ?, sample_mean = ?, sample_std_dev = ?, sample_t1_count = ?, sample_t2_count = ?, comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.updateComments - update APP_WEIGHT_SAMPLE_HEADER set - comments = ? - where sample_point = ? and sample_date = ? + update APP_WEIGHT_SAMPLE_HEADER set comments = ? where sample_point = ? and sample_date = ? JDBWTSampleHeader.isValidSampleHeader @@ -1952,7 +1912,7 @@ JDBWTSampleHeader.getProperties select * from {schema}APP_WEIGHT_SAMPLE_HEADER where sample_point = ? and sample_date = ? - + JDBWTSampleDetail.create insert into {schema}APP_WEIGHT_SAMPLE_DETAIL (sample_point,sample_date,sample_sequence) values (?,?,?) @@ -1963,23 +1923,13 @@ JDBWTSampleDetail.update - UPDATE APP_WEIGHT_SAMPLE_DETAIL SET - SAMPLE_WEIGHT_DATE = ?, - SAMPLE_GROSS_WEIGHT = ?, - SAMPLE_NET_WEIGHT = ?, - SAMPLE_TARE_WEIGHT = ?, - SAMPLE_WEIGHT_UOM = ?, - SAMPLE_T1_COUNT = ?, - SAMPLE_T2_COUNT = ? - WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? - - + UPDATE APP_WEIGHT_SAMPLE_DETAIL SET SAMPLE_WEIGHT_DATE = ?, SAMPLE_GROSS_WEIGHT = ?, SAMPLE_NET_WEIGHT = ?, SAMPLE_TARE_WEIGHT = ?, SAMPLE_WEIGHT_UOM = ?, SAMPLE_T1_COUNT = ?, SAMPLE_T2_COUNT = ? WHERE SAMPLE_POINT = ? AND SAMPLE_DATE = ? AND SAMPLE_SEQUENCE = ? + JDBWTSampleDetail.getSampleDetails select * FROM {schema}APP_WEIGHT_SAMPLE_DETAIL where sample_point = ? and sample_date = ? order by sample_point,sample_date,sample_sequence - - + JDBWasteLocation.create insert into {schema}APP_WASTE_LOCATIONS (waste_location_id,description,process_order_required,reason_id_required,enabled) values (?,?,?,?,?) @@ -2010,25 +1960,17 @@ JDBWasteLocation.getLocationsAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id - + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id + JDBWasteLocation.getLocationsUnAssignedtoReportingID - select * from {schema}APP_WASTE_LOCATIONS - where enabled = 'Y' - and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) - order by waste_location_id + select * from {schema}APP_WASTE_LOCATIONS where enabled = 'Y' and waste_location_id not in (SELECT waste_location_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ?) order by waste_location_id JDBWasteLocation.renameLocationID update {schema}APP_WASTE_LOCATIONS set waste_location_id=? where waste_location_id=? - - - + JDBWasteContainer.create insert into {schema}APP_WASTE_CONTAINERS (waste_container_id,description,tare_weight,enabled) values (?,?,?,?) @@ -2061,9 +2003,7 @@ JDBWasteContainer.renameContainerID update {schema}APP_WASTE_CONTAINERS set waste_container_id=? where waste_container_id=? - - - + JDBWasteTransactionType.create insert into {schema}APP_WASTE_TRANSACTIONS (waste_transaction_type,description,include_in_totals,store_as_negative,enabled) values (?,?,?,?,?) @@ -2092,8 +2032,7 @@ JDBWasteTransactionType.renameTransactionType update {schema}APP_WASTE_TRANSACTIONS set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteReportingIDS.create insert into {schema}APP_WASTE_REPORTING_IDS (waste_reporting_id,description,reporting_group,enabled) values (?,?,?,?) @@ -2120,17 +2059,11 @@ JDBWasteReportingIDS.getReportingIDsAssignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id - + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id + JDBWasteReportingIDS.getReportingIDsUnassignedtoLocation - select * from {schema}APP_WASTE_REPORTING_IDS - where enabled = 'Y' - and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) - order by waste_reporting_id + select * from {schema}APP_WASTE_REPORTING_IDS where enabled = 'Y' and waste_reporting_id not in (SELECT waste_reporting_id from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ?) order by waste_reporting_id JDBWasteReportingIDS.renameReportingID @@ -2139,9 +2072,8 @@ JDBWasteReportingIDS.renameReportingGroup update {schema}APP_WASTE_REPORTING_IDS set reporting_group=? where reporting_group=? - - - + + JDBWasteReasons.create insert into {schema}APP_WASTE_REASONS (waste_reason_id,description,enabled) values (?,?,?) @@ -2165,13 +2097,12 @@ JDBWasteReasons.update update {schema}APP_WASTE_REASONS set description=?,enabled=? where waste_reason_id=? - + JDBWasteReasons.renameReasonID update {schema}APP_WASTE_REASONS set waste_reason_id=? where waste_reason_id=? - - + JDBWasteLocationReporting.create insert into {schema}APP_WASTE_LOCATION_REPORTING (waste_location_id,waste_reporting_id) values (?,?) @@ -2191,7 +2122,7 @@ JDBWasteLocationReporting.isValidWasteLocationReportingID select * from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id= ?and waste_reporting_id=? - + JDBWasteLocationReporting.deleteByLocation delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_location_id = ? @@ -2199,16 +2130,16 @@ JDBWasteLocationReporting.deleteByReportID delete from {schema}APP_WASTE_LOCATION_REPORTING where waste_reporting_id = ? - + JDBWasteLocationReporting.renameLocationID update {schema}APP_WASTE_LOCATION_REPORTING set waste_location_id=? where waste_location_id=? - + JDBWasteLocationReporting.renameReportingID update {schema}APP_WASTE_LOCATION_REPORTING set waste_reporting_id=? where waste_reporting_id=? - + JDBWasteTypes.create insert into {schema}APP_WASTE_TYPES (waste_type_id,description,recyclable,hazardous,ppe_required,enabled) values (?,?,?,?,?,?) @@ -2232,33 +2163,30 @@ JDBWasteTypes.update update {schema}APP_WASTE_TYPES set description=?,recyclable=?,hazardous=?,ppe_required=?,enabled=? where waste_type_id=? - + JDBWasteTypes.renameTypeID update {schema}APP_WASTE_TYPES set waste_type_id=? where waste_type_id=? - - + JDBWasteLocationMaterial.isValid - select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? and waste_material_id = ? + select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? and waste_material_id = ? JDBWasteLocationMaterial.getMaterialsforLocation select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? order by waste_material_id - - + JDBWasteMaterialLocation.isValid - select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_material_id = ? and waste_location_id = ? + select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_material_id = ? and waste_location_id = ? JDBWasteMaterialLocation.getMaterialsforLocation select * from {schema}VIEW_WASTE_LOCATION_MATERIALS where waste_location_id = ? order by waste_material_id - - - + + JDBWasteMaterial.create insert into {schema}APP_WASTE_MATERIAL (waste_material_id,waste_type_id,cost_per_kg,description,enabled) values (?,?,?,?,?) @@ -2282,7 +2210,7 @@ JDBWasteMaterial.update update {schema}APP_WASTE_MATERIAL set waste_type_id=?,cost_per_kg=?,description=?,enabled=? where waste_material_id=? - + JDBWasteMaterial.renameMaterialID update {schema}APP_WASTE_MATERIAL set waste_material_id=? where waste_material_id=? @@ -2291,8 +2219,7 @@ JDBWasteMaterial.renameTypeID update {schema}APP_WASTE_MATERIAL set waste_type_id=? where waste_type_id=? - - + JDBWasteLog.write insert into {schema}APP_WASTE_LOG (transaction_ref,waste_transaction_type,report_time,waste_location_id,waste_material_id,process_order,waste_reason_id,user_id,weight_kg,tare_weight,waste_container_id,waste_comment) values (?,?,?,?,?,?,?,?,?,?,?,?) @@ -2316,7 +2243,7 @@ JDBWasteLog.update update {schema}APP_WASTE_LOG set report_time=?,waste_location_id=?,waste_material_id=?,process_order=?,waste_reason_id=?,user_id=?,weight_kg=?,tare_weight=?,waste_container_id=?,waste_comment=? where transaction_ref=? and waste_transaction_type=? - + JDBWasteLog.renameLocationID update {schema}APP_WASTE_LOG set waste_location_id=? where waste_location_id=? @@ -2337,8 +2264,7 @@ JDBWasteLog.renameTransactionType update {schema}APP_WASTE_LOG set waste_transaction_type=? where waste_transaction_type=? - - + JDBWasteLocationTypes.create insert into {schema}APP_WASTE_LOCATION_TYPES (waste_location_id,waste_type_id) values (?,?) @@ -2358,7 +2284,7 @@ JDBWasteLocationTypes.isValidWasteLocationType select * from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id= ? and waste_type_id=? - + JDBWasteLocationTypes.deleteByLocation delete from {schema}APP_WASTE_LOCATION_TYPES where waste_location_id = ? @@ -2366,13 +2292,12 @@ JDBWasteLocationTypes.deleteByType delete from {schema}APP_WASTE_LOCATION_TYPES where waste_type_id = ? - + JDBWasteLocationTypes.renameLocationID update {schema}APP_WASTE_LOCATION_TYPES set waste_location_id=? where waste_location_id=? - - - + + JDBWasteReportingGroup.create insert into {schema}APP_WASTE_REPORTING_GROUP (reporting_group,description,enabled) values (?,?,?) @@ -2396,17 +2321,16 @@ JDBWasteReportingGroup.update update {schema}APP_WASTE_REPORTING_GROUP set description=?,enabled=? where reporting_group=? - + JDBWasteReportingGroup.renameReportingGroup update {schema}APP_WASTE_REPORTING_GROUP set reporting_group=? where reporting_group=? - - - + + JDBEquipmentType.create insert into {schema}APP_EQUIPMENT_TYPE (equipment_type,description,weight_kg,enabled) values (?,?,?,?) - + JDBEquipmentType.delete delete from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? @@ -2415,39 +2339,31 @@ JDBEquipmentType.update update {schema}APP_EQUIPMENT_TYPE set description = ?,weight_kg=?,enabled=? where equipment_type = ? - + JDBEquipmentType.isValidEquipmentType select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getProperties select * from {schema}APP_EQUIPMENT_TYPE where equipment_type = ? - + JDBEquipmentType.getEquipmentTypes select * from {schema}APP_EQUIPMENT_TYPE order by equipment_type - + JDBEquipmentType.updatePallet - - UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' - - + UPDATE APP_PALLET SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_MATERIAL WHERE APP_MATERIAL.MATERIAL = APP_PALLET.MATERIAL),'') WHERE COALESCE(APP_PALLET.EQUIPMENT_TYPE,'') = '' + JDBEquipmentType.updatePalletHistory - - UPDATE - APP_PALLET_HISTORY SET EQUIPMENT_TYPE = - COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') - WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - + UPDATE APP_PALLET_HISTORY SET EQUIPMENT_TYPE = COALESCE((SELECT EQUIPMENT_TYPE FROM APP_PALLET WHERE APP_PALLET.SSCC = APP_PALLET_HISTORY.SSCC AND APP_PALLET.EQUIPMENT_TYPE > '' ),'') WHERE COALESCE(APP_PALLET_HISTORY.EQUIPMENT_TYPE,'') = '' - - + JDBDespatchEquipmentType.create insert into {schema}APP_DESPATCH_EQUIPMENT_TYPE (despatch_no,equipment_type,quantity) values (?,?,?) - + JDBDespatchEquipmentType.delete delete from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? @@ -2460,24 +2376,23 @@ JDBDespatchEquipmentType.update update {schema}APP_DESPATCH_EQUIPMENT_TYPE set quantity = ? where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.isValidEquipmentType select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getProperties select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? and equipment_type = ? - + JDBDespatchEquipmentType.getEquipmentTypes select * from {schema}APP_DESPATCH_EQUIPMENT_TYPE where despatch_no = ? order by despatch_no,equipment_type - - - + + JDBPalletExtension.create insert into {schema}APP_PALLET_EXTENSION (sscc) values (?) - + JDBPalletExtension.delete delete from {schema}APP_PALLET_EXTENSION where sscc = ? @@ -2486,20 +2401,19 @@ JDBPalletExtension.update update {schema}APP_PALLET_EXTENSION set first_case_input = ?,first_case_time = ?,last_case_input = ?,last_case_time = ?,supplier_id1 = ?,shift_id = ?,incident_reference = ?,location = ?,product_group = ?,container_code = ?,pweek = ?,pday = ?,pmonth = ?,pyear = ?,pallet_quantity = ? where sscc = ? - + JDBPalletExtension.getProperties select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + + JDBPalletExtension.isValid select * from {schema}APP_PALLET_EXTENSION where sscc = ? - - + JDBShiftNames.create insert into {schema}APP_SHIFT_NAMES (shift_id,description,enabled) values (?,?,?) - + JDBShiftNames.delete delete from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2516,11 +2430,11 @@ JDBShiftNames.renameTo2 update {schema}APP_PALLET_EXTENSION set shift_id = ? where shift_id = ? - + JDBShiftNames.getProperties select * from {schema}APP_SHIFT_NAMES where shift_id = ? - - + + JDBShiftNames.isValid select * from {schema}APP_SHIFT_NAMES where shift_id = ? @@ -2528,12 +2442,11 @@ JDBShiftNames.getShiftNames select * from {schema}APP_SHIFT_NAMES order by shift_id - JDBPalletSamples.create insert into {schema}APP_PALLET_SAMPLES (sscc,sample_sequence) values (?,?) - + JDBPalletSamples.delete delete from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? @@ -2542,16 +2455,15 @@ JDBPalletSamples.update update {schema}APP_PALLET_SAMPLES set sample_date=?,sample_reason = ?,defect_type = ?,defect_id = ?,leaking = ?, sample_comment=?, sample_quantity=?, user_id=?,sample_point = ?, id=?, lane_1=?, lane_1=2, lane_1=3, lane_1=4, lane_1=5 where sscc = ? and sample_sequence = ? - + JDBPalletSamples.getProperties select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + + JDBPalletSamples.isValid select * from {schema}APP_PALLET_SAMPLES where sscc = ? and sample_sequence = ? - - + JDBSampleReasons.getReasonProperties select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? @@ -2584,7 +2496,6 @@ JDBSampleReasons.isValidReason select * from {schema}APP_SAMPLE_REASONS where sample_reason = ? - JDBSampleDefectID.getDefectProperties @@ -2618,7 +2529,6 @@ JDBSampleDefectID.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_ID where defect_id = ? - JDBSampleDefectType.getDefectProperties @@ -2660,8 +2570,7 @@ JDBSampleDefectType.isValidDefect select * from {schema}APP_SAMPLE_DEFECT_TYPE where defect_type = ? - - + JDBSuppliers.getSupplierProperties select * from {schema}APP_SUPPLIER where supplier_id = ? @@ -2685,7 +2594,7 @@ JDBSuppliers.renameTo2 update {schema}APP_PALLET_EXTENSION set supplier_id1 =? where supplier_id1 =? - + JDBSuppliers.update update {schema}APP_SUPPLIER set supplier_type=?,description=?,enabled=? where supplier_id=? @@ -2694,8 +2603,7 @@ JDBSuppliers.isValidSupplier select * from {schema}APP_SUPPLIER where supplier_id = ? - - + JDBQMTrays.getProperties select * from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id = ? @@ -2711,17 +2619,16 @@ JDBQMTrays.update update {schema}APP_QM_PANEL_TRAY set description=?,updated=? where panel_id=? and tray_id=? - + JDBQMTrays.delete delete from {schema}APP_QM_PANEL_TRAY where panel_id=? and tray_id=? - + JDBQMTrays.getByPanel select * from {schema}APP_QM_PANEL_TRAY where panel_id = ? order by tray_id - - + JDBQMTraySamples.isValid select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? @@ -2735,23 +2642,22 @@ insert into {schema}APP_QM_PANEL_TRAY_SAMPLES (tray_id,sample_id,sequence_id,created) values (?,?,?,?) - JDBQMTraySamples.update + JDBQMTraySamples.update update {schema}APP_QM_PANEL_TRAY_SAMPLES set sequence_id = ?,updated = ? where tray_id = ? and sample_id = ? - + JDBQMTraySamples.delete delete from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? and sample_id = ? - + JDBQMTraySamples.getByTrayID select * from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id - + JDBQMTraySamples.maxSequenceID select coalesce(max(sequence_id),0) AS max_sequence_id from {schema}APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? - - - + + JDBQMPanels.getProperties select * from {schema}APP_QM_PANEL where panel_id=? @@ -2767,21 +2673,20 @@ JDBQMPanels.update update {schema}APP_QM_PANEL set panel_date=?,description=?,plant=?,status=?,updated=? where panel_id=? - + JDBQMPanels.delete delete from {schema}APP_QM_PANEL where panel_id=? - + JDBQMPanels.getByStatus select * from {schema}APP_QM_PANEL where status = ? order by panel_id JDBQMPanels.getListLimit - select * from (select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc) where rownum <= ? + select * from (select * from {schema}APP_QM_PANEL order by (case status when 'Prepare' then 1 when 'Ready' then 2 when 'Complete' then 3 else 4 end),panel_id desc) where rownum <= ? - - + JDBQMTrayResults.isValid select * from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? @@ -2795,34 +2700,18 @@ insert into {schema}APP_QM_PANEL_TRAY_RESULTS (tray_id,sample_id,user_id,test_id,value,created) values (?,?,?,?,?,?) - JDBQMTrayResults.update + JDBQMTrayResults.update update {schema}APP_QM_PANEL_TRAY_RESULTS set test_id = ?,value = ?,updated = ? where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.delete delete from {schema}APP_QM_PANEL_TRAY_RESULTS where tray_id = ? and sample_id = ? and user_id = ? - + JDBQMTrayResults.getByTrayID - select - APP_QM_PANEL_TRAY_SAMPLES.tray_id, - APP_QM_PANEL_TRAY_SAMPLES.sample_id, - APP_QM_PANEL_TRAY_SAMPLES.sequence_id, - APP_QM_PANEL_TRAY_SAMPLES.updated, - APP_QM_PANEL_TRAY_SAMPLES.created, - ? as user_id, - ? as test_id, - (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id - and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id - and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' - from - APP_QM_PANEL_TRAY_SAMPLES - where tray_id = ? - order by sequence_id - - - - + select APP_QM_PANEL_TRAY_SAMPLES.tray_id, APP_QM_PANEL_TRAY_SAMPLES.sample_id, APP_QM_PANEL_TRAY_SAMPLES.sequence_id, APP_QM_PANEL_TRAY_SAMPLES.updated, APP_QM_PANEL_TRAY_SAMPLES.created, ? as user_id, ? as test_id, (select value from APP_QM_PANEL_TRAY_RESULTS where APP_QM_PANEL_TRAY_RESULTS.tray_id = APP_QM_PANEL_TRAY_SAMPLES.tray_id and APP_QM_PANEL_TRAY_RESULTS.sample_id = APP_QM_PANEL_TRAY_SAMPLES.sample_id and APP_QM_PANEL_TRAY_RESULTS.user_id = ? and test_id = ?) as 'value' from APP_QM_PANEL_TRAY_SAMPLES where tray_id = ? order by sequence_id + + JDBQMUsers.isValid select * from {schema}APP_QM_USERS where user_id=? @@ -2836,24 +2725,22 @@ insert into {schema}APP_QM_USERS (user_id,first_name,surname,enabled) values (?,?,?,?) - JDBQMUsers.update + JDBQMUsers.update update {schema}APP_QM_USERS set first_name = ?,surname = ?,enabled = ? where user_id = ? - - - JDBQMUsers.getByEnabled + + + JDBQMUsers.getByEnabled select * from {schema}APP_QM_USERS where enabled = ? order by user_id - - + - JDBQMUsers.getByUserID + JDBQMUsers.getByUserID select * from {schema}APP_QM_USERS where user_id = ? - - + JDBPackingLines.create insert into {schema}APP_PACKING_LINES (packing_line_id,description,enabled) values (?,?,?) - + JDBPackingLines.delete delete from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2862,11 +2749,11 @@ JDBPackingLines.update update {schema}APP_PACKING_LINES set description = ?,enabled = ? where packing_line_id = ? - + JDBPackingLines.getProperties select * from {schema}APP_PACKING_LINES where packing_line_id = ? - - + + JDBPackingLines.isValid select * from {schema}APP_PACKING_LINES where packing_line_id = ? @@ -2874,12 +2761,11 @@ JDBPackingLines.getNames select * from {schema}APP_PACKING_LINES order by packing_line_id - - + JDBOperatives.create insert into {schema}APP_OPERATIVES (id,surname,forename,enabled) values (?,?,?,?) - + JDBOperatives.delete delete from {schema}APP_OPERATIVES where id = ? @@ -2892,23 +2778,201 @@ JDBOperatives.renameTo update {schema}APP_OPERATIVES set id = ? where id = ? - + JDBOperatives.getProperties select * from {schema}APP_OPERATIVES where id = ? - - + + JDBOperatives.isValid select * from {schema}APP_OPERATIVES where id = ? JDBOperatives.getOperatives select * from {schema}APP_OPERATIVES order by id - - + JDBViewProductGroups.getProductGroups select * from {schema}app_weight_product_group order by product_group + + + JDBBom.getRootUuid + SELECT * FROM APP_BOM where bom_id = ? and bom_version = ? and data_id = 'root' + + + JDBBom.getElementCount + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getSequence + SELECT * FROM APP_BOM WHERE parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM1 + SELECT * from APP_BOM where uuid = ? ORDER BY bom_sequence + + + JDBBom.recurseBOM2 + SELECT * from APP_BOM where parent_uuid = ? ORDER BY bom_sequence + + + JDBBom.getChildUuids + SELECT * from APP_BOM where parent_uuid = ? + + + JDBBom.getProperties + SELECT * from APP_BOM where uuid = ? + + + JDBBom.deleteBOM + DELETE from APP_BOM where bom_id = ? and bom_version = ? + + + JDBBom.deleteUuid + DELETE from APP_BOM where uuid = ? + + + JDBBom.writeRecord + INSERT into APP_BOM (bom_id,bom_version,bom_sequence, data_id, data_type, data_string, data_decimal, data_date, data_timestamp, uuid, parent_uuid) VALUES (?,?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + + + JDBBom.updateRecord + UPDATE APP_BOM SET data_string = ?,data_decimal = ?,data_date = ?,data_timestamp = ? WHERE uuid = ? + + + JDBBom.updateSequence + UPDATE APP_BOM SET bom_sequence = ? WHERE uuid = ? + + + + JDBBomDefaults.getProperties + SELECT * from APP_BOM_DEFAULTS where source_field = ? AND source_value = ? AND destination_field = ? + + + JDBBomDefaults.delete + DELETE from APP_BOM_DEFAULTS where source_field = ? and source_value = ? and destination_field = ? + + + JDBBomDefaults.create + INSERT INTO APP_BOM_DEFAULTS (source_field,source_value,destination_field,destination_value) VALUES (?,?,?,?) + + + JDBBomDefaults.update + UPDATE APP_BOM_DEFAULTS SET destination_value = ? WHERE source_field = ? AND source_value = ? AND destination_field = ? + + + + JDBBomElement.getProperties + SELECT * from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.delete + DELETE from APP_BOM_ELEMENTS where data_id = ? + + + JDBBomElement.create + INSERT INTO APP_BOM_ELEMENTS (data_id,data_type,enable_edit,enable_create,enable_delete,enable_duplicate,enable_clipboard,enable_lookup,max_occur_level,lookup_sql,lookup_field,icon_filename,description) VALUES (?,?,?,?,?,?,?,?,?,?,?,?) + + + JDBBomElement.update + UPDATE APP_BOM_ELEMENTS SET data_type=?,enable_edit=?,enable_create=?,enable_delete=?,enable_duplicate=?,enable_clipboard=?,enable_lookup=?,max_occur_level=?,lookup_sql=?,lookup_field=?,icon_filename=?,description=? WHERE data_id=? + + + JDBBomElement.getList + SELECT * from APP_BOM_ELEMENTS order by data_id + + + + JDBViewBomStructure.getProperties + SELECT * from view_bom_structure where data_id = ? and parent_data_id = ? + + + JDBViewBomStructure.getAllowedChildren + SELECT * from view_bom_structure where parent_data_id = ? order by data_id + + + JDBViewBomStructure.getList + SELECT * from view_bom_structure order by parent_data_id,data_id + + + + JDBBomStructure.delete + DELETE from APP_BOM_STRUCTURE where data_id = ? and parent_data_id = ? + + + JDBBomStructure.create + INSERT into APP_BOM_STRUCTURE ( data_id, parent_data_id) VALUES (?,?) + + + JDBBomStructure.update + UPDATE APP_BOM_STRUCTURE SET data_id = ?,parent_data_id = ? where data_id = ? and parent_data_id = ? + + + JDBBomStructure.getList + SELECT * from app_bom_structure order by parent_data_id,data_id + + + + JDBViewBomRecord.getBomMaterials + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.getBomStages + SELECT distinct(stage) from view_bom where bom_id = ? and bom_version = ? + + + JDBViewBomRecord.isValidMaterialForLocation + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? and location_id = ? + + + JDBViewBomRecord.getValidtLocationsforMaterial + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getValidMaterialsForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? + + + JDBViewBomRecord.isMaterialValidForBOM + SELECT * from view_bom where bom_id = ? and bom_version = ? and input_output = ? and stage = ? and material = ? + + + JDBViewBomRecord.getIndex + SELECT * from view_bom where input_output = 'output' order by bom_id,bom_version + + + + JDBBomList.getLocationIDs + SELECT ITEM FROM APP_BOM_LISTS WHERE LIST_ID = 'location_id' AND ITEM IS NOT NULL AND ENABLED = 'Y' ORDER BY SEQUENCE + + + JDBBomList.getValues + select * from APP_BOM_LISTS where list_id = ? and enabled = 'Y' order by sequence,item + + + JDBBomList.getList + select * from APP_BOM_LISTS order by list_id,sequence,item + + + JDBBomList.getListIds + select * from APP_BOM_LISTS where enabled = ? order by list_id,sequence,item + + + JDBBomList.create + insert into APP_BOM_LISTS (list_id,item,sequence,enabled) values (?,?,?,?) + + + JDBBomList.delete + delete from APP_BOM_LISTS where list_id = ? and item = ? + + + JDBBomList.update + update APP_BOM_LISTS set sequence=?, enabled = ? where list_id = ? and item = ? + + + JDBBomList.getProperties + select * from APP_BOM_LISTS where list_id = ? and item = ? + diff --git a/c4jWS/target/c4jWS.war b/c4jWS/target/c4jWS.war index ad41869cd..c0f1d17ca 100644 Binary files a/c4jWS/target/c4jWS.war and b/c4jWS/target/c4jWS.war differ